[tex-live] problem with elsarticle.cls and hyperref

Vladimir Lomov lomov.vl at gmail.com
Fri Aug 17 08:58:12 CEST 2012


Hello,

** Robert Jäschke [2012-08-16 09:22:40 +0200]:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256

> Hello,

> I am having trouble to typeset a document with the elsarticle class in
> combination with the hyperref package.

> After the first run of pdflatex and a subsequent run of bibtex, a run of
> pdflatex produces the following output:

>> This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
> [...]
>> Document Class: elsarticle 2009/09/17, 1.2.0: Elsevier Ltd
> [...]
>> (./test.out) (./test.out) (./test.bbl
>> ! Undefined control sequence.
>> <argument> \let \bibinfo at X@doi
>>                                {10.1073/pnas.98.2.404}
>> l.12  \doi{\bibinfo{doi}{10.1073/pnas.98.2.404}}
>>                                                 .
>> ?

> The input files are the following:

> - --- file: test.tex ----------------------------------
> \documentclass{elsarticle}
> \usepackage{hyperref}

> \begin{document}

> \cite{test2012test}

> \bibliographystyle{elsarticle-num-names}
> \bibliography{test}

> \end{document}
> - -----------------------------------------------------

> - --- file: test.bib ----------------------------------
> @article{test2012test,
>   doi = {10.1073/pnas.98.2.404},
> }
> - -----------------------------------------------------

> If I remove the hyperref package, everything works fine. I am assuming
> that this is a TeXLive bug, since a search on the web brought me to
> http://www.latex-community.org/forum/viewtopic.php?f=4&t=14622
> where a similar problem is described and solved by switching to MikTeX:

>> Thanks a lot for your post. It helped me to figure out that the
>> problem is that I am using TeXLive. When I switch to MikTeX, it works
>> perfectly.

> Unfortunately, this is not an option for me. Can you confirm that this
> is a TeXLive bug? Are there any workarounds besides not using the
> hyperref package?

That's not a TeX Live bug and it is even not a bug, it is a "feature" of
hyperref package (only Heiko Oberdiek has the last word here: a bug or a
feature).

I checked your example with TeX Live 2010, 2011. 2012 and MikTeX 2.9: all
fail (6.82g, 6.82p, 6.82y and 6.82y).

Details: hyperref package redefines many macros, `\url' is one of such
macros.

> Best regards,
> Robert

---
WBR, Vladimir Lomov

-- 
I've only got 12 cards.


More information about the tex-live mailing list