I am using math symbols in \section or \subsection. Therefore I need to use \texorpdfstring inside of \section or \subsection to show the math symbols properly. For example, my code \section{Proof of \texorpdfstring{$\mu=0$} is correct}. Here are my questions:
- Missing characters. Characters are missing by using my code
\section{Proof of \texorpdfstring{$\mu=0$} is correct}. It shows something as follows. The space and characteriis missing following\mu=0. I find a similar question How to use\texorpdfstring. Characters disappear. However, I still don't understand how to use\texorpdfstringproperly not just for this case but for general situations. According to the answer of the similar question mentioned above, "\texorpdfstringhas two arguments, the first is the normal TeX code, the second is a string, which can be used as replacement for the arbitrary TeX in the bookmarks." I still don't understand what the second argument is. What is to be put into the second argument? - Are there any official documents introducing
\texorpdfstring? I can't find one.




iis taken as the second. – egreg Oct 22 '23 at 07:50