[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#123261: marked as done (tetex-bin: /label in a figure environment gives bad references)



Your message dated Mon, 10 Dec 2001 08:29:49 -0800
with message-id <200112101629.fBAGTogp003941@diziet.clawpaws.net>
and subject line Bug#123261: tetex-bin: /label in a figure environment gives bad references 
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 10 Dec 2001 13:46:59 +0000
>From pzn@terra.com.br Mon Dec 10 07:46:59 2001
Return-path: <pzn@terra.com.br>
Received: from (adsl-nrp8-C8B73A51.sao.terra.com.br) [200.183.58.81] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 16DQlk-0003Zg-00; Mon, 10 Dec 2001 07:46:58 -0600
Received: from mantis.autsens.localnet ([192.168.131.7] ident=mail)
	by adsl-nrp8-C8B73A51.sao.terra.com.br with esmtp (Exim 3.12 #1 (Debian))
	id 16DQli-0007O7-00
	for <submit@bugs.debian.org>; Mon, 10 Dec 2001 13:46:54 +0000
Received: from pzn by mantis.autsens.localnet with local (Exim 3.32 #1 (Debian))
	id 16DQlh-0001Va-00; Mon, 10 Dec 2001 11:46:53 -0200
Date: Mon, 10 Dec 2001 11:46:53 -0200
From: Pedro Zorzenon Neto <pzn@terra.com.br>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: tetex-bin: /label in a figure environment gives bad references
Message-ID: <[🔎] 20011210114653.A711@mantis.autsens.localnet>
Reply-To: pzn@terra.com.br
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.23i
X-Reportbug-Version: 1.36
Sender: Pedro Zorzenon Neto <pzn@terra.com.br>
X-mail-filter-smtp: adsl-nrp8-C8B73A51.sao.terra.com.br 2001-12-10 13:46:57
X-mail-filter-pl: done
Delivered-To: submit@bugs.debian.org

Package: tetex-bin
Version: 1.0.7+20001218-7
Severity: normal

Latex is giving bad references in a figure environment. The following
sample.tex file can show better the problem.

The \label tag is "position dependent" inside \begin{figure} and
\end{figure}. I think it should not be "position dependent".

The compilation with "latex sample" shows no warnings...

--- begin sample.tex ---
\documentclass{article} \usepackage{graphicx} \usepackage{indentfirst}
\begin{document} \title{title} \author{myself} \date{\today}

\section{test section}

Hi, testing references \ref{fig_test1} - \ref{fig_test2}  - \ref{fig_test3}. These values should be 1 - 2 - 3.

test file...
\vspace{2em}

\begin{figure}[!ht]
\includegraphics[width=1cm]{test.ps}
\caption{first sample figure}
\label{fig_test1}
\end{figure}

\begin{figure}[!ht]
\label{fig_test2}
\includegraphics[width=1cm]{test.ps}
\caption{second sample figure}
\end{figure}

\begin{figure}[!ht]
\caption{third sample figure}
\label{fig_test3}
\includegraphics[width=1cm]{test.ps}
\end{figure}

\end{document}
--- end sample.tex ---

--- begin test.ps ---
%!PS
%%BoundingBox: 0 0 3 3
1 1 moveto 2 1 lineto 2 2 lineto 1 2 lineto 1 1 lineto stroke showpage
--- end test.ps ---

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux mantis 2.2.19 #1 Sat Oct 20 18:09:49 EST 2001 i686
Locale: LANG=C, LC_CTYPE=pt_BR

Versions of packages tetex-bin depends on:
ii  debianutils            1.15              Miscellaneous utilities specific t
ii  dpkg                   1.9.18            Package maintenance system for Deb
ii  ed                     0.2-19            The classic unix line editor
ii  libc6                  2.2.4-5           GNU C Library: Shared libraries an
ii  libkpathsea3           1.0.7+20001218-7  shared libkpathsea for teTeX
ii  libpng2                1.0.12-2          PNG library - runtime
ii  libstdc++2.10-glibc2.2 1:2.95.4-0.011006 The GNU stdc++ library
ii  libtiff3g              3.5.5-6           Tag Image File Format library
ii  libwww0                5.3.2-8           The W3C WWW library
ii  libxaw7                4.1.0-9           X Athena widget set library
ii  tetex-base             1.0.2+20000804a-2 basic teTeX library files
ii  xlibs                  4.1.0-9           X Window System client libraries
ii  zlib1g                 1:1.1.3-18        compression library - runtime

---------------------------------------
Received: (at 123261-close) by bugs.debian.org; 10 Dec 2001 16:29:52 +0000
>From c@eskimo.com Mon Dec 10 10:29:52 2001
Return-path: <c@eskimo.com>
Received: from pintail.mail.pas.earthlink.net [207.217.120.122] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 16DTJQ-0003Z6-00; Mon, 10 Dec 2001 10:29:52 -0600
Received: from lsanca1-ar16-4-33-172-102.elnk.dsl.gtei.net ([4.33.172.102] helo=diziet.clawpaws.net)
	by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1)
	id 16DTJP-0005H8-00; Mon, 10 Dec 2001 08:29:51 -0800
Received: from diziet.clawpaws.net (localhost.clawpaws.net [127.0.0.1])
	by diziet.clawpaws.net (8.12.1/8.12.1/Debian -2) with ESMTP id fBAGTogp003941;
	Mon, 10 Dec 2001 08:29:50 -0800
Message-Id: <200112101629.fBAGTogp003941@diziet.clawpaws.net>
To: pzn@terra.com.br, 123261-close@bugs.debian.org
cc: "C.M. Connelly" <cmc@debian.org>
From: "C.M. Connelly" <cmc@debian.org>
Subject: Re: Bug#123261: tetex-bin: /label in a figure environment gives bad references 
Reply-To: "C.M. Connelly" <cmc@debian.org>
In-reply-to: Message from Pedro Zorzenon Neto <pzn@terra.com.br> 
   of "Mon, 10 Dec 2001 11:46:53 -0200." <[🔎] 20011210114653.A711@mantis.autsens.localnet> 
Date: Mon, 10 Dec 2001 08:29:49 -0800
Sender: c@eskimo.com
Delivered-To: 123261-close@bugs.debian.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


There's nothing wrong with LaTeX here.  The \label command is
attached to the \caption command.  If you place the \label command
in a position where it's not associated with the appropriate
\caption command, you're going to get the wrong results.

As for why, here's what Leslie Lamport has to say:

   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.

- From Leslie Lamport, _LaTeX: A Document Preparation System_.
     1986.  Addison-Wesley.

  CMC

+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
 Behind the counter a boy with a shaven head stared vacantly into space, 
 a dozen spikes of microsoft protruding from the socket behind his ear.
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
   C.M. Connelly               cmc@debian.org                   SHC, DS
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 <http://mailcrypt.sourceforge.net/>

iD8DBQE8FOL7zrFKeh3cmQ0RAgumAJ46897CCR8pIlMDd7SE4HysyRLhuwCdGPnb
moS/p5lNITjP2rL2nvO217s=
=wIkV
-----END PGP SIGNATURE-----



Reply to: