diff --git a/extension.toml b/extension.toml new file mode 100644 index 0000000..6a18915 --- /dev/null +++ b/extension.toml @@ -0,0 +1,8 @@ +id = "latexnips" +name = "Latex Snippets" +version = "0.1.1" +schema_version = 1 +authors = ["Phani Pavan K "] +description = "Common Latex Snippets, common action from overleaf toolbar." +repository = "https://git.pvnweb.dedyn.io/phanipavank/latexnips" +snippets = "./snippets/latex.json" diff --git a/snippets/latex.json b/snippets/latex.json new file mode 100644 index 0000000..8d8322d --- /dev/null +++ b/snippets/latex.json @@ -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", + } +}