ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Thomas Meyer <thomasgmeyer@t-online.de>
To: ntg-context@ntg.nl
Subject: [NTG-context] Re: penalties
Date: Mon, 4 Nov 2024 10:05:39 +0100	[thread overview]
Message-ID: <bab5db67-e3ab-49c8-b1ae-1aefd2e07fca@t-online.de> (raw)
In-Reply-To: <d4139212-2a39-4c08-ad6a-956dc038285d@xs4all.nl>

Hi Hans,

thank you very much for your help.
The version
\startsetups[mypenalties] ...
seemed to work better. Then I have tried
\specificationdef \MyWidowPenalties \widowpenalties 3 10000 10000 0
\specificationdef \MyClubPenalties \clubpenalties 3 10000 10000 0 ...
and it was even better.
However, I can no longer evaluate what works really well, as a new 
problem has arisen (after the last update?):
On one page I still have 18 empty lines at the bottom. On the next page 
there is a paragraph with a picture on the right that only takes up 13 
lines. Then more text. I don't know how to get the paragraph with the 
image onto the previous page.

Greetings
Thomas


Am 31.10.24 um 21:33 schrieb Hans Hagen:
> On 10/31/2024 7:26 PM, Thomas Meyer wrote:
>> Hi folks,
>>
>> following today's update,
>>
>> \startsetups[grid][mypenalties]
>>      \setdefaultpenalties
>>      \setpenalties\widowpenalties{2}{10000}
>>      \setpenalties\clubpenalties {2}{10000}
>> \stopsetups
>>
>> \setuplayout[grid=yes, setups=mypenalties]
>
> does
>
> \startsetups[mypenalties]
>      \setdefaultpenalties
>      \setpenalties\widowpenalties{2}{10000}
>      \setpenalties\clubpenalties {2}{10000}
> \stopsetups
>
> work? this [grid] was only used for this case and has been dropped in 
> favour of more powerful par passes and specification definitions
>
> this setup approach was also sensitive for order
>
>> doesn't work any longer, I think. Can anyone confirm this. There is 
>> another problem (page break in the paragraph) that I have yet to verify. 
>
> We now have so call \specificationdef's that work as shown below:
>
> \starttext
>
> \showmakeup[vpenalty]
>
> \specificationdef \MyWidowPenalties \widowpenalties 3 10000 10000 0
> \specificationdef \MyClubPenalties  \clubpenalties  3 10000 10000 0
>
> { \samplefile {tufte} } \page
>
> { \MyWidowPenalties \MyClubPenalties  \samplefile {tufte} }  \page
>
> { \lesswidowpenalties \lessclubpenalties  \samplefile {tufte} } \page
>
> { \setupalign[lesswidows,lessclubs,lessorphans] \samplefile {tufte} }  
> \page
>
> \stoptext
>
> predefined new alignment keys are:
>
> defaultwidows defaultclubs defaultbroken
>
> lesswidows lessclubs lessbroken
>
> lessorphans lessorphans:2 lessorphans:3 lessorphans:4
>
> strictwidows strictwidows:2 strictwidows:3 strictwidows:4
> strictclubs  strictclubs:2  strictclubs:3  strictclubs:4
>
> strictbroken
>
> so a 'global' setupalign can be used
>
> Hans
>
>
>
> -----------------------------------------------------------------
>                                           Hans Hagen | PRAGMA ADE
>               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>        tel: 038 477 53 69 | www.pragma-ade.nl | 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 / 
> 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
> ___________________________________________________________________________________ 
>

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

maillist : ntg-context@ntg.nl / 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	other threads:[~2024-11-04  9:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-31 18:26 [NTG-context] penalties Thomas Meyer
2024-10-31 20:33 ` [NTG-context] penalties Hans Hagen
2024-11-04  9:05   ` Thomas Meyer [this message]
2024-11-05 13:38     ` [NTG-context] Cannot force image (and surrounding text) to its place (was: Re: Re: penalties) Thomas Meyer
  -- strict thread matches above, loose matches on Subject: below --
2024-10-10 12:54 [NTG-context] penalties Henning Hraban Ramm
2024-10-10 14:40 ` [NTG-context] penalties Wolfgang Schuster
2024-10-10 15:45 ` Mikael Sundqvist
2024-10-10 16:44   ` Henning Hraban Ramm

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=bab5db67-e3ab-49c8-b1ae-1aefd2e07fca@t-online.de \
    --to=thomasgmeyer@t-online.de \
    --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).