[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#428631: hyperref should autodetect pdftex even with a driver option



Package: texlive-latex-base
Version: 2007-9
Severity: minor

The hyperref package has to generate different \specials for different
DVI drivers; in particular, xdvi and dvips want "dvips" specials, and pdftex
wants "pdftex" specials.  These correspond to package options.  If you don't
give hyperref any package option, it autodetects pdftex; but if you do give
it the [dvips] option, it doesn't check for pdftex.  This causes a flood of
warning messages and nonfunctional hyperlinks in the output if you run a
file with \usepackage[dvips]{hyperref} through pdflatex.  I habitually
render my files as DVI during composition (because xdvi is nicer to use than
evince alongside an Emacs composition buffer) but use pdflatex for final
output (since I am usually sending the files to people for whom PDF is a
much more convenient format than PS or DVI), so this is really annoying.
I have to put gunk like this in my preamble:

\makeatletter
\ifx\pdfpagewidth\@undefined
\usepackage[dvips]{hyperref}
\else\ifnum\pdfoutput=\@ne
\usepackage[pdftex]{hyperref}
\else     
\usepackage[dvips]{hyperref}
\fi
\fi
\makeatother

It would be much better to behave the way geometry does: even if
given [dvips], that package checks for pdftex, and overrides the driver
option if it finds it.

-- Package-specific info:
##################################
minimal input file

# test.tex
\documentclass{article}
\usepackage[dvips]{hyperref}
\begin{document}
\url{http://example.com/}
\end{document}

##################################
other files

# test.log - pdflatex
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=pdflatex 2007.6.2)  12 JUN 2007 20:16
entering extended mode
 %&-line parsing enabled.
**test.tex
(./test.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo
File: size10.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/share/texmf-texlive/tex/latex/hyperref/hyperref.sty
Package: hyperref 2007/02/07 v6.75r Hypertext links for LaTeX

(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
\@linkdim=\dimen103
\Hy@linkcounter=\count87
\Hy@pagecounter=\count88

(/usr/share/texmf-texlive/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2007/02/07 v6.75r Hyperref: PDFDocEncoding definition (HO)
)
(/etc/texmf/tex/latex/config/hyperref.cfg
File: hyperref.cfg 2002/06/06 v1.2 hyperref configuration of TeXLive
)
(/usr/share/texmf-texlive/tex/latex/oberdiek/kvoptions.sty
Package: kvoptions 2006/08/22 v2.4 Connects package keyval with LaTeX options (
HO)
)
Package hyperref Info: Hyper figures OFF on input line 2288.
Package hyperref Info: Link nesting OFF on input line 2293.
Package hyperref Info: Hyper index ON on input line 2296.
Package hyperref Info: Plain pages OFF on input line 2303.
Package hyperref Info: Backreferencing OFF on input line 2308.

Implicit mode ON; LaTeX internals redefined
Package hyperref Info: Bookmarks ON on input line 2444.
(/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty
\Urlmuskip=\muskip10
Package: url 2005/06/27  ver 3.2  Verb mode for urls, etc.
)
LaTeX Info: Redefining \url on input line 2599.
\Fld@menulength=\count89
\Field@Width=\dimen104
\Fld@charsize=\dimen105
\Choice@toks=\toks15
\Field@toks=\toks16
Package hyperref Info: Hyper figures OFF on input line 3102.
Package hyperref Info: Link nesting OFF on input line 3107.
Package hyperref Info: Hyper index ON on input line 3110.
Package hyperref Info: backreferencing OFF on input line 3117.
Package hyperref Info: Link coloring OFF on input line 3122.
\Hy@abspage=\count90
\c@Item=\count91
\c@Hfootnote=\count92
)
*hyperref using driver hdvips*
(/usr/share/texmf-texlive/tex/latex/hyperref/hdvips.def
File: hdvips.def 2007/02/07 v6.75r Hyperref driver for dvips

(/usr/share/texmf-texlive/tex/latex/hyperref/pdfmark.def
File: pdfmark.def 2007/02/07 v6.75r Hyperref definitions for pdfmark specials
\pdf@docset=\toks17
\pdf@box=\box26
\pdf@toks=\toks18
\pdf@defaulttoks=\toks19
\Fld@listcount=\count93
))
No file test.aux.
\openout1 = `test.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 3.
LaTeX Font Info:    ... okay on input line 3.
Package hyperref Info: Link coloring OFF on input line 3.
(/usr/share/texmf-texlive/tex/latex/hyperref/nameref.sty
Package: nameref 2006/12/27 v2.28 Cross-referencing by name of section

(/usr/share/texmf-texlive/tex/latex/oberdiek/refcount.sty
Package: refcount 2006/02/20 v3.0 Data extraction from references (HO)
)
\c@section@level=\count94
)
LaTeX Info: Redefining \ref on input line 3.
LaTeX Info: Redefining \pageref on input line 3.
\@outlinefile=\write3
\openout3 = `test.out'.



Package hyperref Warning: Rerun to get /PageLabels entry.

LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 4.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 4.
[1
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!


Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!
Non-PDF special ignored!{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}
Non-PDF special ignored!
Non-PDF special ignored!] (./test.aux) ) 
Here is how much of TeX's memory you used:
 2159 strings out of 95086
 30691 string characters out of 1183256
 85333 words of memory out of 1500000
 5382 multiletter control sequences out of 10000+50000
 3808 words of font info for 15 fonts, out of 1200000 for 2000
 28 hyphenation exceptions out of 8191
 25i,5n,21p,162b,350s stack positions out of 5000i,500n,6000p,200000b,5000s
</usr/share/texmf-texlive/fonts/type1/b
luesky/cm/cmr10.pfb></usr/share/texmf-texlive/fonts/type1/bluesky/cm/cmtt10.pfb
>
Output written on test.pdf (1 page, 8005 bytes).
PDF statistics:
 14 PDF objects out of 1000 (max. 8388607)
 0 named destinations out of 1000 (max. 131072)
 1 words of extra memory for PDF output out of 10000 (max. 10000000)


######################################
 List of ls-R files

-rw-r--r-- 1 root root 890 2007-06-05 12:07 /var/lib/texmf/ls-R
-rw-r--r-- 1 root staff 1145 2007-06-05 12:10 /usr/local/share/texmf/ls-R
lrwxrwxrwx 1 root root 29 2007-04-19 15:25 /usr/share/texmf/ls-R -> /var/lib/texmf/ls-R-TEXMFMAIN
lrwxrwxrwx 1 root root 27 2007-06-02 21:26 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
lrwxrwxrwx 1 root root 27 2007-06-02 21:26 /usr/share/texmf-texlive/ls-R -> /var/lib/texmf/ls-R-TEXLIVE
######################################
 Config files
lrwxrwxrwx 1 root root 20 2007-04-19 15:25 /usr/share/texmf/web2c/texmf.cnf -> /etc/texmf/texmf.cnf
-rw-r--r-- 1 root root 4604 2007-06-02 21:30 /var/lib/texmf/web2c/fmtutil.cnf
-rw-r--r-- 1 root root 8317 2007-06-02 21:30 /var/lib/texmf/web2c/updmap.cfg
-rw-r--r-- 1 root root 4292 2007-06-02 21:30 /var/lib/texmf/tex/generic/config/language.dat
######################################
 Files in /etc/texmf/web2c/
total 4
-rw-r--r-- 1 root root 283 2007-01-14 23:53 mktex.cnf
######################################
 md5sums of texmf.d
25bf3a257a0bedb5c67349c3eaff74af  /etc/texmf/texmf.d/05TeXMF.cnf
5f7f6652cc8b8071c9e4ea6ba9e9f0a1  /etc/texmf/texmf.d/15Plain.cnf
e95ae4d6b002ade290425bd74a175a83  /etc/texmf/texmf.d/45TeXinputs.cnf
ea33127256c6a9f37145ae5b16fdb80c  /etc/texmf/texmf.d/55Fonts.cnf
15cd7cfba075d781fa71dfd994ca72ce  /etc/texmf/texmf.d/65BibTeX.cnf
9da7c1c7b1eaf06f941af91f48a23068  /etc/texmf/texmf.d/75DviPS.cnf
7ae52efac46feb97010986e57877d12e  /etc/texmf/texmf.d/80DVIPDFMx.cnf
7952e5392660042fb4b84e67a3b85463  /etc/texmf/texmf.d/85Misc.cnf
7e8f87acdeba48edac16d851c77b9e75  /etc/texmf/texmf.d/90TeXDoc.cnf
e3b19f249b562f21556a3ea2abc17678  /etc/texmf/texmf.d/95NonPath.cnf

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages texlive-latex-base depends on:
ii  texlive-base                  2007-9     TeX Live: Essential programs and f
ii  texlive-common                2007-9     TeX Live: Base component

texlive-latex-base recommends no packages.

Versions of packages tex-common depends on:
ii  debconf                       1.5.13     Debian configuration management sy
ii  ucf                           3.001      Update Configuration File: preserv

Versions of packages texlive-latex-base is related to:
pn  tetex-base                    <none>     (no description available)
pn  tetex-bin                     <none>     (no description available)
pn  tetex-extra                   <none>     (no description available)
ii  tex-common                    1.7        Common infrastructure for using an

-- debconf information:
  tex-common/check_texmf_wrong:
  tex-common/check_texmf_missing:



Reply to: