From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109423 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 19:11:23 +0100 Message-ID: References: <35814d97-14af-0aeb-ab21-d49e02fccdfb@gmx.es> <74860844-b1fd-af11-e798-2e25ad88dce3@gmail.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6536896137642611042==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13033"; mail-complaints-to="usenet@ciao.gmane.io" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 10 19:12:07 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 1kcY7i-0003HT-GP for gctc-ntg-context-518@m.gmane-mx.org; Tue, 10 Nov 2020 19:12:06 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EBDBF1A9E2A; Tue, 10 Nov 2020 19:11:39 +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 yR9ea8gT3vBX; Tue, 10 Nov 2020 19:11:38 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1A3411AA380; Tue, 10 Nov 2020 19:11:38 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4B9D81AA2F1 for ; Tue, 10 Nov 2020 19:11:37 +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 P6eB3ojat_BG for ; Tue, 10 Nov 2020 19:11:36 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.173; helo=mail-il1-f173.google.com; envelope-from=champignoom@gmail.com; receiver= Original-Received: from mail-il1-f173.google.com (mail-il1-f173.google.com [209.85.166.173]) (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 934EC1A9E2A for ; Tue, 10 Nov 2020 19:11:36 +0100 (CET) Original-Received: by mail-il1-f173.google.com with SMTP id n5so13045951ile.7 for ; Tue, 10 Nov 2020 10:11:36 -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=wYRpNRK9oQispsw6iFQ5s6UYdL/2TPjUffNt6Vbcqp0=; b=czrPFYVyZ0RiGPSP2edYXY4jhNMPsjveZN7fjqLsA2ChFk2disTTpl/PVLaIJaqZEy IXgwbt7VC27Y+UFxXwMpGhwL2nbtoXRmS1VWE4ETaoOeiliWvsq0BIi1g9BqypJIi08f W7ubLbwKI5t15WORdKf3+zaV+oVnNQ9wp4K6yCWMmCBEVcz/5OnYwmkcFGNOo5UD887q tsy2qna/98hDaQoGocDCkENoylWpqgbzofNsKvDkmpm4jyGEjqtAeBUN85oPBgTGSJOw 1msLSVLKNL1SGDTQmgBBvICjgmCzip8KXXZ73m6J8/CuXBuRq1KeiZEOf1xdWI/fuumK 1ZOQ== 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=wYRpNRK9oQispsw6iFQ5s6UYdL/2TPjUffNt6Vbcqp0=; b=bBSKTvJM4KqIa8aooEUI2+3JqPDLKqUXnbVtdILiO9epA0xwUExT3Be1jNGAwGiXSO jwL2xiPK7sOSJXcKfHouvi488o8CQ0Q1IWrT0ca4lHM3m8/sUpsZw0VHVdUEW+PEJ2k3 EzMX0XQCKJOoRvtKX4pOpUn6s78vJz5nVSmIxOyvrhmWTCMuBPxwvk6AE768N5EIau55 Dvy+7tK0EhUOoHUgd/jH9TXfE2VpElFsZWeJWd2XADwKLxUu1aO4TF1DusgJQOUS1atQ G6UIu35jS6qKtml2772jMPkg+UchMpjGEuL3ALvRew5QVh76MLIIOBy8NB7C4cC7JrHL XwbQ== X-Gm-Message-State: AOAM530u+MakTsZtdOWecwbZzFdHBbcK/uZHwLMkXleNlQvpb56JMtK2 ycWhsxkQ8wlCNSpIwzdBCuFhwnWK8BhnD1MpIgBZLSmBZOVX4Q== X-Google-Smtp-Source: ABdhPJyLWJqIufqHFFYOwb/aam6hTAACdqUYbaXBHutdy3IhMzgyp0bCxfF1ae+DGRsXE8EeMSqtLiTjFm8ogaPk75o= X-Received: by 2002:a05:6e02:df1:: with SMTP id m17mr15620386ilj.70.1605031895088; Tue, 10 Nov 2020 10:11:35 -0800 (PST) In-Reply-To: <74860844-b1fd-af11-e798-2e25ad88dce3@gmail.com> 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:109423 Archived-At: --===============6536896137642611042== Content-Type: multipart/alternative; boundary="000000000000f5c36c05b3c49bc0" --000000000000f5c36c05b3c49bc0 Content-Type: text/plain; charset="UTF-8" On Tue, 10 Nov 2020 at 18:25, Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote: > Sylvain Hubert schrieb am 10.11.2020 um 18:06: > > > Thanks for the suggestion, but as illustrated by the second example, > > copied here, where the section title is at the top of the page: > > > > \starttext > > \showframe > > \dorecurse{50}{a } > > \startsection[title=spec][before={\blank[preference,big]}, > > after={\blank[samepage,big]}] > > Your settings in the second argument of \startsection make no sense > because the optional argument is for userdata (values like author etc.) > > > \startxtable > > \startxrow > > \startxcell[ny=30]a\stopxcell\startxcell 1\stopxcell > > \stopxrow > > \dorecurse{29}{\startxrow\startxcell 2\stopxcell\stopxrow} > > \stopxtable > > \stoptext > > > > it is sometimes difficult to predict how much remaining space should > > trigger a line break. > > You can either reformat your table or put the table in a float > environment to move it to a place where it fits. > > Wolfgang > Weirdly enough, "\hskip 0pt" solves the problem. \setuphead[section][after={\blank[samepage]\hskip 0pt}] \starttext \showframe \dorecurse{50}{a } \startsection[title=spec] \startxtable \startxrow \startxcell[ny=30]a\stopxcell\startxcell 1\stopxcell \stopxrow \dorecurse{29}{\startxrow\startxcell 2\stopxcell\stopxrow} \stopxtable \stoptext Sylvain --000000000000f5c36c05b3c49bc0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, 10 Nov 2020 at 18:25, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com&= gt; wrote:
Sylva= in Hubert schrieb am 10.11.2020 um 18:06:

> Thanks for the suggestion, but as illustrated by the second example, <= br> > copied here, where the section title is at the top of the page:
>
>=C2=A0 =C2=A0 =C2=A0 \starttext
>=C2=A0 =C2=A0 =C2=A0 \showframe
>=C2=A0 =C2=A0 =C2=A0 \dorecurse{50}{a }
>=C2=A0 =C2=A0 =C2=A0 \startsection[title=3Dspec][before=3D{\blank[prefe= rence,big]},
> after=3D{\blank[samepage,big]}]

Your settings in the second argument of \startsection make no sense
because the optional argument is for userdata (values like author etc.)

>=C2=A0 =C2=A0 =C2=A0 \startxtable
>=C2=A0 =C2=A0 =C2=A0 \startxrow
>=C2=A0 =C2=A0 =C2=A0 \startxcell[ny=3D30]a\stopxcell\startxcell 1\stopx= cell
>=C2=A0 =C2=A0 =C2=A0 \stopxrow
>=C2=A0 =C2=A0 =C2=A0 \dorecurse{29}{\startxrow\startxcell 2\stopxcell\s= topxrow}
>=C2=A0 =C2=A0 =C2=A0 \stopxtable
>=C2=A0 =C2=A0 =C2=A0 \stoptext
>
> it is sometimes difficult to predict how much remaining space should <= br> > trigger a line break.

You can either reformat your table or put the table in a float
environment to move it to a place where it fits.

Wolfgang

Weirdly enough, "\hskip 0= pt" solves the problem.

=C2=A0 =C2=A0 \setuph= ead[section][after=3D{\blank[samepage]\hskip 0pt}]
=C2=A0 =C2=A0 \startt= ext
=C2=A0 =C2=A0 \showframe
=C2=A0 =C2=A0 \dorecurse{50}{a }
=C2= =A0 =C2=A0 \startsection[title=3Dspec]
=C2=A0 =C2=A0 \startxtable
=C2= =A0 =C2=A0 \startxrow
=C2=A0 =C2=A0 \startxcell[ny=3D30]a\stopxcell\star= txcell 1\stopxcell
=C2=A0 =C2=A0 \stopxrow
=C2=A0 =C2=A0 \dorecurse{2= 9}{\startxrow\startxcell 2\stopxcell\stopxrow}
=C2=A0 =C2=A0 \stopxtable=
=C2=A0 =C2=A0 \stoptext

Sylvain
--000000000000f5c36c05b3c49bc0-- --===============6536896137642611042== 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== --===============6536896137642611042==--