danielsameold wrote:
I am new to Latex and I was told they do not use subfigures anymore.
The subfigure package was superceded by the subfig package about ten years ago, yes. For some time now, there's an alternate called subcaption, that provides its own version of a subfigure environment. Such subfigures you can still use...
danielsameold wrote:
I am using subfloat, two figures on top of each other. The problem is that the lettering (a), (b) does not go to the center of the figures, instead it goes to the left. This is my first question.
I haven't really used the subfig package---if that is, what you're using---for quite some time now, so it may be possible with that package as well.
danielsameold wrote:
The second is that how do I ensure that the vertical or horizontal length of the figures themselves are equal?
By giving them the same height or width, respectively.
See `texdoc grfguide' and look up the options for
\includegraphics
Code: Select all
\documentclass{article}
\usepackage[demo]{graphicx}
\usepackage{subcaption}
\begin{document}
\begin{figure}
\centering
\begin{subfigure}{0.7\linewidth}
\centering
\includegraphics[width=\linewidth]{Fig4}
\caption{}
\label{Fig2a}
\end{subfigure}\par
\medskip
\begin{subfigure}{0.7\linewidth}
\centering
\includegraphics[width=\linewidth]{Fig3}
\caption{}
\label{Fig2b}
\end{subfigure}
\caption{Pictures of animals}
\label{fig:animals}
\end{figure}
\end{document}
KR
Rainer