5

I am writing a document and a section as a very long title troubling my header. To work around this, I am using the short title like this:

\section[bla]{blablabla}

This works fine for the header, but the pdf bookmark is now using the short title instead of the normal title. Is there anyway to fix this?

Here is the definition of the hyperref package:

\usepackage[pdftex,hyperindex=true]{hyperref}
\hypersetup{
bookmarksopen=true,
pdftitle={Title},
pdfauthor={Author},
pdfsubject={Blablabla},
pdfkeywords={},
pdfmenubar=true,
pdfhighlight=/O,
pdfpagemode=None,
pdfpagelayout=SinglePage,
pdffitwindow=true,
bookmarksopen=true,
hidelinks=true}
5

Macro \texorpdfstring can be used:

\section[\texorpdfstring{bla}{blablabla}]{blablabla}

An alternative is package hypbmsec.

| improve this answer | |

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.