Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add white space substitution for label in latex back to snipmate version #1515

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
This fork fixes https://github.com/honza/vim-snippets/issues/1514.

snipMate & UltiSnip Snippets
============================

Expand Down
24 changes: 12 additions & 12 deletions snippets/tex.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down