I want to redefine the command \triangleleft
so that it always has the color green:
\let\oldtriangleleft\triangleleft
\renewcommand\triangleleft{\textcolor{green}{\oldtriangleleft}}
When I use the command $\bowtie$
, it complains "Missing { inserted." It is because \bowtie
is defined based on \triangleleft
? In that case, is there a fix?
Best Answer
IMHO it is not a good idea to re-define it. But if you have a reason for that:
\bowtie
is defined robustly asSo you can do the following:
Notice that I put the new
\triangleleft
inside\mathbin
to make it a binary operator, conserving the spacing of the original one.