Skip to content

Commit b31eb65

Browse files
committedMay 4, 2021
tex: Add snippet for tikz-based figures
The majority of tikzpicture environments are part of a figure environment, so there should be a combined snippet to add tikz-based figures. The snippet text is a blending of the existing snippet texts of figure and tikzpicture.
1 parent 3ae169d commit b31eb65

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎neosnippets/tex.snip

+11
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,17 @@ alias \begin{column} \column
503503
\end{column}
504504

505505
# ========== TikZ ==========
506+
snippet tikzfig
507+
alias figuretikz
508+
\begin{figure}[${1}]
509+
\centering
510+
\begin{tikzpicture}[${2}]
511+
${3:TARGET}
512+
\end{tikzpicture}
513+
\caption{${4}}
514+
\label{${5}}
515+
\end{figure}
516+
506517
snippet tikzpicture
507518
alias \begin{tikzpicture}
508519
\begin{tikzpicture}[${1}]

0 commit comments

Comments
 (0)
Please sign in to comment.