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} +} +