Document Classeselsarticle | Problem with 'hyperref' Package

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
dungchu
Posts: 2
Joined: Mon Aug 15, 2011 5:48 pm

elsarticle | Problem with 'hyperref' Package

Post by dungchu »

Hi all.

I am using the document class elsarticle (standard class for elsevier journals). It works very smoothly until I include the hyperref package, which gives the following error:
! Argument of \x has an extra }.
<inserted text>
\par
...\@latex@\@nil{author}

I tried to make a clean compile (without any auxiliary files), but it still gave the error.

Has anyone encountered this problem before? Any suggestion will be very much appreciated.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10330
Joined: Mon Mar 10, 2008 9:44 pm

elsarticle | Problem with 'hyperref' Package

Post by Stefan Kottwitz »

Hi dungchu,

welcome to the board!

elsarticle works with hyperref. This small document can be compiled without error:

Code: Select all

\documentclass{elsarticle}
\usepackage{hyperref}
\begin{document}
text
\end{document}
So the problem is somewhere hidden in your code, perhaps in your preamble. You could post at least your preamble or, even better, a minimal example (like I did) created from your code which produces that error. Once we can produce the error, we can fix it.

Stefan
LaTeX.org admin
dungchu
Posts: 2
Joined: Mon Aug 15, 2011 5:48 pm

Re: elsarticle | Problem with 'hyperref' Package

Post by dungchu »

hi Stefan.

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.

Lots of appreciation.

Dung
Post Reply