Fix math in LaTeX PDF bookmarks
Give each expression a readable bookmark label while keeping the typeset heading.
Keep math in LaTeX headings and readable PDF bookmarks
A LaTeX section title can travel through two different paths. TeX typesets the title on the page. Hyperref also uses it for an outline label in the PDF. A math command in a section title can render as expected on the page while a symbol disappears from the outline.
A custom macro needs a label. TeX macros can carry meanings defined elsewhere in your project. The tool leaves their proposed labels blank for you to fill in. It does not expand project macros.