I have an \amsmath
aligned
environment containing some equations aligned with &=
. I want to be able to place underbraces between the equations in such a way that that both the contents and “point” of the brace can be easily specified, with the rest of the equation aligned/shifted accordingly. The spacing between the brace and the equations should be uniform. Here's a mockup of what I'd like:.
I need to be able to stack an arbitrary number of such equations/braces. The next line would be an &= 3
with an underbrace indicating that the 1+2 was reduced to the 3.
Basic code for the equations with no braces is:
\documentclass[a4paper]{article}
\usepackage{amsmath}
\begin{document}
$\begin{aligned}
1 + 1 + 1 &= 1 + 1 + 1 \\
&= 1 + 2
\end{aligned}$
\end{document}