347 lines
9.8 KiB
JSON
Executable File
347 lines
9.8 KiB
JSON
Executable File
{
|
|
"prepare LaTeX Document": {
|
|
"prefix": "latex-prepare",
|
|
"body": [
|
|
"\\documentclass{article}\n",
|
|
"\\input{~/projects/latex/janishutz-helpers.tex}\n",
|
|
"\\usepackage{lmodern}",
|
|
"\\setFontType{sans}\n",
|
|
"\\setup{$1}\n",
|
|
"\\begin{document}",
|
|
"\\startDocument\n\n",
|
|
"$2\n\n",
|
|
"\\end{document}"
|
|
],
|
|
"description": "Prepares a simple LaTeX Document"
|
|
},
|
|
"LaTeX CheatSheet Setup": {
|
|
"prefix": "latex-cheatsheet",
|
|
"body": [
|
|
"\\documentclass{article}\n",
|
|
"\\input{~/projects/latex/janishutz-helpers.tex}\n",
|
|
"\\usepackage{lmodern}",
|
|
"\\setFontType{sans}\n",
|
|
"\\setupCheatSheet{$1}\n",
|
|
"\\begin{document}",
|
|
"\\startDocument\n\n",
|
|
"$2\n\n",
|
|
"\\end{document}"
|
|
],
|
|
"description": "Prepares to write a LaTeX CheatSheet"
|
|
},
|
|
"Full Summary LaTeX Setup": {
|
|
"prefix": "latex-summary",
|
|
"body": [
|
|
"\\documentclass{article}\n",
|
|
"\\input{~/projects/latex/janishutz-helpers.tex}\n",
|
|
"\\usepackage{lmodern}",
|
|
"\\setFontType{sans}\n",
|
|
"\\setup{$1}\n",
|
|
"\\begin{document}",
|
|
"\\startDocument\n\n",
|
|
"\\vspace{2cm}",
|
|
"\\begin{center}",
|
|
"\t\\includegraphics[width=0.6\\linewidth]{~/projects/latex/assets/logo.jpg}",
|
|
"\\end{center}\n\n",
|
|
"\\vspace{3cm}",
|
|
"\\begin{center}",
|
|
"\t\\begin{Large}",
|
|
"\t\t\\quote{A funny quote by a professor}",
|
|
"\t\\end{Large}",
|
|
"\\hspace{3cm} - Prof. Dr. Professor Name, YEAR",
|
|
"\\end{center}\n",
|
|
"\\vspace{2cm}",
|
|
"\\begin{center}",
|
|
"\tSEMESTER, ETHZ\\\\[0.2cm]",
|
|
"\t\\begin{Large}",
|
|
"\t\tSummary of the Script and Lectures",
|
|
"\t\\end{Large}\\\\[0.2cm]",
|
|
"\\end{center}\n\n",
|
|
"\\newpage",
|
|
"\\printtoc{Aquamarine}\n\n",
|
|
"$2\n\n",
|
|
"\\end{document}"
|
|
],
|
|
"description": "Prepares a full LaTeX Summary"
|
|
},
|
|
"Fancy table": {
|
|
"prefix": "table",
|
|
"body": [
|
|
"\\begin{tables}{$1}{$2}\n",
|
|
"\t$3\\\\",
|
|
"\\end{tables}"
|
|
],
|
|
"description": "Insert a table (without environment)"
|
|
},
|
|
"Formula": {
|
|
"prefix": "formula",
|
|
"body": [
|
|
"\\begin{formula}[]{$1}",
|
|
"\t$2",
|
|
"\\end{formula}"
|
|
],
|
|
"description": "Inserts a tcolorbox to provide a formula (red)"
|
|
},
|
|
"Definition": {
|
|
"prefix": "definition",
|
|
"body": [
|
|
"\\begin{definition}[]{$1}",
|
|
"\t$2",
|
|
"\\end{definition}"
|
|
],
|
|
"description": "Inserts a tcolorbox to provide a definition (blue)"
|
|
},
|
|
"Recall": {
|
|
"prefix": "recall",
|
|
"body": [
|
|
"\\begin{recall}[]{$1}",
|
|
"\t$2",
|
|
"\\end{recall}"
|
|
],
|
|
"description": "Inserts a tcolorbox to point out / revise of previous knowledge (yellow)"
|
|
},
|
|
"Remark": {
|
|
"prefix": "remark",
|
|
"body": [
|
|
"\\begin{remarks}[]{$1}",
|
|
"\t$2",
|
|
"\\end{remarks}"
|
|
],
|
|
"description": "Inserts a tcolorbox to provide remarks (green)"
|
|
},
|
|
"Properties": {
|
|
"prefix": "properties",
|
|
"body": [
|
|
"\\begin{properties}[]{$1}",
|
|
"\t$2",
|
|
"\\end{properties}"
|
|
],
|
|
"description": "Inserts a tcolorbox to inform about properties"
|
|
},
|
|
"Restrictions": {
|
|
"prefix": "restrictions",
|
|
"body": [
|
|
"\\begin{restrictions}[]{$1}",
|
|
"\t$2",
|
|
"\\end{restrictions}"
|
|
],
|
|
"description": "Inserts a tcolorbox to inform about restrictions"
|
|
},
|
|
"Intuition": {
|
|
"prefix": "restrictions",
|
|
"body": [
|
|
"\\begin{intuition}[]{$1}",
|
|
"\t$2",
|
|
"\\end{intuition}"
|
|
],
|
|
"description": "Tcolorbox to highlight sections about intuition"
|
|
},
|
|
"Limitations": {
|
|
"prefix": "limitations",
|
|
"body": [
|
|
"\\begin{limitations}[]{$1}",
|
|
"\t$2",
|
|
"\\end{limitations}"
|
|
],
|
|
"description": "Inserts a tcolorbox to inform about limitations"
|
|
},
|
|
"Theorem": {
|
|
"prefix": "theorem",
|
|
"body": [
|
|
"\\begin{theorem}[]{$1}",
|
|
"\t$2",
|
|
"\\end{theorem}"
|
|
],
|
|
"description": "Inserts a tcolorbox to state a theorem"
|
|
},
|
|
"Lemma": {
|
|
"prefix": "lemma",
|
|
"body": [
|
|
"\\begin{lemma}[]{$1}",
|
|
"\t$2",
|
|
"\\end{lemma}"
|
|
],
|
|
"description": "Inserts a tcolorbox to state a lemma"
|
|
},
|
|
"Corollary": {
|
|
"prefix": "corollary",
|
|
"body": [
|
|
"\\begin{corollary}[]{$1}",
|
|
"\t$2",
|
|
"\\end{corollary}"
|
|
],
|
|
"description": "Inserts a tcolorbox to state a corollary"
|
|
},
|
|
"Proposition": {
|
|
"prefix": "proposition",
|
|
"body": [
|
|
"\\begin{proposition}[]{$1}",
|
|
"\t$2",
|
|
"\\end{proposition}"
|
|
],
|
|
"description": "Inserts a tcolorbox to state a proposition"
|
|
},
|
|
"Fact": {
|
|
"prefix": "fact",
|
|
"body": [
|
|
"\\begin{fact}[]{$1}",
|
|
"\t$2",
|
|
"\\end{fact}"
|
|
],
|
|
"description": "Inserts a tcolorbox to state a fact"
|
|
},
|
|
"Terms": {
|
|
"prefix": "terms",
|
|
"body": [
|
|
"\\begin{terms}[]{$1}",
|
|
"\t$2",
|
|
"\\end{terms}"
|
|
],
|
|
"description": "Inserts a tcolorbox to inform about terms"
|
|
},
|
|
"Proof": {
|
|
"prefix": "proof",
|
|
"body": [
|
|
"\\begin{proof}[]{$1}",
|
|
"\t$2",
|
|
"\\end{proof}"
|
|
],
|
|
"description": "Inserts a tcolorbox to show a proof"
|
|
},
|
|
"Axiom": {
|
|
"prefix": "axiom",
|
|
"body": [
|
|
"\\begin{axiom}[]{$1}",
|
|
"\t$2",
|
|
"\\end{axiom}"
|
|
],
|
|
"description": "Inserts a tcolorbox to show an axiom"
|
|
},
|
|
"Notation": {
|
|
"prefix": "notation",
|
|
"body": [
|
|
"\\begin{notation}[]{$1}",
|
|
"\t$2",
|
|
"\\end{notation}"
|
|
],
|
|
"description": "Inserts a tcolorbox to show notation"
|
|
},
|
|
"Example": {
|
|
"prefix": "example",
|
|
"body": [
|
|
"\\begin{example}[]{$1}",
|
|
"\t$2",
|
|
"\\end{example}"
|
|
],
|
|
"description": "Inserts a tcolorbox to show example"
|
|
},
|
|
"Task": {
|
|
"prefix": "task",
|
|
"body": [
|
|
"\\begin{task}[]{$1}",
|
|
"\t$2",
|
|
"\\end{task}"
|
|
],
|
|
"description": "Inserts a tcolorbox to show example"
|
|
},
|
|
"Usage": {
|
|
"prefix": "usage",
|
|
"body": [
|
|
"\\begin{usage}[]{$1}",
|
|
"\t$2",
|
|
"\\end{usage}"
|
|
],
|
|
"description": "Inserts a tcolorbox to inform about usage"
|
|
},
|
|
"General-Tcolorbox": {
|
|
"prefix": "general-tcb",
|
|
"body": [
|
|
"\\begin{general}[]{${1:title}}{${2:second title}}{${3|red,green,blue,cyan,magenta,yellow,black,gray,white,darkgray,lightgray,brown,lime,olive,orange,pink,purple,teal,violet|}}",
|
|
"\t$4",
|
|
"\\end{general}"
|
|
],
|
|
"description": "Inserts a tcolorbox for general purposes. First bracket is title, second one is second title, third one colour"
|
|
},
|
|
"Simple-Tcolorbox": {
|
|
"prefix": "simple-tcb",
|
|
"body": [
|
|
"\\begin{simplebox}[]{${1|red,green,blue,cyan,magenta,yellow,black,gray,white,darkgray,lightgray,brown,lime,olive,orange,pink,purple,teal,violet|}}",
|
|
"\t$2",
|
|
"\\end{simplebox}"
|
|
],
|
|
"description": "Inserts a simple tcolorbox. No title, first argument the colour colour"
|
|
},
|
|
"bold": {
|
|
"prefix": "#bold",
|
|
"body": [
|
|
"\\textbf{$1}"
|
|
]
|
|
},
|
|
"italic": {
|
|
"prefix": "#i",
|
|
"body": [
|
|
"\\textit{$1}"
|
|
]
|
|
},
|
|
"bolditalic": {
|
|
"prefix": "#bi",
|
|
"body": [
|
|
"\\textbf{\\textit{$1}}"
|
|
]
|
|
},
|
|
"underlinie": {
|
|
"prefix": "#u",
|
|
"body": [
|
|
"\\underbar{$1}"
|
|
]
|
|
},
|
|
"angles": {
|
|
"prefix": "angles",
|
|
"body": [
|
|
"\\langle $1 \\rangle"
|
|
]
|
|
},
|
|
"fill-width": {
|
|
"prefix": "#fill",
|
|
"body": [
|
|
"\\hspace{\\fill}$1"
|
|
]
|
|
},
|
|
"Latex-Colour": {
|
|
"prefix": "colour",
|
|
"body": [
|
|
"${1|red,green,blue,cyan,magenta,yellow,black,gray,white,darkgray,lightgray,brown,lime,olive,orange,pink,purple,teal,violet|}"
|
|
]
|
|
},
|
|
"Latex-Text-Colour": {
|
|
"prefix": "colour-text",
|
|
"body": [
|
|
"\\color{${1|red,green,blue,cyan,magenta,yellow,black,gray,white,darkgray,lightgray,brown,lime,olive,orange,pink,purple,teal,violet|}}"
|
|
]
|
|
},
|
|
"Set Language": {
|
|
"prefix": "setLang",
|
|
"body": [
|
|
"\\setLang{$1}"
|
|
]
|
|
},
|
|
"Letter": {
|
|
"prefix": "latex-letter",
|
|
"body": [
|
|
"\\documentclass[12pt,a4paper]{scrlttr2}\n",
|
|
"\\newcommand{\\dir}{~/projects/latex} % IMPORTANT: No trailing slashes!",
|
|
"\\input{\\dir/include.tex}",
|
|
"\\load{letter}\n",
|
|
"% Subject",
|
|
"\\setkomavar{subject}{$1}",
|
|
"\\begin{document}\\raggedright",
|
|
"\t\\begin{letter}{Company \\\\\\ Name \\\\\\ Address \\\\\\ CH-Place}",
|
|
"\t\t\\opening{Intro}\n",
|
|
"\t\t$2\n",
|
|
"\t\t\\closing{Kind regards}",
|
|
"\t\\end{letter}",
|
|
"\\end{document}"
|
|
]
|
|
}
|
|
}
|