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

Robert Jäschke jaeschke at l3s.de
Thu Aug 16 09:22:40 CEST 2012


-----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?


Best regards,
Robert


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iF4EAREIAAYFAlAsn7sACgkQPycGMHQuamJRaQEAxeiAs1TQNAxBwJ9vIBABco8E
Yv91ayNmEWihWrZ8+d0A/1eZAtpk0JIGuZBC370Rmx1HPTDzEWbSRj40x0UbQfpU
=AVEK
-----END PGP SIGNATURE-----


More information about the tex-live mailing list