From: Fabrice Couvreur via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
Subject: Re: Page break with placement of a figure at the bottom of the page
Date: Thu, 10 Nov 2022 18:06:55 +0100 [thread overview]
Message-ID: <CACyK-ep-Di=5-kpfY4C1avwpo9cOsE0JGeqn7mBPHXNKcwP7dg@mail.gmail.com> (raw)
In-Reply-To: <CACyK-ep-hb6-7n5k36Rq1UHsmcQVoV1P_thK1A5typBVhJsRVg@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 3580 bytes --]
Hi,
Sorry to come back to you, but it seems to me that there is enough space
here.
Fabrice
Le jeu. 10 nov. 2022 à 18:04, Fabrice Couvreur <fabrice1.couvreur@gmail.com>
a écrit :
> Hi,
> Sorry to come back to you, but it seems to me that there is enough space
> here.
> Fabrice
>
> Le jeu. 10 nov. 2022 à 17:45, Fabrice Couvreur <
> fabrice1.couvreur@gmail.com> a écrit :
>
>> Hi,
>> Sorry to come back to you, but it seems to me that there is enough space
>> here.
>> Fabrice
>>
>> Le jeu. 10 nov. 2022 à 11:59, Fabrice Couvreur <
>> fabrice1.couvreur@gmail.com> a écrit :
>>
>>> Sorry to come back to you, but it seems to me that there is enough space
>>> here.
>>>
>>> Le jeu. 10 nov. 2022 à 11:36, Fabrice Couvreur <
>>> fabrice1.couvreur@gmail.com> a écrit :
>>>
>>>> Hi Bruce and Pablo,
>>>> Thank you very much, your explanations are very clear.
>>>> Cordially
>>>> Fabrice
>>>>
>>>> Le mer. 9 nov. 2022 à 19:39, Bruce Horrocks via ntg-context <
>>>> ntg-context@ntg.nl> a écrit :
>>>>
>>>>> 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
>>>>> when
>>>>> >> it seems to me that there is enough space, which poses some
>>>>> problems in
>>>>> >> the pagination of my documents.
>>>>> >
>>>>> > Hi Fabrice,
>>>>> >
>>>>> > your figure requires about 7¼ 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
>>>>> ends
>>>>> > 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=7.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} %% 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={right,none,high}]
>>>>>
>>>>> and then the image fits as you want it to.
>>>>> —
>>>>> 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
>>>>>
>>>>> ___________________________________________________________________________________
>>>>>
>>>>
[-- Attachment #1.2: Type: text/html, Size: 6578 bytes --]
[-- Attachment #2: ie_3-2.png --]
[-- Type: image/png, Size: 35691 bytes --]
[-- Attachment #3: ie_3-1.png --]
[-- Type: image/png, Size: 13560 bytes --]
[-- Attachment #4: Type: text/plain, Size: 496 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2022-11-10 17:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-09 16:51 Fabrice Couvreur via ntg-context
2022-11-09 18:22 ` Pablo Rodriguez via ntg-context
2022-11-09 18:38 ` Bruce Horrocks via ntg-context
2022-11-10 10:36 ` Fabrice Couvreur via ntg-context
[not found] ` <CACyK-eoFTi70+i_rtPYYY=w76O86c95FRLh1xru7Q1xJZNEp4g@mail.gmail.com>
[not found] ` <CACyK-eqCH76c7ea=fg=gN+niAhb2nBEqXGJXkp-RbOWUY2jfwQ@mail.gmail.com>
[not found] ` <CACyK-ep-hb6-7n5k36Rq1UHsmcQVoV1P_thK1A5typBVhJsRVg@mail.gmail.com>
2022-11-10 17:06 ` Fabrice Couvreur via ntg-context [this message]
2022-11-11 20:58 ` Bruce Horrocks via ntg-context
2022-11-12 11:28 ` Pablo Rodriguez via ntg-context
2022-11-12 14:09 ` Fabrice Couvreur via ntg-context
2022-11-13 8:24 ` Pablo Rodriguez via ntg-context
2022-11-13 10:32 ` Fabrice Couvreur via ntg-context
2022-11-13 13:37 ` Pablo Rodriguez via ntg-context
2022-11-16 13:55 ` Fabrice Couvreur via ntg-context
2022-11-16 13:59 ` Fabrice Couvreur via ntg-context
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='CACyK-ep-Di=5-kpfY4C1avwpo9cOsE0JGeqn7mBPHXNKcwP7dg@mail.gmail.com' \
--to=ntg-context@ntg.nl \
--cc=fabrice1.couvreur@gmail.com \
/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).