17

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}
F.P
  • 789

1 Answers1

24
\usepackage[bookmarksdepth=3]{hyperref}
Ulrike Fischer
  • 327,261
  • 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! :) – F.P Aug 27 '12 at 11:37