Skip to content

Commit 14666d6

Browse files
author
Chetan Kunte
committed
Update fig label
1 parent ab9951a commit 14666d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UltiSnips/tex.snippets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ snippet fig "figure and label" b
140140
\centering
141141
\includegraphics[angle=0,width=1.0\textwidth]{${1:Filename}}
142142
\caption{$0}
143-
\label{fig:$1}
143+
\label{fig:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\l$1$2$3)/g}}}
144144
\end{figure}
145145
endsnippet
146146

0 commit comments

Comments
 (0)