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.

1

1 Answer 1

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .