I am aware of both this and this questions. However, can we combine them? What I mean by this is can I enclose in a fancy box à la empheq part of an equation in an align environment?
(I believe there is no need for a MWE since the question is simple and has MWEs in both linked questions; however if you need a MWE comment and I'll add one)
EDIT: Adding MWE
\documentclass{minimal}\usepackage{color}\definecolor{myblue}{rgb}{.8, .8, 1}\usepackage{empheq}\usepackage{amsmath,mathtools}\newlength\mytemplen\newsavebox\mytempbox\makeatletter\newcommand\mybluebox{%\@ifnextchar[%]{\@mybluebox}%{\@mybluebox[0pt]}}\def\@mybluebox[#1]{%\@ifnextchar[%]{\@@mybluebox[#1]}%{\@@mybluebox[#1][0pt]}}\def\@@mybluebox[#1][#2]#3{\sbox\mytempbox{#3}%\mytemplen\ht\mytempbox\advance\mytemplen #1\relax\ht\mytempbox\mytemplen\mytemplen\dp\mytempbox\advance\mytemplen #2\relax\dp\mytempbox\mytemplen\colorbox{myblue}{\hspace{1em}\usebox{\mytempbox}\hspace{1em}}}\makeatother\begin{document}\begin{align}\Aboxed{\text{stuff} &= \text{other stuff}}\end{align}\begin{empheq}[box={\mybluebox[5pt]}]{equation*}\text{stuff} = \text{other stuff}\end{empheq}Now, both?\end{document}Thanks, in before