TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How is it possible to include figure labeling in latex? By labeling I mean that if I import several figures:

    \includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure1.pdf}
    \includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure2.pdf}
    \includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure3.pdf}
    \includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure4.pdf}
    \includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure5.pdf}

How can I number these figures, such as the first figure as (a) the second as (b) and so on... I would like these to show in the top left corner outside each graphic which I can then refer to in the caption.

share|improve this question
Have a look at the subfig package. – Jellby Jun 27 '12 at 8:58

You need the subfig or the subcaption package for that. Here is an example using the subfig package:


\subfloat[caption of the subfigure]{\includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure1.pdf}\label{fig:subfig-a}}\\
\subfloat[caption of the subfigure]{\includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure2.pdf}}\\
\subfloat[caption of the subfigure]{\includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure3.pdf}}\\
\subfloat[caption of the subfigure]{\includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure4.pdf}}...
\caption{caption of the whole figure}\label{fig:whole}
The whole figure is~\label{fig:whole} and the first subfigure is~\label{fig:subfig-a}.

See subcaption vs. subfig for differences between the two packages

share|improve this answer

The easiest way is to put everything in a structure like this :

    \includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure1.pdf}\\
    (a) Your label of choice\\
    \includegraphics[height = 0.2\textwidth,width=0.8\textwidth]{Figure2.pdf}\\
    (b) Your label of choice\\
 \caption{Your caption}

This is what i did in one of my reports and the result is fine. the \bigskip is here to add some space between the last line of the tabular and the caption.

share|improve this answer
Use the right tool for the job. In this case, tables aren't it. – You Jun 27 '12 at 9:06
depends on the result you're looking for. my example works well for figure with width=\textwidth... – s__C Jun 27 '12 at 9:23
Semantically, subfloats is a better choice. Functionally, I'd say minipages and subfloats are simpler, more flexible and more appropriate. – You Jun 27 '12 at 11:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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