[Tex/LaTex] eqnarray with subnumber

amsmathequationsnumbering

When I use eqnarray

\begin{eqnarray}

eq\\
eq\\
eq\\

\end{eqnarray}

this show me

eq (1)
eq (2)
eq (3)

In some papers I see this output

eq (1a)
eq (1b) 
eq (1c) 

how I can make this way ?

Best Answer

amsmath has an environment subequations that will do what you want:

\begin{subequations}
\begin{eqnarray}
 eq \\
 eq \\
 eq
\end{eqnarray}
\end{subequations}

some observations:

  • you don't want blank lines withn the scope of display math; they will result in error messages.
  • you don't want \\ at the end of the last line, or you'll end up with too much space below the display.
  • it would really be better to use one of the multi-line display structures provided by amsmath rather than eqnarray (see this article for the reasons why).

to find out what structures are provided by amsmath, if you have a tex live installation, type texdoc amsmath at a command line prompt.

Related Question