# [Tex/LaTex] Hide section numbers, but keep numbering

numberingsectioning

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 :

\section*{xxxx}
\stepcounter{xxxx}


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

Next attempt was :

\chapter{}
\section*{xxxx}


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!

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

\renewcommand\thesection{}


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:

\makeatletter
\renewcommand\thesection{}
\renewcommand\thesubsection{\@arabic\c@section.\@arabic\c@subsection}
\makeatother