Bug#123261: tetex-bin: /label in a figure environment gives bad references
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
Reply to: