added snippets
This commit is contained in:
8
extension.toml
Normal file
8
extension.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
id = "latexnips"
|
||||
name = "Latex Snippets"
|
||||
version = "0.1.1"
|
||||
schema_version = 1
|
||||
authors = ["Phani Pavan K <kphanipavan@gmail.com>"]
|
||||
description = "Common Latex Snippets, common action from overleaf toolbar."
|
||||
repository = "https://git.pvnweb.dedyn.io/phanipavank/latexnips"
|
||||
snippets = "./snippets/latex.json"
|
||||
8
snippets/latex.json
Normal file
8
snippets/latex.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"Insert Figure": {
|
||||
"scope": "latex",
|
||||
"prefix": "\\fig",
|
||||
"body":"\\begin{figure}\n\\centering\n\includegraphics[width=1\\linewidth]{${1:fig_path}}\n\\caption{${2:caption}}\n\label{fig:${3:label}}\n\\end{figure}",
|
||||
"description": "Inserts a figure",
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user