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: Mon, 3 Jul 2017 16:50:14 +0100	[thread overview]
Message-ID: <CADf_Gt26ca5kD4ydBG-j=hoWzNAt+hC2RN48AYSXz=CFReALBA@mail.gmail.com> (raw)
In-Reply-To: <CADf_Gt2yDawgsKVsG_xpqKcWYDcArih0fAhCyoH2sw6giDXy+w@mail.gmail.com>

On 28 June 2017 at 13:49, Thomas Widmann <thomas@complexli.com> wrote:
> On 28 June 2017 at 12:57, Hans Hagen <pragma@wxs.nl> wrote:
>> On 6/28/2017 1:20 PM, Thomas Widmann wrote:
>>
>>> What I'd really like to know is whether the relevant parts of TeX have
>>> been Luafied already (in which case I might do it soon), or whether
>>> doing this would require making changes to LuaTeX itself (in which case I might not want to touch this yet)…
>>
>> al relevant parts are opened up
>
> Do you happen to know whether anybody has ever done anything vaguely
> similar that I can base this on, or would I be better off starting
> from scratch?

I must admit I'm struggling a bit with how to do this.  I was looking
at using buildpage_filter to add some code, but that gets called when
"LuaTeX is ready to move stuff to the main vertical list" according to
the manual, so I would only be able to affect where the page break
happens, not how the paragraphs get typeset.  Or am I wrong?

Is there any way to re-typeset a paragraph in the current vertical
list once you've got as far as buildpage_filter?  (Of course, half the
paragraph might already have output to the preceding page, so the
re-typesetting might have to start mid-paragraph.)

Would it be easier to re-typeset the entire document?  I.e., whenever
a widow or orphan gets generated, mark the entries on the current page
in some way (in the aux file?), and then typeset the whole thing
again, typesetting the entries marked slightly differently.

Any help would be much appreciated!

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-07-03 15:50 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
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 [this message]

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_Gt26ca5kD4ydBG-j=hoWzNAt+hC2RN48AYSXz=CFReALBA@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).