I want to number use a equation and add a letter to the equation number such as:
f(x) =a x and g(x) = b x (3.1.1a,b)
That is e.g. using \begin{equation}
… \label{eq} \end{equation}
equationsnumbering
I want to number use a equation and add a letter to the equation number such as:
f(x) =a x and g(x) = b x (3.1.1a,b)
That is e.g. using \begin{equation}
… \label{eq} \end{equation}
Best Answer
The
amsmath
package provides\tag{<whatever>}
that allows you to tag (or number) an equation with<whatever>
you want. Here's a minimal working example:If you don't want the parentheses around the
\tag
, use\tag*
instead. With this, however, you can only reference the entire equation, not the separate components.For the ability to reference either the main equation or the sub-equations as a whole, you could use the following setup:
The idea is to correctly step and reference (using
\refstepcounter
) the equation before it is typeset, and use the equation number in\tag
(via\theequation
) for appropriate labelling and referencing.