Graphics, Figures & Tables ⇒ Subfigure positions
Subfigure positions
I need some help with positioning figures using subfigure. I have two figures, Fig1 and Fig2, I want them in the same {figure} environment, appearing next to each other. The problem is that Fig2 is considerably smaller along the vertical direction, and hence it is shifted upwards with respect to Fig1. It looks incredibly clumsy. I would like to match the bottom of the two figures, so the captions are aligned.
How can I do that?
Many thanks in advance!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Subfigure positions
Package subfigure is deprecated for more than a decade now. These days, people would use the subcaption package.
Subfigure positions
Code: Select all
\begin{figure}
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[scale=0.5]{Fig1.pdf}
\caption{qwert}
\label{fig:Fig1}
\end{subfigure}
\begin{subfigure}{0.5\textwidth}
\centering
\includegraphics[scale=0.5]{Fig2.pdf}
\caption{asdfg}
\label{fig:Fig2}
\end{subfigure}
\end{figure}Subfigure positions
What you're looking for is called
\subcaptionbox, if I understand you correctly.See in `texdoc subcaption' the description to
\subcaptionbox---there's a nice example with a cat and an elephant KR
Rainer