From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109413 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sylvain Hubert Newsgroups: gmane.comp.tex.context Subject: Re: page ends with a section title followed by a table Date: Tue, 10 Nov 2020 17:11:09 +0100 Message-ID: References: <35814d97-14af-0aeb-ab21-d49e02fccdfb@gmx.es> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6080129864766419178==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20205"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 10 17:12:18 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kcWFl-00058j-Vg for gctc-ntg-context-518@m.gmane-mx.org; Tue, 10 Nov 2020 17:12:18 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E48CD1A9D99; Tue, 10 Nov 2020 17:11:26 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g0j_wBONuUXr; Tue, 10 Nov 2020 17:11:25 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 28CBB1A9DCD; Tue, 10 Nov 2020 17:11:25 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3BAFD1A9C65 for ; Tue, 10 Nov 2020 17:11:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nElY0YPbb3Vy for ; Tue, 10 Nov 2020 17:11:22 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.43; helo=mail-io1-f43.google.com; envelope-from=champignoom@gmail.com; receiver= Original-Received: from mail-io1-f43.google.com (mail-io1-f43.google.com [209.85.166.43]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 6CC651A9C55 for ; Tue, 10 Nov 2020 17:11:22 +0100 (CET) Original-Received: by mail-io1-f43.google.com with SMTP id r9so14744838ioo.7 for ; Tue, 10 Nov 2020 08:11:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=+8P1kLd8ipHoOy8K9kyiPPdc6SM4hlrSAhyIvNfvaDc=; b=mwejK9/zbmOOM64lBfEJC6yHvLVdVB4IMtjlI19S1GQ2uQve1iNydu6PeiPfYtoNjj EPmddJXDgRHXixMe8Ef3Ae+A71p1LMmDG5ptYN2n4eAl7ZmjqFkWToxCMrfAOu8qF7dq cpubdyKP9eDhL607ce5+0U20BR0nSdEb9Uxe4UsTNWENNY6oe4zWkwFt8Dvs//yuD87c agQiXo9aZQk9BaZOwXmyRCuseHU1U2v5H+RdbqWO0X1hVZ4KVuKp/qWtdUM9DKIxuyh0 W22cK4BCEYwt6aBlNcvZ5XDYKBb1H0me2bQZ8vNwAwoe3X3JXpVBsUyuZmK/eNb0SxU1 TEpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=+8P1kLd8ipHoOy8K9kyiPPdc6SM4hlrSAhyIvNfvaDc=; b=KGEsfJb0ks348KGCIzBZ7Uwhwr73IrRQioOW/ClxA2k1aARbXw9mto3+BIB6/qBpxB B3VuMyLYi9HbmS2vg41EGIlBWzT7nJoLPiG+ixt8Gbiy2OzYLmGePDhh8ggJgCBtKPwZ WLr9mz6ihOv3CD5De/DyG7ks/piw0Gk9kK0oXbfOl8j84EQBaRJ4gQmQ2nhOnIZjhyuQ yjf0BSFSbu6SpfPLJ3uObqC/n7Tqy9m1nEDs5MTYBzNuNCJ3Sju1a65L0S/Wj1Bm6dhD s6/js9h2BpSrFl3o+iIk8RAZBST1AHQZprOtZOqtoHMZKSF2qNYfr90frmFqXdAnbHSf uHGA== X-Gm-Message-State: AOAM532rf4bPoZMxLIS9wc3AIYfP/sb3sIEJTAyCJmKqezYg+v4JPYb0 xNVTXShPpGrst+lkq+C3v1QeHHgtGyBTlBglrJhEdt3aIxfRqg== X-Google-Smtp-Source: ABdhPJy+7djZzjNguSyxf9FolbNalcKmS0q9onu4H7xA3OK4q8A5fvnCuXJrjYt7nl2qHqM73VtING+cTNhzVfZN/JY= X-Received: by 2002:a02:3f59:: with SMTP id c25mr16242617jaf.17.1605024680486; Tue, 10 Nov 2020 08:11:20 -0800 (PST) In-Reply-To: <35814d97-14af-0aeb-ab21-d49e02fccdfb@gmx.es> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:109413 Archived-At: --===============6080129864766419178== Content-Type: multipart/alternative; boundary="000000000000efab7005b3c2ed70" --000000000000efab7005b3c2ed70 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 10 Nov 2020 at 16:00, Pablo Rodriguez wrote: > On 11/10/20 9:55 AM, Sylvain Hubert wrote: > > Dear List, > > > > In the following example, the section title appears at the very end of > > the first page. > > [...] > > Does anyone know where to adjust the penalty in this case, so that the > > section title can be repositioned to the next page? > > Hi Sylvain, > > \setuphead[title] > [before=3D{\blank[preference, big], > after=3D{\blank[samepage, big]] > > In this case, the blank space before sets a preference for inserting a > page break. The blank space after requires to be in the same page with > next paragraph. > > Of course, you don=E2=80=99t need both simultaneously. > > Just in case it helps, > > Pablo > Hello Pablo, Thank you very much for the help. The penalty of \blank indeed brings the solution closer and it does format the previous example correctly. However, when I went back to the original document, neither [before=3D{\blank[preference, big]}] nor [after=3D{\blank[samepage, big]}] = nor both worked. I trimmed it into the following example which behaves the same= : \starttext \showframe \dorecurse{50}{a } \startsection[title=3Dspec][before=3D{\blank[preference,big]}, after=3D{\blank[samepage,big]}] \startxtable \startxrow \startxcell[ny=3D30]a\stopxcell\startxcell 1\stopxcell \stopxrow \dorecurse{29}{\startxrow\startxcell 2\stopxcell\stopxrow} \stopxtable \stoptext Do you have an idea on how this could also be formatted correctly or how one could inspect and debug the penalty? Thanks again! Sylvain --000000000000efab7005b3c2ed70 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Tue, 10 Nov 2020 at 16:00, Pablo Rodri= guez <oinos@gmx.es> wrote:
On 11/10/20 9:55 AM, S= ylvain Hubert wrote:
> Dear List,
>
> In the following example, the section title appears at the very end of=
> the first page.
> [...]
> Does anyone know where to adjust the penalty in this case, so that the=
> section title can be repositioned to the next page?

