Fix note and hint for long input
This commit is contained in:
parent
acfb95831e
commit
89b75de9b0
@ -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}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user