Fix note and hint for long input

This commit is contained in:
Mark 2024-02-18 19:48:37 -08:00
parent acfb95831e
commit 89b75de9b0
Signed by: Mark
GPG Key ID: C6D63995FE72FD80

View File

@ -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}}