I use the code below to make a box around equations. It puts the equations numbers outside the box, however I would like to have the equation numbers within the box.
How can I alter my code to do this? Thanks in advance.
\documentclass[11pt]{report}
\usepackage{empheq}
\newcommand*\widefbox[1]{\fbox{\hspace{2em}#1\hspace{2em}}}
\begin{document}
\begin{empheq}[box=\widefbox]{align}
& a = b +c \\
& d = e+f
\end{empheq}
\end{document}
(So: I would like to have the ''(1)'' and ''(2)'' within the box.)
Best Answer
For a change, use
tcolorbox
: