Fix note and hint for long input
This commit is contained in:
parent
acfb95831e
commit
89b75de9b0
@ -717,10 +717,11 @@
|
|||||||
% Misc helper commands %
|
% Misc helper commands %
|
||||||
% -------------------- %
|
% -------------------- %
|
||||||
|
|
||||||
\NewDocumentCommand{\note}{ d[] m }{
|
\NewDocumentCommand{\note}{ d[] +m }{
|
||||||
\IfNoValueTF{#1}
|
\IfNoValueTF{#1}{%
|
||||||
{\textcolor{gray}{#2}}
|
\begingroup\color{gray}#2\endgroup%
|
||||||
{\textcolor{gray}{\textit{#1:} #2}}
|
}{%
|
||||||
\par
|
\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