Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!snorkelwacker!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!ruuinf!piet From: piet@cs.ruu.nl (Piet van Oostrum) Newsgroups: comp.text.tex Subject: Re: LaTeX Problem (figure and table numbering) Message-ID: <3913@ruuinf.cs.ruu.nl> Date: 27 Sep 90 12:07:33 GMT References: <1990Sep26.185900.1879@ariel.unm.edu> Sender: news@ruuinf.cs.ruu.nl Reply-To: piet@cs.ruu.nl (Piet van Oostrum) Organization: Dept of Computer Science, Utrecht University, The Netherlands Lines: 22 In-reply-to: stanly@crunch.unm.edu (Stanly Steinberg) >>>>> In article <1990Sep26.185900.1879@ariel.unm.edu>, stanly@crunch.unm.edu (Stanly Steinberg) (SS) writes: SS> At the beginning of the source the LaTeX for a document, I have the following: SS> \documentstyle[12pt]{article} SS> \renewcommand{\theequation}{\thesection.\arabic{equation}} SS> \renewcommand{\thefigure}{\thesection.\arabic{figure}} SS> \renewcommand{\thetable}{\thesection.\arabic{table}} SS> In Section 3, I have a figure and a table that are labelled with SS> a \label{xxx} command. In the figure and table captions and in the SS> list of figures and list of tables, the numbering is correct (3.1) SS> but when \ref{xxx} is used it produces only a 3 (i.e. the .1 is missing). SS> Does anyone have a fix for this? This is one of the standard errors: the correct place for the \label is IN the \caption argument or after the \caption command (LaTeX book, page 72). -- Piet* van Oostrum, Dept of Computer Science, Utrecht University, Padualaan 14, P.O. Box 80.089, 3508 TB Utrecht, The Netherlands. Telephone: +31 30 531806 Uucp: uunet!mcsun!ruuinf!piet Telefax: +31 30 513791 Internet: piet@cs.ruu.nl (*`Pete')