2012-02-19 08:17:07 -05:00
|
|
|
#PREAMBLE
|
|
|
|
#newcommand
|
|
|
|
snippet nc
|
2013-07-25 17:17:32 -04:00
|
|
|
\newcommand{\${1:cmd}}[${2:opt}]{${3:realcmd}} ${0}
|
2012-02-19 08:17:07 -05:00
|
|
|
#usepackage
|
|
|
|
snippet up
|
2013-07-25 17:17:32 -04:00
|
|
|
\usepackage[${1:options}]{${2:package}} ${0}
|
2012-02-19 08:17:07 -05:00
|
|
|
#newunicodechar
|
|
|
|
snippet nuc
|
2013-07-25 17:17:32 -04:00
|
|
|
\newunicodechar{${1}}{${2:\ensuremath}${3:tex-substitute}}} ${0}
|
2012-02-19 08:17:07 -05:00
|
|
|
#DeclareMathOperator
|
|
|
|
snippet dmo
|
2013-07-25 17:17:32 -04:00
|
|
|
\DeclareMathOperator{${1}}{${2}} ${0}
|
2012-02-19 08:17:07 -05:00
|
|
|
|
|
|
|
#DOCUMENT
|
2011-06-20 13:40:28 -04:00
|
|
|
# \begin{}...\end{}
|
|
|
|
snippet begin
|
|
|
|
\begin{${1:env}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{$1}
|
|
|
|
# Tabular
|
|
|
|
snippet tab
|
|
|
|
\begin{${1:tabular}}{${2:c}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{$1}
|
2012-02-19 08:17:07 -05:00
|
|
|
snippet thm
|
|
|
|
\begin[${1:author}]{${2:thm}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-07-10 11:27:17 -04:00
|
|
|
\end{$2}
|
2011-07-03 22:53:35 -04:00
|
|
|
snippet center
|
|
|
|
\begin{center}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-07-03 22:53:35 -04:00
|
|
|
\end{center}
|
2011-06-20 13:40:28 -04:00
|
|
|
# Align(ed)
|
|
|
|
snippet ali
|
|
|
|
\begin{align${1:ed}}
|
2014-03-06 09:15:01 -05:00
|
|
|
\label{eq:${2}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{align$1}
|
|
|
|
# Gather(ed)
|
|
|
|
snippet gat
|
|
|
|
\begin{gather${1:ed}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{gather$1}
|
|
|
|
# Equation
|
|
|
|
snippet eq
|
|
|
|
\begin{equation}
|
2014-03-06 09:15:01 -05:00
|
|
|
\label{eq:${2}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{equation}
|
2011-07-03 22:53:35 -04:00
|
|
|
# Equation
|
|
|
|
snippet eq*
|
|
|
|
\begin{equation*}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-07-03 22:53:35 -04:00
|
|
|
\end{equation*}
|
2011-06-20 13:40:28 -04:00
|
|
|
# Unnumbered Equation
|
|
|
|
snippet \
|
2011-07-03 22:53:35 -04:00
|
|
|
\[
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-07-03 22:53:35 -04:00
|
|
|
\]
|
2013-06-22 08:56:00 -04:00
|
|
|
# Equation array
|
|
|
|
snippet eqnarray
|
|
|
|
\begin{eqnarray}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-06-22 08:56:00 -04:00
|
|
|
\end{eqnarray}
|
2014-03-06 09:15:01 -05:00
|
|
|
# Label
|
|
|
|
snippet lab
|
|
|
|
\label{${1:eq:}${2:fig:}${3:tab:}${0}}
|
2011-06-20 13:40:28 -04:00
|
|
|
# Enumerate
|
|
|
|
snippet enum
|
|
|
|
\begin{enumerate}
|
2013-07-25 17:17:32 -04:00
|
|
|
\item ${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{enumerate}
|
|
|
|
# Itemize
|
2012-02-19 08:17:07 -05:00
|
|
|
snippet itemize
|
2011-06-20 13:40:28 -04:00
|
|
|
\begin{itemize}
|
2013-07-25 17:17:32 -04:00
|
|
|
\item ${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{itemize}
|
2013-06-18 07:59:14 -04:00
|
|
|
snippet item
|
|
|
|
\item ${1}
|
2011-06-20 13:40:28 -04:00
|
|
|
# Description
|
|
|
|
snippet desc
|
|
|
|
\begin{description}
|
2013-07-25 17:17:32 -04:00
|
|
|
\item[${1}] ${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{description}
|
2013-06-22 08:56:22 -04:00
|
|
|
# Endless new item
|
|
|
|
snippet ]i
|
|
|
|
\item ${1}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0:]i}
|
2011-06-20 13:40:28 -04:00
|
|
|
# Matrix
|
|
|
|
snippet mat
|
|
|
|
\begin{${1:p/b/v/V/B/small}matrix}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{$1matrix}
|
|
|
|
# Cases
|
|
|
|
snippet cas
|
|
|
|
\begin{cases}
|
|
|
|
${1:equation}, &\text{ if }${2:case}\\
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{cases}
|
|
|
|
# Split
|
|
|
|
snippet spl
|
|
|
|
\begin{split}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{split}
|
|
|
|
# Part
|
|
|
|
snippet part
|
|
|
|
\part{${1:part name}} % (fold)
|
|
|
|
\label{prt:${2:$1}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
% part $2 (end)
|
|
|
|
# Chapter
|
|
|
|
snippet cha
|
2012-08-24 08:56:49 -04:00
|
|
|
\chapter{${1:chapter name}}
|
2011-06-20 13:40:28 -04:00
|
|
|
\label{cha:${2:$1}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
# Section
|
|
|
|
snippet sec
|
2012-08-24 08:56:49 -04:00
|
|
|
\section{${1:section name}}
|
2011-06-20 13:40:28 -04:00
|
|
|
\label{sec:${2:$1}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-06-22 08:57:16 -04:00
|
|
|
# Section without number
|
|
|
|
snippet sec*
|
|
|
|
\section*{${1:section name}}
|
|
|
|
\label{sec:${2:$1}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
# Sub Section
|
|
|
|
snippet sub
|
2012-08-24 08:56:49 -04:00
|
|
|
\subsection{${1:subsection name}}
|
2011-06-20 13:40:28 -04:00
|
|
|
\label{sub:${2:$1}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-06-22 08:57:16 -04:00
|
|
|
# Sub Section without number
|
|
|
|
snippet sub*
|
|
|
|
\subsection*{${1:subsection name}}
|
|
|
|
\label{sub:${2:$1}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
# Sub Sub Section
|
|
|
|
snippet subs
|
2012-08-24 08:56:49 -04:00
|
|
|
\subsubsection{${1:subsubsection name}}
|
2011-06-20 13:40:28 -04:00
|
|
|
\label{ssub:${2:$1}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-06-22 08:57:16 -04:00
|
|
|
# Sub Sub Section without number
|
|
|
|
snippet subs*
|
|
|
|
\subsubsection*{${1:subsubsection name}}
|
|
|
|
\label{ssub:${2:$1}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
# Paragraph
|
|
|
|
snippet par
|
2012-08-24 08:56:49 -04:00
|
|
|
\paragraph{${1:paragraph name}}
|
2011-06-20 13:40:28 -04:00
|
|
|
\label{par:${2:$1}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
# Sub Paragraph
|
|
|
|
snippet subp
|
2012-08-24 08:56:49 -04:00
|
|
|
\subparagraph{${1:subparagraph name}}
|
2011-06-20 13:40:28 -04:00
|
|
|
\label{subp:${2:$1}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-06-18 07:59:14 -04:00
|
|
|
snippet ni
|
|
|
|
\noindent
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
#References
|
|
|
|
snippet itd
|
2013-07-25 17:17:32 -04:00
|
|
|
\item[${1:description}] ${0:item}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet figure
|
2013-07-25 17:17:32 -04:00
|
|
|
${1:Figure}~\ref{${2:fig:}}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet table
|
2013-07-25 17:17:32 -04:00
|
|
|
${1:Table}~\ref{${2:tab:}}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet listing
|
2013-07-25 17:17:32 -04:00
|
|
|
${1:Listing}~\ref{${2:list}}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet section
|
2013-07-25 17:17:32 -04:00
|
|
|
${1:Section}~\ref{sec:${2}} ${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet page
|
2013-07-25 17:17:32 -04:00
|
|
|
${1:page}~\pageref{${2}} ${0}
|
2012-02-19 08:17:07 -05:00
|
|
|
snippet index
|
2013-07-25 17:17:32 -04:00
|
|
|
\index{${1:index}} ${0}
|
2012-08-24 06:28:08 -04:00
|
|
|
#Citations
|
2013-06-18 07:59:14 -04:00
|
|
|
snippet citen
|
2013-07-25 17:17:32 -04:00
|
|
|
\cite{$1} ${0}
|
2013-06-18 07:59:14 -04:00
|
|
|
# bibtex commands
|
|
|
|
snippet citep
|
2013-07-25 17:17:32 -04:00
|
|
|
\citep{$1} ${0}
|
2013-06-18 07:59:14 -04:00
|
|
|
snippet citet
|
2013-07-25 17:17:32 -04:00
|
|
|
\citet{$1} ${0}
|
2012-02-19 08:17:07 -05:00
|
|
|
snippet cite
|
2013-07-25 17:17:32 -04:00
|
|
|
\cite[${1}]{${2}} ${0}
|
2012-08-24 06:32:36 -04:00
|
|
|
snippet fcite
|
2013-07-25 17:17:32 -04:00
|
|
|
\footcite[${1}]{${2}}${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
#Formating text: italic, bold, underline, small capital, emphase ..
|
|
|
|
snippet it
|
2013-07-25 17:17:32 -04:00
|
|
|
\textit{${0:text}}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet bf
|
2013-07-25 17:17:32 -04:00
|
|
|
\textbf{${0:text}}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet under
|
2013-07-25 17:17:32 -04:00
|
|
|
\underline{${0:text}}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet emp
|
2013-07-25 17:17:32 -04:00
|
|
|
\emph{${0:text}}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet sc
|
2013-07-25 17:17:32 -04:00
|
|
|
\textsc{${0:text}}
|
2011-06-20 13:40:28 -04:00
|
|
|
#Choosing font
|
|
|
|
snippet sf
|
2013-07-25 17:17:32 -04:00
|
|
|
\textsf{${0:text}}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet rm
|
2013-07-25 17:17:32 -04:00
|
|
|
\textrm{${0:text}}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet tt
|
2013-07-25 17:17:32 -04:00
|
|
|
\texttt{${0:text}}
|
2011-06-20 13:40:28 -04:00
|
|
|
#misc
|
|
|
|
snippet ft
|
2013-07-25 17:17:32 -04:00
|
|
|
\footnote{${0:text}}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet fig
|
|
|
|
\begin{figure}
|
|
|
|
\begin{center}
|
2012-02-19 08:17:07 -05:00
|
|
|
\includegraphics[scale=${1}]{Figures/${2}}
|
|
|
|
\end{center}
|
|
|
|
\caption{${3}}
|
|
|
|
\label{fig:${4}}
|
|
|
|
\end{figure}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2012-02-19 08:17:07 -05:00
|
|
|
snippet tikz
|
|
|
|
\begin{figure}
|
|
|
|
\begin{center}
|
|
|
|
\begin{tikzpicture}[scale=${1:1}]
|
|
|
|
${2}
|
|
|
|
\end{tikzpicture}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{center}
|
2011-10-08 06:15:44 -04:00
|
|
|
\caption{${3}}
|
|
|
|
\label{fig:${4}}
|
2011-06-20 13:40:28 -04:00
|
|
|
\end{figure}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
#math
|
2012-02-19 08:17:07 -05:00
|
|
|
snippet stackrel
|
2013-07-25 17:17:32 -04:00
|
|
|
\stackrel{${1:above}}{${2:below}} ${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet frac
|
2013-07-25 17:17:32 -04:00
|
|
|
\frac{${1:num}}{${2:denom}} ${0}
|
2011-06-20 13:40:28 -04:00
|
|
|
snippet sum
|
2013-07-25 17:17:32 -04:00
|
|
|
\sum^{${1:n}}_{${2:i=1}} ${0}
|
2013-06-18 07:59:14 -04:00
|
|
|
snippet lim
|
2013-07-25 17:17:32 -04:00
|
|
|
\lim_{${1:x \to +\infty}} ${0}
|
2013-06-22 08:58:45 -04:00
|
|
|
snippet frame
|
|
|
|
\begin{frame}[<+->]
|
|
|
|
\frametitle{${1:title}}
|
|
|
|
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-06-22 08:58:45 -04:00
|
|
|
\end{frame}
|
2013-06-22 08:58:31 -04:00
|
|
|
snippet block
|
|
|
|
\begin{block}{${1:title}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-06-22 08:58:31 -04:00
|
|
|
\end{block}
|
|
|
|
snippet alert
|
|
|
|
\begin{alertblock}{${1:title}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-06-22 08:58:31 -04:00
|
|
|
\end{alertblock}
|
|
|
|
snippet example
|
|
|
|
\begin{exampleblock}{${1:title}}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-06-22 08:58:31 -04:00
|
|
|
\end{exampleblock}
|
2013-06-22 08:59:18 -04:00
|
|
|
snippet col2
|
|
|
|
\begin{columns}
|
|
|
|
\begin{column}{0.5\textwidth}
|
|
|
|
${1}
|
|
|
|
\end{column}
|
|
|
|
\begin{column}{0.5\textwidth}
|
2013-07-25 17:17:32 -04:00
|
|
|
${0}
|
2013-06-22 08:59:18 -04:00
|
|
|
\end{column}
|
|
|
|
\end{columns}
|