add visual interpolation to tex snippets

This commit is contained in:
Rory McNamara 2016-05-04 10:48:24 +01:00
parent da573e7ea4
commit ee4c92c694

View File

@ -16,57 +16,57 @@ snippet dmo \DeclareMathOperator
# \begin{}...\end{} # \begin{}...\end{}
snippet begin \begin{} ... \end{} block snippet begin \begin{} ... \end{} block
\begin{${1:env}} \begin{${1:env}}
${0} ${0:${VISUAL}}
\end{$1} \end{$1}
# Tabular # Tabular
snippet tab tabular (or arbitrary) environment snippet tab tabular (or arbitrary) environment
\begin{${1:tabular}}{${2:c}} \begin{${1:tabular}}{${2:c}}
${0} ${0:${VISUAL}}
\end{$1} \end{$1}
snippet thm thm (or arbitrary) environment with optional argument snippet thm thm (or arbitrary) environment with optional argument
\begin[${1:author}]{${2:thm}} \begin[${1:author}]{${2:thm}}
${0} ${0:${VISUAL}}
\end{$2} \end{$2}
snippet center center environment snippet center center environment
\begin{center} \begin{center}
${0} ${0:${VISUAL}}
\end{center} \end{center}
# Align(ed) # Align(ed)
snippet ali align(ed) environment snippet ali align(ed) environment
\begin{align${1:ed}} \begin{align${1:ed}}
\label{eq:${2}} \label{eq:${2}}
${0} ${0:${VISUAL}}
\end{align$1} \end{align$1}
# Gather(ed) # Gather(ed)
snippet gat gather(ed) environment snippet gat gather(ed) environment
\begin{gather${1:ed}} \begin{gather${1:ed}}
${0} ${0:${VISUAL}}
\end{gather$1} \end{gather$1}
# Equation # Equation
snippet eq equation environment snippet eq equation environment
\begin{equation} \begin{equation}
${0} ${0:${VISUAL}}
\end{equation} \end{equation}
# Equation # Equation
snippet eql Labeled equation environment snippet eql Labeled equation environment
\begin{equation} \begin{equation}
\label{eq:${2}} \label{eq:${2}}
${0} ${0:${VISUAL}}
\end{equation} \end{equation}
# Equation # Equation
snippet eq* unnumbered equation environment snippet eq* unnumbered equation environment
\begin{equation*} \begin{equation*}
${0} ${0:${VISUAL}}
\end{equation*} \end{equation*}
# Unnumbered Equation # Unnumbered Equation
snippet \ unnumbered equation: \[ ... \] snippet \ unnumbered equation: \[ ... \]
\[ \[
${0} ${0:${VISUAL}}
\] \]
# Equation array # Equation array
snippet eqnarray eqnarray environment snippet eqnarray eqnarray environment
\begin{eqnarray} \begin{eqnarray}
${0} ${0:${VISUAL}}
\end{eqnarray} \end{eqnarray}
# Label # Label
snippet lab \label snippet lab \label
@ -90,7 +90,7 @@ snippet itemize itemize environment
\item ${0} \item ${0}
\end{itemize} \end{itemize}
snippet item \item snippet item \item
\item ${1} \item ${1:${VISUAL}}
# Description # Description
snippet desc description environment snippet desc description environment
\begin{description} \begin{description}
@ -103,18 +103,18 @@ snippet ]i \item (recursive)
# Matrix # Matrix
snippet mat smart matrix environment snippet mat smart matrix environment
\begin{${1:p/b/v/V/B/small}matrix} \begin{${1:p/b/v/V/B/small}matrix}
${0} ${0:${VISUAL}}
\end{$1matrix} \end{$1matrix}
# Cases # Cases
snippet cas cases environment snippet cas cases environment
\begin{cases} \begin{cases}
${1:equation}, &\text{ if }${2:case}\\ ${1:equation}, &\text{ if }${2:case}\\
${0} ${0:${VISUAL}}
\end{cases} \end{cases}
# Split # Split
snippet spl split environment snippet spl split environment
\begin{split} \begin{split}
${0} ${0:${VISUAL}}
\end{split} \end{split}
# Part # Part
snippet part document \part snippet part document \part
@ -203,32 +203,32 @@ snippet fcite \footcite[]{}
\footcite[${1}]{${2}}${0} \footcite[${1}]{${2}}${0}
#Formating text: italic, bold, underline, small capital, emphase .. #Formating text: italic, bold, underline, small capital, emphase ..
snippet it italic text snippet it italic text
\textit{${0:text}} \textit{${0:${VISUAL:text}}}
snippet bf bold face text snippet bf bold face text
\textbf{${0:text}} \textbf{${0:${VISUAL:text}}}
snippet under underline text snippet under underline text
\underline{${0:text}} \underline{${0:${VISUAL:text}}}
snippet emp emphasize text snippet emp emphasize text
\emph{${0:text}} \emph{${0:${VISUAL:text}}}
snippet sc small caps text snippet sc small caps text
\textsc{${0:text}} \textsc{${0:${VISUAL:text}}}
#Choosing font #Choosing font
snippet sf sans serife text snippet sf sans serife text
\textsf{${0:text}} \textsf{${0:${VISUAL:text}}}
snippet rm roman font text snippet rm roman font text
\textrm{${0:text}} \textrm{${0:${VISUAL:text}}}
snippet tt typewriter (monospace) text snippet tt typewriter (monospace) text
\texttt{${0:text}} \texttt{${0:${VISUAL:text}}}
#Math font #Math font
snippet mf mathfrak snippet mf mathfrak
\mathfrak{${0:text}} \mathfrak{${0:${VISUAL:text}}}
snippet mc mathcal snippet mc mathcal
\mathcal{${0:text}} \mathcal{${0:${VISUAL:text}}}
snippet ms mathscr snippet ms mathscr
\mathscr{${0:text}} \mathscr{${0:${VISUAL:text}}}
#misc #misc
snippet ft \footnote snippet ft \footnote
\footnote{${0:text}} \footnote{${0:${VISUAL:text}}}
snippet fig figure environment (includegraphics) snippet fig figure environment (includegraphics)
\begin{figure} \begin{figure}
\begin{center} \begin{center}
@ -260,19 +260,19 @@ snippet lim \lim_{}
\lim_{${1:n \to \infty}} ${0} \lim_{${1:n \to \infty}} ${0}
snippet frame frame environment snippet frame frame environment
\begin{frame}[${1:t}]{${2:title}} \begin{frame}[${1:t}]{${2:title}}
${0} ${0:${VISUAL}}
\end{frame} \end{frame}
snippet block block environment snippet block block environment
\begin{block}{${1:title}} \begin{block}{${1:title}}
${0} ${0:${VISUAL}}
\end{block} \end{block}
snippet alert alertblock environment snippet alert alertblock environment
\begin{alertblock}{${1:title}} \begin{alertblock}{${1:title}}
${0} ${0:${VISUAL}}
\end{alertblock} \end{alertblock}
snippet example exampleblock environment snippet example exampleblock environment
\begin{exampleblock}{${1:title}} \begin{exampleblock}{${1:title}}
${0} ${0:${VISUAL}}
\end{exampleblock} \end{exampleblock}
snippet col2 two-column environment snippet col2 two-column environment
\begin{columns} \begin{columns}
@ -301,7 +301,7 @@ snippet lra langle rangle
# Code listings # Code listings
snippet lst snippet lst
\begin{listing}[language=${1:language}] \begin{listing}[language=${1:language}]
${0} ${0:${VISUAL}}
\end{listing} \end{listing}
snippet lsi snippet lsi
\lstinline|${1}| ${0} \lstinline|${1}| ${0}