[OS X TeX] bookmarks in PDFs without hyperref?

Bruno Voisin bvoisin at mac.com
Mon Feb 7 18:42:37 EST 2005

Le 5 févr. 05, à 23:19, Gary L. Gray a écrit :

> I would like to be able to insert booksmarks in PDF files without 
> using the hyperref package. The reason I don't want to (can't?) use 
> the hyperref package is that it conflicts with something else I am 
> doing in the document in question (it loads 25-30 packages and we have 
> defined a ton of our own stuff) and I can't figure out what that 
> conflict is. Anyway, the hyperref package does way more than I need in 
> this instance and I only want to insert bookmarks for each chapter, 
> section, and the like. I assume that it is just inserting some sort of 
> PDF special into the output, so is there some way I can do that by 
> inserting something into my LaTeX source files at the right place?

In my (limited) experience with hyperref, it seems the only solution is 
to load hyperref, then play with all its possible options (among the 
multitude of them) to disable all the features you don't need and go 
back to LaTeX's defaults for these features. Often this can't even be 
done, and you need to redefine commands from hyperref itself. Moreover, 
beware: depending on how high- or low-level they are, the hyperref 
commands are defined either in hyperref.sty or in the driver files 
hdvips.def (for dvips) or hpdftex.def (for pdfTeX).

The one time I had to do this, I ended up redefining more than a 
hundred lines of hyperref internals, to got a specific page layout and 
to prevent hyperref from conflicting with other packages. All in all, 
that meant between three and five days of work full-time.

Good luck,

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>

More information about the MacOSX-TeX mailing list