From 790cd77e875662015637693eac5d78a05dff0db8 Mon Sep 17 00:00:00 2001 From: mark Date: Mon, 16 Oct 2023 15:06:02 -0700 Subject: [PATCH] Minor fixes --- resources/ormc_handout.cls | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/resources/ormc_handout.cls b/resources/ormc_handout.cls index af9606c..ea7c0ac 100755 --- a/resources/ormc_handout.cls +++ b/resources/ormc_handout.cls @@ -481,6 +481,7 @@ % Starred sections are not numbered. \newcounter{section_counter} \NewDocumentCommand{\section}{ s m d<> }{ + \par \IfBooleanF{#1}{\stepcounter{section_counter}} \vspace{4mm} \IfBooleanTF{#1}{% @@ -495,6 +496,7 @@ % Generic object. % Same format as \problem, \theorem, etc, but has no counter. \NewDocumentCommand{\generic}{ m d<> }{ + \par \vspace{3mm} {\bf\normalsize #1} \\* \IfNoValueF{#2}{\@customlabel{#2}{#1}} @@ -540,13 +542,13 @@ \setcounter{problempartcounter}{0} \stepcounter{\@problemcounter} \generic{Problem \arabic{\@problemcounter}:\IfNoValueF{#1}{ #1}} - \IfNoValueF{##2}{\@customlabel{num:#2}{\arabic{\@problemcounter}}} + \IfNoValueF{#2}{\@customlabel{num:#2}{\arabic{\@problemcounter}}} \IfNoValueF{#2}{\@customlabel{#2}{Problem \arabic{\@problemcounter}}} } \NewDocumentCommand{\problempart}{ m d<> }{ \stepcounter{problempartcounter} \generic{Part \arabic{problempartcounter}:\IfNoValueF{#1}{ #1}} - \IfNoValueF{##2}{\@customlabel{num:#2}{\arabic{problempartcounter}}} + \IfNoValueF{#2}{\@customlabel{num:#2}{\arabic{problempartcounter}}} \IfNoValueF{#2}{\@customlabel{#2}{Problem \arabic{\@problemcounter}.\arabic{problempartcounter}}} }