GeneralHow can I get automatic line breaks in math mode?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ptoche
Posts: 49
Joined: Thu Apr 12, 2007 10:41 am

How can I get automatic line breaks in math mode?

Post by ptoche »

How can I get automatic line breaks in math mode?

Count from $2$ up to $100$~:
\begin{align}
2 , 4 , 6 , 8 , 10 , 12 , 14 , 16 , 18 , 20 , 22 , 24 , 26 , 28 , 30 , 32 , 34 , 36 , 38 , 40 , 42 , 44 , 46 , 48 , 50 , 52 , 54 , 56 , 58 , 60 , 62 , 64 , 66 , 68 , 70 , 72 , 74 , 76 , 78 , 80 , 82 , 84 , 86 , 88 , 90 , 92 , 94 , 96 , 98 , 100
\end{align}

I came across a reference to the package \mathpar, that is supposed to do that, but for some reason it didn't work. Does anyone know a trick to get this?

many thanks.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

How can I get automatic line breaks in math mode?

Post by Stefan Kottwitz »

Hi ptoche,

the breqn package supports automatic linebreaking of displayed equations, see its documentation.

Stefan
LaTeX.org admin
ptoche
Posts: 49
Joined: Thu Apr 12, 2007 10:41 am

Re: How can I get automatic line breaks in math mode?

Post by ptoche »

many thanks for the tip Stefan, I'll follow it up!

P.S. sorry for the delay in replying, I was travelling and had forgotten to bring my login-password information with me!
Post Reply