I need to arrange three figures in a two column document as follows
[Tex/LaTex] Arrange three images
floatsgraphicssubfloats
Related Solutions
Here's one option using the subfigure
environment from the subcaption
package and taking advantage of the optional arguments for the environment (the same as those for a minipage
); depending on the actual size of your images, you might need to adjust some lengths:
:
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}[b][6.5cm][b]{.3\textwidth}
\centering
\includegraphics[width=3cm,height=3cm]{smallfigure1}\\\vfill
\includegraphics[width=3cm,height=2cm]{smallfigure2}
\caption{Two small subfigures}
\end{subfigure}%
\begin{subfigure}[b][6.5cm][b]{.3\textwidth}
\centering
\includegraphics[width=3cm,height=6cm]{largefigure}
\caption{A large subfigure}
\end{subfigure}
\caption{three subfigures}
\end{figure}
\end{document}
The demo
option for graphicx
simply replaces actual figures with black rectangles; do not use that option in your actual document.
And here's an option using the subfig
package and some minipage
s:
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subfig}
\begin{document}
\begin{figure}
\centering
\subfloat[Two small subfigures]{%
\begin{minipage}[b][6.5cm][t]{.3\textwidth}
\centering
\includegraphics[width=3cm,height=2cm]{smallfigure1}
\vfill
\includegraphics[width=3cm,height=2cm]{smallfigure2}
\end{minipage}}%
\subfloat[A larger subfigure]{\begin{minipage}[b][6.5cm][t]{.3\textwidth}
\centering
\includegraphics[width=3cm,height=6.5cm]{largefigure}
\end{minipage}}
\caption{three subfigures}
\end{figure}
\end{document}
You can box the larger image and measure its height to use this value for the minipages height. The mechanism is explained in Aligning 3 images square in a box
We can achieve this by using subcaption
.
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\subcaptionbox{caption}{\includegraphics[width = 2in]{a}}\quad
\subcaptionbox{caption}{\includegraphics[width = 2in]{b}}\\
\subcaptionbox{caption}{\includegraphics[width = 2in]{a}}\quad
\subcaptionbox{caption}{\includegraphics[width = 2in]{b}}
\end{figure}
\end{document}
If you want to caption the 4 subfigures
, add \caption{caption}
below the lase \subcaptionbox
. This will then call this figure 1: caption
To separate the figures with a line, we can use the tabular
environment.
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subcaption, tabu}
\begin{document}
\begin{figure}
\begin{tabular}{c|c} %vertical line I added | between cc
\subcaptionbox{caption}{\includegraphics[width = 2in]{a}}&
\subcaptionbox{caption}{\includegraphics[width = 2in]{b}}\\
\hline
\subcaptionbox{caption}{\includegraphics[width = 2in]{a}}&
\subcaptionbox{caption}{\includegraphics[width = 2in]{b}}
\end{tabular}
%\caption{caption} %this is the caption for the whole figure delete % in front of caption if you want it.
\end{figure}
\end{document}
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.
Best Answer
Comments
You did not tell us about the individual/main captions and/or references. I decided to throw that in as well.
Basic Idea
For a two column document use the option
[twocolumn]
with the\documentclass
.Create a two column table (outer table). Put another single column table in the first column. Put the first two images (A and B) as the two rows of the inner table. Put the third image (B) in the second column of the outer table.
Use
subcaption
to take care of captions and labels. (This answer helps.)The Solution
The Output
Further Tweaking
Change the
0.4\columnwidth
s to tweak image sizes. Watch for overfull boxes.