I use this preamble in order to show bookmarks on PDF generated from my .tex file.
This way, we could navigate through part, chapter, section and subsection (depending on our depth setting) using table of content sidebar of PDF reader.
code \usepackage{hyperref} \hypersetup{hidelinks,backref=true,pagebackref=true,hyperindex=true,colorlinks=false,breaklinks=true,urlcolor= ocre,bookmarks=true,bookmarksopen=true,bookmarksdepth=3,pdftitle={Title},pdfauthor={Author}} \usepackage{bookmark} \bookmarksetup{ open, numbered, addtohook={% \ifnum\bookmarkget{level}=0 % chapter \bookmarksetup{bold}% \fi \ifnum\bookmarkget{level}=-1 % part \bookmarksetup{color=ocre,bold}% \fi } }