Skip to content

Commit beb0d56

Browse files
committed
latex: Add tikz snippets
1 parent f9ddcac commit beb0d56

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,10 @@
437437
"language": ["bibtex", "bib"],
438438
"path": "./snippets/latex/bibtex.json"
439439
},
440+
{
441+
"language": ["latex-tikz"],
442+
"path": "./snippets/latex/tikz.json"
443+
},
440444
{
441445
"language": "twig",
442446
"path": "./snippets/frameworks/twig.json"

snippets/latex/tikz.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"TikZ picture": {
3+
"prefix": "tikzpicture",
4+
"body": [
5+
"\\begin{tikzpicture}",
6+
"\t$0",
7+
"\\end{tikzpicture}"
8+
],
9+
"description": "Add a TikZ picture"
10+
},
11+
"Figure with TikZ picture": {
12+
"prefix": "figuretikz",
13+
"body": [
14+
"\\begin{figure}",
15+
"\t\\centering",
16+
"\t\\begin{tikzpicture}",
17+
"\t\t$0",
18+
"\t\\end{tikzpicture}",
19+
"\t\\caption{$3}\\label{fig:$4}",
20+
"\\end{figure}"
21+
],
22+
"description": "Add a figure with a TikZ picture"
23+
},
24+
"Scope": {
25+
"prefix": "scope",
26+
"body": ["\\begin{scope}", "\t$0", "\\end{scope}"],
27+
"description": "TikZ scope"
28+
}
29+
}

0 commit comments

Comments
 (0)