🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #1086

Re: trouble with table

#1086
From: Jonathan Thornburg
Date: Mon, 13 Apr 1992 01:12
25 lines
1974 bytes
In article <1992Apr12.175512.7323@serval.net.wsu.edu>
joerd@wsuaix.csc.wsu.edu (Wayne Joerding - Economics) writes:
>I'm having trouble with \table{} and hope for some help.  I use
> \documentstyle{article} with several \section{} satements.  In section
> 3 I use references like \ref{tbl:poly1nSS} and \ref{tbl:poly2} to
> refer to tables with labels \label{tbl:poly1nSS} and \label{tbl:poly2}
> placed inside the \table{begin}...\table{end} commands.  The tables
> are sequentially numbered 1,2, etc.  Just as desired.  But the text
> references all produce the number 3, presumably because the references
> are in section 3.  That is, every reference in the text to a table,
> "Table ref{tbl:poly1nSS}", produces "Table 3".

The positioning of the  \label  *within* the  \begin{table} ... \end{table}
is important.  To quote from the \LaTeX{}book, p.~72:
	Since there can be several captions in a  figure  or
	  table  environment,  \caption  works like a sectioning
	command within the environment, with the  \label  command
	going either after the  \caption  command or in its
	argument.
If you do this it should work ok.
-- 

- Jonathan Thornburg <jonathan@einstein.ph.utexas.edu>
  University of Texas at Austin / Physics Dept / Center for Relativity
  and (for a few more months) University of British Columbia / Astronomy
Technical Details
Message-ID: <1992Apr13.011234.19633@chpc.utexas.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!convex!news.utdallas.edu!hermes.chpc.utexas.edu!jonathan
References: <1992Apr12.175512.7323@serval.net.wsu.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.text.tex
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!convex!news.utdallas.edu!hermes.chpc.utexas.edu!jonathan
From: jonathan@chpc.utexas.edu (Jonathan Thornburg)
Subject: Re: trouble with table
Message-ID: <1992Apr13.011234.19633@chpc.utexas.edu>
Followup-To: jonathan@einstein.ph.utexas.edu
Summary: put \label within or after the \caption
Keywords: LaTeX table figure caption label
Sender: jonathan@einstein.ph.utexas.edu
Organization: U of Texas at Austin / Physics Dept / Center for Relativity
References: <1992Apr12.175512.7323@serval.net.wsu.edu>
Date: Mon, 13 Apr 92 01:12:34 GMT
Lines: 25