在 \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}










问 在公式的行尾编号处添加文字?