dotfiles.pub/_config/nvim/UltiSnips/plaintex.snippets

70 lines
1.2 KiB
Text

snippet doc
\documentclass[a4paper]{article}
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
$0
\end{document}
endsnippet
snippet begin
\begin{$1}
$0
\end{$1}
endsnippet
snippet code
{\ttfamily $1}
endsnippet
snippet color
{\color{$1} $2}
endsnippet
snippet table
\begin{tabular}{ c | c }
cell1 & cell2 \\\\
cell3 & cell4 \\\\
\end{tabular}
endsnippet
snippet multicols
\begin{multicols}{2}
Now, we are adding some text here to understand how multiple columns will come up.
\columnbreak
This is again some new text here. Just to show you how the text is placed
\end{multicols}
endsnippet
snippet newcommand
\newcommand{$1}[$2]{$0}
endsnippet
snippet arraystretch
\renewcommand*{\arraystretch}{$1}
endsnippet
snippet task
% Aufgabe $1
\begin{task}[points=auto]{$2}\label{ex:H$1}
$0
\end{task}
endsnippet
snippet subtask
% Teilaufgabe $1
\begin{subtask*}[points=$3]{$2}\label{ex:H$1}
$0
\end{subtask*}
endsnippet
snippet table
\begin{tabular}{ $1 }
$2 & $3 & cell3 \\
cell4 & cell5 \\
\end{tabular}
endsnippet