GeneralBold, coloured bookmarks — can I set style in the preambula?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
neGODnick
Posts: 35
Joined: Mon Jun 16, 2008 9:31 pm

Bold, coloured bookmarks — can I set style in the preambula?

Post by neGODnick »

Hi!

I become acquainted with bookmark package and I found it very nice to design modern interactive PDF documents.

Now I use black bold bookmarks for general document hierarchy (parts, chapters, sections), bold red bookmarks for navigation pages and ordinary style for other ones (see attached screenshot).

My question:
Is there any way to set bookmark global style in the preambula for all kinds of entires, as I described? I mean some new commands, /def's for chapnername etc. Or only way is to write code for every one in the document body:

Code: Select all

\bookmarksetup{bold,color=red165}
\pdfbookmark{Contents}{Tableofcontents}
\tableofcontents{}
...
\bookmarksetup{bold,color=[rgb]{0,0,0}}
\chapter{One}
\bookmarksetup{bold=false} 
...
\section{\texorpdfstring{First}{First}}  
\bookmarksetup{color=[rgb]{0,0,0}} 
...
\bookmarksetup{bold,color=red165}
\addcontentsline{toc}{chapter}{\indexname}
\printindex{}
Attachments
bookmark-style_in_pdf.png
bookmark-style_in_pdf.png (5.35 KiB) Viewed 1695 times
Do not move your cursor near double underlined links — they are POPUP-ADs!!!
Избегайте попадания курсора на «ссылки» с двойным подчёркиванием — это ВСПЛЫВАЮЩАЯ РЕКЛАМА!!!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply