19

I want to put two subfloat figures under each other but they keep being beside each other. This is the script used:

\begin{figure}[t]
\subfloat[A]{\includegraphics[width=\linewidth]{a}\label{a}}
\subfloat[B]{\includegraphics[width=\linewidth]{b}\label{b}}
\caption{abc} 
\label{abc}
\end{figure}
2
  • Just leave an empty line between the two \subfloat lines. You may want to add \centering just below \begin{figure}[t] (which should better be \begin{figure}[tp]).
    – egreg
    Commented Apr 6, 2013 at 13:07
  • 4
    Too localized? Hmm. Apparently, I too was in this particular geographic area, moment in time, and narrow situation. There are wormholes!
    – Mars
    Commented Aug 13, 2016 at 22:40

1 Answer 1

19

Putting a \newline between the two subfloats did the trick. Nevermind.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .