Skip to content

Commit 4fa14f3

Browse files
committed
latex: Add tikz snippets
1 parent 4734a45 commit 4fa14f3

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

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)