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.

How I can make a transfer of a long math equation in a new line? I suppose there are at least two methods: manually by hands and adjust math container to do that automatically. Can you show me, please this two methods.

share|improve this question
2  
Welcome to TeX.SE! Please post an example of an equation that you need to get broken across two or more lines. –  Mico Apr 23 '12 at 2:43
add comment

1 Answer

up vote 6 down vote accepted

If you want to make an equation centered on its own line, put it inside \[...\].

If you want to break a long equation across many lines, the align environment from the amsmath package is a great tool.

Here is a basic example:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\noindent Here is an equation centered on its own line:
\[ ax + by + cz = 2x + 3y + 4z \]
And here is an equation broken across multiple lines:
\begin{align*}
ax + by + cz
& = 2x + 3y + 4z \\
& = z \left( 2\frac{x}{z} + 3\frac{y}{z} + 4 \right)
\quad \text{(as long as $z \neq 0$)} \\
& = 0
\end{align*}
\end{document}

enter image description here

share|improve this answer
1  
+1 from me, nice work –  cmhughes Apr 23 '12 at 14:23
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.