Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm forced to use a third-party document class that somewhat messes up the bookmarking done by hyperref (and the bookmark package): a spurious bookmark appears for 'author' (so I guess the package implements 'author' using a sectioning macro). Therefore, I would like to be able to disable bookmarking temporarily, in my case before the \maketitle command, and reenable it afterwards.

Is this possible using hyperref, or the bookmark package. (I'm currently using the latter to partly overcome the problem, using \bookmarksetup{startatroot}.)

share|improve this question
    
Please add a minimal example that illustrates your problem. –  Matthew Leingang Mar 15 '11 at 12:43
    
@Matthew: Ulrike pre-empted me and at the same time removed the dependence on the third-party document class; a really concise and to the point answer. –  equaeghe Mar 15 '11 at 17:11
add comment

1 Answer

up vote 6 down vote accepted

You could change bookmarksdepth:

\documentclass{article}
\usepackage{hyperref}
\begin{document}
\section{A}

\hypersetup{bookmarksdepth=-2}
\section{B}

\hypersetup{bookmarksdepth}%back to tocdepth

\section{C}

\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.