# New line within MathJAX

$P(E) = \dfrac{\text{ 1 choice for C1 } \times ... \times \text{ 1 choice for C(k - 1) } \times \text{ 1 choice for C(k) } \color{red}{\times N} - k \text{ choices for C(N - k) }\times N - k - 1 \text{ choices for C(N - k - 1)} \times ...}{N!}$

How can I force the red onto the next line of the numerator?

Moreover, how can I add an empty line (ie double space) the numerator?

\\ works:

$$P(E) = \dfrac{\text{ 1 choice for C1 } \times ... \times \text{ 1 choice for C(k - 1) } \times \text{ 1 choice for C(k) }\\\color{red}{\times N} - k \text{ choices for C(N - k) }\times N - k - 1 \text{ choices for C(N - k - 1)} \times ...}{N!}$$

$$P(E) = \dfrac{\text{ 1 choice for C1 } \times ... \times \text{ 1 choice for C(k - 1) } \times \text{ 1 choice for C(k) }\\\color{red}{\times N} - k \text{ choices for C(N - k) }\times N - k - 1 \text{ choices for C(N - k - 1)} \times ...}{N!}$$

Double line (using the non-breaking space character ~):

$$P(E) = \dfrac{\text{ 1 choice for C1 } \times ... \times \text{ 1 choice for C(k - 1) } \times \text{ 1 choice for C(k) }\\~\\\color{red}{\times N} - k \text{ choices for C(N - k) }\times N - k - 1 \text{ choices for C(N - k - 1)} \times ...}{N!}$$

$$P(E) = \dfrac{\text{ 1 choice for C1 } \times ... \times \text{ 1 choice for C(k - 1) } \times \text{ 1 choice for C(k) }\\~\\\color{red}{\times N} - k \text{ choices for C(N - k) }\times N - k - 1 \text{ choices for C(N - k - 1)} \times ...}{N!}$$

Or use the align environment:

P(E) = \dfrac{\begin{align}&\text{ 1 choice for C1 } \times ... \times \text{ 1 choice for C(k - 1) } \times \text{ 1 choice for C(k) } \\ &\color{red}{\times N} - k \text{ choices for C(N - k) }\times N - k - 1 \text{ choices for C(N - k - 1)} \times ...\end{align}}{N!}

P(E) = \dfrac{\begin{align}&\text{ 1 choice for C1 } \times ... \times \text{ 1 choice for C(k - 1) } \times \text{ 1 choice for C(k) } \\ &\color{red}{\times N} - k \text{ choices for C(N - k) }\times N - k - 1 \text{ choices for C(N - k - 1)} \times ...\end{align}}{N!}

P(E) = \dfrac{\begin{align}&\text{ 1 choice for C1 } \times ... \times \text{ 1 choice for C(k - 1) } \times \text{ 1 choice for C(k) } \\ \\&\color{red}{\times N} - k \text{ choices for C(N - k) }\times N - k - 1 \text{ choices for C(N - k - 1)} \times ...\end{align}}{N!}

P(E) = \dfrac{\begin{align}&\text{ 1 choice for C1 } \times ... \times \text{ 1 choice for C(k - 1) } \times \text{ 1 choice for C(k) } \\ \\&\color{red}{\times N} - k \text{ choices for C(N - k) }\times N - k - 1 \text{ choices for C(N - k - 1)} \times ...\end{align}}{N!}

• NB. You should really use \ldots in place of .... Commented Nov 20, 2013 at 14:13
• You might want to include a multline version as well. (IMHO it looks better than the align.) Commented Nov 20, 2013 at 14:16
• @Lord_Farin: Many thanks. Upvoted. Can a new empty line (For double spacing) be forced with // or something other than \align? Please answer in your answer; I'd like to consolidate all content.
– user53259
Commented Nov 20, 2013 at 14:28
• @ArthurFischer I can't get multline to work -- it looks hideously misaligned to me. Commented Nov 20, 2013 at 15:03
• @Lord_Farin: Maybe we have different aesthetic tastes in this matter. I for one think that the "misalignment" is a good indicator that something has spanned more than one line. Commented Nov 20, 2013 at 15:14
• @ArthurFischer To me, the expression isn't even properly lined up above the bar -- it's shifted to the right by some length. But indeed, my taste here is to have both lines start without indentation. In an eqnarray-type environment, I agree that indentation is helpful. Commented Nov 20, 2013 at 15:26
• @Lord_Farin: I think it has something to do with how frac works. In neither align nor multline is the formula centred above the bar. It is perfectly "right-aligned" but not perfectly "left-aligned". (Or at least this is how I am currently seeing it.) Commented Nov 20, 2013 at 15:41

In addition to Lord_Farin's options, I'll include one-and-a-half using multline (which he apparently does not favour).

$$P(E) = \dfrac{\begin{multline}\text{ 1 choice for C1 } \times ... \times \text{ 1 choice for C(k - 1) } \times \text{ 1 choice for C(k) } \\ \color{red}{\times N} - k \text{ choices for C(N - k) }\times N - k - 1 \text{ choices for C(N - k - 1)} \times ...\end{multline}}{N!}$$

yields

$$P(E) = \dfrac{\begin{multline}\text{ 1 choice for C1 } \times ... \times \text{ 1 choice for C(k - 1) } \times \text{ 1 choice for C(k) } \\ \color{red}{\times N} - k \text{ choices for C(N - k) }\times N - k - 1 \text{ choices for C(N - k - 1)} \times ...\end{multline}}{N!}$$

Introducing a second \\ at the obvious place results in

$$P(E) = \dfrac{\begin{multline}\text{ 1 choice for C1 } \times ... \times \text{ 1 choice for C(k - 1) } \times \text{ 1 choice for C(k) } \\ \\ \color{red}{\times N} - k \text{ choices for C(N - k) }\times N - k - 1 \text{ choices for C(N - k - 1)} \times ...\end{multline}}{N!}$$

[It appears that some users will see some hideous monstrosity. Apologies.]

• Here's how it looks to me: picture. Do you still blame me for not including it? Commented Nov 20, 2013 at 15:43
• @Lord_Farin: Yikes, that's horrible! It actually looks quite pleasant to me. (And your examples don't look that bad either.) Commented Nov 20, 2013 at 15:51
• +1 on the basis of your screenshot. And thanks for exposing me to multline! Commented Nov 20, 2013 at 16:16
• multline is intended for top-level use only (LaTeX prevents its use in other ways, but MathJax is not so picky). It creates elements that try to be 100% wide, and that can cause it to overflow the fraction. It appears that browsers differ on how they handle that. In any case, this is not really valid LaTeX, and I wouldn't recommend it. Commented Dec 3, 2013 at 21:17
• I've got the same result as Lord_Farin on Google Chrome. Commented Sep 12, 2014 at 13:05