Henning Hraban Ramm schrieb am 10.10.2024 um 14:54:
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.
%%%% begin primitives.tex [...] \startnewprimitive[title={\prm {orphanpenalties}}] This an (single entry) array parameter: first the size is given followed by that amount of penalties. These penalties are injected before spaces, going backward from the end of a paragraph. When we see a math node with a penalty set then we take the max and jump over a (preceding) skip. \stopnewprimitive \startnewprimitive[title={\prm {orphanpenalty}}] This penalty is inserted before the last space in a paragraph, unless \prm {orphanpenalties} mandates otherwise. \stopnewprimitive [...] %%%% end primitives.tex Wolfgang