Compare commits

..

5 Commits

Author SHA1 Message Date
8cedc798df Update README.md 2026-02-23 03:18:32 +00:00
ed184b91f2 Update README.md 2026-02-18 05:17:29 +00:00
Phani Pavan K
4db5972986 optimised tab movement 2025-12-17 12:29:40 +05:30
Phani Pavan K
a7d022b928 add bold and italic text block 2025-12-17 11:56:53 +05:30
Phani Pavan K
ad747a44b7 added tab jumping for qol 2025-12-17 11:33:05 +05:30
3 changed files with 23 additions and 9 deletions

View File

@@ -1,3 +1,7 @@
# latexnips # latexnips
Common Latex Snippets Common Latex Snippets for Zed editor.
---
~ A Grammer Society Project.

View File

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

View File

@@ -1,7 +1,7 @@
{ {
"Figure": { "Figure": {
"prefix": "fig", "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{${3:caption}}\n \\label{fig:${2:label}}\n\\end{figure}\n${4:end}",
"description": "Inserts a figure", "description": "Inserts a figure",
}, },
@@ -22,32 +22,42 @@
}, },
"Section": { "Section": {
"prefix": "sec", "prefix": "sec",
"body": "\\section{${1:section}}", "body": "\\section{${1:section}}\n${2:text}",
"description": "Adds the section command" "description": "Adds the section command"
}, },
"Sub-Section": { "Sub-Section": {
"prefix": "ssc", "prefix": "ssc",
"body": "\\subsection{${1:section}}", "body": "\\subsection{${1:section}}\n${2:text}",
"description": "Adds the subsection command" "description": "Adds the subsection command"
}, },
"Sub-Sub-Section": { "Sub-Sub-Section": {
"prefix": "sss", "prefix": "sss",
"body": "\\subsubsection{${1:section}}", "body": "\\subsubsection{${1:section}}\n${2:text}",
"description": "Adds the subsubsection command" "description": "Adds the subsubsection command"
}, },
"Table": { "Table": {
"prefix": "tab", "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}", "body": "\\begin{table}[htpb!]\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" "description": "Adds table template"
}, },
"Citation": { "Citation": {
"prefix": "cit", "prefix": "cit",
"body": "~\\cite{${1:citation}}", "body": "${2:delSpace}~\\cite{${1:citation}} ${3:continue}",
"description": "Adds the Cite command" "description": "Adds the Cite command"
}, },
"Reference": { "Reference": {
"prefix": "ref", "prefix": "ref",
"body": "~\\ref{${1:citation}}", "body": "${2:delSpace}~\\ref{${1:refr}} ${3:continue}",
"description": "Adds the Ref command" "description": "Adds the Ref command"
}, },
"Italic Text":{
"prefix": "itl",
"body": "{\\it ${1:text}} ${2:continue}",
"description": "Adds Italic text block"
},
"Bold Text":{
"prefix": "bol",
"body": "{\\bf ${1:text}} ${2:continue}",
"description": "Adds Bold text block"
}
} }