Upload from GitHub
This commit is contained in:
124
general/configs/VSCodium/User/snippets/tex.json
Normal file
124
general/configs/VSCodium/User/snippets/tex.json
Normal file
@@ -0,0 +1,124 @@
|
||||
{
|
||||
// Place your snippets for tex here. Each snippet is defined under a snippet name and has a prefix, body and
|
||||
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
|
||||
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
|
||||
// same ids are connected.
|
||||
// Example:
|
||||
// "Print to console": {
|
||||
// "prefix": "log",
|
||||
// "body": [
|
||||
// "console.log('$1');",
|
||||
// "$2"
|
||||
// ],
|
||||
// "description": "Log output to console"
|
||||
// }
|
||||
"Formula (old)": {
|
||||
"prefix": "formulaBare",
|
||||
"body": [
|
||||
"\\begin{tcolorbox}[colback=red!5!white,colframe=red!75!black,title=Formula: $1]",
|
||||
"\t$2",
|
||||
"\\end{tcolorbox}",
|
||||
],
|
||||
"description": "Red tcolorbox to provide a formula (without the default setup)"
|
||||
},
|
||||
"Prepare Latex doc (old)": {
|
||||
"prefix": "LaTeX-Prepare-Old",
|
||||
"body": [
|
||||
"\\documentclass{article}\n",
|
||||
"% Imports %",
|
||||
"\\usepackage{amsmath}",
|
||||
"\\usepackage{graphicx}",
|
||||
"\\usepackage{subcaption}",
|
||||
"\\usepackage[export]{adjustbox}",
|
||||
"\\usepackage{tcolorbox}",
|
||||
"\\usepackage{xcolor}",
|
||||
"\\usepackage{cancel}",
|
||||
"\\usepackage{dsfont}",
|
||||
"\\usepackage{amssymb}",
|
||||
"\\usepackage[a4paper]{geometry}",
|
||||
"\\usepackage{parskip}\n",
|
||||
"% Setup %",
|
||||
"\\title{\\Huge \\textbf{$1}}",
|
||||
"\\author{Janis Hutz}\n",
|
||||
"% Configuring %",
|
||||
"\\addtolength{\\oddsidemargin}{-0.75in}",
|
||||
"\\addtolength{\\textwidth}{1.5in}",
|
||||
"\\addtolength{\\evensidemargin}{-0.75in}",
|
||||
"\\addtolength{\\topmargin}{-1in}",
|
||||
"\\addtolength{\\textheight}{2in}\n",
|
||||
"% Main doc %",
|
||||
"\\begin{document}",
|
||||
"\\maketitle",
|
||||
"$2",
|
||||
"\\end{document}"
|
||||
],
|
||||
"description": "Prepare a LaTeX Document with all relevant imports"
|
||||
},
|
||||
"prepare LaTeX Document (New)": {
|
||||
"prefix": "latex-prepare",
|
||||
"body": [
|
||||
"\\documentclass{article}\n",
|
||||
"\\input{~/projects/generalSchool/helpers.tex}\n",
|
||||
"\\setup{$1}\n",
|
||||
"\\begin{document}",
|
||||
"\\maketitle\n\n",
|
||||
"$2\n\n",
|
||||
"\\end{document}"
|
||||
],
|
||||
"description": "Prepares a full LaTeX Document for use and compiling"
|
||||
},
|
||||
"Formula (new)": {
|
||||
"prefix": "formula",
|
||||
"body": [
|
||||
"\\begin{formula}[]{$1}",
|
||||
"\t$2",
|
||||
"\\end{formula}"
|
||||
],
|
||||
"description": "Inserts a tcolorbox to provide a formula (red)"
|
||||
},
|
||||
"Definition (new)": {
|
||||
"prefix": "definition",
|
||||
"body": [
|
||||
"\\begin{definition}[]{$1}",
|
||||
"\t$2",
|
||||
"\\end{definition}"
|
||||
],
|
||||
"description": "Inserts a tcolorbox to provide a definition (blue)"
|
||||
},
|
||||
"Recall (new)": {
|
||||
"prefix": "recall",
|
||||
"body": [
|
||||
"\\begin{recall}[]{$1}",
|
||||
"\t$2",
|
||||
"\\end{recall}"
|
||||
],
|
||||
"description": "Inserts a tcolorbox to provide a recall / revision of previous knowledge (yellow)"
|
||||
},
|
||||
"Important Remarks (new)": {
|
||||
"prefix": "remarks",
|
||||
"body": [
|
||||
"\\begin{remarks}[]{$1}",
|
||||
"\t$2",
|
||||
"\\end{remarks}"
|
||||
],
|
||||
"description": "Inserts a tcolorbox to provide remarks (green)"
|
||||
},
|
||||
"Guides (new)": {
|
||||
"prefix": "guides",
|
||||
"body": [
|
||||
"\\begin{guides}[]{$1}",
|
||||
"\t$2",
|
||||
"\\end{guides}"
|
||||
],
|
||||
"description": "Inserts a tcolorbox to provide guides / instructions on how to use (purple)"
|
||||
},
|
||||
"Properties / Restrictions (new)": {
|
||||
"prefix": "properties",
|
||||
"body": [
|
||||
"\\begin{properties}[]{$1}",
|
||||
"\t$2",
|
||||
"\\end{properties}"
|
||||
],
|
||||
"description": "Inserts a tcolorbox to inform about properties / restrictions / limitations"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user