From 9310503e69abe5f8a6a25cde93491bf921da3e79 Mon Sep 17 00:00:00 2001 From: Lukian Date: Sat, 4 Jan 2025 18:10:51 +0100 Subject: [PATCH] Added \twofigures command --- lib/cr.sty | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/lib/cr.sty b/lib/cr.sty index f99acf6..55a762d 100644 --- a/lib/cr.sty +++ b/lib/cr.sty @@ -60,3 +60,20 @@ \end{figure} } +\NewDocumentCommand{\twofigures}{O{0.75\textwidth} m m m m}{ + \begin{figure}[h] + \centering + \begin{minipage}[t]{0.45\dimexpr#1} + \centering + \includegraphics[width=\textwidth]{#2} + \caption{#3} + \end{minipage} + \hspace{0.05\textwidth} + \begin{minipage}[t]{0.45\dimexpr#1} + \centering + \includegraphics[width=\textwidth]{#4} + \caption{#5} + \end{minipage} + \end{figure} +} +