[pdftex] Underscore in URL using hyperref (very old issue?)

Barry McMullin mcmullin at eeng.dcu.ie
Mon Apr 15 14:55:15 CEST 2002


Hi -

I'm encountering exactly (?) the problem described here:

  http://www.tug.org/pipermail/pdftex/1998-December/000039.html

This regards problems using the underscore characters in URLs,
processed with hyperref, when using pdflatex.

However, that archive seems to be completely isolated (no months
immediately before or after are present?); and I can't find any
other information.  The advice given in the message above is that
the version of latex in use must be "fairly ancient"; but I'm
getting the problem on a RH 6.2 linux box, with the most up to
date tetex rpms available. (I have also encountered it on a RH
7.2 box - but the specific diagnostics below are on 6.2.)

The pdflatex version info is:

pdflatex --version
pdfTeX (Web2C 7.3.1) 3.14159-0.13d
kpathsea version 3.3.1
Copyright (C) 1999 Han The Thanh, Petr Sojka, and Jiri Zlatuska.
Kpathsea is copyright (C) 1999 Free Software Foundation, Inc.

I'm suspicious of pdflatex because no problem is apparent when
processing with latex.

I attach sample .tex and .log files.

Somewhat perversely, the behaviour changes if an underscore character
occurs earlier in the file (before the use of \href).  In that
case, there is no warning from pdflatex; but the generated PDF
link does not work (it has embedded tex code in place of the
original underscore).

Am I missing something obvious here?

Thanks,

- Barry.


-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tst.tex
Type: application/x-tex
Size: 231 bytes
Desc: 
Url : http://tug.org/pipermail/pdftex/attachments/20020415/abb87a69/tst.tex
-------------- next part --------------
This is pdfTeX, Version 3.14159-13d (Web2C 7.3.1) (format=pdflatex 2001.8.20)  15 APR 2002 13:36
**tst
(tst.tex[/usr/share/texmf/pdftex/config/pdftex.cfg]
LaTeX2e <1998/12/01> patch level 1
Babel <v3.6x> and hyphenation patterns for american, french, german, ngerman, i
talian, nohyphenation, loaded.
(/usr/share/texmf/tex/latex/base/article.cls
Document Class: article 1999/01/07 v1.4a Standard LaTeX document class
(/usr/share/texmf/tex/latex/base/size10.clo
File: size10.clo 1999/01/07 v1.4a 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/latex/hyperref/hyperref.sty
Package: hyperref 1999/04/13 6.56 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
) (/usr/share/texmf/tex/latex/hyperref/nameref.sty
Package: nameref 1999/02/17 Cross-referencing by name of section
)
\@linkdim=\dimen103
(/usr/share/texmf/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 1999/03/30 v0.3 PDFDocEncoding (Heiko Oberdiek)
)
Package hyperref Info: Bookmarks ON on input line 732.
Package hyperref Info: Hyper figures OFF on input line 744.
Package hyperref Info: Link nesting OFF on input line 749.
Package hyperref Info: Hyper index ON on input line 752.
Package hyperref Info: Plain pages ON on input line 757.
Package hyperref Info: Backreferencing OFF on input line 764.
Implicit mode ON; LaTeX internals redefined
(/usr/share/texmf/tex/latex/html/url.sty
Package: url 1999/03/02  ver 1.4  Verb mode for urls, email addresses, and file
 names
)
\Fld at menulength=\count87
\Field at Width=\dimen104
\Fld at charsize=\dimen105
\Choice at toks=\toks15
\Field at toks=\toks16
Package hyperref Info: Hyper figures OFF on input line 1244.
Package hyperref Info: Link nesting OFF on input line 1249.
Package hyperref Info: Hyper index ON on input line 1252.
Package hyperref Info: backreferencing OFF on input line 1259.
Package hyperref Info: Link coloring OFF on input line 1264.
\c at Item=\count88
\c at Hfootnote=\count89
\OddToc=\count90
LaTeX Info: Redefining \ref on input line 1914.
LaTeX Info: Redefining \pageref on input line 1915.
)
*hyperref using driver hpdftex*
(/usr/share/texmf/tex/latex/hyperref/hpdftex.def (/usr/share/texmf/tex/latex/ps
nfss/pifont.sty
Package: pifont 1999/03/29 PSNFSS v.7.2 Pi font support : S Rahtz
LaTeX Font Info:    Try loading font information for U+pzd on input line 63.
(/usr/share/texmf/tex/latex/psnfss/upzd.fd
File: upzd.fd 1998/07/06 font definitions for U/pzd.
)
LaTeX Font Info:    Try loading font information for U+psy on input line 64.
(/usr/share/texmf/tex/latex/psnfss/upsy.fd
File: upsy.fd 1998/07/06 font definitions for U/psy.
))
\Fld at listcount=\count91
\@outlinefile=\write3
) (tst.aux)
\openout1 = `tst.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
Package hyperref Info: Link coloring OFF on input line 6.
(tst.out) (tst.out)
\openout3 = `tst.out'.

! Undefined control sequence.
<argument> ...ct \global \let \OT1\textunderscore 
                                                  \unhbox \voidb at x \kern .06...
l.10     Change}
                
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...hrule width.3em}\OT1\textunderscore 
                                                  {}office/strategy/plan.html
l.10     Change}
                
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...ct \global \let \OT1\textunderscore 
                                                  \unhbox \voidb at x \kern .06...
l.10     Change}
                
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

! Undefined control sequence.
<argument> ...hrule width.3em}\OT1\textunderscore 
                                                  {}office/strategy/plan.htm...
l.10     Change}
                
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

[1

[/usr/share/texmf/dvips/config/pdftex.map]] (tst.aux) ) 
Here is how much of TeX's memory you used:
 1442 strings out of 10628
 18381 string characters out of 92863
 63621 words of memory out of 263001
 4455 multiletter control sequences out of 10000+0
 4330 words of font info for 16 fonts, out of 400000 for 1000
 14 hyphenation exceptions out of 1000
 27i,4n,21p,159b,163s stack positions out of 300i,100n,500p,50000b,4000s
<cmr10.pfb>
Output written on tst.pdf (1 page, 12248 bytes).


More information about the pdftex mailing list