Possible Duplicate:
numbering few equations together
I've got an eqnarray with multiple equations and a label on it, e.g.:
\begin{eqnarray}
\hat{\delta}(q_0,\epsilon) & = & {\color{orange}q_0} & & & & \\
\hat{\delta}(q_0,a) & = & \delta(\hat{\delta}(q_0,\epsilon), a) & = & {\color{orange}\delta(q_0, a)} & = & q_1 \\
\hat{\delta}(q_0,ac) & = & \delta(\hat{\delta}(q_0, a), c) & = & {\color{orange}\delta(q_1, c)} & = & q_1 \\
\hat{\delta}(q_0,aca) & = & \delta(\hat{\delta}(q_0, ac), a) & = & {\color{orange}\delta(q_1, a)} & = & q_2 \\
\hat{\delta}(q_0,acac) & = & \delta(\hat{\delta}(q_, aca) c) & = & {\color{orange}\delta(q_2, c)} & = & q_2
\label{eqn:automata-derivation}
\end{eqnarray}
The important part for me is the colorized as a whole, that means that the whole eqnarray is important and not a single line of it.
If I refer to the label eqn:automata-derivation the reference is just for the last line and every other line is counted apart from it (line 1: (1), line 2: (2), ... , line 5: (5), and if I refer to this only 5 would be shown).
What is the correct way:
- to count the whole eqnarray as one single equation and not every line each?
- to refer to it adequately?
alignedorsplit. We could look which one is good here, possible closing as duplicate. – Stefan Kottwitz Dec 09 '11 at 13:51eqnarray. – Stefan Kottwitz Dec 09 '11 at 13:53subequationsenvironment fromamsmathcould also be interesting. Put thealignwithinsubequations, and the lines will be numbered 1a, 1b, etc. With a label outsidealignyou'll get a reference to eq. 1. – Torbjørn T. Dec 09 '11 at 14:10alignedoralignedathere. I understood the question was about referencing, not particularly about writing multiple equations with alignment, though it could help the OP. Perhaps we've got a link to a question where that is explained? Posting it in a comment could help. Otherwise, if you think, just click on Vote to reopen and I will gladly reopen it. – Stefan Kottwitz Dec 09 '11 at 14:26