From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/116441 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Page break with placement of a figure at the bottom of the page Date: Thu, 10 Nov 2022 11:36:47 +0100 Message-ID: References: <050027cb-fef5-7759-7397-b6371d459bd1@gmx.es> <6DFD7161-E7F1-4B69-B68F-F3F2A0D8FAA3@scorecrow.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8702076472968958093==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20369"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Fabrice Couvreur To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 10 11:39:25 2022 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 1ot4xx-00056l-8R for gctc-ntg-context-518@m.gmane-mx.org; Thu, 10 Nov 2022 11:39:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id AAFCF28A1AE; Thu, 10 Nov 2022 11:38:44 +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 1XzVSd25XZOF; Thu, 10 Nov 2022 11:38:42 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CB97B28A369; Thu, 10 Nov 2022 11:38:42 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4EA8F28A369 for ; Thu, 10 Nov 2022 11:38:41 +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 HiykS6v9v-zG for ; Thu, 10 Nov 2022 11:38:39 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.52; helo=mail-qv1-f52.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-qv1-f52.google.com (mail-qv1-f52.google.com [209.85.219.52]) (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 1D98228A1AE for ; Thu, 10 Nov 2022 11:38:39 +0100 (CET) Original-Received: by mail-qv1-f52.google.com with SMTP id e15so1099600qvo.4 for ; Thu, 10 Nov 2022 02:38:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=dz6u/iQERqO5jnBvzBjBE/RVNTu038cNNVjdN7nwjvk=; b=BbEc+Oy5sGu1MnefVA6gwxzBGGSCCZt5LRUNXS7AYXXfPFDeiojYVoaLdOIxND/u8t 0s47Z6kmMDiGD7gf+4vqrBfKYUvLnVbug/ykgvcynZFEIQPNNoNJHSOrBhygz/WLeQ54 I8q6z8FmvpV8wUGC1gVhPXoUtJPJFPVb94jNRortq+WvCaZ/zgxhKBfVGNj0Hhz1BLRg 7nHo7lO0qabRymWSF7vwhXgDAdxZajEd8+01Fb0jp+k7tL5W0ytvXW8AZS3bMaJ9t0bu IkqeAdNaVVBqjdv3AywKn/X9vIU1d4cCrjrJ3nkPkZVhoehpTitfiNpr5WfrNMqAqeR7 LIkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=dz6u/iQERqO5jnBvzBjBE/RVNTu038cNNVjdN7nwjvk=; b=3ChFIHIvRZMJujq2/r13hVTKGbUjhUJ5iFVgcBnve77t8o4zbXyho6HWVW5ox+iVz5 c5/sSoBoeI2hEK8lT2XOyagQX15yFGTGk/m/pIdP1Pc8BvN2O9ygbUvalS7bBBrO9LbY HPS/fSXGp+iFYv3M88Pd6V0/+0vpHhQVWPav4Y3KOn2C2r3YH61olNZT2ydZm67akgna nx/zDx2yYFMrDtxtSvfhxOZjo+/BATeBo285x2+NritG89SJM0wfj4ui8WXjFksO1HwB lQ8s/KWi47rG5VyRyp9INiZlG+dbkqX2wahEk58z2F0av8TtkDQSOER6LPD0F5LBwJcD WLpQ== X-Gm-Message-State: ACrzQf0wkb1aDIhGW7udvQMMROdcu7Zx0rTDoos1jEhNRMbk5oQfZBGT LUpl8PK6iqY1JFhz88WNItQS1G33cze5Ss9zfn3HeQNWgE4= X-Google-Smtp-Source: AMsMyM7m9+6dQySsIH2s2dE5Pk4ZOYM1c2YPbjOm2xfRHRVzqHvGAIME5V+BcvFQ0ZXPQxa7UQ9XbLn0zovTRs9oyCo= X-Received: by 2002:a05:6214:1d2b:b0:4bb:62b6:68a with SMTP id f11-20020a0562141d2b00b004bb62b6068amr59403501qvd.82.1668076717115; Thu, 10 Nov 2022 02:38:37 -0800 (PST) In-Reply-To: <6DFD7161-E7F1-4B69-B68F-F3F2A0D8FAA3@scorecrow.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:116441 Archived-At: --===============8702076472968958093== Content-Type: multipart/alternative; boundary="0000000000002e8ebe05ed1b60aa" --0000000000002e8ebe05ed1b60aa Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Bruce and Pablo, Thank you very much, your explanations are very clear. Cordially Fabrice Le mer. 9 nov. 2022 =C3=A0 19:39, Bruce Horrocks via ntg-context < ntg-context@ntg.nl> a =C3=A9crit : > On 9 Nov 2022, at 18:22, Pablo Rodriguez via ntg-context < > ntg-context@ntg.nl> wrote: > > > > On 11/9/22 17:51, Fabrice Couvreur via ntg-context wrote: > >> Hi, > >> I find that for some time (but maybe the problem comes from me !), the > >> placement of a figure at the bottom of the page causes a page break wh= en > >> it seems to me that there is enough space, which poses some problems i= n > >> the pagination of my documents. > > > > Hi Fabrice, > > > > your figure requires about 7=C2=BC lines (one line before, six for the = image > > itself, and some extra space after it). > > > > Your layout for the first page only allows 43 lines and sample text end= s > > on line 37. > > > > Replace \showframe with \showgrid and you will see that there might be > > not enough space to fit the image in the first page. > > > > Add "bottomspace=3D7.25mm" to the layout for the first page and the ima= ge > > will fit in the first page. > > > > Just in case it might help, > > Or Pablo's answer shown another way... change the end of the example to: > > \starttext > \dorecurse{11}{\input ward} > \placerecipe{}{\externalfigure[dum]} > \dorecurse{5}{\input ward} %% extra > \stoptext > > and the extra text shows how much space the image requires. Holding a > ruler up to the screen you can see that it won't fit. > > The problem seems to be that the image is reserving space for a caption > even though there isn't a caption. A work-around is to change \setupfloat > to the following: > > \setupfloat > [recipe] > [default=3D{right,none,high}] > > and then the image fits as you want it to. > =E2=80=94 > Bruce Horrocks > Hampshire, UK > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > _________________________________________________________________________= __________ > --0000000000002e8ebe05ed1b60aa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Bruce and Pablo,
Thank you very much, your explanations a= re very clear.
Cordially
Fabrice

