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

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: 10359
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