I would like to know, how is it possible to correctly align all figures below without passing through a vectorial processing software. Is it possible in LaTex ? I am working with subfiguresbut didn't manage to do it properly. Here is my code :
\documentclass{article}
\usepackage{graphicx}
\usepackage{caption,subcaption}
\begin{document}
%Figure 1
\begin{figure}[ht]
\centering
\begin{subfigure}[b]{0.5\linewidth}
\centering
\includegraphics[width=0.95\textwidth]{example-image-a}\[1mm]
\caption{}\label{fig:fig1a}
\hfil
\includegraphics[width=0.95\textwidth]{example-image-b}
\caption{}\label{fig:fig1b}
\end{subfigure}%
\begin{subfigure}[b]{0.5\linewidth}
\centering
\includegraphics[width=0.95\textwidth]{example-image-c}\[1mm]
\caption{}\label{fig:fig2}
\hfil
\includegraphics[width=0.45\textwidth]{example-image-a}
\includegraphics[width=0.45\textwidth]{example-image-a}
\hfil
\caption{}\label{fig:fig2}
\end{subfigure}
\end{figure}
\end{document}
And with my own figures, I obtain this :

I thought about labels as here : This post but didn't work for me Any help is appreciated !
Thank you,
P.S : Here are the images of the template :
\documentclassit would be better to demonstrate the problem usingexample-image....but the links are ok if the image is really important to the example (which seems unlikely here) but your code doesn't match the filenames. can you not replacewidth=...byheight=...if you do not want to scale them to the same height, what output do you want? – David Carlisle Feb 05 '24 at 18:54height=. Then fill the spaces between with space if you want thesubfigures to be the same width. It might be easier to use a sub-figure box for each image (or image pair). Off-topic: isn't it confusing to label them left-down-up and right-down rather than left-to-right by row? – cfr Feb 06 '24 at 01:55subfigurewidth and standardise the height, your code will fill the gaps between the images with space. That may or may not look odd depending, but that's all you can really do given your desiderata. – cfr Feb 06 '24 at 19:06