2

I am using the commands

\usepackage{hyperref}

\hypersetup{pdftex,colorlinks=true,allcolors=black}

\usepackage{hypcap}

to create clickable links in the index and references, and also to create an index in the bookmarks tab in .pdf readers.

It works as intended except for the fact that math symbols don't display right, they show something close to the tex code. Is there any way to fix this?

This what happens:

enter image description here

Red arrows should be $\sigma(E,E^*)$ and $W^{1,p}_0(\Omega)$. You get the point.

8

Not any character is possible in a PDF bookmark -- Unicode is supported but this requires a different setup of the content of bookmarks. This can be achieved with \texorpdfstring{TeX content}{pdf content}

\documentclass{article}


\usepackage{textgreek}
\usepackage{hyperref}

\hypersetup{pdftex,unicode,colorlinks=true,allcolors=black}

\usepackage{hypcap}


\begin{document}
\section{Foo \texorpdfstring{$\sigma(E,E^*)$}{\textsigma(E,E\textsuperscript{*})}}
\end{document}
  • 1
    There might still be some complaints – user31729 Jun 27 '16 at 12:00
  • Thanks, that worked. Could you explain me how to write $W^{1,p}(\Omega)$ ? I am trying using \textsuperscript{1,p} but it doesn't work. – D1X Jun 27 '16 at 21:20
  • @D1X: I will update later on – user31729 Jun 28 '16 at 19:21
  • @D1X: The \textsuperscript will not work here at all. The best you you can achieve is \textsuperiorone etc. – user31729 Jul 8 '16 at 21:15

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.