I am trying to get the last equation in a list of aligned equations boxed, however this is more challenging than I thought it might be. I would like to be able to do it with the box both including the equation number and without. Below are my current simple methods for framing equations. Any input is welcome and appreciated.
\documentclass{article}
\usepackage{amsmath}
\usepackage{mdframed}
\usepackage{empheq}
\begin{document}
Blah blah blah.
\begin{mdframed}
\begin{align}
1+2&=3\\
1+2+3&=6
\end{align}
\end{mdframed}
Blah blah blah.
\begin{empheq}[box=\fbox]{align}
1+2&=3\\
1+2+3&=6
\end{empheq}
\end{document}


mathtoolsorempheq, you don't have to loadamsmath. – Bernard Oct 03 '18 at 18:44