Hi Sylvain,

=C2=A0 \setuphead[title]
=C2=A0 =C2=A0 [before=3D{\blank[preference, big],
=C2=A0 =C2=A0 =C2=A0after=3D{\blank[samepage, big]]

In this case, the blank space before sets a preference for inserting a
page break. The blank space after requires to be in the same page with
next paragraph.

Of course, you don=E2=80=99t need both simultaneously.

Just in case it helps,

Pablo

Hello Pablo,

<= /div>
Thank you very much for the help. The penalty of \blank indeed br= ings the solution closer and it does format the previous example correctly.=

However, when I went back to the original documen= t, neither [before=3D{\blank[preference, big]}] nor [after=3D{\blank[samepa= ge, big]}] nor both worked. I trimmed it into the following example which b= ehaves the same:

=C2=A0 =C2=A0 \starttext
=C2= =A0 =C2=A0 \showframe
=C2=A0 =C2=A0 \dorecurse{50}{a }
=C2=A0 =C2=A0 = \startsection[title=3Dspec][before=3D{\blank[preference,big]}, after=3D{\bl= ank[samepage,big]}]
=C2=A0 =C2=A0 \startxtable
=C2=A0 =C2=A0 \startxr= ow
=C2=A0 =C2=A0 \startxcell[ny=3D30]a\stopxcell\startxcell 1\stopxcell<= br>=C2=A0 =C2=A0 \stopxrow
=C2=A0 =C2=A0 \dorecurse{29}{\startxrow\start= xcell 2\stopxcell\stopxrow}
=C2=A0 =C2=A0 \stopxtable
=C2=A0 =C2=A0 \= stoptext

Do you have an idea on how this could als= o be formatted correctly or how one could inspect and debug the penalty?

Thanks again!

Sylvain
--000000000000efab7005b3c2ed70-- --===============6080129864766419178== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============6080129864766419178==--