I am trying to adjust a figure containing 2 images of different sizes. Is there a way to adjust the left image on the centerline of the template ? I have tried to use the command \centerline but without any result...
\documentclass[french]{beamer}
\usepackage[most]{tcolorbox}
\newcommand\WWider[2][2em]{%
\makebox[\linewidth][c]{%
\begin{minipage}{\dimexpr\textwidth+#1\relax}
\raggedright#2
\end{minipage}%
}%
}
\begin{document}
\subsection{Etat de l'art}
\begin{frame}{Les précèdents travaux}
\WWider[2em]{
\begin{figure}
\subfloat[{\scriptsize J.Lister, J.Neufeld, JFM (2018)} ] {{\includegraphics[height = 0.35 \textheight,width=0.45 \linewidth ]{pic/ListerExperiment.png} }}%
\qquad
\subfloat[{\scriptsize En bleu, les résultats expérimentaux. En rouge, le modèle (PF). En vert, le modèle (VT)}] {{\includegraphics[width=0.45 \linewidth]{pic/BerhanuExperiment.png} }}%
\end{figure}
}
\end{frame}
\end{document}
Thank you for your help.




\usepackage{graphicx}is missing and you should use place holder images likeexample-image. – dexteritas Sep 22 '22 at 13:54