我想要对框外的第三个(蓝色)方程式进行编号。我该怎么做?
答案1
你可以选择:
\documentclass{article}
\usepackage{amsmath}
\usepackage{empheq}
\usepackage[most]{tcolorbox}
\tcbset{colframe=blue!30!black, colback=blue!30, boxrule=1pt}
\newtcbox{\mymath}[1][]{%
nobeforeafter, math upper, tcbox raise base,
enhanced
#1}
\begin{document}
\begin{empheq}[box=\mymath]{equation*}
c_i = \langle\psi|\phi\rangle
\end{empheq}
\begin{empheq}[box=\mymath]{equation}
c_i = \langle\psi|\phi\rangle
\end{empheq}
\begin{tcolorbox}
\begin{equation}
c_i = \langle\psi|\phi\rangle
\end{equation}
\end{tcolorbox}
\begin{tcolorbox}
\begin{equation*}
c_i = \langle\psi|\phi\rangle
\end{equation*}
\end{tcolorbox}
\end{document}