I have to define a new environment doing something like that.
\documentclass[12pt]{article}
\usepackage{tcolorbox,empheq}
\begin{document}
\begin{tcolorbox}
\begin{empheq}{align}
a=b
\end{empheq}
\end{tcolorbox}
\end{document}
This code works fine, but if I try something like testa or testb, I get errors.
\documentclass[12pt]{article}
\usepackage{tcolorbox,empheq}
\newenvironment{testa}{\tcolorbox\empheq{align}}{\endempheq\endtcolorbox}
\newenvironment{testb}{\tcolorbox\setkeys{EmphEqEnv}{align}\EmphEqMainEnv}{\endEmphEqMainEnv\endtcolorbox}
\begin{document}
\begin{testa}
a=b
\end{testa}
\end{document}
Is there a solution ?


\begin{tcolorbox}[ams align]a=b\end{tcolorbox}– Ignasi Mar 08 '18 at 19:00empheqis used to place equation numbers outside boxes, but you want them inside. Then I don't know why do you needempheq.tcolorboxwithams ...options can produce boxes with multiline equations with numbers inside the box and withoutempheq. – Ignasi Mar 08 '18 at 19:03