I don’ think there’s a finished macro/package for that but you can increment the counter either with \stepcounter{section}
or with \refstepcounter{section}
which increments the counter and updates the belonging \ref
-lables.
So If you need a command for this try
\newcommand{\unnumsec}[1]{\refstepcounter{section}\section*{#1}}
or if you’re using KOMA-Script
\newcommand{\unnumsec}[1]{\refstepcounter{section}\addsec{#1}}
The main difference between \section*
and \addsec
is that the latter also sets the headmarks and generates a ToC entry, where \section*
only prints text formatted like the section headline. (See the scrguien.pdf [or the german scrguide] for more information about \addsec
command)
KOMA
? Then you can useaddchap
oraddsec
\setcounter{section}{12}
allows me to set the counter manually. But I'm looking for a more comfy way to only hide the number or even better allow me to place the number in the heading manually or leave it completly out.\addchap
does.