On 03/07/2012 05:38 PM, stefano franchi wrote:
On Wed, Mar 7, 2012 at 4:29 PM, Hauke <hauke_st...@gmx.de
<mailto:hauke_st...@gmx.de>> wrote:
Hey everyone,
i am new in lyx and use it currently for writing my thesis. i
start using lyx to avoid problems you may get writing long
documents in word. first impression and the sense behind it (i am
not used to LateX) were awesome. so i thought its more than worth
trying something new. But not very far after starting to write i
have the first problem. a typical format problem which i hoped to
avoid using lyx.
as you can see in the attached screenshots, the headline of the
subsection 2.2 is taking too much space on the page in the pdf
(dvi or how its called). and i absolutely dont know why.
i choose all normal text to be 'standard'. the subsections are all
'subsections' sections are 'sections' and so on. the table you can
see i defined to be 'list'.
funnywise, subsection 2.2 is the only one i can increase the deep
(dont know whats this exactly in english) but in word its
comparable with tabstop. dont know why i can do this there.
hope i described the problem well enough for you to understand (or
at least the screenshots help) and hope there is a easy failure to
find.
It looks like a hyphenation problem to me: Latex doesn't know how to
split the last word in your section heading and pushes it off margin.
Looking at the Latex log would tell you if this is the problem. But
you can also try to add a couple of optional hyphens
(Insert>>Formatting>>Hyphenation point, in the English version) in
"SDS-Ganzzellextrakten" and see if the problem disappears
Part of the problem here is that LaTeX *REALLY* hates hyphenating words
that already have hyphens in them. So it's completely refusing to
hyphenate this one. The possible solutions in this case are: (i) rewrite
the heading so as to avoid the problem; (ii) add a hyphenation point, as
Stefano suggested; (iii) allow the heading to be "ragged right" by using
Insert>Formatting>Ragged Line Break (English, again) after the hyphen in
the existing heading.
Personally, I tend just to make all my section etc headings ragged
right, since the larger font size makes justification ugly. But to do
this you have to redefine some stuff in the document class. If it's just
a one-time issue, you can do it as in (iii).
Note that LaTeX's refusal to do this is NOT a bug. LaTeX is basically
telling you that it doesn't know what to do here---it's a computer
program, it's not omniscient---and it's asking you what you want. This
is the right thing for LaTeX to do when it can't come to a reasonable
decision.
Richard