ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: \widowpenalty=10000 and still a widow line
Date: Mon, 8 Jul 2013 15:57:27 +0200	[thread overview]
Message-ID: <E6E4CC2E-098E-4175-8604-9E0216872AF6@gmail.com> (raw)
In-Reply-To: <CAFMOkGWd=7pyyYRKfVuw2H1QriEmnvdjWZ5TqwvdN5OeLahiog@mail.gmail.com>


Am 08.07.2013 um 14:57 schrieb Alan Bowen <bowenalan03@gmail.com>:

> In my environment file, I have
> 
> \clubpenalty=10000
> \widowpenalty=10000
> 
> \setuptolerance[vertical,verystrict]
> \setuptolerance[horizontal,tolerant]
> 
> and yet on occasion I still get widow lines.Does any one have suggestions about strategies to remedy this either in general or on a case by case basis? (I am not sure of how to generate an example of the problem or if that would even help.)

1. Do the widow lines only appear in certain cases, e.g. after a heading.

2. Use the context way to change the penalties:

\startsetups [mypenalties]

    \setdefaultpenalties

    \setpenalties\widowpenalties{3}{10000} % 3 == number of lines, 10000 == penalty between these 3 lines
    \setpenalties\clubpenalties {3}{10000}

\stopsetups

\setuplayout[setups=mypenalties]

\starttext
…
\stoptext

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2013-07-08 13:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-08 12:57 Alan Bowen
2013-07-08 13:57 ` Wolfgang Schuster [this message]
2013-07-08 16:03   ` Alan Bowen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E6E4CC2E-098E-4175-8604-9E0216872AF6@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).