[texhax] Wrong Labelling

Donald Arseneau asnd at triumf.ca
Thu Dec 9 20:41:43 CET 2010

Claudia Wolff <claudia.anna.wolff at googlemail.com> writes:

> somehow the number of my figures are wrong in the text of my paper,
> all figures after figure 7 are labeled figure 7 or 5.1.

Do you mean the actual number given in the caption, or the number
when referring to the caption with \ref?

> \textit{\caption{Relative Rise in Share of Pupils at Upper Secondary School
> between June and July, (Both Parents have the same Education Level)}}
> \label{percentage-late}

Here your label refers to the enclosing section, not to the
figure number, because the font change has limited the scope
of the "current reference".  You need to put the label command
inside the caption text, or immediately after the end of the 
caption (before any other } or \end).

Donald Arseneau                          asnd at triumf.ca

More information about the texhax mailing list