LyXUtopia not correctly justified

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
areymond
Posts: 5
Joined: Tue Jul 19, 2011 3:54 pm

Utopia not correctly justified

Post by areymond »

Hi everybody,

I am a casual user of Lyx. I am beginning a book in French.
I use mostly the implicite option for all categories of otpions. I use the "book" class. I would like to use the Utopia police - a personal question : I find it easy to read.
When I generate the pdf file, I notice that the text is not correctly justified. When I set everything to "implicit", justification is ok.

Any idea why ?

I thank you.

Best regards.

Alain
Attachments
Test-Utopia.pdf
Same page with Utopia : not correctly justified
(101.22 KiB) Downloaded 198 times
Test-Implicit.pdf
A page with implicit
(113.75 KiB) Downloaded 179 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Utopia not correctly justified

Post by meho_r »

This is because TeX couldn't find optimal places to break lines (e.g., some words cannot be broken because of hyphenation rules), so it simply lets words stick into the margin leaving to the user to make manual corrections where necessary. There are couple of things you can consider to remedy this situation (apart from the first and probably most important step: setting correct language in Document > Settings > Language to activate correct hyphenation pattern):

1. Load microtype package to get better line breaks. To do this, type into the preamble (Document > Settings > LaTeX Preamble) the following:

Code: Select all

\usepackage{microtype}
2. Use optional hyphens (command in LaTeX: \- and in LyX use the shortcut: Ctrl+-) in words which are protruded into margin to allow breaks if necessary, or

3. Use \sloppy command before problematic paragraphs; restoring default settings is done by using \fussy command. Note that by using \sloppy command you'll allow some really bad spacing in the text, so use it sparingly and carefully. You enter these commands in ERT boxes (shortcut: Ctrl+L).

P.S. What do you mean by "implicit"?
areymond
Posts: 5
Joined: Tue Jul 19, 2011 3:54 pm

Re: Utopia not correctly justified

Post by areymond »

Thank you for such a prompt and detailed answer.
I'll check the possibilities.

I should have been more careful when writing. 'Implicite' is the term used is French for 'Default'. Should have tried LyX in English before sending :? .

Regards,

Alain
Post Reply