This code:

        \caption{a) Frontal view of the sensor system}
        \caption{b) Perspective view of the sensor system}
        \caption{c) Side view of the sensor system}
\caption{Overview of the system as worn by the subjects}

produces result:

enter image description here

But I want them to be vertically aligned. How can I do this?

  • 3
    Use [b] for the first subfigure, similar to the other two. You should also consider using subfig since subfigure is deprecated.
    – Werner
    Jul 31, 2012 at 18:50
  • aah, thank you, I thought the [a],[b] and [c] was for enumeration purposes.
    – jorrebor
    Jul 31, 2012 at 18:53
  • 1
    @Werner OP's probably using subcaption package.
    – percusse
    Jul 31, 2012 at 19:34
  • Who's this guy, may I ask? :-)
    – hola
    Sep 5, 2019 at 10:58
  • @pushpen.paul why would that be relevant? happy to share in PM though.
    – jorrebor
    Sep 5, 2019 at 13:52

4 Answers 4


The interface provided by the subfigure package, specifies the first (optional) argument to indicate the vertical alignment. Using [b] should align be bottom of the sub figures. Analogously, [t] should align the tops.

Instead of numbering the captions manually

\caption{a) ...}

you could use the accompanying \subfigure command:


and change the format of the numbering to your liking.

  • subcaption seems to be incompatible with subfig. Is there a solution. But I have many subfloats. Is there a solution with subfig / one that does not require to change all subfloats (without setting height explicitly)? Dec 17, 2013 at 6:47
  • Thank you so much for pointing out this easy solution. I've seen others where they use minipages inside minipages to align images and captions separately and was already losing hope.
    – Big_Chair
    Nov 3, 2019 at 10:19
  • 1
    @Big_Chair: The subfigure package is considered obsolete. It's best to use the subcaption package; it's distributed with the caption package, something that is pretty standard for setting \caption properties and layouts.
    – Werner
    Nov 3, 2019 at 22:21

I simply couldn't pass this one by, if only just to produce a solution that makes note of the obvious similarities between the sample provided and the classic Tron Guy.

The actual solution uses subfig package, but who cares.

           \subfloat[Frontal view]{%
           \subfloat[Perspective view]{%
           \subfloat[Side view]{%
           \caption{Overview of the sensor system as worn by the subjects.}


  • 8
    But in your example you're using 3 pictures of the same size. I thought the point of the question was to align pictures of different sizes.
    – Andreina
    Sep 14, 2017 at 12:16
  • 2
    also the captions are mixed up
    – TomDLT
    Jun 26, 2018 at 10:38
  • @Andreina They are not of the same size. They are of different sizes. They were scaled proportionately to have the same height so they could be aligned, and that is my solution. Jun 26, 2018 at 11:37
  • 2
    @TomDLT Sue me. Jun 26, 2018 at 11:37

I found this code:



Worked perfectly :)

Use \usepackage{subfigure} in the preamble


From webpage https://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions


        \caption{A gull}
    ~ %add desired spacing between images, e. g. ~, \quad, \qquad, \hfill etc. 
      %(or a blank line to force the subfigure onto a new line)
        \caption{A tiger}
    ~ %add desired spacing between images, e. g. ~, \quad, \qquad, \hfill etc. 
    %(or a blank line to force the subfigure onto a new line)
        \caption{A mouse}
    \caption{Pictures of animals}\label{fig:animals}
  • 3
    Without some more content, this doesn't really add much more value than is already included in the OP. What is the vertical alignment if gull, tiger and mouse have different heights?
    – Werner
    Nov 8, 2016 at 20:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.