ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] penalties
@ 2024-10-10 12:54 Henning Hraban Ramm
  2024-10-10 14:40 ` [NTG-context] penalties Wolfgang Schuster
  2024-10-10 15:45 ` Mikael Sundqvist
  0 siblings, 2 replies; 6+ messages in thread
From: Henning Hraban Ramm @ 2024-10-10 12:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Yesterday I learned:

\startsetups[*default]
\widowpenalties 3 10000 1000 0
\clubpenalties 3 10000 1000 0
\orphanpenalties 2 8000 1000
\stopsetups

If I want the penalty settings applied to “everything” (after defining 
the layout, I think?), then I need the setup "*defaults".

Since TeX uses a club against orphans (brutal!), I’m not sure what 
\orphanpenalty is for.

I remember \twinpenalty is against doubled words (below each other?), 
and \toddlerpenalty against single letter words at the end of a line 
(why “toddler”?).

widows and clubs get only 150 in TeX, but 2000 in ConTeXt, as far as I 
could find.

Are there more penalties that make sense to set individually?

WRT demerits: Did I understand correctly that demerits are the “sum” 
(some formula) of badness and penalties in a line or paragraph?

Hraban
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [NTG-context] penalties
@ 2024-10-31 18:26 Thomas Meyer
  2024-10-31 20:33 ` [NTG-context] penalties Hans Hagen
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Meyer @ 2024-10-31 18:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 402 bytes --]

Hi folks,

following today's update,

\startsetups[grid][mypenalties]
     \setdefaultpenalties
     \setpenalties\widowpenalties{2}{10000}
     \setpenalties\clubpenalties {2}{10000}
\stopsetups

\setuplayout[grid=yes, setups=mypenalties]


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. 
Greetings Thomas

[-- Attachment #1.2: Type: text/html, Size: 1494 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-11-04  9:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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 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).