Tons of improvements to TeX snippets
(rebased by Marc Weber), pull/182
This commit is contained in:
parent
1e3f2e242d
commit
8ede47133f
@ -1,16 +1,16 @@
|
||||
#PREAMBLE
|
||||
#newcommand
|
||||
snippet nc
|
||||
\newcommand{\${1:cmd}}[${2:opt}]{${3:realcmd}}${4}
|
||||
\newcommand{\${1:cmd}}[${2:opt}]{${3:realcmd}} ${4}
|
||||
#usepackage
|
||||
snippet up
|
||||
\usepackage[${1:[options}]{${2:package}}
|
||||
\usepackage[${1:options}]{${2:package}} ${3}
|
||||
#newunicodechar
|
||||
snippet nuc
|
||||
\newunicodechar{${1}}{${2:\ensuremath}${3:tex-substitute}}}
|
||||
\newunicodechar{${1}}{${2:\ensuremath}${3:tex-substitute}}} ${4}
|
||||
#DeclareMathOperator
|
||||
snippet dmo
|
||||
\DeclareMathOperator{${1}}{${2}}
|
||||
\DeclareMathOperator{${1}}{${2}} ${3}
|
||||
|
||||
#DOCUMENT
|
||||
# \begin{}...\end{}
|
||||
@ -66,6 +66,8 @@ snippet itemize
|
||||
\begin{itemize}
|
||||
\item ${1}
|
||||
\end{itemize}
|
||||
snippet item
|
||||
\item ${1}
|
||||
# Description
|
||||
snippet desc
|
||||
\begin{description}
|
||||
@ -123,6 +125,9 @@ snippet subp
|
||||
\subparagraph{${1:subparagraph name}}
|
||||
\label{subp:${2:$1}}
|
||||
${3}
|
||||
snippet ni
|
||||
\noindent
|
||||
${1}
|
||||
#References
|
||||
snippet itd
|
||||
\item[${1:description}] ${2:item}
|
||||
@ -133,14 +138,21 @@ snippet table
|
||||
snippet listing
|
||||
${1:Listing}~\ref{${2:list}}${3}
|
||||
snippet section
|
||||
${1:Section}~\ref{${2:sec:}}${3}
|
||||
${1:Section}~\ref{sec:${2}} ${3}
|
||||
snippet page
|
||||
${1:page}~\pageref{${2}}${3}
|
||||
${1:page}~\pageref{${2}} ${3}
|
||||
snippet index
|
||||
\index{${1:index}}${2}
|
||||
\index{${1:index}} ${2}
|
||||
#Citations
|
||||
snippet citen
|
||||
\cite{$1} ${2}
|
||||
# bibtex commands
|
||||
snippet citep
|
||||
\citep{$1} ${2}
|
||||
snippet citet
|
||||
\citet{$1} ${2}
|
||||
snippet cite
|
||||
\cite[${1}]{${2}}${3}
|
||||
\cite[${1}]{${2}} ${3}
|
||||
snippet fcite
|
||||
\footcite[${1}]{${2}}${3}
|
||||
#Formating text: italic, bold, underline, small capital, emphase ..
|
||||
@ -172,6 +184,7 @@ snippet fig
|
||||
\caption{${3}}
|
||||
\label{fig:${4}}
|
||||
\end{figure}
|
||||
${5}
|
||||
snippet tikz
|
||||
\begin{figure}
|
||||
\begin{center}
|
||||
@ -182,10 +195,14 @@ snippet tikz
|
||||
\caption{${3}}
|
||||
\label{fig:${4}}
|
||||
\end{figure}
|
||||
${5}
|
||||
#math
|
||||
snippet stackrel
|
||||
\stackrel{${1:above}}{${2:below}} ${3}
|
||||
snippet frac
|
||||
\frac{${1:num}}{${2:denom}}
|
||||
\frac{${1:num}}{${2:denom}} ${3}
|
||||
snippet sum
|
||||
\sum^{${1:n}}_{${2:i=1}}{${3}}
|
||||
\sum^{${1:n}}_{${2:i=1}} ${3}
|
||||
snippet lim
|
||||
\lim_{${1:x \to +\infty}} ${2}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user