diff --git a/snippets/latex.json b/snippets/latex.json index f73a128..a40162e 100644 --- a/snippets/latex.json +++ b/snippets/latex.json @@ -1,7 +1,7 @@ { "Figure": { "prefix": "fig", - "body":"\\begin{figure}[htp!]\n \\centering\n \\includegraphics[width=1\\linewidth]{${1:fig_path}}\n \\caption{${2:caption}}\n \\label{fig:${3:label}}\n\\end{figure}", + "body":"\\begin{figure}[htp!]\n \\centering\n \\includegraphics[width=1\\linewidth]{${1:fig_path}}\n \\caption{${2:caption}}\n \\label{fig:${3:label}}\n\\end{figure}\n${4:end}", "description": "Inserts a figure", }, @@ -42,12 +42,12 @@ }, "Citation": { "prefix": "cit", - "body": "~\\cite{${1:citation}}", + "body": "${2:delSpace}~\\cite{${1:citation}} ${3:continue}", "description": "Adds the Cite command" }, "Reference": { "prefix": "ref", - "body": "~\\ref{${1:citation}}", + "body": "${2:delSpace}~\\ref{${1:citation}} ${3:continue}", "description": "Adds the Ref command" }, }