From 89b75de9b03884a6172e7a389edf502fb897990d Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 18 Feb 2024 19:48:37 -0800 Subject: [PATCH] Fix note and hint for long input --- resources/ormc_handout.cls | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/resources/ormc_handout.cls b/resources/ormc_handout.cls index 12c7fa4..0dd7516 100755 --- a/resources/ormc_handout.cls +++ b/resources/ormc_handout.cls @@ -717,10 +717,11 @@ % Misc helper commands % % -------------------- % -\NewDocumentCommand{\note}{ d[] m }{ - \IfNoValueTF{#1} - {\textcolor{gray}{#2}} - {\textcolor{gray}{\textit{#1:} #2}} - \par +\NewDocumentCommand{\note}{ d[] +m }{ + \IfNoValueTF{#1}{% + \begingroup\color{gray}#2\endgroup% + }{% + \begingroup\color{gray}\textit{#1:} #2\endgroup% + }\par } -\newcommand{\hint}[1]{\note[Hint]{#1}} +\long\def\hint#1{\note[Hint]{#1}}