I would like to arrange four images in a similar style to this code taken slightly modified from Four Arranged Figures are offset .
\documentclass{article}
\usepackage[demo]{graphicx} % leave off demo option in real program
\renewcommand{\thefigure}{\alph{figure}}
\begin{document}
\begin{figure}
\begin{minipage}[t]{0.5\textwidth}
\includegraphics[width=\linewidth]{a.pdf}
\caption{a)}
\label{fig:immediate}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\includegraphics[width=\linewidth]{b.pdf}
\caption{b)}
\label{fig:proximal}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\includegraphics[width=\linewidth]{c.pdf}
\caption{c)}
\label{fig:distal}
\end{minipage}
\begin{minipage}[t]{0.5\textwidth}
\includegraphics[width=\linewidth]{d.pdf}
\caption{d)}
\label{fig:combined}
\end{minipage}
\end{figure}
\end{document}
My images are mostly white so I would like them to touch but to add a vertical and horizontal line in a cross shape to separate them. The two lines should cross in the middle and stretch to the top and bottom and left and right of the images respectively.
Best Answer
We can achieve this by using
subcaption
.If you want to caption the 4
subfigures
, add\caption{caption}
below the lase\subcaptionbox
. This will then call thisfigure 1: caption
To separate the figures with a line, we can use the
tabular
environment.At present, the demo graphic butts up against the bounding box, but since you figures are mostly white, as you stated, the line should be seen without blending into the picture as with the demo.