LyXLine exceeds Margin

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Hlejeje
Posts: 1
Joined: Fri Nov 16, 2012 7:59 pm

Line exceeds Margin

Post by Hlejeje »

Hi everyone!

This one is a little bit confusing for me. It looks like every few lines text is exceeding margins. The lines sticks out and I don't like it. I did no formatting or similar things, just typing. I am new to LyX and haven't managed to sort this out. Please find attached graphics. What did I wrong?


Regards
Attachments
bad-line-wrapping.png
bad-line-wrapping.png (11.16 KiB) Viewed 25445 times
Last edited by localghost on Fri Nov 16, 2012 8:22 pm, edited 1 time in total.
Reason: Preferably no external links (see Board Rules). Attachments go onto the forum server where possible.

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

scottkosty
Site Moderator
Posts: 542
Joined: Sat Sep 01, 2012 6:38 am

Re: Line exceeds Margin

Post by scottkosty »

Hi Hlejeje,

This is a common "problem" (depending on how you view things) in LaTeX (not specific to LyX). I think that adding \sloppy in ERT at the top of your document is a common solution.

If that doesn't work, please post a .lyx file (as minimal as possible).

Scott
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Line exceeds Margin

Post by Stefan Kottwitz »

Hi,

some tips, both working with LaTeX and LyX:
  • Use the babel package, specify the right language
  • Use T1 font encoding, which is important for hyphenating words with accents
  • Define hyphenation for words which could not be hyphenated automatically
  • Load the microtype package, which does microtypographic adjustments for better justification
  • Sloppy only in emergency, but then better a sloppypar environment (or manual adjustments).
If you have questions regarding one or more of those points, let us know. I'm sure Scott is able to tell LyX ways for those solutions.

Stefan
LaTeX.org admin
ankur
Posts: 1
Joined: Mon May 11, 2020 6:34 pm

Line exceeds Margin

Post by ankur »

you could use \emergencystretch 3em after \begin{document}, worked a treat for me.
Post Reply