[Tex/LaTex] IEEEtran class, conference option and pdfusetitle in hyperref

errorshyperrefieeetranstack

Consider the following:

\documentclass[conference]{IEEEtran}
\usepackage
%[pdfusetitle]
{hyperref}
\begin{document}
\title{A simple test}
\author{
\IEEEauthorblockN{Michael Shell}
\IEEEauthorblockA{My institution}
}
\maketitle
\end{document}

It is a correct use of the class IEEEtran, with the correct way to put the author and his institution in the conference mode of this class. This code can be compiled and provide the expected result.

However, if one uncomment the [pdfusetitle] line (which is a perfectly valid option of hyperref), one get a TeX capacity exceeded, sorry [parameter stack size=10000].

Does that deserve a bug report to the author or am I missing something ? Noting is said in the official documentation of IEEEtran regarding that option.

=============

Configuration :

  • TeX Live 2014
  • pdfTeX, Version 3.14159265-2.6-1.40.15
  • IEEEtran 2014/09/17 V1.8a
  • hyperref 2012/11/06 v6.83m

Best Answer

Another solution to avoid the problem explained by Clément is to use

\texorpdfstring{DOCUMENT_TEXT}{PDF_TEXT}

The content of the first argument will make its way directly in the document and the second corresponds to the field in the pdf meta information section.

Your example could then look like

\documentclass[conference]{IEEEtran}
\usepackage
[pdfusetitle]
{hyperref}
\begin{document}
\title{A simple test}
\author{%
    \texorpdfstring{%
        \IEEEauthorblockN{Michael Shell}
        \IEEEauthorblockA{My institution}
    }{%
        Michael Shell, My institution%
    }%
}
\maketitle
\end{document}

The same can also be applied to other fields (like \title).

Personally, I prefer this solution, because then I have all the information at one place (without the need of introducing any command).