🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: su.computers
Article #7

Re: Need help with LATEX table problem.

#7
From: Victor Eijkhout
Date: Sat, 17 Nov 1990 00:28
20 lines
1259 bytes
rstanton@portia.Stanford.EDU (Richard Stanton) writes:

>I'm having a problem using the \ref command with LATEX tables. I start the 
>table using

>\begin{table}
>\label{tname}
>...

>then refer to it in the text as \ref{tname}. However, this often either gives
>me the wrong number, or even a section number (e.g. 4.2.1), which is not
>what I want. This is the way I use \label in equations, sections etc, and
>it always works. What's wrong here?

The \label command associates a label with a number, but first
that number must have been generated. In your case it is first
generated when you give the \caption command, so move the
\label after that.

Victor.
Technical Details
Message-ID: <1990Nov17.002844.13037@csrd.uiuc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!csrd.uiuc.edu!s41.csrd.uiuc.edu!eijkhout
References: <1990Nov16.192146.23789@portia.Stanford.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!maverick.ksu.ksu.edu!ux1.cso.uiuc.edu!csrd.uiuc.edu!s41.csrd.uiuc.edu!eijkhout
From: eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout)
Newsgroups: su.computers,comp.text.tex
Subject: Re: Need help with LATEX table problem.
Message-ID: <1990Nov17.002844.13037@csrd.uiuc.edu>
Date: 17 Nov 90 00:28:44 GMT
References: <1990Nov16.192146.23789@portia.Stanford.EDU>
Sender: news@csrd.uiuc.edu (news)
Organization: UIUC Center for Supercomputing Research and Development
Lines: 20