ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "Pablo Rodríguez" <oinos@web.de>
Subject: Re: bug with \setuplayout[setups=*strict]?
Date: Fri, 09 Dec 2011 17:27:01 +0100	[thread overview]
Message-ID: <4EE236D5.6020403@wxs.nl> (raw)
In-Reply-To: <4EE0B041.4030409@web.de>

On 8-12-2011 13:40, Pablo Rodríguez wrote:
> Hi there,
>
> I read a previous message on this list form Wolgang that
>
> 	\setuplayout[setups=*strict]
>
> is the ConTeXt way to avoid orphan and widow lines.
>
> I have tried that before checking that
>
> 	\widowpenalty=10000\clubpenalty=10000\raggedbottom
>
> doesn't change anything on my documents.
>
> The problem with the first code is that it breaks some pages in clearly
> wrong places (it breaks the page on the seventh line of a A4 page).
>
> I don't know how I could provide an example, since the document is a
> personal document that I cannot share with third parties.
>
> Is there no other way to avoid orphan and widow lines? I need it urgently.

\startsetups [*lessstrict]

    \setup[*\s!reset]

    \widowpenalty =1000
    \clubpenaltie =1000
    \brokenpenalty=1000

\stopsetups

or whatever makes sense

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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:[~2011-12-09 16:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-08 12:40 Pablo Rodríguez
2011-12-09 16:27 ` Hans Hagen [this message]
2011-12-11 16:23   ` Pablo Rodríguez

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=4EE236D5.6020403@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=oinos@web.de \
    /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).