How do I place a boxed equation on the same line as other equations?

For example, I have a few equations on the left side of my page but then I want the boxed answer on the same line to the right.


One way would be to use \hfill.




enter image description here


You can use the flalign* environment:



         & ax^2 + bx + c = 0 & & \boxed{x = \frac{-b\pm\sqrt{b^2-4ac}}{2a}}


enter image description here

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.