Bug#432745: /usr/share/texmf-texlive/tex/latex/preprint/figcaps.sty: Breaks \label and \ref with figures

2007-09-04 Thread Norbert Preining
tag 432745 wontfix
thanks

Hi all,

On Sam, 14 Jul 2007, Ralf Stubner wrote:
 ,[ figcaps.dtx ]
 | % The page(s) of figures are much like those for the tables, except that
 | % the |\label| command must be switched off. This is because the labels
 | % have already been defined during the list of captions.
 `

I consider this the intention of the author and thus not a bug. In the
TeX world not every package can work in any possible combination.

I would close this bug, or better, will close this bug. But for now I am
tagging it with wontfix.

Josh, if you want you can carry this discussion to the upstream author
and convince him that it was/is a bad decision.

Best wishes

Norbert

---
Dr. Norbert Preining [EMAIL PROTECTED]Vienna University of Technology
Debian Developer [EMAIL PROTECTED] Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
LUFFENHAM (n.)
Feeling you get when the pubs aren't going to be open for another
fortyfive minutes and the luffness in beginning to wear a bit thin.
--- Douglas Adams, The Meaning of Liff


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#432745: /usr/share/texmf-texlive/tex/latex/preprint/figcaps.sty: Breaks \label and \ref with figures

2007-07-14 Thread Josh Triplett
Atsuhito Kohda wrote:
 Hi Josh,
 
 On Wed, 11 Jul 2007 11:03:18 -0700, Josh Triplett wrote:
 
 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.
 
 I'm not sure but I've an impression that this could be
 a feature.  I don't understand an intention of figcaps package
 so well yet but its manual tells me:
 
 The contents of all the figure and table environments are written to aux-
 iliary les .lof and .lot respectively, and then these are read in again at
 the end of the paper. Since these auxiliary les are normally used to write
 information for the lists of gures and tables, this capability is lost.
 
 I might be wrong but are you sure that it's a bug?

Yes, quite sure.  This doesn't relate to the inability to have lists of
figures and lists of tables.  By gutting the \label macro, figcaps breaks the
ability to say see figure~\ref{fig:myfigure} and get see figure 1.
Commenting out this change to the label macro makes such references work
perfectly.

- Josh Triplett




signature.asc
Description: OpenPGP digital signature


Bug#432745: /usr/share/texmf-texlive/tex/latex/preprint/figcaps.sty: Breaks \label and \ref with figures

2007-07-14 Thread Ralf Stubner
On Fri, Jul 13, 2007 at 23:36 -0700, Josh Triplett wrote:
 Atsuhito Kohda wrote:
  Hi Josh,
  
  On Wed, 11 Jul 2007 11:03:18 -0700, Josh Triplett wrote:
  
  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.
  
  I'm not sure but I've an impression that this could be
  a feature.  I don't understand an intention of figcaps package
  so well yet but its manual tells me:
  
  The contents of all the figure and table environments are written to aux-
  iliary les .lof and .lot respectively, and then these are read in again at
  the end of the paper. Since these auxiliary les are normally used to write
  information for the lists of gures and tables, this capability is lost.
  
  I might be wrong but are you sure that it's a bug?
 
 Yes, quite sure.  This doesn't relate to the inability to have lists of
 figures and lists of tables.  By gutting the \label macro, figcaps breaks the
 ability to say see figure~\ref{fig:myfigure} and get see figure 1.
 Commenting out this change to the label macro makes such references work
 perfectly.

It still would not work together with \usepackage{figcaps}, though. I
have the impression that the author of figcaps.sty prefers to put
\label inside of \caption like this:
   \caption{Foo bar.\label{fig:foobar}}
If one does this, figure references work without changes to the code. 

Indeed the sources for figcaps contains the following comment:

,[ figcaps.dtx ]
| % The page(s) of figures are much like those for the tables, except that
| % the |\label| command must be switched off. This is because the labels
| % have already been defined during the list of captions.
`

If one does not switch of \label, then one would end up with two
different definitions for that particualr label in the aux file.

cheerio
ralf


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#432745: /usr/share/texmf-texlive/tex/latex/preprint/figcaps.sty: Breaks \label and \ref with figures

2007-07-14 Thread Josh Triplett
Ralf Stubner wrote:
 On Fri, Jul 13, 2007 at 23:36 -0700, Josh Triplett wrote:
 Atsuhito Kohda wrote:
 Hi Josh,

 On Wed, 11 Jul 2007 11:03:18 -0700, Josh Triplett wrote:

 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.
 I'm not sure but I've an impression that this could be
 a feature.  I don't understand an intention of figcaps package
 so well yet but its manual tells me:

 The contents of all the figure and table environments are written to aux-
 iliary les .lof and .lot respectively, and then these are read in again at
 the end of the paper. Since these auxiliary les are normally used to write
 information for the lists of gures and tables, this capability is lost.

 I might be wrong but are you sure that it's a bug?
 Yes, quite sure.  This doesn't relate to the inability to have lists of
 figures and lists of tables.  By gutting the \label macro, figcaps breaks the
 ability to say see figure~\ref{fig:myfigure} and get see figure 1.
 Commenting out this change to the label macro makes such references work
 perfectly.
 
 It still would not work together with \usepackage{figcaps}, though. I
 have the impression that the author of figcaps.sty prefers to put
 \label inside of \caption like this:
\caption{Foo bar.\label{fig:foobar}}
 If one does this, figure references work without changes to the code. 
 
 Indeed the sources for figcaps contains the following comment:
 
 ,[ figcaps.dtx ]
 | % The page(s) of figures are much like those for the tables, except that
 | % the |\label| command must be switched off. This is because the labels
 | % have already been defined during the list of captions.
 `
 
 If one does not switch of \label, then one would end up with two
 different definitions for that particualr label in the aux file.

That makes sense; if you define your labels inside your captions, you would
certainly end up with duplicate labels.  However, if you define your labels
outside your captions, you end up with no labels at all.  Both seem perfectly
valid ways to label figures, and I've seen examples of both.  One solution
that might make figcaps work with both styles: how about making \caption set a
flag during the evaluation of its body, and then redefine \label for the pages
of figures to have its normal behavior *only if not inside \caption*?  That
should work in both cases.

- Josh Triplett



signature.asc
Description: OpenPGP digital signature


Bug#432745: /usr/share/texmf-texlive/tex/latex/preprint/figcaps.sty: Breaks \label and \ref with figures

2007-07-13 Thread Atsuhito Kohda
Hi Josh,

On Wed, 11 Jul 2007 11:03:18 -0700, Josh Triplett wrote:

 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.

I'm not sure but I've an impression that this could be
a feature.  I don't understand an intention of figcaps package
so well yet but its manual tells me:

The contents of all the figure and table environments are written to aux-
iliary les .lof and .lot respectively, and then these are read in again at
the end of the paper. Since these auxiliary les are normally used to write
information for the lists of gures and tables, this capability is lost.

I might be wrong but are you sure that it's a bug?

Regards,2007-7-14(Sat)

-- 
 Debian Developer  Debian JP Developer - much more I18N of Debian
 Atsuhito Kohda kohda AT debian.org
 Department of Math., Univ. of Tokushima


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#432745: /usr/share/texmf-texlive/tex/latex/preprint/figcaps.sty: Breaks \label and \ref with figures

2007-07-11 Thread Josh Triplett
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:

[EMAIL PROTECTED]@[EMAIL PROTECTED]@pof}{}{%
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
  \begingroup
  [EMAIL PROTECTED]
\vspace{20pt}}%
  \def\label##1{}%
  [EMAIL PROTECTED]

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


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]