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

Robert Jäschke jaeschke at l3s.de
Mon Aug 20 12:21:16 CEST 2012


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

Hello Heiko,

On 17.08.2012 10:29, Heiko Oberdiek wrote:
[...]
> Workaround, if package hyperref is loaded and \doi is undefined:
> 
> \documentclass{elsarticle}
> 
> \usepackage{hyperref}
> 
> \makeatletter
> \providecommand{\doi}[1]{%
>   \begingroup
>     \let\bibinfo\@secondoftwo
>     \urlstyle{rm}%
>     \href{http://dx.doi.org/#1}{%
>       doi:\discretionary{}{}{}%
>       \nolinkurl{#1}%
>     }%
>   \endgroup
> }
> \makeatother
> 
> \begin{document}
> 
> \cite{test2012test}
> 
> \bibliographystyle{elsarticle-num-names}
> \bibliography{test}
> 
> \end{document}

Many thanks for all the good explanations (also from Valdimir and
Zdenek) and for this particular workaround. I will contact Elsevier and
let them know about the problem and its solution.


Best regards,
Robert

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

iF4EAREIAAYFAlAyD5gACgkQPycGMHQuamJYOQEAhcPiQHFSJvVTe7ar7Cq9gSj2
YiKICOkYsv7tp9dE8fAA/2/1ahbH7gUPBBQO3/Mf+9BCDB6AjZy08/MFPvbHc9IC
=EN7v
-----END PGP SIGNATURE-----


More information about the tex-live mailing list