0

When I use \tableofcontents it generates the toc within the PDF itself. I wonder how a toc can be generated for the PDF viewer, say with Preview on a Mac.

zmkm
  • 379

1 Answers1

1

With \usepackage{bookmark} you can achieve this.

\documentclass{article}
\usepackage{bookmark}

\begin{document} \section{Section 1}

    \subsection{Subsection 1}

        \subsubsection{Subsubsection 1}

\section{Section 2}

\end{document}

enter image description here

For more I suggest you check out: How to create PDF file with all your bookmarks displayed?

kcortini
  • 54
  • 3