From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
Henning Hraban Ramm <texml@fiee.net>
Subject: [NTG-context] Re: penalties
Date: Thu, 10 Oct 2024 16:40:50 +0200 [thread overview]
Message-ID: <a359b74e-0fd1-ac27-b8a3-d89d1910070e@gmail.com> (raw)
In-Reply-To: <40876bf1-1d13-4af6-a3e6-969594cdaee1@fiee.net>
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
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-10-10 14:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-10 12:54 [NTG-context] penalties Henning Hraban Ramm
2024-10-10 14:40 ` Wolfgang Schuster [this message]
2024-10-10 15:45 ` [NTG-context] penalties 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
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=a359b74e-0fd1-ac27-b8a3-d89d1910070e@gmail.com \
--to=wolfgang.schuster.lists@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=texml@fiee.net \
/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).