ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Thomas Widmann <thomas@complexli.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Adjusting column width dynamically to get rid of orphans and widows
Date: Tue, 20 Jun 2017 10:53:19 +0100	[thread overview]
Message-ID: <CADf_Gt3t7FEW_4ix7oBU6TZjuo3e71NG_9WTtJgka_rj=gKX6g@mail.gmail.com> (raw)
In-Reply-To: <1497951708.16090.19.camel@gmail.com>

On 20 June 2017 at 10:41, Henri Menke <henrimenke@gmail.com> wrote:
>
> On Tue, 2017-06-20 at 09:22 +0100, Thomas Widmann wrote:
> >
> > I recently started experimenting with using ConTeXt (mkiv) for dictionary typesetting. It's a much
> > more attractive option than plain TeX or LaTeX because of the support for typesetting on a grid.
> >
> > However, grid typesetting can easily result in a large number of orphans and widows, which really
> > doesn't look good in a dictionary.
> >
> > In an ideal world, I'd want to alter the column width slightly to prevent them (because most
> > dictionaries aren't justified, this wouldn't be very noticeable).
> >
> > Would it be possible to use LuaTeX to achieve this?  I.e., could one write some code that gets
> > triggered by orphans and widows and then alters the current column width slightly until the
> > problem disappears?  Has somebody already done this?  Or have the relevant TeX internals not been
> > Luafied yet?
> >
> > I'd also be interested in other ways to solve this issue – for instance changing the looseness
> > dynamically instead of the column width.
>
> Have a look at \widowpenalty and \clubpenalty.  Also use margin kerning and font expansion.

\widowpenalty and \clubpenalty are almost useless in this context –
believe me, I've tried! (I'm typesetting on a grid, with a fixed
number of lines per page.) Which is why I'm looking for alternatives.

Margin kerning and font expansion are definitely options, but again,
my real query would be how to trigger them dynamically to avoid a
widow or an orphan.

Cheers,

Thomas
-- 
Thomas Widmann
Director
Complexli Limited
+44 789 444 3009
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2017-06-20  9:53 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-20  8:22 Thomas Widmann
2017-06-20  9:41 ` Henri Menke
2017-06-20  9:53   ` Thomas Widmann [this message]
2017-06-20 19:33     ` Hans Hagen
2017-06-23 13:21       ` Thomas Widmann
2017-06-23 16:52         ` Thomas Widmann
2017-06-24  0:19           ` Henri Menke
2017-06-24 14:48             ` Thomas Widmann
2017-06-25 11:16               ` Hans Hagen
2017-06-26  9:31                 ` Thomas Widmann
2017-06-28  9:16                   ` Thomas Widmann
2017-06-28 11:04                     ` Hans Hagen
2017-06-28 11:20                       ` Thomas Widmann
2017-06-28 11:57                         ` Hans Hagen
2017-06-28 12:49                           ` Thomas Widmann
2017-07-03 15:50                             ` Thomas Widmann

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='CADf_Gt3t7FEW_4ix7oBU6TZjuo3e71NG_9WTtJgka_rj=gKX6g@mail.gmail.com' \
    --to=thomas@complexli.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).