[texhax] table numbering

W.J. Metzger wes at hef.kun.nl
Wed Dec 3 12:55:16 CET 2003

On Wed, 3 Dec 2003, Dr R. Hasson wrote:
> At 00:16 03/12/2003 -0800, Jing Zhang wrote:
> >Hi,  I have some difficulties to number tables. I use "\label{tt1.tab}"
> >before "\end{table*}" write "Table \ref{tt1.tab}" to mention this table,
> >but it doesn't work for me. Can anybody tell me why?
> You need to label the caption (which has a number) rather than the table
> (which doesn't). For example:
> \begin{table}
> ...
> \caption{\label{tt1.tab} ...}
> \end{table}
A small clarification:  The \label does not have to be IN the \caption.
It can be either in the \caption or AFTER the \caption.
The point is that the table does not have a number until there is a
Dr. W. J. Metzger            Experimental High Energy Physics Group
tel. +31-24-3653127          Faculty of Natural Sciences
     +31-24-3652099 (secr.)  University of Nijmegen
fax. +31-24-3652191          Toernooiveld 1
telex 48228 wina nl          6525 ED  Nijmegen,  The Netherlands
e-mail:  wes at hef.kun.nl      or   W.Metzger at cern.ch
http://home.cern.ch/metzger/ or   http://www.hef.kun.nl/~wes

More information about the texhax mailing list