Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

sorry if this has been answered before, I couldn't find anything through search. I'm sure its a common problem though.

What I have are two equations with align and I want one single equation number to refer to this system of equations. To illustrate, I have

\begin{align}
  dr_t &= \kappa ( \theta - r_t ) dt + \sigma_r r^{\xi} dW_t \\
  dA_t &= \mu A_t dt + \sigma_A^{\alpha} dZ_t,
\end{align}

and I don't want neither

\begin{align}
  dr_t &= \kappa ( \theta - r_t ) dt + \sigma_r r^{\xi} dW_t \nonumber \\
  dA_t &= \mu A_t dt + \sigma_A^{\alpha} dZ_t,
\end{align}

nor

\begin{align}
  dr_t &= \kappa ( \theta - r_t ) dt + \sigma_r r^{\xi} dW_t \\
  dA_t &= \mu A_t dt + \sigma_A^{\alpha} dZ_t, \nonumber
\end{align}

but having a single number in the middle. I know this can be achieved by nesting an array inside of an equation but then some symbols (sums, etc.) look differently and I thought there had to be a better way of doing this

share|improve this question
add comment

3 Answers 3

up vote 39 down vote accepted

Use aligned instead.

\begin{equation}
\begin{aligned}
  dr_t &= \kappa ( \theta - r_t ) dt + \sigma_r r^{\xi} dW_t \\
  dA_t &= \mu A_t dt + \sigma_A^{\alpha} dZ_t, 
\end{aligned}
\end{equation}

enter image description here

share|improve this answer
    
Hi @TH. Thank you! Will upvote you once I get 15 reputation (shame that you can't even upvote an answer to your own question as a newbie...) –  Paul Koer Mar 14 '11 at 15:09
    
@Paul: That seems wrong. Hmm. –  TH. Mar 14 '11 at 15:11
    
Oh, by the way, I know this is OT but could you tell me how to get the equations ''compiled'' like you did? thank you –  Paul Koer Mar 14 '11 at 15:13
    
@Paul you should now have enough reputation to upvote TH's answer. –  Seamus Mar 14 '11 at 15:14
1  
also with the complicated LaTeX constructions sometimes shown here, it may be difficualt to secure a LaTeX to image renderer. Depending on the system it might e.g. be easy to fill a disk/partition or make LaTeX run in an infinite loop. Thus I thinkthe current situation is the best compromise. –  daleif Mar 22 '11 at 23:05
show 8 more comments

This is really a comment on TH.'s accepted answer (which should stay that way). Using just one aligned doesn't work if you have multiple columns: they are separated by only a small space, since aligned "shrinks to fit". The workaround is to use one aligned per column, and wrap the whole thing in a larger align, as such:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
 \begin{align}
  \begin{aligned}
   x &= y \\
   f(x) &= f(y)
  \end{aligned}
  &&
  \begin{aligned}
   a &= b \\
   g(a) &= g(b)
  \end{aligned}
 \end{align}
\end{document}

This should produce two pairs of equations, each aligned at the equals sign, and with one equation number centered between the lines.

share|improve this answer
add comment

Here's a slightly better way to do this (IMO):

Using the split environment within an align will produce one equation number, vertically centered within the split (so long as there's not a page break involved, as discussed here).

Note that you can have individual labels for each equation by adding \label{} to the end of each line before the line break \\

For example:

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}

\begin{document} 

\begin{align}
  E_1&=A+B \label{eq:1}\\
   \begin{split}
    E_2&=(C-D)E_1 \label{eq:2}\\
    &\quad +[(1-R)+R(1-Y)\\
    &\quad +\pi(1-\delta)]E_2\\
    &\quad +F\cdot E_3
   \end{split}\\
  E_3 &=(\pi\cdot \chi)-(R\cdot E_1)-(RY\delta\cdot E_2) \label{eq:3}
\end{align}

\end{document}

which gives:

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.