Le=C2=A0mer. 9 nov. 2022 =C3= =A0=C2=A019:39, Bruce Horrocks via ntg-context <ntg-context@ntg.nl> a =C3=A9crit=C2=A0:
On 9 Nov 2022, at 18:22, Pablo= Rodriguez via ntg-context <ntg-context@ntg.nl> wrote:
>
> On 11/9/22 17:51, Fabrice Couvreur via ntg-context wrote:
>> Hi,
>> I find that for some time (but maybe the problem comes from me !),= the
>> placement of a figure at the bottom of the page causes a page brea= k when
>> it seems to me that there is enough space, which poses some proble= ms in
>> the pagination of my documents.
>
> Hi Fabrice,
>
> your figure requires about 7=C2=BC lines (one line before, six for the= image
> itself, and some extra space after it).
>
> Your layout for the first page only allows 43 lines and sample text en= ds
> on line 37.
>
> Replace \showframe with \showgrid and you will see that there might be=
> not enough space to fit the image in the first page.
>
> Add "bottomspace=3D7.25mm" to the layout for the first page = and the image
> will fit in the first page.
>
> Just in case it might help,

Or Pablo's answer shown another way... change the end of the example to= :

\starttext
\dorecurse{11}{\input ward}
\placerecipe{}{\externalfigure[dum]}
\dorecurse{5}{\input ward}=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0%= % extra
\stoptext

and the extra text shows how much space the image requires. Holding a ruler= up to the screen you can see that it won't fit.

The problem seems to be that the image is reserving space for a caption eve= n though there isn't a caption. A work-around is to change \setupfloat = to the following:

=C2=A0\setupfloat
=C2=A0 =C2=A0 =C2=A0[recipe]
=C2=A0 =C2=A0 =C2=A0[default=3D{right,none,high}]

and then the image fits as you want it to.
=E2=80=94
Bruce Horrocks
Hampshire, UK

___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / https://www.ntg.nl/mailman/listinfo/= ntg-context
webpage=C2=A0 : https://www.pragma-ade.nl / http://context.aanhet.net
archive=C2=A0 :
https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: https://contextgarden.net
___________________________________________________________________________= ________
--0000000000002e8ebe05ed1b60aa-- --===============8702076472968958093== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cHM6Ly93d3cubnRnLm5sL21haWxtYW4v bGlzdGluZm8vbnRnLWNvbnRleHQKd2VicGFnZSAgOiBodHRwczovL3d3dy5wcmFnbWEtYWRlLm5s IC8gaHR0cDovL2NvbnRleHQuYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHBzOi8vYml0YnVja2V0 Lm9yZy9waGcvY29udGV4dC1taXJyb3IvY29tbWl0cy8Kd2lraSAgICAgOiBodHRwczovL2NvbnRl eHRnYXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============8702076472968958093==--