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}
\addtocounter{section}{1}
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!
Best Answer
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
: