15

I've seen a couple of PDFs which have come of their bookmarks ("index" tab in most viewers) set either in italics, bold or both.

Googling around I found that the bookmark package is supposed to do this (I even used its \bookmarksetup{startatroot} command to have a bookmark to an unnumbered chapter before the first part of the document appear as it should) but I find the documentation a bit confusing.

I tried setting the style for the bookmarks with either

\bookmarksetup{italic}

and

\bookmarksetupnext{italic}

but it seems nothing happens.

Maybe it's a viewer issue (I'm using Evince 3.2.0 under Ubuntu right now).

Has anyone succeeded in this? how so?

0

1 Answer 1

12

According to the bookmark package documentation the font options for \bookmarksetup are bold (for bold bookmarks) and/or italic (for italics). There can be combined, if required. Here's an MWE with the output viewed in Adobe Acrobat Reader:

enter image description here

\documentclass{article}
\usepackage{bookmark}% http://ctan.org/pkg/bookmark
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\bookmarksetup{bold}% Default bold bookmarks
\begin{document}
\section{First section}
\lipsum[1]
\bookmarksetupnext{bold=false,italic}% Non-bold and italic bookmark only for next sectional unit
\subsection{A subsection}
\lipsum[1-2]
\section{Second section}
\lipsum[2]
\section{Last section}
\lipsum[3]
\end{document}
3
  • Definitely a viewer issue then, since I ran your MWE here and got no bold nor italic bookmarks. The MWE itself is usefulf :)
    – mpr
    Commented Nov 1, 2011 at 5:31
  • 1
    The default PDF viewer on Mac doesn't display this kind of formatting. This is usefull with Acrobt Reader viewer and maybe others...
    – projetmbc
    Commented Nov 1, 2011 at 10:56
  • @projetmbc, Evince, Okular and Foxit ignore the formatting of bookmarks completely, PDF-XChange viewer honors the color specification only.
    – alfC
    Commented Dec 31, 2012 at 4:33

You must log in to answer this question.

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