[texhax] Simple question?

Ian Collier imc at comlab.ox.ac.uk
Sat Sep 6 18:27:15 CEST 2003


Probably Robin Fairbairns typed into a real computer:
>  \newcounter{savesecnum}
>  ...
>  \setcounter{savesecnum}{\value{secnumdepth}}
>  \setcounter{secnumdepth}{0}
>  \section{title}
>  \setcounter{secnumdepth}{\value{savesecnum}}

>(unfortunately, it has to be this convoluted, because \setcounter is a
>global operation.)

It doesn't if you're prepared to go to a slightly lower level...

\section{A numbered section}
{\makeatletter\c at secnumdepth=0 \section{An unnumbered section}}
\section{Another numbered section}
-- 
---- Ian Collier : imc at comlab.ox.ac.uk : WWW page below
------ http://users.comlab.ox.ac.uk/ian.collier/imc.shtml


More information about the texhax mailing list