Added \twofigures command
This commit is contained in:
parent
2c50af1e51
commit
9310503e69
1 changed files with 17 additions and 0 deletions
17
lib/cr.sty
17
lib/cr.sty
|
@ -60,3 +60,20 @@
|
||||||
\end{figure}
|
\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}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue