\documentclass{article}
\usepackage{showframe}
\usepackage{tabularray}
\usepackage{amsmath}
\begin{document}
\begin{equation}
a+b=c
\end{equation}
\begin{equation*}
\stepcounter{equation}
\begin{tblr}{colspec={Q[c,m]X[c,m]Q[r,m]},columns={colsep=0pt},cell{1}{2}={r=2}{}}
& a+b=c & (\theequation) \\
\phantom{(\text{diffusion coefficient})} & & (\text{diffusion coefficient}) \\
\end{tblr}
\end{equation*}
\begin{equation}
a+b=c
\end{equation}
\end{document}
在 \tag
里加上 tabular
就可以了。
\documentclass{article}
\usepackage{amsmath}
\makeatletter
\newcommand{\tagarray}[2][r]{\refstepcounter{equation}%
\tag*{\tabcolsep\z@ \jot\z@ \begin{tabular}{#1}#2\end{tabular}}}
\makeatother
\begin{document}
\begin{equation}
\boxed{D_p = \int_a^b \mathrm{d}x} \tagarray{(\theequation)\\(diffusion coefficient)}\label{wd}
\end{equation}
\end{document}