I have a KomaScript Project and i have set the following parameters as it is suggested everywhere around the web:

\raggedbottom  % this was my last try, it also doesn't seem to have an effect

Howvever, there are way to may widows in my document, I believe, the commands do not have any effect at all.

Example 1 enter image description here

Example 2 enter image description here

Are there any pitfalls which may cause these commands to not work properly? The documentclass is scrreprt with twoside option disabled.

  • A one line paragraph is not a widow, as far as TeX is concerned. Without an example, it's impossible to say more.
    – egreg
    Oct 17 '14 at 10:31
  • i have added 2 images for you to see some examples. i hope that helps
    – nozzleman
    Oct 17 '14 at 10:34
  • 4
    both those images show two lines being taken over a page not 1 so the penalties have had an effect (or were not needed) Oct 17 '14 at 10:34
  • 4
    @nozzleman they are a penalty against a single line being affected by a page break, two lines are considered OK (etex has an extension that allows you to specify penalties for multiple lines into the paragraph) Oct 17 '14 at 10:53
  • 1
    well you could rephrase it to ask how to prevent just two lines being taken over a page (and then I'll look up exactly how \widowpenalties (with an s) is supposed to work:-) Oct 17 '14 at 10:56

You can use \widowpenalties to avoid that two lines are alone on the second page:

\widowpenalties=3 10000 10000 150
  • 1
    Assuming you want the widow penalty to apply only to the lines you've specified you want \widowpenalties=4 10000 10000 150 0 here: the last value is repeated. (Try for example \showthe\widowpenalties4 in your example to see this.)
    – Joseph Wright
    Oct 17 '14 at 12:26
  • 1
    It might also be worth noting that the penalties read backward here (first value applies between the last two lines of the paragraph, etc.)
    – Joseph Wright
    Oct 17 '14 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.