Added \twofigures command

This commit is contained in:
Lukian 2025-01-04 18:10:51 +01:00
parent 2c50af1e51
commit 9310503e69

View file

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