TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I hide section number in section heading ? I can't just use \section*{xxxx}, because I want subsections numbered correctly. I also tried :


Which hides section number and keeps subsection numbers. Unfortunately this solution also hides section in table of contents, which is undesirable.

Next attempt was :


However this made numbering of subsections continue on and on instead of reseting at new section. So what can I do to make it behave as normal, just not showing section numbers ? Thanks!

share|improve this question

migrated from stackoverflow.com Nov 2 '12 at 13:51

This question came from our site for professional and enthusiast programmers.

up vote 18 down vote accepted

I think your best bet is to redefine \thesection, which is the macro that normally prints the section number.


If you want subsection numbers to include the section numbers that aren't getting printed, you will also need to redefine \thesubsection, which normally calls \thesection:

share|improve this answer
Ok works well in hiding section number.Problem with this command is that it also hides section number in subsection numbering, which I want to keep so subsections are numbered like .1 .2 .3 and so on. – slezadav Oct 30 '12 at 14:30
See edit - I thought of that right after I hit save :) – zwol Oct 30 '12 at 14:30
Great, exactly what I was looking for. Will accept ASAP. Thanks a lot ! – slezadav Oct 30 '12 at 14:31
Don't do this; there's most likely a package for that. – Martin Schröder Nov 1 '12 at 13:37

Redefining \thesection is not sufficient. This will do better: the section title will be aligned to the left margin and not indented; in the table of contents, the section title will appear horizontally aligned to the chapter titles.


\def\@seccntformat#1{\csname #1ignore\expandafter\endcsname\csname the#1\endcsname\quad}

\subsection{Here we are}



share|improve this answer

If you're using a KOMA-script document class (e.g., scrartcl), then for normal behaviour, just not showing section numbers, include in your preamble


This also works for \chapterformat (if you're using scrbook or scrreport), \partformat, all the way down to \subparagraphformat.

The counter counts the section despite the number label not being shown, so TOC, PDF bookmarks, and subsection numbering all operate as they should (tested with hyperref and bookmark packages loaded.)

share|improve this answer

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.