If you had given a complete
minimal working example, then the reader would know how to make the
\Aboxed
command available.
You could redefine the definition of the command by
Code: Select all
\makeatletter
\def\@Aboxed#1\ENDDNE{%
\ifnum0=`{}\fi \setbox \z@
\hbox{$\displaystyle#1{}\m@th$\kern\fboxsep \kern\fboxrule }%
\edef\@tempa {\kern \wd\z@ &\kern -\the\wd\z@ \fboxsep
\the\fboxsep \fboxrule \the\fboxrule }\@tempa
\fcolorbox{black}{yellow}{$\displaystyle #1#2$}% changed
}
\makeatother
In addition to
mathtools
, this source code also needs something like
xcolor
.
The
hf-tikz
package would be another way to color the equation.
Finally, a remark on the content of the equation: I don't understand why you use
\displaystyle
in the
align
environment.