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}
3

1 Answer 1

24
\usepackage[bookmarksdepth=3]{hyperref}
1
  • 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, 2012 at 11:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .