I have the following environment taking four arguments, the latter two being optional. Things look as expected. Would I have to test for #4 in my case ?
\NewDocumentEnvironment{Statement}{mmoO{orange}}
{
\IfNoValueTF {#3}
{ \noindent #1 \ #2 \, }
{ \noindent #1 \ #2 \ (#3)
\vspace{0.1cm} \par \noindent \ignorespaces }
\color{#4}
}
{ \vspace{0.3cm} }
%at ends of lines to avoid adding white space. – David Carlisle Oct 10 '23 at 16:56