GeneralImproper Line Break

General information and discussion about TeXnicCenter
Post Reply
abikutn
Posts: 18
Joined: Sat May 12, 2012 8:44 pm

Improper Line Break

Post by abikutn »

Hello all,

I am not sure if this is restricted to TeXnicCenter (TXC), anyway please find the attachment and see that one part of the line seems to be jumping out of the boundary defined. Can anyone shed some light on this matter, I think LaTeX should be so powerful but I see a breach here. Why is this happening ?

Best,
Abhi
Attachments
bad-line-wrapping.png
bad-line-wrapping.png (32.1 KiB) Viewed 3044 times
Last edited by localghost on Fri Nov 23, 2012 10:24 am, edited 1 time in total.
Reason: Attached pictures are properly scaled in order not to break up the forum format (see Board Rules).

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Improper Line Break

Post by kaiserkarl13 »

If TeX can't figure out how to break a line without adding too much space between words, it bails out and prints the word where it is, jutting into the margin. You have several options:
  1. Add a \hyphenation pattern for the word near the end of a line (if TeX doesn't recognize the word and where to hyphenate it),
  2. Manually hyphenate a word, such as aper\-ture, or
  3. Reword the sentence so the line is a different length.
The last one is what is usually done.

By the way, there are several things that TeX and friends can do that you aren't utilizing. Consider this example:

Code: Select all

Here, $R$ is the separation, $\lambda$ is the wavelength, $n$ is the refractive index, and $\theta$ is half the objective angular aperture.  The numerical aperture is defined as $2n\sin\theta$.
The symbols in the text thus match those in the equations.
Post Reply