Math & ScienceWrap Equation to next Line

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
imdadullah

Wrap Equation to next Line

Post by imdadullah »

I want to avoid wrapping of equation to next line.

Code: Select all

\documentclass{report}
\begin{document}
\noindent this is sample. $a+b=y +kakd a  + \beta + \cos(45)$ is rough example $a+b=c$ and $x+y=z$ so help. this is sample. $a+b=y +kakd a  + \beta + \cos(45)$ is rough example $a+b=c$ and $x+y=z$ so help. this is sample. $a+b=y +kakd a  + \beta + \cos(45)$ is rough example $a+b=c$ and $x+y=z$ so help. this is sample. $a+b=y +kakd a  + \beta + \cos(45)$ is rough example $a+b=c$ and $x+y=z$ so help. this is sample. $a+b=y +kakd a  + \beta + \cos(45)$ is rough example $a+b=c$ and $x+y=z$ so help. 
\end{document}

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

Wrap Equation to next Line

Post by Stefan Kottwitz »

Hi,

you can avoid line breaks in inline formulas and equations if you use {...} within, such as

Code: Select all

${a+b=y + a  + \beta + \cos(45)}$
Stefan
LaTeX.org admin
Post Reply