From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id 5C39222126 for ; Wed, 19 Jun 2024 16:07:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C4F26484F8D for ; Wed, 19 Jun 2024 16:07:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=gmail.com Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cmrxb4gAQ4U0 for ; Wed, 19 Jun 2024 16:07:04 +0200 (CEST) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C5548484E5F for ; Wed, 19 Jun 2024 16:06:48 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 48F67484DAB for ; Wed, 19 Jun 2024 16:06:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DK7tRweETMdZ for ; Wed, 19 Jun 2024 16:06:39 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.48; helo=mail-ej1-f48.google.com; envelope-from=mickep@gmail.com; receiver= Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id E99C6484DAA for ; Wed, 19 Jun 2024 16:06:39 +0200 (CEST) Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a6fb696d2d8so71289566b.1 for ; Wed, 19 Jun 2024 07:06:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718805999; x=1719410799; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=lHMs2w7rzhyDpUNwxn15l9giQDDCoRmucj6tBQYQZYk=; b=ccQk7DccjfjdxZvNcdh1ViiFZzxnnIDtsxXVY/Xanu8kAADQw/dXlceyhUBzstblyr WKKCfyBm5qUtsbqF6f+ELbNTENePgRnmYieMWQnNjJB8aHOXHEjX+tNujxIWnnITmSKl OTuxZ60c1tK45eqH769KJoxDbMKPoFjddiHUqPxRemAmeJaXEKuM9jJ+omDkk4lwJ4XK uBqYIiKUqyKUYuqivqWN9khxcdY/gakK1KwhdOgxcMfgEmITb97KqxdqvSEtqCif1VrG Yl34OL1dVHWsCc+yRm9lAGPkTICy2THvO2hjHEyFtZE1fnoXbmEu30PiLh7vFgFyhCop IjGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718805999; x=1719410799; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lHMs2w7rzhyDpUNwxn15l9giQDDCoRmucj6tBQYQZYk=; b=Nhvyz57C25P6LsqwuUvqD1zfVMBunr0GN5avECvrwpnxF8cSuSHWHEEisSMeiSQiqD Vnzc2rN6mgl4GBW/zrLM8wyLORGVx7c6kn/XCzs9LMRxjV8X9AggfiYMpYxej0h0sMYN Aw+WvbooKtJ3ili4uckFHPSR9oceg3p3Xl1kDy2KR+tuuy2keC98UG/l5jB59jzXvNqB vyjnju6lR6DxU0W70cFnhZZECpIhkZuvICIOmYKejueO2WXFC4B0m5DeG65RIQCSpKsZ g8aFBTG9UIl3oPLI4yOthQ+0uNcNEzBfEZmuYy45qRmYfMSdB7Hu2zPfG+EPFj4Ozjsu y3Qw== X-Gm-Message-State: AOJu0YxyTXIHaza7T92c867T+fQot1dJvCgwfWEFRUlxxePlISwamIg/ UYQ7AYxJD2K4YjBMfiIL7LZGxPRkBhqZyey/jyjTI26hLOIKm9xijsRgd5xFfoSYSYhqP4ML0Qr V2Su4ZGQ5GcUgnv4+JvjM8qAVeHymgivj X-Google-Smtp-Source: AGHT+IEcvNLjU+Y95VHSgUKd7vb2NyiHKzBVD1/A0EgLMI7+mzOa9HYegNG9HtZb/RERAfzVCh+Waop840+B+Xwh91Q= X-Received: by 2002:a17:906:ba81:b0:a6f:1c81:e220 with SMTP id a640c23a62f3a-a6fab607168mr206793766b.13.1718805999135; Wed, 19 Jun 2024 07:06:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Mikael Sundqvist Date: Wed, 19 Jun 2024 16:06:12 +0200 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: ABDB6AZNIJABV576VE5HMMLQUQGN5WRA X-Message-ID-Hash: ABDB6AZNIJABV576VE5HMMLQUQGN5WRA X-MailFrom: mickep@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: \brokenpenalties query List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============4405681000411526845==" --===============4405681000411526845== Content-Type: multipart/alternative; boundary="0000000000000431e4061b3eb561" --0000000000000431e4061b3eb561 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Wed, Jun 19, 2024 at 3:40=E2=80=AFPM Alan Bowen = 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. --0000000000000431e4061b3eb561 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

<= div dir=3D"ltr" class=3D"gmail_attr">On Wed, Jun 19, 2024 at 3:40=E2=80=AFP= M Alan Bowen <bowenalan03@gmail.com> wrote:
I have in the past relied on
=C2=A0 =C2=A0 \setpenaltie= s\brokenpenalties{1}{10000}\
to set the penalty for=C2=A0a page break after a hyph= en. But with the latest LMTX, when I run the file, I get the error=C2=A0mes= sage
Error=C2=A0=C2=A0=C2=A0count has to be 1 = for \brokenpenaltiesAny advi= ce on how to=C2=A0fix the file would be most=C2=A0welcome.

Alan

Probably only Hans (or Wolfgang) can give a comp= lete answer here. But

\startsetups [*default]
= =C2=A0 \directsetup{*reset}
=C2=A0=C2=A0\frozen\brokenpenalties 1 10000\= relax
\stopsetups

works here.
/Mikael

PS

An= interesting new feature is the possibility to set penalties depending on l= eft and right page, by using options. For example

= \startsetups [*default]
=C2=A0 \directsetup{*reset}
=C2=A0=C2=A0\froz= en\clubpenalties =C2=A0 3 options 4 1500 3000 250 500 0 0 \relax
\stopse= tups

sets club club penalties 1500 for first l= ine and 250 for second for going from left page to right page=C2=A0(and the= n 0 for the rest) and 3000 for first line and 500 for second (and rest 0) f= or going from right page to left page.

I hope this= helps a bit.
--0000000000000431e4061b3eb561-- --===============4405681000411526845== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============4405681000411526845==--