[texhax] babel, varioref and hyperref with french option problem

Ignacy Gawedzki texhax at qult.net
Fri Sep 23 20:17:12 CEST 2005


Hi,

I'm trying to track down the origin of the following problem, without success
so far.

I get a nasty error when I try to compile the following lines:

  \documentclass[french]{article}
  \usepackage{babel}
  \usepackage{varioref}
  \usepackage{hyperref}
  \begin{document}
  \vref{fig:tag}
  \end{document}

See the attached log file for details.  The problem comes obviously from the
fact that babel in french mode makes ':' an active character which doesn't
work well with varioref and hyperref.  If I write \vref{fig\string:tag}
instead, it works as intended.

Of course an obvious workaround would be to avoid using colons in reference
keys, but still...

-- 
Information wants to be beer, or something like that.
-------------- next part --------------
This is e-TeX, Version 3.14159-2.1 (Web2C 7.4.5) (format=latex 2005.4.15)  23 SEP 2005 20:11
entering extended mode
**\nonstopmode\input{test.tex}
(./test.tex (/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 2001/04/21 v1.4e Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo
File: size10.clo 2001/04/21 v1.4e Standard LaTeX file (size option)
)
\c at part=\count79
\c at section=\count80
\c at subsection=\count81
\c at subsubsection=\count82
\c at paragraph=\count83
\c at subparagraph=\count84
\c at figure=\count85
\c at table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf/tex/generic/babel/babel.sty
Package: babel 2001/03/01 v3.7h The Babel package

(/usr/share/texmf/tex/generic/babel/frenchb.ldf
Language: french 2001/09/09 v1.5g French support from the babel system

(/usr/share/texmf/tex/generic/babel/babel.def
File: babel.def 2001/03/01 v3.7h Babel common definitions
\babel at savecnt=\count87
\U at D=\dimen103
)
Package babel Info: Making : an active character on input line 199.
Package babel Info: Making ; an active character on input line 200.
Package babel Info: Making ! an active character on input line 201.
Package babel Info: Making ? an active character on input line 202.

*************************************
* Local config file frenchb.cfg used
*
(/usr/share/texmf/tex/generic/babel/frenchb.cfg)))
(/usr/share/texmf/tex/latex/tools/varioref.sty
Package: varioref 2001/09/04 v1.3c package for extended references (FMi)
\c at vrcnt=\count88
)
(/usr/share/texmf/tex/latex/hyperref/hyperref.sty
Package: hyperref 2003/01/22 v6.73n Hypertext links for LaTeX

(/usr/share/texmf/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV at toks@=\toks14
)
\@linkdim=\dimen104
\Hy at linkcounter=\count89
\Hy at pagecounter=\count90

(/usr/share/texmf/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2003/01/22 v6.73n Hyperref: PDFDocEncoding definition (HO)
)
(/usr/share/texmf/tex/latex/config/hyperref.cfg
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive and teTeX
)
Package hyperref Info: Hyper figures OFF on input line 1792.
Package hyperref Info: Link nesting OFF on input line 1797.
Package hyperref Info: Hyper index ON on input line 1800.
Package hyperref Info: Plain pages ON on input line 1805.
Package hyperref Info: Backreferencing OFF on input line 1812.

Implicit mode ON; LaTeX internals redefined
Package hyperref Info: Bookmarks ON on input line 1916.
(/usr/share/texmf/tex/latex/misc/url.sty
\Urlmuskip=\muskip10
Package: url 1999/03/28  ver 1.5x  Verb mode for urls, etc.
)
LaTeX Info: Redefining \url on input line 2055.
\Fld at menulength=\count91
\Field at Width=\dimen105
\Fld at charsize=\dimen106
\Choice at toks=\toks15
\Field at toks=\toks16
Package hyperref Info: Hyper figures OFF on input line 2513.
Package hyperref Info: Link nesting OFF on input line 2518.
Package hyperref Info: Hyper index ON on input line 2521.
Package hyperref Info: backreferencing OFF on input line 2528.
Package hyperref Info: Link coloring OFF on input line 2533.
\c at Item=\count92
\c at Hfootnote=\count93
)
*hyperref using default driver hdvips*
(/usr/share/texmf/tex/latex/hyperref/hdvips.def
File: hdvips.def 2003/01/22 v6.73n Hyperref driver for dvips

(/usr/share/texmf/tex/latex/hyperref/pdfmark.def
File: pdfmark.def 2003/01/22 v6.73n Hyperref definitions for pdfmark specials
\pdf at docset=\toks17
\pdf at box=\box26
\pdf at toks=\toks18
\pdf at defaulttoks=\toks19
\Fld at listcount=\count94
\@outlinefile=\write3
)) (./test.aux)
\openout1 = `test.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for OT2/wncyr/m/n on input line 5.
LaTeX Font Info:    Try loading font information for OT2+wncyr on input line 5.


(/usr/share/texmf/tex/latex/cyrillic/ot2wncyr.fd
File: ot2wncyr.fd 1999/12/17 v3.2a Computer Modern Cyrillic font definitions
)
LaTeX Font Info:    ... okay on input line 5.
LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 5.
LaTeX Font Info:    ... okay on input line 5.
LaTeX Info: Redefining \dots on input line 5.
Package hyperref Info: Link coloring OFF on input line 5.

(/usr/share/texmf/tex/latex/hyperref/nameref.sty
Package: nameref 2001/01/27 v2.19 Cross-referencing by name of section
\c at section@level=\count95
)
LaTeX Info: Redefining \ref on input line 5.
LaTeX Info: Redefining \pageref on input line 5.
 (./test.out) (./test.out)
\openout3 = `test.out'.



LaTeX Warning: Reference `fig:tag' on page 1 undefined on input line 6.

! Missing \endcsname inserted.
<to be read again> 
                   \penalty 
l.6 \vref{fig:tag}
                  
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Extra \endcsname.
\@ifundefined ...dafter \ifx \csname #1\endcsname 
                                                  \relax \expandafter \@firs...
l.6 \vref{fig:tag}
                  
I'm ignoring this, since I wasn't doing a \csname.

! Missing \endcsname inserted.
<to be read again> 
                   \penalty 
l.6 \vref{fig:tag}
                  
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.

! Missing \endcsname inserted.
<to be read again> 
                   \penalty 
l.6 \vref{fig:tag}
                  
The control sequence marked <to be read again> should
not appear between \csname and \endcsname.


LaTeX Warning: Reference `fig:tag' on page 1 undefined on input line 6.

[1

] (./test.aux)

LaTeX Warning: There were undefined references.

 )
(\end occurred when \ifdim on line 6 was incomplete)
(\end occurred when \ifhmode on line 6 was incomplete)
(\end occurred when \ifdim on line 6 was incomplete)
(\end occurred when \ifhmode on line 6 was incomplete) 
Here is how much of TeX's memory you used:
 2426 strings out of 95370
 32246 string characters out of 1188185
 89754 words of memory out of 1000001
 5512 multiletter control sequences out of 10000+50000
 3948 words of font info for 15 fonts, out of 500000 for 1000
 198 hyphenation exceptions out of 1000
 26i,5n,24p,185b,209s stack positions out of 1500i,500n,5000p,200000b,5000s

Output written on test.dvi (1 page, 2012 bytes).


More information about the texhax mailing list