Sub-figures using subfloat in LaTeX

Two subfigures in a figure in LaTeX

To include more than one figures inside a figure the subfig package can be used. It provides the subfloat command that is used to specify each of the sub-figures as a figure. Its usage is shown below in a simple example:

Note that each of the subfigures can be given an optional label which can be used to refer to them in the text of the document.

If you are using TeX Live, in Ubuntu for example, subfig can be found in the texlive-latex-recommended package. Note that I have seen that subfig has problems working with Beamer.

3 thoughts on “Sub-figures using subfloat in LaTeX

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.