2009-07-06 05:35:53 -04:00
|
|
|
###########################################################################
|
|
|
|
# LATEX SNIPPETS #
|
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
snippet sec
|
2009-07-06 15:45:30 -04:00
|
|
|
\section{${1:section name}}
|
|
|
|
\label{sec:${2:${1/\\\w+\{(.*?)\}|\\(.)|(\w+)|([^\w\\]+)/(?4:_:\L$1$2$3\E)/g}}}
|
2009-07-06 05:35:53 -04:00
|
|
|
|
|
|
|
${0}
|
2009-07-06 15:45:30 -04:00
|
|
|
|
|
|
|
% section $2 (end)
|
2009-07-06 05:35:53 -04:00
|
|
|
endsnippet
|
|
|
|
|
2009-07-06 05:47:27 -04:00
|
|
|
snippet r "\ref{}"
|
|
|
|
\ref{$1}
|
|
|
|
endsnippet
|
|
|
|
|
2009-07-06 05:35:53 -04:00
|
|
|
#####################
|
|
|
|
# TEXTMATE SNIPPETS #
|
|
|
|
#####################
|