Closed vepain closed 2 years ago
AFAIK the coloring breaks \left
etc as they cannot see the delimiter they need to act on.
You problably need something similar to
{\color{red}\abs*{\color{black} A\color{red}}}
(untested), wrapped into a macro of course.
I just posted an answer at stackexchange basically same as @daleif's comment above which I now see, I suggest this is closed here I don't think this can be addressed in mathtools
Thank you all! I marked this answer as the correct one: https://tex.stackexchange.com/a/658946/232319 I close this issue
Hello everyone,
First I want to thank
mathtools
package maintainers.Issue Description
The issue is about declaring paired delimiters with
\DeclarePairedDelimiter(X)
: if I want to e.g. colour the delimiters (with defining a new command), themathtools
won't work.MWE:
The compiler raises this:
Missing delimiter (. inserted).
You can test with other custom commands: if the delimiter in the
\newcommand{\absdelim}
is formatted by another command, the compiler won't run.Question
Is there a trick to format delimiters (perhaps using
<post>
\DeclarePairedDelimiterX
's optional argument or by using\DeclarePairedDelimiterPPX
command)?Have a nice day!
this issue is a duplicate of this one: https://tex.stackexchange.com/questions/658942/declare-custom-formatting-delimiters-mathtools