In my thesis, I have math/Greek expressions in some of my section headings.
I am given the error message:
Token not allowed in PDF string. I found \textorpdfstring{} from similar questions posted, and although it works in the final PDF, I would prefer to not have the error.
\subsection{\textorpdfstring{$E1$} transitions in and out of the
\textorpdfstring{$\kappa$} band}
Thanks!
\texorpdfstringtakes two arguments, not just one. The command name stands for "TeX (commands) or PDF string". You should use, for example,\textorpdfstring{$\kappa$}{k}. – Phelype Oleinik Sep 28 '18 at 00:51hyperref. – Henri Menke Sep 28 '18 at 04:00