From 616a1ff9f6c8f18908b0f57d315fc04c2de3fd19 Mon Sep 17 00:00:00 2001 From: Phani Pavan K Date: Wed, 17 Dec 2025 10:51:27 +0530 Subject: [PATCH] add cite and ref commands --- extension.toml | 2 +- snippets/latex.json | 12 +++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/extension.toml b/extension.toml index 5e3295e..1b22f89 100644 --- a/extension.toml +++ b/extension.toml @@ -1,6 +1,6 @@ id = "latexnips" name = "Latex Snippets" -version = "0.1.2" +version = "0.1.3" schema_version = 1 authors = ["Phani Pavan K "] description = "Common Latex Snippets, common action from overleaf toolbar." diff --git a/snippets/latex.json b/snippets/latex.json index 404008c..f73a128 100644 --- a/snippets/latex.json +++ b/snippets/latex.json @@ -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" + }, }