Bug#432745: /usr/share/texmf-texlive/tex/latex/preprint/figcaps.sty: Breaks \label and \ref with figures
Package: texlive-latex-extra
Version: 2005.dfsg.3-1
Severity: normal
File: /usr/share/texmf-texlive/tex/latex/preprint/figcaps.sty
Tags: patch
figcaps defines \label to do nothing before it displays figures:
\def\@figurepage{\if@figpage\@ifundefined{tf@pof}{}{%
\@ifundefined{appendixname}{}{\def\appendixname{}}
\reset@figtab\clearpage\section*{\figurepagename}%
\@mkboth{\uppercase{\figurepagename}}{\uppercase{\figurepagename}}%
\begingroup
\def\figure{\def\@captype{figure}\vbox\bgroup}\def\endfigure{\egroup
\vspace{20pt}}%
\def\label##1{}%
\@input{\jobname.\lof}\newpage\endgroup}\fi}
This makes \label and thus \ref not work in combination with
\usepackage[printfigures]{figcaps}. Removing the \def of \label solves this
problem; the labels and refs then work perfectly.
The same code exists in figcaps.sty from texlive-latex-extra 2007-3 in
unstable.
- Josh Triplett
Reply to: