16

I am hiding subsubsections in my TOC because they got too many. But I would like them to show up in the navigation when viewing the document as PDF anyway. Is there any way to do this, and how?

\documentclass{article}
\usepackage[pdfdisplaydoctitle=true,pdfstartview={FitB},bookmarksopen,colorlinks=true]{hyperref}
\setcounter{tocdepth}{2}
\begin{document}
\tableofcontents
\section{Section}
\subsection{Subsection}
\subsubsection{Subsection}
\paragraph{Paragraph}
\end{document}
22
\usepackage[bookmarksdepth=3]{hyperref}
  • 1
    Oh wow, this is golden! Now I can even set that to 4, so the paragraphs show up, too, while still keeping the TOC clean and small. Thank you so much! :) – Florian Peschka Aug 27 '12 at 11:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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