My question is very similar to this one: Sub-figures of different sizes grid layout
However, I can't use the subcaption package (I am using subfigure) and I also do not want them to have captions, so if I can avoid using subfigure at all maybe it would be better?
This is the output that I need:
I tried using the code from this answer by Zarko but I could not get it to work.
\begin{figure}[!htb]
\centering
\begin{tabular}[t]{cc}
\includegraphics[width=0.32\linewidth,height=1.7\textwidth]{example-image-a}
&
\begin{tabular}{c}
\smallskip
\includegraphics[width=0.32\textwidth]{example-image-b}
\includegraphics[width=0.32\textwidth]{example-image-c}
\end{tabular}\\
\end{tabular}
\caption{Cats}
\end{figure}
Do note that this code is only for the first two columns, I have not yet tried to add the last one.
Edit: My current attempt is the following (the tabular lines are just for reference):
\begin{figure}[!htb]
\centering
\setkeys{Gin}{width=\linewidth}
\begin{tabular}{|c|c|c|}
\hline
\multirow{2}{*}{\includegraphics[width=0.3\linewidth, valign=m]{example-image-a}} &
\includegraphics[width=0.25\linewidth, valign=m]{example-image-b} &
\multirow{2}{*}{\includegraphics[width=0.4\linewidth, valign=m]{example-image-c}}
\\ \hline
& \includegraphics[width=0.25\linewidth, valign=m]{example-image-c} & \\
\\ \hline
\end{tabular}
\end{figure}
Edit 2: Using Zarko's answer and changing each width is making the images very small:
\begin{figure}[!htb]
\centering
\setkeys{Gin}{width=\linewidth}
\setlength\tabcolsep{0pt}
\begin{tblr}[t]{colspec={*{3}{X[c,m]}},
cell{1}{1,3} = {r=2}{ }
}
\includegraphics[width=0.3\linewidth, valign=m]{example-image-a}
& \includegraphics[width=0.15\linewidth, valign=m]{example-image-b}
& \includegraphics[width=0.4\linewidth, valign=m]{example-image-c} \\
& \includegraphics[width=0.15\linewidth,valign=m]{example-image-b}
& \\
\end{tblr}
\caption{Cats}
\end{figure}





multirow, the dimensions are correct but the last column is misaligned vertically. In the solution adapted from your answer, the images are all too small, as they do not occupy the whole space (0.4\linewidth,0.15\linewidth, and0.3\linewidth). – João David Oct 09 '22 at 19:06tabularraypackage. Thank you. – João David Oct 09 '22 at 19:24tabularraypackage is very powerful and it is worth to make yourself more familiar with it. It has good, concise documentation with a lot of examples. – Zarko Oct 09 '22 at 19:26