0

I am having warning issue as below:

enter image description here

I know is because of hyperref. I tried:

\section{text \texorpdfstring{{$J = \frac{1}{2}$}}}

Original is:

 \section{text {$J = \frac{1}{2}$}}

But is not working, it give:

enter image description here

My MWE:

\documentclass{article}
\usepackage{listings}
\usepackage{hyperref}
\usepackage{bookmark}
\usepackage{amsmath}

\begin{document}
\tableofcontents

\section{text {$J = \frac{1}{2}$}}

\end{document}
1
  • \texorpdfstring has two arguments, one for the print (tex) and the other for the bookmark (pdf): tex or pdf string. May 29 '20 at 11:08
2

Do the following

\section{text \texorpdfstring{$J = \frac{1}{2}$}{TEXT}{}}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.