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}
yo'
  • 51,322
TazgerO
  • 297

1 Answers1

5

Macro \texorpdfstring can be used:

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

An alternative is package hypbmsec.

Heiko Oberdiek
  • 271,626