When compiling a beamer presentation and using the following \author
command
\author{Name \\ \texttt{[email protected]}}
I get the following hyperref warning in my logfile
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\\' on input line 15.
Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref) removing `\new@ifnextchar' on input line 15.
I understand that this has to do with hyperref setting the PDF metadata, where the linebreak does’t make much sense and should be removed.
Trying to set
\hypersetup{pdfauthor={Name}}
does’t change the situation, seems like hyperref is still looking at the author command.
How do I get the desired display of author name with email and still keep hyperref happy?