The code below results in the following warning: "Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): removing '\translate' on input line 16."
(Note: line 16 is the blank line immediately following \appendix
.)
This warning occurs even if I remove the supplemental slide and leave \appendix
as the last line before \end{document}
. The warning does not occur if I remove the appendix entirely. The .pdf file produced is apparently correct, but I'd like to be able to include an appendix without encountering the warning.
I looked through the previously answered questions and found references to the \texorpdfstring
command, but I couldn't seem make it work in this case. Has anyone found a solution, or can anyone point me to a previously answered question that I may have missed? Thanks!
\documentclass{beamer}
\title{The Title}
\author{The Author}
\begin{document}
\begin{frame}
\titlepage
\end{frame}
\section{First Section}
\begin{frame}\frametitle{First Section}
This is a slide.
\end{frame}
\appendix
\section{Appendix}
\begin{frame}\frametitle{Supplemental Material}
This is a supplemental slide.
\end{frame}
\end{document}
\appendix
inbeamerbasesection.sty
which uses\part{\appendixname}
and\appendixname
is defined inbeamerbasemisc.sty
as\translate{Appendix}
.