2

I want to put together five images in Latex as shown in the image:

1

I tried tabular, subfigure, subfloat, but I didn't manage to get to something similar to that. I'm new to Latex!

Thank you for the help.

This is my code which get me this images enter image description here:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\begin{document}
\begin{tabular}{llp{5cm}}
    Caption & Caption & \\
    \hspace{-100px}
    \includegraphics[width=6cm]{mean_fall.png}
    &
    \hspace{-50px}
    \includegraphics[width=6cm]{mean_spring.png}
    & Caption\\
    Caption & Caption & 
    \hspace{-100px}
    \includegraphics[width=10cm]{mean_annual.png}
    \vspace{-150px}\\
    \hspace{-100px}
    \includegraphics[width=6cm]{mean_summer.png}
    &
    \hspace{-50px}
    \includegraphics[width=6cm]{mean_winter.png} 
    & \\ 
\end{tabular}
\end{document} 
Parham
  • 21

3 Answers3

3

minipages are an easy way to place things besides each other. To add caption you could use the subcaption package - or if you don't need the numbering - just write them manually.

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{subcaption}

\begin{document}

\begin{figure}

\begin{minipage}{.25\textwidth}
\begin{subfigure}{\textwidth}
\includegraphics[width=\textwidth]{example-image}
\subcaption{heading}
\end{subfigure}
\begin{subfigure}{\textwidth}
\includegraphics[width=\textwidth]{example-image}
\subcaption{heading}
\end{subfigure}
\end{minipage}
\hfill
\begin{minipage}{.25\textwidth}
\begin{subfigure}{\textwidth}
\includegraphics[width=\textwidth]{example-image}
\subcaption{heading}
\end{subfigure}
\begin{subfigure}{\textwidth}
\includegraphics[width=\textwidth]{example-image}
\subcaption{heading}
\end{subfigure}
\end{minipage}
\hfill
\begin{minipage}{.45\textwidth}
\begin{subfigure}{\textwidth}
\includegraphics[width=\textwidth]{example-image}
\subcaption{heading}
\end{subfigure}
\end{minipage}

\end{figure}

\end{document} 

enter image description here

2

mwe

\documentclass{article}
\usepackage{graphicx}
\usepackage{multicol}
\begin{document}
\begin{figure}
\belowcaptionskip1ex
\begin{multicols}{3}
\caption{Image A}\includegraphics[width=\linewidth]{example-image-a}
\caption{Image  B}\includegraphics[width=\linewidth]{example-image-b}
\caption{Image  C}\includegraphics[width=\linewidth]{example-image-c}
\caption{Empty Image}\includegraphics[width=\linewidth]{example-image-plain}\newpage\vspace*{\fill}
\caption{Image Image}\includegraphics[width=\linewidth]{example-image}\vspace*{\fill}
\end{multicols}
\end{figure}
\end{document} 
Fran
  • 80,769
2

I find it easier with a nested tabular:

\documentclass{article}
\usepackage{graphicx}

\begin{document}

\begin{figure}

\centering

\begin{tabular}{@{} c c @{}}
  \begin{tabular}{@{} c c @{}}
    Title & Title \\[1ex]
    \includegraphics[width=3cm,height=3cm]{example-image} &
    \includegraphics[width=3cm,height=3cm]{example-image} \\[2ex]
    Title & Title \\[1ex]
    \includegraphics[width=3cm,height=3cm]{example-image} &
    \includegraphics[width=3cm,height=3cm]{example-image}
  \end{tabular}
&
  \begin{tabular}{@{} c @{}}
    Title \\[1ex]
    \includegraphics[width=4.5cm,height=4.5cm]{example-image}
  \end{tabular}
\end{tabular}

\caption{Global caption}\label{whatever}

\end{figure}

\end{document}

enter image description here

I used both width and height to make the pictures square as your question shows.

egreg
  • 1,121,712