neovim-config/UltiSnips/tex.snippets

208 lines
2.5 KiB
Plaintext
Raw Normal View History

2021-02-27 18:09:38 +00:00
snippet txbf
\textbf{$1}
endsnippet
snippet txit
\textit{$1}
endsnippet
snippet ftnt
\footnote{$1}
endsnippet
snippet chapter
\chapter{$1}
endsnippet
snippet part
\part{$1}
endsnippet
snippet section
\section{$1}
endsnippet
snippet subsection
\subsection{$1}
endsnippet
snippet subsubsection
\subsubsection{$1}
endsnippet
# all the item description stuff
snippet description
\begin{description}
\item[$1] $2
\end{description}
endsnippet
snippet itemize
\begin{itemize}
\item{$1}$2
\end{itemize}
endsnippet
snippet enumerate
\begin{enumerate}
\item $1
\end{enumerate}
endsnippet
snippet enumeratec
\begin{enumerate}[label=\alph*)]
\item $1
\end{enumerate}
endsnippet
snippet enumeratel
\begin{enumerate}[label=\roman*)]
\item $1
\end{enumerate}
endsnippet
snippet eitem
\item $1
endsnippet
snippet item
\item{$1}$2
endsnippet
snippet ditem
\item[$1]$2
endsnippet
snippet figure
\begin{figure}
\centering
\includegraphics[width=\linewidth]{$1}
\caption[${2: short}]{${3: long}}
\label{fig:$4}
\end{figure}
endsnippet
snippet picturecredits
\begingroup
\let\clearpage\relax
\listoffigures
\endgroup
endsnippet
# all the math shit
snippet sum
\sum\limits_{${1: i}}$2
endsnippet
snippet Sum
\sum\limits_{$1}^{$2}$3
endsnippet
snippet vec
\vec{$1}$2
endsnippet
snippet REAL
\mathbb{R}
endsnippet
snippet REALn
\mathbb{R}^n
endsnippet
snippet REAL2
\mathbb{R}^2
endsnippet
snippet REAL3
\mathbb{R}^3
endsnippet
snippet COMP
\mathbb{C}
endsnippet
snippet NATU
\mathbb{N}
endsnippet
snippet ifunc
$1_{$2}($3)$4
endsnippet
snippet forall
\forall
endsnippet
snippet exists
\exists
endsnippet
snippet nexists
\nexists
endsnippet
snippet leftarrow
\leftarrow
endsnippet
snippet Leftarrow
\Leftarrow
endsnippet
snippet rightarrow
\rightarrow
endsnippet
snippet backslash
\backslash
endsnippet
snippet Rightarrow
\Rightarrow
endsnippet
snippet mapsto
\mapsto
endsnippet
# make a documtent
snippet makedoc
\documentclass[a4paper,12pt,oneside]{scrreprt}
\usepackage{ngerman}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{setspace}
\usepackage{amsmath}
\usepackage{hyperref}
\usepackage{geometry}
\usepackage{enumerate}
\geometry{left=2.5cm,right=2.5cm,top=2.5cm,bottom=2.5cm}
\title{$1}
\author{$2}
\date{$3}
\begin{document}
\maketitle
\tableofcontents
$4
\end{document}
endsnippet
snippet equ
\begin{equation}
$1
\end{equation}
endsnippet
snippet eqa
\begin{equation}
\begin{aligned}
$1
\end{aligned}
\end{equation}
endsnippet
snippet frame
{
\begin{frame}{$1}
$2
\end{frame}
}
endsnippet