[Tex/LaTex] How to Get Bookmarks on the Left Pane

bookmarks

I have seen several PDF documents which, when opened in adobe acrobat, gives bookmarks to every chapter, section and subsection in the left pane. Is there any easy way to generate such PDF files with LaTeX? I have an about 100 page document in report class. How do I modify the code to get bookmarks like that?

Best Answer

The hyperref package with option bookmarksopen=true can achieve what you want:

\documentclass{report}
\usepackage{lipsum} % random texts
\usepackage{hyperref}
\hypersetup{bookmarksopen=true}

\begin{document}
\section{Section 1}
\lipsum[1]
\section{Section 2}
\lipsum[1]
\section{Section 3}
\lipsum[1]
\end{document}
Related Question