GeneralNonbreaking inline equations

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

Nonbreaking inline equations

Post by dmt »

How can I prevent an inline equation from breaking in the middle at the end of a line (in this case right after the equal sign).

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

Re: Nonbreaking inline equations

Post by Stefan Kottwitz »

Hi dmt,

grouping by braces {} prevents breaking, write ${ formula }$. But perhaps the line may be too long then. There are several solutions for that case. The easiest may be just splitting the formula into two inline parts, seperated by one space where TeX may break the line. Or use the TeX commands \allowbreak and \nobreak inside the formula.

Stefan
LaTeX.org admin
dmt
Posts: 82
Joined: Sat Mar 15, 2008 8:13 pm

Re: Nonbreaking inline equations

Post by dmt »

Thanks, that worked perfectly!
Post Reply