1
Fork 0
satellite/dotfiles/vscode-snippets/snippets/latex/core.json
2022-09-18 01:00:32 +02:00

182 lines
4.4 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"Begin": {
"prefix": "begin",
"description": "Begin anything",
"body": ["\\begin{$1}", "\t$0", "\\end{$1}"]
},
"Set": {
"prefix": "set",
"description": "Set I guess",
"body": "\\{$1\\\\}$0"
},
"Absolute value": {
"prefix": "abs",
"description": "Absolute values",
"body": "|$1|$0"
},
"Lemma": {
"prefix": "lemma",
"description": "Create a lemma",
"body": ["\\begin{lemma}[$1] \\label{lem:$1}", "\t$0", "\\end{lemma}"]
},
"Theorem": {
"prefix": "theorem",
"description": "Create a theorem",
"body": ["\\begin{theorem}[$1] \\label{thm:$1}", "\t$0", "\\end{theorem}"]
},
"Exercise": {
"prefix": "exercise",
"description": "Create a exercise",
"body": ["\\begin{exercise}[$1] \\label{exe:$1}", "\t$0", "\\end{exercise}"]
},
"Definition": {
"prefix": "definition",
"description": "Create a definition",
"body": [
"\\begin{definition}[$1] \\label{def:$1}",
"\t$0",
"\\end{definition}"
]
},
"Display math": {
"prefix": "dm",
"description": "Display math section",
"body": ["\\[", "$0", "\\]"]
},
"Subscript": {
"prefix": "ss",
"description": "Subscript",
"body": "_{$1}$0"
},
"Exponent": {
"prefix": "ee",
"description": "Exponent",
"body": "^{$1}$0"
},
"Section": {
"prefix": "section",
"description": "Add section",
"body": ["\\section{$1}", "$0"]
},
"Subsection": {
"prefix": "subsection",
"description": "Add subsection",
"body": ["\\subsection{$1}", "$0"]
},
"Subsubsection": {
"prefix": "subsubsection",
"description": "Add subsubsection",
"body": ["\\subsubsection{$1}", "$0"]
},
"Chapter": {
"prefix": "chapter",
"description": "Add chapter",
"body": ["\\chapter{$1}", "$0"]
},
"Proof": {
"prefix": "proof",
"description": "Create proof",
"body": ["\\begin{proof}", "\t$0", "\\end{proof}"]
},
"Itemize": {
"prefix": "item",
"body": ["\\\\begin{itemize}", "\t\\item $0", "\\\\end{itemize}"],
"description": "Itemize"
},
"Reference definition": {
"prefix": "rdef",
"description": "Reference a definition",
"body": "\\ref{def:$1}$0"
},
"Reference lemma": {
"prefix": "rlemma",
"description": "Reference a lemma",
"body": "\\ref{lem:$1}$0"
},
"Reference theorem": {
"prefix": "rtheorem",
"description": "Reference a theorem",
"body": "\\ref{thm:$1}$0"
},
"Fraction": {
"prefix": "frac",
"description": "Create a fraction",
"body": "\\frac{$1}{$2}$0"
},
"Limit": {
"prefix": "lim",
"description": "Create a limit",
"body": "\\lim _{$1 \\to $2}$0"
},
"Limit to infinity": {
"prefix": "ilim",
"description": "Create a limit as a variable goes to infinity",
"body": "\\lim _{$1 \\to \\infty}$0"
},
"Limit to negative infinity": {
"prefix": "nlim",
"description": "Create a limit as a variable goes to negative infinity",
"body": "\\lim _{$1 \\to -\\infty}$0"
},
"Sqrt": {
"prefix": "sqrt",
"description": "Create a sqrt",
"body": "\\sqrt[$1]{$2}$0"
},
"Real numbers": {
"prefix": "reals",
"description": "",
"body": "\\mathbb{R}"
},
"Complex numbers": {
"prefix": "complex",
"description": "Fancy C symbol",
"body": "\\mathbb{C}"
},
"Natural numbers": {
"prefix": "nats",
"description": "",
"body": "\\mathbb{N}"
},
"Integers": {
"prefix": "ints",
"description": "",
"body": "\\mathbb{Z}"
},
"Rationals": {
"prefix": "rats",
"description": "",
"body": "\\mathbb{Q}"
},
"Fields": {
"prefix": "fields",
"description": "Fanch F symbol",
"body": "\\mathbb{F}"
},
"Aligned": {
"prefix": "aligned",
"description": "Create an aligned environment",
"body": ["\\begin{aligned}", "\t$0", "\\end{aligned}"]
},
"Explanation in math mode": {
"prefix": "texpl",
"description": "Explain a step in math mode",
"body": "&& \\text{$1}$0"
},
"Let": {
"prefix": "let",
"description": "Let something equal something else",
"body": "Let $$1 = $2$. $0"
},
"Force newline": {
"prefix": "cr",
"description": "Force newline in math mode",
"body": "{\\ \\\\}"
},
"Aligned display math": {
"prefix": "maligned",
"description": "Create an aligned display math environment",
"body": ["\\[", "\t\\begin{aligned}", "\t\t$0", "\t\\end{aligned}", "\\]"]
}
}