Uwe Stöhr a écrit :
> With my Debian Lenny, doc/fr/Userguide.lyx and doc/fr/EmbeddedObjects.lyx > compilations fail because character ":" is active in French. This is nowadays OK > with most packages, but not with varioref, which version here is the last one
 > according to CTAN:
 > [2006/05/13 v1.4p package for extended references (FMi)]

I'm using the same version of varioref and cannot reproduce the problem. The current varioref version is three years old and nobody ever reported such a problem. Before we change something in our source code I therefore want to know why it fails for you and why not on other machines.

Here's the list of my packages that are used to compile the French UserGuide:

 *File List*
 scrbook.cls    2009/07/24 v3.04a KOMA-Script document class (book)
scrkbase.sty 2009/07/24 v3.04a KOMA-Script package (KOMA-Script-dependent ba
sics and keyval usage)
scrbase.sty 2009/07/24 v3.04a KOMA-Script package (KOMA-Script-independent
basics and keyval usage)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
scrlfile.sty    2009/03/25 v3.03 KOMA-Script package (loading files)
tocbasic.sty    2009/06/08 v3.03b KOMA-Script package (handling toc-files)
scrsize12pt.clo 2009/07/24 v3.04a KOMA-Script font size class option (12pt)
typearea.sty    2009/07/24 v3.04a KOMA-Script package (type area)
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
inputenc.sty    2006/05/05 v1.1b Input encoding file
  latin9.def    2006/05/05 v1.1b Input encoding file
   color.sty    2005/11/14 v1.0j Standard LaTeX Color (DPC)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
  pdftex.def    2008/09/08 v0.04l Graphics/color for pdfTeX
   babel.sty    2008/07/06 v3.8l The Babel package
 bblopts.cfg    2006/07/31 v1.0 MiKTeX 'babel' configuration
 english.ldf    2005/03/30 v3.3o English support from the babel system
 frenchb.ldf    2008/05/08 v2.2a French support from the babel system
 frenchb.cfg
scalefnt.sty
   array.sty    2005/08/23 v2.4b Tabular extension package (FMi)
verbatim.sty    2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
longtable.sty    2004/02/01 v4.11 Multi-page Table package (DPC)
varioref.sty    2006/05/13 v1.4p package for extended references (FMi)
rotfloat.sty    2004/01/04 v1.2 Combining float+rotating package (AS)
   float.sty    2001/11/08 v1.3d Float enhancements (AL)
rotating.sty    2009/03/28 v2.16a rotated objects in LaTeX
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
 wrapfig.sty    2003/01/31  v 3.6
textcomp.sty    2005/09/27 v1.99g Standard LaTeX package
  ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
     url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.
 amsmath.sty    2000/07/18 v2.13 AMS math features
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
  amsbsy.sty    1999/11/29 v1.2d
  amsopn.sty    1999/12/14 v2.01 operator names
 makeidx.sty    2000/03/29 v1.0m Standard LaTeX package
 amssymb.sty    2009/06/22 v3.00
amsfonts.sty    2009/06/22 v3.00 Basic AMSFonts support
 nomencl.sty    2005/09/22 v4.2 Nomenclature package (LN)
hyperref.sty    2009/05/23 v6.78s Hypertext links for LaTeX
   ifpdf.sty    2009/04/10 v2.0 Provides the ifpdf switch (HO)
ifvtex.sty 2008/11/04 v1.4 Switches for detecting VTeX and its modes (HO)
 ifxetex.sty    2009/01/23 v0.5 Provides ifxetex conditional
hycolor.sty 2008/09/08 v1.4 Code for color options of hyperref/bookmark (HO
)
xcolor-patch.sty    2008/09/08 xcolor patch
  pd1enc.def    2009/05/23 v6.78s Hyperref: PDFDocEncoding definition (HO)
etexcmds.sty    2007/12/12 v1.2 Prefix for e-TeX command names (HO)
infwarerr.sty    2007/09/09 v1.2 Providing info/warning/message (HO)
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive
kvoptions.sty    2009/07/17 v3.2 Keyval support for LaTeX options (HO)
   puenc.def    2009/05/23 v6.78s Hyperref: PDF Unicode definition (HO)
  bitset.sty    2007/09/28 v1.0 Data type bit set (HO)
 intcalc.sty    2007/09/27 v1.1 Expandable integer calculations (HO)
bigintcalc.sty    2007/11/11 v1.1 Expandable big integer calculations (HO)
pdftexcmds.sty 2009/04/10 v0.4 LuaTeX support for pdfTeX utility functions (
HO)
ifluatex.sty    2009/04/17 v1.2 Provides the ifluatex switch (HO)
kvsetkeys.sty 2009/07/19 v1.4 Key value parser with default handler support
(HO)
atbegshi.sty    2008/07/31 v1.9 At begin shipout hook (HO)
 hpdftex.def    2009/05/23 v6.78s Hyperref driver for pdfTeX
 lmodern.sty    2007/01/14 v1.3 Latin Modern Fonts
  hypcap.sty    2008/09/08 v1.10 Adjusting anchors of captions (HO)
  subfig.sty    2005/06/28 ver: 1.3 subfig package
 caption.sty    2008/08/24 v3.1j Customizing captions (AR)
caption3.sty    2008/08/24 v3.1j caption3 kernel (AR)
ltcaption.sty    2008/03/28 v1.2 longtable captions (AR)
  ts1cmr.fd    1999/05/25 v2.5h Standard LaTeX font definitions
   t1lmr.fd    2007/01/14 v1.3 Font defs for Latin Modern
supp-pdf.tex
 nameref.sty    2007/05/29 v2.31 Cross-referencing by name of section
refcount.sty    2008/08/11 v3.1 Data extraction from references (HO)

