On 9/1/25 17:52, Pablo Rodriguez via ntg-context wrote:
> On 8/31/25 18:47, Pablo Rodriguez via ntg-context wrote:
>> [...] 
>> The flush mismatches are https://pdf.ousia.tk/first-mismatch.png and
>> https://pdf.ousia.tk/second-mismatch.png.
> [...]
> I found that the problem is the value of `\testcolumn` in
> 
>     \setuphead[chapter, newchapter, title]
>         [before={\blank[line]\testcolumn[5]}]
> 
> But what puzzles me is `\testcolumn[5]` being applied differently to
> `\title` (the heading  for the right column and page) than to `\chapter`
> (its counterpart for the left column and page),

Replying to myself again, I think I have found a workaround:

  \setuphead[chapter, title]
    [before={\ifmode{*newchapter} \blank[line]\testcolumn[5]
                \else
             \blank[line]\testcolumn[4]\fi}]

Of course, this was pure trial and error. Why the heading command on the
right page (title) requires one line less in `\testcolumn` than the
heading command in the left page (chapter) is totally unknown to me.

This also seems to work with sections with values 2-1 (which have margin
number as headings).

Both commands make widows disappear in my original project.

Just in case it would be helpful, I managed to generate a sample (from
my sources) which contain an XML file (for sources) and an environment
file with less than 30 relevant lines (and 50 previous lines to deal
with the XML source).

The sample is as small as possible (with the same ancient Greek text on
both streams) and it shows to flush mismatches. Values required to fix
this were 5-3.

In the sample, two widows appear, out of 8 pair of pages.

I’m reporting this, because I don’t really know whether the issue is in
my code or not.

Many thanks for your help,

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

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to