From 3c84c908d21fbb57f82097b85b2fc9e63e662439 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 3 Oct 2023 11:28:56 -0700 Subject: [PATCH] Added `num` labels --- resources/ormc_handout.cls | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/ormc_handout.cls b/resources/ormc_handout.cls index 8c826f1..af9606c 100755 --- a/resources/ormc_handout.cls +++ b/resources/ormc_handout.cls @@ -507,6 +507,7 @@ \stepcounter{#2} \generic{#3 \arabic{#2}:\IfNoValueF{##1}{ ##1}} \IfNoValueF{##2}{\@customlabel{##2}{#3 \arabic{#2}}} + \IfNoValueF{##2}{\@customlabel{num:##2}{\arabic{#2}}} } } @@ -539,11 +540,13 @@ \setcounter{problempartcounter}{0} \stepcounter{\@problemcounter} \generic{Problem \arabic{\@problemcounter}:\IfNoValueF{#1}{ #1}} + \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{#2}{Problem \arabic{\@problemcounter}.\arabic{problempartcounter}}} }