# Hide subsubsections in toc, but show in PDF

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}
\setcounter{tocdepth}{2}
\begin{document}
\tableofcontents
\section{Section}
\subsection{Subsection}
\subsubsection{Subsection}
\paragraph{Paragraph}
\end{document}

• That's what I'm using to thide them from the TOC. But I want them to show up in the PDF anyway
– F.P
Aug 27 '12 at 11:29
– kan
Aug 27 '12 at 11:32
• Related Question: How to show subsections and subsubsections in TOC?. Feb 28 '16 at 11:12

\usepackage[bookmarksdepth=3]{hyperref}

• 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