From: Mikael Sundqvist <mickep@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Re: \brokenpenalties query
Date: Wed, 19 Jun 2024 16:06:12 +0200 [thread overview]
Message-ID: <CAHy-LL-TsqJ7LwjuAjxLZxuoW6WqXxfaR-Qgdyv6tzQq4upe0A@mail.gmail.com> (raw)
In-Reply-To: <CAFMOkGUHo+5rxLz5kkHtgfS2z9a41qE+cy5=1pgmgpn_DgByQA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1151 bytes --]
Hi,
On Wed, Jun 19, 2024 at 3:40 PM Alan Bowen <bowenalan03@gmail.com> wrote:
> I have in the past relied on
> \setpenalties\brokenpenalties{1}{10000}\
> to set the penalty for a page break after a hyphen. But with the latest
> LMTX, when I run the file, I get the error message
> Error count has to be 1 for \brokenpenalties
> Any advice on how to fix the file would be most welcome.
>
> Alan
>
Probably only Hans (or Wolfgang) can give a complete answer here. But
\startsetups [*default]
\directsetup{*reset}
\frozen\brokenpenalties 1 10000\relax
\stopsetups
works here.
/Mikael
PS
An interesting new feature is the possibility to set penalties depending on
left and right page, by using options. For example
\startsetups [*default]
\directsetup{*reset}
\frozen\clubpenalties 3 options 4 1500 3000 250 500 0 0 \relax
\stopsetups
sets club club penalties 1500 for first line and 250 for second for going
from left page to right page (and then 0 for the rest) and 3000 for first
line and 500 for second (and rest 0) for going from right page to left page.
I hope this helps a bit.
[-- Attachment #1.2: Type: text/html, Size: 2392 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
___________________________________________________________________________________
next prev parent reply other threads:[~2024-06-19 14:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-19 13:28 [NTG-context] " Alan Bowen
2024-06-19 14:06 ` Mikael Sundqvist [this message]
2024-06-19 14:41 ` [NTG-context] " Hans Hagen via ntg-context
2024-06-20 13:21 ` Mikael Sundqvist
2024-06-20 20:33 ` Alan Bowen
2024-06-20 20:53 ` Hans Hagen
2024-06-21 15:23 ` Alan Bowen
2024-06-21 16:10 ` Hans Hagen
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=CAHy-LL-TsqJ7LwjuAjxLZxuoW6WqXxfaR-Qgdyv6tzQq4upe0A@mail.gmail.com \
--to=mickep@gmail.com \
--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).