2

This question already has an answer here:

I'm producing a small document where only unnumbered subsections and levels below are used, and would like PDF bookmarks to be created for them.

I tried hyperref and bookmark packages and did not find any option for this. How do I make it automatically generate such bookmarks? What's the most elegant way of doing this?

Update: corrected inaccurate question statement. Sorry.

marked as duplicate by Werner, Heiko Oberdiek, Henri Menke, user31729, Gonzalo Medina May 3 '14 at 17:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Why don't you use \section and change it so that is looks like you want it? – Ulrike Fischer May 2 '14 at 9:01
  • Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – user31729 May 2 '14 at 9:22
  • Good call. Turns out I actually just need to use \setcounter{secnumdepth}{0} to suppress numbering and preserve the toc and bookmark entries. – user3509165 May 3 '14 at 17:07
2

A possible solution (possible, since it is not quite clear what the problem might be)

\documentclass{article}

\usepackage[bookmarksopen=true,bookmarksopenlevel=4]{hyperref}

\usepackage{bookmark}

\begin{document}

\subsection{First}
\subsubsection{Below first}
\subsection{Second}

\end{document}

enter image description here

Not the answer you're looking for? Browse other questions tagged or ask your own question.