add cite and ref commands

This commit is contained in:
Phani Pavan K
2025-12-17 10:51:27 +05:30
parent fcf9b62807
commit 616a1ff9f6
2 changed files with 12 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
id = "latexnips"
name = "Latex Snippets"
version = "0.1.2"
version = "0.1.3"
schema_version = 1
authors = ["Phani Pavan K <kphanipavan@gmail.com>"]
description = "Common Latex Snippets, common action from overleaf toolbar."

View File

@@ -39,5 +39,15 @@
"prefix": "tab",
"body": "\\begin{table}[htb!]\n \\begin{center}\n \\caption{${1:caption}}\n \\label{tab:${2:label}}\n \\resizebox{1\\linewidth}{!}{\n \\begin{tabular}{${3:columns}}\n ${4:data}\n \\end{tabular}}\n \\end{center}\n\\end{table}",
"description": "Adds table template"
}
},
"Citation": {
"prefix": "cit",
"body": "~\\cite{${1:citation}}",
"description": "Adds the Cite command"
},
"Reference": {
"prefix": "ref",
"body": "~\\ref{${1:citation}}",
"description": "Adds the Ref command"
},
}