Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'd like to hide the number of a specific section, but it's subsections should keep the right numbering, as should the labels and numbers that appear in the PDF's bookmarks (I think it's the hyperref package that does the bookmarks).

I was hopeful that the advice contained in the thread hide section numbering but continue adding-up would help, but the results I'm getting are similar to simply using the \section*{} variant.

Any suggestion?

share|improve this question
Please add a minimum working example of what you have so far. (I.e. prune what you've got down to as small as possible that still illustrates your problem, and add it to the question). The Q&A you reference should work correctly. –  Brent.Longborough Mar 3 '12 at 22:10
Thanks @Brent.Longborough, I sympathize with your suggestion, and I recognize I was a bit lazy, but that simply seemed to much trouble for such a simple thing :) I think I've figured it out now. –  Filipe Correia Mar 10 '12 at 21:54
add comment

2 Answers

You can use \stepcounter{section} which will increment the section counter by one, as demonstrated below

enter image description here



\section{Regular section}

\section*{Starred section}

Here is a reference to subsection \ref{ssec:test}
share|improve this answer
This uses roughly the same solution that I linked to. However, it does indeed solve the numbering issue. It doesn't solve the issue with the pdf bookmarks though... –  Filipe Correia Mar 10 '12 at 21:51
add comment
up vote 1 down vote accepted

Building upon @cmhughes' suggestion, I came to a solution that hides the section numbers, but still keeps the PDF bookmarks. The bookmark simply needs to be added manually.

This is the new command that I've defined for creating numberless section:

\newcommand{\nnsection}[1]{\stepcounter{section} \pdfbookmark[1]{\thesection #1}{#1} \section*{#1}}}
share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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