MakeIndex, Nomenclature, Glossaries and AcronymsPDF Bookmarking the index

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Post Reply
Cosmaniac
Posts: 2
Joined: Thu Feb 24, 2011 12:32 am

PDF Bookmarking the index

Post by Cosmaniac »

Hello all,

I'm a bit new here to LaTeX so I may be a bit naive in my description of the issue, but here goes:

Working on a 'book' style document where the major divisions are organized by parts.

When typesetting my LaTeX document, the \printindex command (I believe) automatically generates a pdf bookmark for the index. However, when viewing the resultant .pdf in Adobe the bookmark is nested in preceding part's bookmark. This results in a misleading organization as I'd like the index bookmark to be on the same 'level' of hierarchy as the parts. Is there anyway to 'separate' the index from the preceding part?

Related question: is there a way to bookmark the individual letter headings in the index? (Bookmark for the "A's," "B's," etc.?

Any advice would be extremely helpful and appreciated.

Thank you

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Frits
Posts: 169
Joined: Wed Feb 02, 2011 6:02 pm

PDF Bookmarking the index

Post by Frits »

Please provide a Minimal Working Example, as stated in the board rules.

The hyperref package will probably fix your first problem.
howtoTeX.com - Your LaTeX resource site (Tips, Tricks, Templates and more!)
Follow howtoTeX on twitter
Cosmaniac
Posts: 2
Joined: Thu Feb 24, 2011 12:32 am

PDF Bookmarking the index

Post by Cosmaniac »

Ah, ok, my apologies. Here's an example:

Code: Select all

\documentclass[11pt]{book}


\usepackage{makeidx}
\usepackage[pdftex,colorlinks=true, pdfstartview=FitV, linkcolor=blue, citecolor=blue,
urlcolor=blue,plainpages=false]{hyperref}
\usepackage{pdfcolmk}
\usepackage{graphicx}

\makeindex

\begin{document}

\part{Apples}
Apples are good
\index{Apple}

\part{Bananas}
Bananas are too
\index{Banana}
\chapter{Green Bananas}
Green ones are young
\index{Green}

\addcontentsline{toc}{part}{Index}
\printindex

\end{document}
OK, in doing all that I figured out my first concern. (the {part} argument of \addcontentsline fixed that). But does anyone know how to bookmark the individual letters of the index?
eajohnson
Posts: 2
Joined: Tue Jul 05, 2011 6:33 am

Re: PDF Bookmarking the index

Post by eajohnson »

Post Reply