LaTeX LaTex: eqnarray numbering eqs as 1a, 1b, 1c

  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    Latex
AI Thread Summary
The discussion focuses on formatting equations in LaTeX, specifically how to number them as subequations (4.13a), (4.13b), and (4.13c) instead of sequentially. The user initially presents an equation array using the eqnarray environment but seeks a more organized approach. The recommended solution involves using the subequations environment in combination with the align environment, which offers improved spacing and formatting. This method allows for proper labeling of each equation as subequations, enhancing the overall presentation of the mathematical content. The user also shares an image of the rendered output to illustrate the desired formatting.
Saladsamurai
Messages
3,009
Reaction score
7
Hi folks, I am making some great progress in LaTeX, however this is something I am having trouble finding. I think that I am just unsure of what keywords to search. I have the following equation array:

Code:
\begin{eqnarray}
 y(x) &=& \sum_0^{\infty}a_nx^{n+r}     \label{eqn: frobenius 6}\\
 \Rightarrow y'(x) &=& \sum_0^{\infty}(n+r)a_nx^{n+r - 1}	\label{eqn: frobenius 7}  \\
 \Rightarrow y''(x) &=& \sum_0^{\infty}(n+r-1)(n+r)a_nx^{n+r - 2}	\label{eqn: frobenius 8} 
 \label{eqn: frobenius 8}
\end{eqnarray}

which produces the following
Screenshot2010-10-23at14315PM.png


Instead of numbering each equation as a new number, I would like it to say (4.13a), (4.13b),(4.13c).

I know this is possible; I am just unsure of the syntax.

Any thoughts? Thanks!
 
Physics news on Phys.org
What you want is subequations. You should also use the align environment instead of eqnarray, as it has better spacing -- see the links in this http://tex.stackexchange.com/questions/196/eqnarray-vs-align" .

Code:
\begin{subequations}
\begin{align}
 y(x) &= \sum_0^{\infty}a_nx^{n+r}     \label{eqn: frobenius 6}\\
 \implies y'(x) &= \sum_0^{\infty}(n+r)a_nx^{n+r - 1}	\label{eqn: frobenius 7}  \\
 \implies y''(x) &= \sum_0^{\infty}(n+r-1)(n+r)a_nx^{n+r - 2}	\label{eqn: frobenius 8} 
\end{align}
\end{subequations}

produces the attached image (it didn't render on physics forums properly, so I used http://docs.latexlab.org/ ).
 

Attachments

  • 072f982c1744825462e1b99193d57e1e-1.png
    072f982c1744825462e1b99193d57e1e-1.png
    2 KB · Views: 2,057
Last edited by a moderator:

Similar threads

Replies
1
Views
5K
Replies
3
Views
2K
Replies
1
Views
1K
Replies
4
Views
4K
Replies
4
Views
3K
Replies
15
Views
25K
Replies
9
Views
2K
Back
Top