6

I want to box, as an answer, an equation of the align* environment. Not sure how to do it.

\begin{align*} (1+2i)z_2&=-11(2-i)\\ z_2&=\dfrac{11(i-2)}{1+2i}\\ z_2&=11i \end{align*} 

I have tried \boxed{z_2&=11i}, but it failed.

2
  • load mathtools-package and use \Aboxed{} Commented Mar 30, 2016 at 9:09
  • 1
    If your box needs to span more than one alignment point in the future, then this question may be of use: tex.stackexchange.com/questions/223511/… Commented Mar 30, 2016 at 10:04

1 Answer 1

11

You can use the \Aboxed macro from the mathtools package to have a box around a single alignment point &, i.e. a single line in your case:

\documentclass[preview,border=10pt]{standalone} \usepackage{mathtools} \begin{document} \begin{align*} (1+2i)z_2&=-11(2-i)\\ z_2&=\dfrac{11(i-2)}{1+2i}\\ \Aboxed{z_2&=11i} \end{align*} \end{document} 

Output

2
  • 2
    This is for an individual line in an alignment, as far as I know. Commented Mar 30, 2016 at 9:16
  • @Bernard Yes, I thought that was what OP was after, seeing as he tried \boxed{...}. The frame around the output is added later, I will change that to make it clearer :) Commented Mar 30, 2016 at 9:18

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.