From 6d0fc32e8f1c283f33d0fa5e5ab79fec743731e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kn=C3=BCttel?= Date: Mon, 20 Sep 2021 18:26:27 +0200 Subject: [PATCH] more tex snippets --- UltiSnips/tex.snippets | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/UltiSnips/tex.snippets b/UltiSnips/tex.snippets index dd3c88b..1328119 100644 --- a/UltiSnips/tex.snippets +++ b/UltiSnips/tex.snippets @@ -205,3 +205,21 @@ $2 \end{frame} } endsnippet + +snippet subfigures +\begin{figure} + \begin{subfigure}{\linewidth} + \centering + \includegraphics[width=\linewidth]{$1} + \caption{$2} + \end{subfigure} + \begin{subfigure}{\linewidth} + \centering + \includegraphics[width=\linewidth]{$3} + \caption{$4} + \end{subfigure} + \caption{$5} + \label{fig:$6} +\end{figure} + +endsnippet