Skip to content

Commit 6ff9e1b

Browse files
committed
latex: Add tikz snippets
1 parent 4734a45 commit 6ff9e1b

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

package.json

+4
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,10 @@
433433
"language": ["bibtex", "bib"],
434434
"path": "./snippets/latex/bibtex.json"
435435
},
436+
{
437+
"language": ["latex-tikz"],
438+
"path": "./snippets/latex/tikz.json"
439+
},
436440
{
437441
"language": "twig",
438442
"path": "./snippets/frameworks/twig.json"

snippets/latex/tikz.json

+29
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)