diff --git a/README.md b/README.md index 8cf06c4b8..dfb848a2c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +This fork fixes https://github.com/honza/vim-snippets/issues/1514. + snipMate & UltiSnip Snippets ============================ diff --git a/snippets/tex.snippets b/snippets/tex.snippets index 4d54fe011..5e8db29bf 100644 --- a/snippets/tex.snippets +++ b/snippets/tex.snippets @@ -152,63 +152,63 @@ snippet spl split environment # Part snippet part document \part \\part{${1:part name}} % (fold)% - \\label{prt:${2:$1}} + \\label{prt:${2:${1/\W/-/g}}} ${0} % part $2 (end) # Chapter snippet cha \chapter \\chapter{${1:chapter name}}% - \\label{cha:${2:$1}} + \\label{cha:${2:${1/\W/-/g}}} ${0} # Section snippet sec \section \\section{${1:section name}}% - \\label{sec:${2:$1}} + \\label{sec:${2:${1/\W/-/g}}} ${0} # Section without number snippet sec* \section* \\section*{${1:section name}}% - \\label{sec:${2:$1}} + \\label{sec:${2:${1/\W/-/g}}} ${0} # Sub Section snippet sub \subsection \\subsection{${1:subsection name}}% - \\label{sub:${2:$1}} + \\label{sub:${2:${1/\W/-/g}}} ${0} # Sub Section without number snippet sub* \subsection* \\subsection*{${1:subsection name}}% - \\label{sub:${2:$1}} + \\label{sub:${2:${1/\W/-/g}}} ${0} # Sub Sub Section snippet ssub \subsubsection \\subsubsection{${1:subsubsection name}}% - \\label{ssub:${2:$1}} + \\label{ssub:${2:${1/\W/-/g}}} ${0} # Sub Sub Section without number snippet ssub* \subsubsection* \\subsubsection*{${1:subsubsection name}}% - \\label{ssub:${2:$1}} + \\label{ssub:${2:${1/\W/-/g}}} ${0} # Paragraph snippet par \paragraph \\paragraph{${1:paragraph name}}% - \\label{par:${2:$1}} + \\label{par:${2:${1/\W/-/g}}} ${0} # Paragraph* snippet par* \paragraph* \\paragraph*{${1:paragraph name}}% - \\label{par:${2:$1}} + \\label{par:${2:${1/\W/-/g}}} ${0} # Sub Paragraph snippet subp \subparagraph \\subparagraph{${1:subparagraph name}}% - \\label{subp:${2:$1}} + \\label{subp:${2:${1/\W/-/g}}} ${0} # Sub Paragraph* snippet subp* \subparagraph* \\subparagraph*{${1:subparagraph name}}% - \\label{subp:${2:$1}} + \\label{subp:${2:${1/\W/-/g}}} ${0} snippet ni \noindent \\noindent