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
LyX ⇒ Utopia not correctly justified
Utopia not correctly justified
- 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
NEW: TikZ book now 40% off at Amazon.com for a short time.
Utopia not correctly justified
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:
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"?
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}
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"?
Re: Utopia not correctly justified
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
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