Hi all, Background: I am always loading the hyperref package in my latex exports. That one complains (warns) about math in headings. ("Token not allowed in a PDF string")
The proposed solution in LaTeX is to use \texorpdfstring{}{}. I've used that successfully in the past also from org. As it seems that stopped working as the {}{} get escaped now during export. So, here is my question: How do I use \texorpdfstring correctly in an org heading? And here is a minimal example: --8<---------------cut here---------------start------------->8--- #+latex_header: \usepackage{hyperref} * This contains \texorpdfstring{$\prod_{k=1}^N$}{product 1toN} math For some reason. --8<---------------cut here---------------end--------------->8--- which exports to --8<---------------cut here---------------start------------->8--- \section{This contains \texorpdfstring\{\$\(\prod_{\text{k=1}}^{\text{N}}\)\$\}\{product 1toN\} math} \label{sec-1} For some reason. --8<---------------cut here---------------end--------------->8--- Thanks, Andreas