2

Can someone help me with the following question?

I'm writing an equation like this:

\begin{align*}
   a =& b - c \\
     -& d - e
\end{align*}

How can I put a box around the part

b - c \\
d - e

Thanks.

4
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[\begin{array}{r@{}|l|}
\cline{2-2}
a =& b - c \\
     -& d - e\\
\cline{2-2}
\end{array}
\]
\end{document}

enter image description here

  • Thanks so much! – GMa Aug 23 at 23:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.