What is your package list? What is the LaTeX error and what is your LaTeX distribution?

With Debian Lenny (stable) comes TexLive 2007, so I have this

*File List*
 scrbook.cls    2006/07/30 v2.95b KOMA-Script document class (book)
scrkbase.sty 2006/07/30 v2.95b KOMA-Script package (basics and keyval use)
scrlfile.sty    2006/03/28 v2.95 KOMA-Script package (loading files)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
    bk12.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
typearea.sty    2006/07/30 v2.95b KOMA-Script package (type area)
 fontenc.sty
   t1enc.def    2005/09/27 v1.99g Standard LaTeX file
inputenc.sty    2006/05/05 v1.1b Input encoding file
  latin9.def
   color.sty    2005/11/14 v1.0j Standard LaTeX Color (DPC)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
  pdftex.def    2007/01/08 v0.04d Graphics/color for pdfTeX
   babel.sty    2005/11/23 v3.8h The Babel package
 english.ldf    2005/03/30 v3.3o English support from the babel system
 frenchb.ldf
 frenchb.cfg
   array.sty    2005/08/23 v2.4b Tabular extension package (FMi)
verbatim.sty    2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
longtable.sty    2004/02/01 v4.11 Multi-page Table package (DPC)
varioref.sty    2006/05/13 v1.4p package for extended references (FMi)
rotfloat.sty    2004/01/04 v1.2 Combining float+rotating package (AS)
   float.sty    2001/11/08 v1.3d Float enhancements (AL)
rotating.sty    1997/09/26, v2.13 Rotation package
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
  ifthen.sty    2001/05/26 v1.1c Standard LaTeX ifthen package (DPC)
 wrapfig.sty    2003/01/31  v 3.6
textcomp.sty    2005/09/27 v1.99g Standard LaTeX package
  ts1enc.def    2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
     url.sty    2005/06/27  ver 3.2  Verb mode for urls, etc.
 amsmath.sty    2000/07/18 v2.13 AMS math features
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
  amsbsy.sty    1999/11/29 v1.2d
  amsopn.sty    1999/12/14 v2.01 operator names
 makeidx.sty    2000/03/29 v1.0m Standard LaTeX package
 amssymb.sty    2002/01/22 v2.2d
amsfonts.sty    2001/10/25 v2.2f
 nomencl.sty    2005/09/22 v4.2 Nomenclature package (LN)
hyperref.sty    2007/02/07 v6.75r Hypertext links for LaTeX
  pd1enc.def    2007/02/07 v6.75r Hyperref: PDFDocEncoding definition (HO)
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive
kvoptions.sty 2006/08/22 v2.4 Connects package keyval with LaTeX options (HO
)
   puenc.def    2007/02/07 v6.75r Hyperref: PDF Unicode definition (HO)
 hpdftex.def    2007/02/07 v6.75r Hyperref driver for pdfTeX
   ifpdf.sty    2006/02/20 v1.4 Provides the ifpdf switch (HO)
 lmodern.sty    2007/01/14 v1.3 Latin Modern Fonts
  hypcap.sty    2006/02/20 v1.5 Adjusting anchors of captions (HO)
  subfig.sty    2005/06/28 ver: 1.3 subfig package
 caption.sty    2007/01/07 v3.0k Customising captions (AR)
caption3.sty    2007/01/07 v3.0k caption3 kernel (AR)
   t1lmr.fd    2007/01/14 v1.3 Font defs for Latin Modern
  ts1cmr.fd    1999/05/25 v2.5h Standard LaTeX font definitions
supp-pdf.tex
 nameref.sty    2006/12/27 v2.28 Cross-referencing by name of section
refcount.sty    2006/02/20 v3.0 Data extraction from references (HO)
UserGuide.out
UserGuide.out
ragged2e.sty    2003/03/25 v2.04 ragged2e Package (MS)
everysel.sty    1999/06/08 v1.03 EverySelectfont Package (MS)
  t1lmss.fd    2007/01/14 v1.3 Font defs for Latin Modern
  ot1lmr.fd    2007/01/14 v1.3 Font defs for Latin Modern
  omllmm.fd    2007/01/14 v1.3 Font defs for Latin Modern
 omslmsy.fd    2007/01/14 v1.3 Font defs for Latin Modern
 omxlmex.fd    2007/01/14 v1.3 Font defs for Latin Modern
    umsa.fd    2002/01/19 v2.2g AMS font definitions
    umsb.fd    2002/01/19 v2.2g AMS font definitions
  t1lmtt.fd    2007/01/14 v1.3 Font defs for Latin Modern
  ts1lmr.fd    2007/01/14 v1.3 Font defs for Latin Modern

The error messages read like
! Missing \endcsname inserted.
<to be read again>
                   \penalty
l.5264 ...{cap:Deux-images-d=0000E9form=0000E9es.}
?
! Extra \endcsname.
\...@ifundefined ...dafter \ifx \csname #1\endcsname
\relax \expandafter \...@firs...
l.5264 ...{cap:Deux-images-d=0000E9form=0000E9es.}

This loop (add \endcsname then complain about it) are due to ":" being active in French, and seem to come from a nasty interaction between varioref and hyperref.

It may also come from babel, a bit outdated here, but if I try to update babel alone, I get a lot more nasty errors about babel itself and apparently hyperref. On the other side , I do not know the code in
 bblopts.cfg    2006/07/31 v1.0 MiKTeX 'babel' configuration

I can install TeXLive 2008 instead of the Debian packages (TexLive 2007 comes with Debian testing as well), but that does not change my point: as stated in the tex forum, it helps to load explicitly nameref before varioref, for users who do not use the continuous update facility of some TeX distributions (which IMHO has some drawbacks as far as interoperability is concerned).

--
Jean-Pierre

Reply via email to