I have the following mwe. I see the correct section heading in the .pdf file but in the generated bookmark the math part is missing. Any help in fixing this is much appreciated.



\section{The value of \texorpdfstring{$x^{n}+y^{n}=z^{n}$}{} % 
is blah blah 


1 Answer 1


If you want something to appear in the PDF bookmark, you have to write it in the second argument of \texorpdfstring - for example

\texorpdfstring{$x^{n}+y^{n}=z^{n}$}{x\^{}n + y\^{}n = z\^{}n}

Note the second argument is just plain text, and the "trick" for getting a ^ character by putting the accent over "nothing" (i.e. the empty string {}).

  • Thank you very much. It worked. If I may ask, if I want to add another line to the title, like, "for $n \geq 1$", how can I achieve that ?
    – Eureka
    Jul 16, 2018 at 0:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .