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.
Asked
Active
Viewed 574 times
0
zmkm
- 379
-
2if you mean bookmarks: load either hyperref or the bookmark package. – Ulrike Fischer Mar 28 '22 at 21:49
-
@UlrikeFischer that worked, tks++ – zmkm Mar 28 '22 at 21:53
1 Answers
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}
For more I suggest you check out: How to create PDF file with all your bookmarks displayed?
kcortini
- 54
- 3
