0

I have problem in bookmark. For example

\section{fraction $\frac{a}{b}$}

in bookmark is not true! Please help me.

1
  • 1
    Welcome to TeX.SE! Please show us a short, compilable code resulting in your issue and add the complete error message to your question.
    – Mensch
    Apr 8, 2018 at 13:20

1 Answer 1

2

Bookmarks are simple text strings. Macro \texorpdfstring can be used to specify the outcome on a PDF page and the string for the bookmarks:

\documentclass{article}
\usepackage{hyperref}
\usepackage{bookmark}
\begin{document}
  \section{Fraction \texorpdfstring{$\frac{a}{b}$}{a/b}}
\end{document}

There are lots of duplicates that provide more details, e.g.:

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