[l2h] latex2html doesn't work anymore with tetex 3.0?

Robin Fairbairns Robin.Fairbairns at cl.cam.ac.uk
Tue Mar 15 18:34:15 CET 2005


> Ross Moore <ross at ics.mq.edu.au> さんは書きました:
> 
> > Hyperref is being loaded above with the  'hdvips'  driver.
> > This is wrong. It should now be the  hpdftex  driver.
> >
> > Your  hyperref.cfg  file should detect this.
> >
> >> /usr/share/texmf/tex/latex/hyperref/hyperref.cfg
> 
> After changing the file to look like this:
> 
> mfabian at magellan:/tmp$ cat /usr/share/texmf/tex/latex/hyperref/hyperref.cfg

this isn't right: hyperref.cfg is to be found on
texmf-dist/tex/latex/hyperref/hyperref.cfg in tetex 3.0; so you've got
something old leaking in there.

> \ProvidesFile{hyperref.cfg}%
>   [2002/06/06 v1.2 hyperref configuration of TeXLive and teTeX]
> % Change default driver to "dvips" instead of "hypertex",
> % requires hyperref 2002/06/05 v6.72s
> \providecommand*{\Hy at defaultdriver}{hpdftex}%
> \endinput

and that looks distinctly dodgy; you're running pdftex in dvi output
mode.  or rather, you're attempting to do so.  (the version
distributed with tetex 3.0 has hdvips as default.)

> mfabian at magellan:/tmp$
> 
> latex compiles the test file without error message:

oh no it doesn't.

> mfabian at magellan:/tmp$ latex test.tex
> This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
> entering extended mode
> (./test.tex
> LaTeX2e <2003/12/01>
> Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
> ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
> stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
> h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
> kish, ukrainian, nohyphenation, loaded.
> (/usr/share/texmf/tex/latex/base/article.cls
> Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
> (/usr/share/texmf/tex/latex/base/size10.clo))
> (/usr/share/texmf/tex/latex/graphics/color.sty
> (/usr/share/texmf/tex/latex/graphics/color.cfg)
> (/usr/share/texmf/tex/latex/graphics/dvips.def)
> (/usr/share/texmf/tex/latex/graphics/dvipsnam.def))
> (/usr/share/texmf/tex/latex/html/html.sty
> (/usr/share/texmf/tex/latex/hyperref/hyperref.sty
> (/usr/share/texmf/tex/latex/graphics/keyval.sty)
> (/usr/share/texmf/tex/latex/hyperref/pd1enc.def)
> (/usr/share/texmf/tex/latex/hyperref/hyperref.cfg)
> Implicit mode ON; LaTeX internals redefined
> (/usr/share/texmf/tex/latex/html/url.sty))
> *hyperref using default driver hpdftex*
> (/usr/share/texmf/tex/latex/hyperref/hpdftex.def

you really shouldn't be having that: you asked for latex, not pdflatex.

> (/usr/share/texmf/tex/latex/psnfss/pifont.sty
> (/usr/share/texmf/tex/latex/psnfss/upzd.fd)
> (/usr/share/texmf/tex/latex/psnfss/upsy.fd)))) (./test.aux)
> (/usr/share/texmf/tex/latex/hyperref/nameref.sty) (./test.out) (./test.out)
> [1
> Non-PDF special ignored!

and one of the packages you loaded believes it's running in latex,
which is why you're getting all these error messages.

> Non-PDF special ignored!{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}
> Non-PDF special ignored!
> Non-PDF special ignored!] (./test.aux) )</usr/share/texmf/fonts/type1/bluesky/c
> m/cmr10.pfb>
> Output written on test.pdf (1 page, 4840 bytes).
> Transcript written on test.log.
> mfabian at magellan:/tmp$ 
> 
> I'll try some bigger test files now ...

no: you should sort out the problems i've outlined above.

1. duff tex search paths, picking up hyperref.cfg from your previous
   tex implementation
2. something switching from latex to pdflatex

i've looked at the latex html.sty on ctan (2002-2-1), and i note the
following code:

\ifx\undefined\hyperref
 \ifx\pdfoutput\undefined \let\pdfunknown\relax
  \let\html at new=\newcommand
 \else
  \ifx\pdfoutput\relax \let\pdfunknown\relax
   \RequirePackage{hyperref}\let\html at new=\renewcommand
  \else
   \RequirePackage{hyperref}\let\html at new=\newcommand
  \fi
 \fi
\else
 \let\html at new=\renewcommand
\fi

now, in a modern latex, \pdfoutput is always going to be a primitive,
so the above is never going to believe it's running plain latex even
when it is.  the check should "\pdfoutput defined && \pdfoutput>0" --
this was always the case, except now it bites everyone rather than
people who do marginal things.

it may be that there's something newer than 2002-2-1, but my mirror's
not picked it up (latex2html gets into ctan via the cambridge node).
whatever, whoever writes this stuff should look at
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=ifpdf if they've not
already tidied up the above code.

robin



More information about the latex2html mailing list