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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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