On 17/11/2025 00:08, Ihor Radchenko wrote:
\section[$\backslash$\texorpdfstring{\(\psi\)}{psi} should
wrap]{$\backslash$\texorpdfstring{\(\phi\)}{phi} wraps}
Notice that you do not need alternative title to reproduce the issue
with PDF outline raised by Pedro. You may drop square brackets. It is
easier to discuss the problem with a minimal example.
I am a bit surprised that hyperref can not get text representation after
expansion of commands. Adding \texorpdfstring alternative for every Org
entity will be tedious.
Perhaps the limitation related to LaTeX snippets and entities in headers
should be mentioned in the manual. Anyway for formulas it is
responsibility of the user to provide plain text fallback.
ALT_TITLE property is another layer of this issue.