# [texhax] "Bug?" in a very stubborn table reference

Martin Heller mr_heller at yahoo.dk
Wed Jul 18 09:55:42 CEST 2007

Charla Mustard-Foote skrev:
> I have a \tref{} which seems to resolve correctly (at least it resolves
> to the expected table).  The table has the expected number.  However,
> the cross reference citation shows up as 3.1.2 instead of 3.1.  *Not*
> 3.1.1, which might be slightly logical.   It's like -- I don't know what
> it's like -- the princess of metaphors has none.
>
> Has anyone seen or fixed this?  It feels like one of those, "hardly ever
> happens and the fix has nothing obvious to do with the problem."
> situations.  I have gone through every table and figure in this 451 page
> book and everything else is fine.  It shows up correctly in the List of
> Tables as well.
>
> Any ideas?

Put \label *after* \caption. If this is not the problem you can
try pinpointing the problem by creating a minimal example code
that creates similar problems.
<http://www.tex.ac.uk/cgi-bin/texfaq2html?label=minxampl>