diff --git a/resources/ormc_handout.cls b/resources/ormc_handout.cls index 7d22ccd..9f95669 100755 --- a/resources/ormc_handout.cls +++ b/resources/ormc_handout.cls @@ -457,12 +457,17 @@ \protected@write\@auxout{}{\string\newlabel{#1}{{#2}{}}}% } +% Starred sections are not numbered. \newcounter{section_counter} -\NewDocumentCommand{\section}{ m d<> }{ - \stepcounter{section_counter} +\NewDocumentCommand{\section}{ s m d<> }{ + \IfBooleanF{#1}{\stepcounter{section_counter}} \vspace{4mm} - {\bf\Large \hfill Part \arabic{section_counter}\IfNoValueF{#1}{: #1} \hfill} - \IfNoValueF{#2}{\@customlabel{#2}Part \arabic{section_counter}} \\* + \IfBooleanTF{#1}{% + {\bf\Large \hfill \IfNoValueTF{#2}{Unnamed Section}{#2} \hfill\null}% + }{% + {\bf\Large \hfill Part \arabic{section_counter}\IfNoValueF{#2}{: #2} \hfill\null}% + \IfNoValueF{#3}{\@customlabel{#3}Part \arabic{section_counter}}% + } \\* \vspace{2mm} }