GeneralEquation crosses the right boundary

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Equation crosses the right boundary

Post by pallav »

The equation in line no 3 crosses the right boundary. I am unable to solve the problem. I am facing this problem a large number of times for my original document. Here is my code:

Code: Select all

\documentclass[12pt]{article}
\usepackage{amsmath, amssymb, amsthm,amsfonts,mathptmx,times}
\usepackage{lineno}
\topmargin -0.6in \textwidth  6.5in \textheight 9in
\addtolength{\oddsidemargin}{-0.55in}
\linenumbers
\begin{document}
\date{}
\noindent where, $A=(1+\gamma\varphi)\beta\epsilon-\alpha(\beta\delta_1-\delta\chi)$ and $B=\alpha N\left(\beta-\delta\right)+\beta\,\gamma$,
such that $\omega^2=A^2-4\beta B=\left(  \left( 1-\gamma \right) \beta-\alpha\, \left( \beta-\delta \right)  \right) ^{2}-4\,\alpha\,\beta\, \left( N+\gamma \right) 
 \left( \beta-\delta \right)$.
\noindent The roots $x_i^*$, $i=1,2$ will be distinct and positive when $A>0$ and $\omega^2>0$ which gives $(1+\gamma)\beta>(\alpha-\delta)$ and $\left( \alpha-\delta-\beta(1-\gamma) \right) ^{2}>4\,\beta\, \left( \alpha\phi-\delta \right) \left( N+\gamma \epsilon\right)$ where $\alpha>\delta$.
\end{document}
Attachments
LaTeX1.pdf
(10.95 KiB) Downloaded 350 times

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

Equation crosses the right boundary

Post by Stefan Kottwitz »

Very good, that you post a compilable example. I can see the problem.

Within inline math formulas, LaTeX can break at relation symbols or binary operation symbols, but only when they are at the outer level, i.e. not within parentheses or braces. However, you can manually add breakpoints where it's desirable, such as

Code: Select all

... \left( \alpha\phi-\delta \right) \allowbreak\left( N+\gamma \epsilon\right)
LaTeX does already what's good for inline math formulas, which you can extend, but think about putting long equations in displayed mode, to nut run into such problems.

Stefan
LaTeX.org admin
pallav
Posts: 170
Joined: Wed Nov 12, 2008 5:53 pm

Equation crosses the right boundary

Post by pallav »

Thanks. But writing

Code: Select all

\allowbreak
several time is a tedious tusk, as I have a large number of such problem. Is there any other way to fix the problem?
Post Reply