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.
\begin{equation*}\label{eq:pareto mle2}
A_0 = \frac{1}{(\alpha+t_x)^{r+s+x}}{}_2F_1\left(r+s+x,x+1;r+s+x+1;\frac{\alpha-\beta}{\alpha + t_x} \right ) "\\\" <br>
 - \frac{1}{(\alpha+T)^{r+s+x}}{}_2F_1\left(r+s+x,x+1;r+s+x+1;\frac{\alpha-\beta}{\alpha + T} \right ),
\end{equation*}


This is my code why \\ does not go to new line? How should I make it?

share|improve this question
    
Thank you very much. Is there a way of make new line in equation? –  user3714137 Aug 1 at 3:45

2 Answers 2

up vote 2 down vote accepted

The amsmath package -- which you appear to be loading already as your example code uses an environment called equation* -- provides quite a few environments to typeset equations that need to be split across two or more lines. The align* environment may be particularly suitable to the case at hand; note the use of & to state the alignment points.

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}\label{eq:pareto mle2}
A_0 &=   \frac{1}{(\alpha+t_x)^{r+s+x}}{}_2 F_1\left( r+s+x,x+1;r+s+x+1;\frac{\alpha-\beta}{\alpha + t_x} \right)\\
&\quad - \frac{1}{(\alpha+T)^{r+s+x}}{}_2 F_1\left( r+s+x,x+1;r+s+x+1;\frac{\alpha-\beta}{\alpha + T} \right),
\end{align*}
\end{document}

Addendum: Note the close similarity of the outputs produced by the single gather* environment in this answer and by the nested pair of equation*/multlined environments in @HarishKumar's answer.

share|improve this answer

Both equation and equation* do not allow multi lined expressions. Use aligned from amsmath, inside equation* to break in to many lines. If alignment is not needed, you can use gathered (instead of aligned) as suggested by Mico.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
  \begin{equation*}\label{eq:pareto mle2}
  \begin{aligned}
A_0 = \frac{1}{(\alpha+t_x)^{r+s+x}}{}_2F_1\left(r+s+x,x+1;r+s+x+1;\frac{\alpha-\beta}{\alpha + t_x} \right ) \\
 - \frac{1}{(\alpha+T)^{r+s+x}}{}_2F_1\left(r+s+x,x+1;r+s+x+1;\frac{\alpha-\beta}{\alpha + T} \right ),
 \end{aligned}
\end{equation*}
\end{document}

Or use multlined from mathtools:

\documentclass{article}
\usepackage{mathtools}
\begin{document}
  \begin{equation*}\label{eq:pareto mle2}
  \begin{multlined}
A_0 = \frac{1}{(\alpha+t_x)^{r+s+x}}{}_2F_1\left(r+s+x,x+1;r+s+x+1;\frac{\alpha-\beta}{\alpha + t_x} \right ) \\
 - \frac{1}{(\alpha+T)^{r+s+x}}{}_2F_1\left(r+s+x,x+1;r+s+x+1;\frac{\alpha-\beta}{\alpha + T} \right ),
 \end{multlined}
\end{equation*}
\end{document}

enter image description here

share|improve this answer
1  
Also split might be fruitful here, particularly with numbered equations. Of course, multlined is not needed, as multline* suffices. –  egreg Aug 1 at 9:34

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.