Saataa andagii !

This commit is contained in:
Lukian 2025-01-04 18:14:02 +01:00
parent 2e1c79155c
commit 6c32b8e523
6 changed files with 25 additions and 4 deletions

View file

@ -2,6 +2,7 @@
\usepackage{geometry}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage{xparse}
\graphicspath{{images/}}
\geometry{
@ -51,10 +52,28 @@
\end{titlepage}
}
\newcommand{\crfigure}[2] {
\NewDocumentCommand{\crfigure}{O{0.75\textwidth} m m}{
\begin{figure}[h]
\centering
\includegraphics[width=0.75\textwidth]{#1}
\caption{#2}
\includegraphics[width=#1]{#2}
\caption{#3}
\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}
}