Add new latex snippets

This commit is contained in:
Janis Hutz 2025-02-28 09:02:04 +01:00
parent d9f639eb75
commit 65794e8192

View File

@ -177,15 +177,24 @@
], ],
"description": "Inserts a tcolorbox to show notation" "description": "Inserts a tcolorbox to show notation"
}, },
"Example": { "Example": {
"prefix": "example", "prefix": "example",
"body": [ "body": [
"\\begin{example}[]{$1}", "\\begin{example}[]{$1}",
"\t$2", "\t$2",
"\\end{example}" "\\end{example}"
], ],
"description": "Inserts a tcolorbox to show 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": { "Usage": {
"prefix": "usage", "prefix": "usage",
"body": [ "body": [
@ -396,7 +405,7 @@
"\\documentclass[12pt,a4paper]{scrlttr2}\n", "\\documentclass[12pt,a4paper]{scrlttr2}\n",
"\\newcommand{\\dir}{~/projects/latex} % IMPORTANT: No trailing slashes!", "\\newcommand{\\dir}{~/projects/latex} % IMPORTANT: No trailing slashes!",
"\\input{\\dir/include.tex}", "\\input{\\dir/include.tex}",
"\\load{recommended}\n", "\\load{letter}\n",
"% Subject", "% Subject",
"\\setkomavar{subject}{$1}", "\\setkomavar{subject}{$1}",
"\\begin{document}\\raggedright", "\\begin{document}\\raggedright",