I'm trying to put two images of different sizes side-by-side and the caption below the first one to fill-in blank space.
Each combinations of tb
minipage option don't make the desired output.
The requirements are :
- The two images are aligned at the top.
- The captions is unique for both images and is written just below the first image.
In the following outputs, the images are not aligned at the top. Is it a way to adjust the minipages correctly ?
Here is a MWE :
\documentclass[11pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[top=2.5cm,bottom=2cm,left=2.6cm,right=2.6cm]{geometry}
\begin{document}
\begin{figure}
\centering
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=238px, height=274px]{example-image-a}
\caption{Schémas dex expériences des aimants $A$ et $B$}
\end{minipage}\qquad
\begin{minipage}{0.4\linewidth}
\centering
\includegraphics[width=117px, height=383px]{example-image-b}
\end{minipage}
\end{figure}
\newpage
\begin{figure}
\centering
\begin{minipage}[t]{0.5\linewidth}
\centering
\includegraphics[width=0.9\linewidth]{AimantAB1.png}
\caption{Schémas dex expériences des aimants $A$ et $B$}
\end{minipage}\qquad
\begin{minipage}{0.4\linewidth}
\centering
\includegraphics[width=0.6\linewidth]{AimantAB2.png}
\end{minipage}
\end{figure}
\end{document}
With the corresponding output :
\raisebox{-\height}{...}
.