I want to include an additional text (say the equation name), along with the equation number. The equation name is to be displayed only at the place where the equation is displaced, i.e. when I use \eqref, I should only get the equation number.
I tried a few solutions from the forum, but could not find a satisfactory solution. Here's the code that I have so far
\usepackage{amsmath}
\makeatletter
\newcommand{\owntag}[2][\relax]{% \owntag[short label]{tag}
\ifx#1\relax\relax\def\owntag@name{#2}\else\def\owntag@name{#1}\fi% base label
\refstepcounter{equation}\tag{\theequation, #2}%
\expandafter\ltx@label\expandafter{eq:\owntag@name}%
\edef\@currentlabel{\theequation, #2}\expandafter\ltx@label\expandafter{Eq:\owntag@name}%
\def\@currentlabel{#2}\expandafter\ltx@label\expandafter{tag:\owntag@name}%
}
\makeatother
\begin{align}
\frac{\partial u_i}{\partial x_i} = 0 \qquad \mathrm{or} \qquad \vec{\nabla} \cdot \vec{u} = 0
\owntag[example]{Mass conservation}
\end{align}
the mass conservation equation \eqref{mass}.

