Updated \crfigure command
This commit is contained in:
parent
6a50f1d208
commit
2c50af1e51
1 changed files with 5 additions and 3 deletions
|
@ -2,6 +2,7 @@
|
|||
\usepackage{geometry}
|
||||
\usepackage[french]{babel}
|
||||
\usepackage[T1]{fontenc}
|
||||
\usepackage{xparse}
|
||||
|
||||
\graphicspath{{images/}}
|
||||
\geometry{
|
||||
|
@ -51,10 +52,11 @@
|
|||
\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}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue