Compare commits
7 Commits
b4def0815d
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 8cedc798df | |||
| ed184b91f2 | |||
|
|
4db5972986 | ||
|
|
a7d022b928 | ||
|
|
ad747a44b7 | ||
|
|
616a1ff9f6 | ||
|
|
fcf9b62807 |
@@ -1,3 +1,7 @@
|
|||||||
# latexnips
|
# latexnips
|
||||||
|
|
||||||
Common Latex Snippets
|
Common Latex Snippets for Zed editor.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
~ A Grammer Society Project.
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
id = "latexnips"
|
id = "latexnips"
|
||||||
name = "Latex Snippets"
|
name = "Latex Snippets"
|
||||||
version = "0.1.1"
|
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."
|
||||||
|
|||||||
@@ -1,8 +1,63 @@
|
|||||||
{
|
{
|
||||||
"Insert Figure": {
|
"Figure": {
|
||||||
"scope": "latex",
|
"prefix": "fig",
|
||||||
"prefix": "\\fig",
|
"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}",
|
||||||
"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",
|
"description": "Inserts a figure",
|
||||||
|
},
|
||||||
|
|
||||||
|
"Itemize": {
|
||||||
|
"prefix": "itz",
|
||||||
|
"body":"\\begin{itemize}\n \\item ${1:item}\n\\end{itemize}",
|
||||||
|
"description": "Adds unordered itemize list"
|
||||||
|
},
|
||||||
|
"Enumerate": {
|
||||||
|
"prefix": "enu",
|
||||||
|
"body":"\\begin{enumerate}\n \\item ${1:item}\n\\end{enumerate}",
|
||||||
|
"description": "Adds ordered enumerate list"
|
||||||
|
},
|
||||||
|
"Item": {
|
||||||
|
"prefix": "ite",
|
||||||
|
"body": "\\item ${1:item}",
|
||||||
|
"description": "Adds an item"
|
||||||
|
},
|
||||||
|
"Section": {
|
||||||
|
"prefix": "sec",
|
||||||
|
"body": "\\section{${1:section}}\n${2:text}",
|
||||||
|
"description": "Adds the section command"
|
||||||
|
},
|
||||||
|
"Sub-Section": {
|
||||||
|
"prefix": "ssc",
|
||||||
|
"body": "\\subsection{${1:section}}\n${2:text}",
|
||||||
|
"description": "Adds the subsection command"
|
||||||
|
},
|
||||||
|
"Sub-Sub-Section": {
|
||||||
|
"prefix": "sss",
|
||||||
|
"body": "\\subsubsection{${1:section}}\n${2:text}",
|
||||||
|
"description": "Adds the subsubsection command"
|
||||||
|
},
|
||||||
|
"Table": {
|
||||||
|
"prefix": "tab",
|
||||||
|
"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"
|
||||||
|
},
|
||||||
|
"Citation": {
|
||||||
|
"prefix": "cit",
|
||||||
|
"body": "${2:delSpace}~\\cite{${1:citation}} ${3:continue}",
|
||||||
|
"description": "Adds the Cite command"
|
||||||
|
},
|
||||||
|
"Reference": {
|
||||||
|
"prefix": "ref",
|
||||||
|
"body": "${2:delSpace}~\\ref{${1:refr}} ${3:continue}",
|
||||||
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user