[Snippets] Update
This commit is contained in:
@@ -3,12 +3,30 @@
|
|||||||
"prefix": "latex-prepare",
|
"prefix": "latex-prepare",
|
||||||
"body": [
|
"body": [
|
||||||
"\\documentclass{article}\n",
|
"\\documentclass{article}\n",
|
||||||
"\\input{~/projects/latex/dist/recommended.tex}\n",
|
"\\newcommand{\\input}{~/projects/latex/janishutz-helpers.tex}\n",
|
||||||
|
"\\usepackage{lmodern}",
|
||||||
|
"\\setFontType{sans}\n",
|
||||||
"\\setup{$1}\n",
|
"\\setup{$1}\n",
|
||||||
"\\begin{document}",
|
"\\begin{document}",
|
||||||
"\\startDocument",
|
"\\startDocument\n\n",
|
||||||
"\\usetcolorboxes",
|
"\\vspace{2cm}",
|
||||||
"$2\n\n",
|
"\\begin{center}\n\n",
|
||||||
|
"\\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}",
|
||||||
"\\end{document}"
|
"\\end{document}"
|
||||||
],
|
],
|
||||||
"description": "Prepares a full LaTeX Document for use and compiling"
|
"description": "Prepares a full LaTeX Document for use and compiling"
|
||||||
@@ -47,18 +65,9 @@
|
|||||||
"\t$2",
|
"\t$2",
|
||||||
"\\end{recall}"
|
"\\end{recall}"
|
||||||
],
|
],
|
||||||
"description": "Inserts a tcolorbox to provide a recall / revision of previous knowledge (yellow)"
|
"description": "Inserts a tcolorbox to point out / revise of previous knowledge (yellow)"
|
||||||
},
|
},
|
||||||
"Important Remarks": {
|
"Remark": {
|
||||||
"prefix": "remarks",
|
|
||||||
"body": [
|
|
||||||
"\\begin{remark}[]{$1}",
|
|
||||||
"\t$2",
|
|
||||||
"\\end{remark}"
|
|
||||||
],
|
|
||||||
"description": "Inserts a tcolorbox to provide remarks (green), but here numbered"
|
|
||||||
},
|
|
||||||
"Remark (numbered)": {
|
|
||||||
"prefix": "remark",
|
"prefix": "remark",
|
||||||
"body": [
|
"body": [
|
||||||
"\\begin{remarks}[]{$1}",
|
"\\begin{remarks}[]{$1}",
|
||||||
@@ -67,15 +76,6 @@
|
|||||||
],
|
],
|
||||||
"description": "Inserts a tcolorbox to provide remarks (green)"
|
"description": "Inserts a tcolorbox to provide remarks (green)"
|
||||||
},
|
},
|
||||||
"Guides": {
|
|
||||||
"prefix": "guides",
|
|
||||||
"body": [
|
|
||||||
"\\begin{guides}[]{$1}{${2:Usage}}",
|
|
||||||
"\t$2",
|
|
||||||
"\\end{guides}"
|
|
||||||
],
|
|
||||||
"description": "Inserts a tcolorbox to provide guides / instructions on how to use (red)"
|
|
||||||
},
|
|
||||||
"Properties": {
|
"Properties": {
|
||||||
"prefix": "properties",
|
"prefix": "properties",
|
||||||
"body": [
|
"body": [
|
||||||
@@ -119,7 +119,7 @@
|
|||||||
"\t$2",
|
"\t$2",
|
||||||
"\\end{theorem}"
|
"\\end{theorem}"
|
||||||
],
|
],
|
||||||
"description": "Inserts a tcolorbox to inform about theorems"
|
"description": "Inserts a tcolorbox to state a theorem"
|
||||||
},
|
},
|
||||||
"Lemma": {
|
"Lemma": {
|
||||||
"prefix": "lemma",
|
"prefix": "lemma",
|
||||||
@@ -128,7 +128,7 @@
|
|||||||
"\t$2",
|
"\t$2",
|
||||||
"\\end{lemma}"
|
"\\end{lemma}"
|
||||||
],
|
],
|
||||||
"description": "Inserts a tcolorbox to inform about lemmas"
|
"description": "Inserts a tcolorbox to state a lemma"
|
||||||
},
|
},
|
||||||
"Corollary": {
|
"Corollary": {
|
||||||
"prefix": "corollary",
|
"prefix": "corollary",
|
||||||
@@ -137,7 +137,7 @@
|
|||||||
"\t$2",
|
"\t$2",
|
||||||
"\\end{corollary}"
|
"\\end{corollary}"
|
||||||
],
|
],
|
||||||
"description": "Inserts a tcolorbox to inform about corollaries"
|
"description": "Inserts a tcolorbox to state a corollary"
|
||||||
},
|
},
|
||||||
"Proposition": {
|
"Proposition": {
|
||||||
"prefix": "proposition",
|
"prefix": "proposition",
|
||||||
@@ -146,7 +146,7 @@
|
|||||||
"\t$2",
|
"\t$2",
|
||||||
"\\end{proposition}"
|
"\\end{proposition}"
|
||||||
],
|
],
|
||||||
"description": "Inserts a tcolorbox to inform about propositions"
|
"description": "Inserts a tcolorbox to state a proposition"
|
||||||
},
|
},
|
||||||
"Fact": {
|
"Fact": {
|
||||||
"prefix": "fact",
|
"prefix": "fact",
|
||||||
@@ -155,7 +155,7 @@
|
|||||||
"\t$2",
|
"\t$2",
|
||||||
"\\end{fact}"
|
"\\end{fact}"
|
||||||
],
|
],
|
||||||
"description": "Inserts a tcolorbox to inform about facts"
|
"description": "Inserts a tcolorbox to state a fact"
|
||||||
},
|
},
|
||||||
"Terms": {
|
"Terms": {
|
||||||
"prefix": "terms",
|
"prefix": "terms",
|
||||||
@@ -220,24 +220,6 @@
|
|||||||
],
|
],
|
||||||
"description": "Inserts a tcolorbox to inform about usage"
|
"description": "Inserts a tcolorbox to inform about usage"
|
||||||
},
|
},
|
||||||
"Conjugation": {
|
|
||||||
"prefix": "conjugation",
|
|
||||||
"body": [
|
|
||||||
"\\begin{conjugation}[]{$1}",
|
|
||||||
"\t$2",
|
|
||||||
"\\end{conjugation}"
|
|
||||||
],
|
|
||||||
"description": "Inserts a tcolorbox to inform about conjugation"
|
|
||||||
},
|
|
||||||
"Forms": {
|
|
||||||
"prefix": "forms",
|
|
||||||
"body": [
|
|
||||||
"\\begin{forms}[]{$1}",
|
|
||||||
"\t$2",
|
|
||||||
"\\end{forms}"
|
|
||||||
],
|
|
||||||
"description": "Inserts a tcolorbox to inform about forms of e.g. grammatical structures"
|
|
||||||
},
|
|
||||||
"General-Tcolorbox": {
|
"General-Tcolorbox": {
|
||||||
"prefix": "general-tcb",
|
"prefix": "general-tcb",
|
||||||
"body": [
|
"body": [
|
||||||
@@ -256,120 +238,6 @@
|
|||||||
],
|
],
|
||||||
"description": "Inserts a simple tcolorbox. No title, first argument the colour colour"
|
"description": "Inserts a simple tcolorbox. No title, first argument the colour colour"
|
||||||
},
|
},
|
||||||
"Derivative": {
|
|
||||||
"prefix": "derivative",
|
|
||||||
"body": [
|
|
||||||
"\\frac{\\mbox{d}}{\\mbox{d}x}$1"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Example (inline)": {
|
|
||||||
"prefix": "example-inline",
|
|
||||||
"body": [
|
|
||||||
"\\inlineex"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Example (short)": {
|
|
||||||
"prefix": "example-short",
|
|
||||||
"body": [
|
|
||||||
"\\shortex"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Definition (inline)": {
|
|
||||||
"prefix": "definition-inline",
|
|
||||||
"body": [
|
|
||||||
"\\inlinedef"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Definition (short)": {
|
|
||||||
"prefix": "definition-short",
|
|
||||||
"body": [
|
|
||||||
"\\shortdef"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Theorem (inline)": {
|
|
||||||
"prefix": "theorem-inline",
|
|
||||||
"body": [
|
|
||||||
"\\inlinetheorem"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Theorem (short)": {
|
|
||||||
"prefix": "theorem-short",
|
|
||||||
"body": [
|
|
||||||
"\\shorttheorem"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Lemma (inline)": {
|
|
||||||
"prefix": "lemma-inline",
|
|
||||||
"body": [
|
|
||||||
"\\inlinelemma"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Lemma (short)": {
|
|
||||||
"prefix": "lemma-short",
|
|
||||||
"body": [
|
|
||||||
"\\shortlemma"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Corollary (inline)": {
|
|
||||||
"prefix": "corollary-inline",
|
|
||||||
"body": [
|
|
||||||
"\\inlinecorollary"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Corollary (short)": {
|
|
||||||
"prefix": "corollary-short",
|
|
||||||
"body": [
|
|
||||||
"\\shortcorollary"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Proposition (inline)": {
|
|
||||||
"prefix": "proposition-inline",
|
|
||||||
"body": [
|
|
||||||
"\\inlineproposition"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Proposition (short)": {
|
|
||||||
"prefix": "proposition-short",
|
|
||||||
"body": [
|
|
||||||
"\\shortproposition"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Fact (inline)": {
|
|
||||||
"prefix": "fact-inline",
|
|
||||||
"body": [
|
|
||||||
"\\inlinefact"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Fact (short)": {
|
|
||||||
"prefix": "fact-short",
|
|
||||||
"body": [
|
|
||||||
"\\shortfact"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Axiom (inline)": {
|
|
||||||
"prefix": "axiom-inline",
|
|
||||||
"body": [
|
|
||||||
"\\inlineaxiom"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Axiom (short)": {
|
|
||||||
"prefix": "axiom-short",
|
|
||||||
"body": [
|
|
||||||
"\\shortaxiom"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Proof (inline)": {
|
|
||||||
"prefix": "proof-inline",
|
|
||||||
"body": [
|
|
||||||
"\\inlineproof"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Proof (short)": {
|
|
||||||
"prefix": "proof-short",
|
|
||||||
"body": [
|
|
||||||
"\\shortproof"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"bold": {
|
"bold": {
|
||||||
"prefix": "#bold",
|
"prefix": "#bold",
|
||||||
"body": [
|
"body": [
|
||||||
@@ -428,7 +296,9 @@
|
|||||||
"prefix": "latex-letter",
|
"prefix": "latex-letter",
|
||||||
"body": [
|
"body": [
|
||||||
"\\documentclass[12pt,a4paper]{scrlttr2}\n",
|
"\\documentclass[12pt,a4paper]{scrlttr2}\n",
|
||||||
"\\input{~/projects/latex/dist/letter.tex}\n",
|
"\\newcommand{\\dir}{~/projects/latex} % IMPORTANT: No trailing slashes!",
|
||||||
|
"\\input{\\dir/include.tex}",
|
||||||
|
"\\load{letter}\n",
|
||||||
"% Subject",
|
"% Subject",
|
||||||
"\\setkomavar{subject}{$1}",
|
"\\setkomavar{subject}{$1}",
|
||||||
"\\begin{document}\\raggedright",
|
"\\begin{document}\\raggedright",
|
||||||
|
|||||||
Reference in New Issue
Block a user