Re: [NTG-context] Page break with placement of a figure at the bottom of the page
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
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 !),
> 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
the 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
___________________________________________________________________________________
On 10 Nov 2022, at 17:06, Fabrice Couvreur via ntg-context
wrote: Hi, Sorry to come back to you, but it seems to me that there is enough space here. Fabrice
For some reason your PNG images came through in extremely low resolution. Without having the ConTeXt source it's hard to say for sure what's happening - for example, I would have expected the text on the second page to be at the bottom of the first even if there wasn't room for the image - because that was what was happening in your first example. — Bruce Horrocks Hampshire, UK
On 11/11/22 21:58, Bruce Horrocks via ntg-context wrote:
On 10 Nov 2022, at 17:06, Fabrice Couvreur via ntg-context wrote:
Hi, Sorry to come back to you, but it seems to me that there is enough space here. Fabrice
For some reason your PNG images came through in extremely low resolution. Without having the ConTeXt source it's hard to say for sure what's happening - for example, I would have expected the text on the second page to be at the bottom of the first even if there wasn't room for the image - because that was what was happening in your first example.
Hi Fabrice and Bruce, I agree that the source would be helpful to say what may be hard for ConTeXt. In any case, ConTeXt has a hard time with pagebreaks when you combine elements that need both horizontal and vertical calculation, such as in: \starttext \dorecurse{64} {\input knuth\footnote{\input zapf} \startitemize[a, columns, eight, packed] \dorecurse{64}{\item\currentitemnumber} \stopitemize} \stoptext There is a similar issue with paragraph notes. Pablo
Hi Pablo and Bruce, Please try to figure out what is not working. I'm sorry but I forgot in my previous post files. Fabrice Le sam. 12 nov. 2022 à 12:28, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit :
On 11/11/22 21:58, Bruce Horrocks via ntg-context wrote:
On 10 Nov 2022, at 17:06, Fabrice Couvreur via ntg-context wrote:
Hi, Sorry to come back to you, but it seems to me that there is enough space here. Fabrice
For some reason your PNG images came through in extremely low resolution. Without having the ConTeXt source it's hard to say for sure what's happening - for example, I would have expected the text on the second page to be at the bottom of the first even if there wasn't room for the image - because that was what was happening in your first example.
Hi Fabrice and Bruce,
I agree that the source would be helpful to say what may be hard for ConTeXt.
In any case, ConTeXt has a hard time with pagebreaks when you combine elements that need both horizontal and vertical calculation, such as in:
\starttext \dorecurse{64} {\input knuth\footnote{\input zapf}
\startitemize[a, columns, eight, packed] \dorecurse{64}{\item\currentitemnumber} \stopitemize} \stoptext
There is a similar issue with paragraph notes.
Pablo
___________________________________________________________________________________ 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
___________________________________________________________________________________
On 11/12/22 15:09, Fabrice Couvreur via ntg-context wrote:
Hi Pablo and Bruce, Please try to figure out what is not working. I'm sorry but I forgot in my previous post files.
Hi Fabrice, I get empty files when compiling premiere-modules.tex and premiere-macros.tex and error message with tikz-style.tex. I guess a fourth file invoking the other three files may be missing here. Pablo
Hi Pablo, Indeed but I posted these two files in a previous post. Fabrice Le dim. 13 nov. 2022 à 09:24, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit :
On 11/12/22 15:09, Fabrice Couvreur via ntg-context wrote:
Hi Pablo and Bruce, Please try to figure out what is not working. I'm sorry but I forgot in my previous post files.
Hi Fabrice,
I get empty files when compiling premiere-modules.tex and premiere-macros.tex and error message with tikz-style.tex.
I guess a fourth file invoking the other three files may be missing here.
Pablo
___________________________________________________________________________________ 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
___________________________________________________________________________________
On 11/13/22 11:32, Fabrice Couvreur via ntg-context wrote:
Hi Pablo, Indeed but I posted these two files in a previous post.
Hi Fabrice, the output from your ie_3.tex is too big for the list, so https://pdf.ousia.tk/ie_3.pdf contains it. I see no problem there, but I think that the output from https://mailman.ntg.nl/pipermail/ntg-context/2022/107191.html may come from a different source. BTW, I couldn’t find "ie_3.tex" in https://mailman.ntg.nl/pipermail/ntg-context/2022.txt.gz (which seems to be generated with messages previous to current date). If you sent the files before, it is fine to include a link to the relevant message in the list (such as the first link included in this message). BTW, it might be worth considering a GitHub or GitLab repository for not minimal samples. There files may be stored (and the whole repository might be deleted when not needed). I hope it helps, Pablo
Hi Bruce and Pablo, I'm sorry for the late reply but I'm running out of time right now. Thanks for trying to solve the problem. I think the problem comes from the pyramid.png file. Fabrice Le dim. 13 nov. 2022 à 14:37, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit :
On 11/13/22 11:32, Fabrice Couvreur via ntg-context wrote:
Hi Pablo, Indeed but I posted these two files in a previous post.
Hi Fabrice,
the output from your ie_3.tex is too big for the list, so https://pdf.ousia.tk/ie_3.pdf contains it.
I see no problem there, but I think that the output from https://mailman.ntg.nl/pipermail/ntg-context/2022/107191.html may come from a different source.
BTW, I couldn’t find "ie_3.tex" in https://mailman.ntg.nl/pipermail/ntg-context/2022.txt.gz (which seems to be generated with messages previous to current date).
If you sent the files before, it is fine to include a link to the relevant message in the list (such as the first link included in this message).
BTW, it might be worth considering a GitHub or GitLab repository for not minimal samples. There files may be stored (and the whole repository might be deleted when not needed).
I hope it helps,
Pablo
___________________________________________________________________________________ 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
___________________________________________________________________________________
Hi Bruce and Pablo,
I'm sorry for the late reply but I'm running out of time right now. Thanks
for trying to solve the problem. I think the problem comes from the
pyramid.png file.
Fabrice
Le mer. 16 nov. 2022 à 14:55, Fabrice Couvreur
Hi Bruce and Pablo, I'm sorry for the late reply but I'm running out of time right now. Thanks for trying to solve the problem. I think the problem comes from the pyramid.png file. Fabrice
Le dim. 13 nov. 2022 à 14:37, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit :
On 11/13/22 11:32, Fabrice Couvreur via ntg-context wrote:
Hi Pablo, Indeed but I posted these two files in a previous post.
Hi Fabrice,
the output from your ie_3.tex is too big for the list, so https://pdf.ousia.tk/ie_3.pdf contains it.
I see no problem there, but I think that the output from https://mailman.ntg.nl/pipermail/ntg-context/2022/107191.html may come from a different source.
BTW, I couldn’t find "ie_3.tex" in https://mailman.ntg.nl/pipermail/ntg-context/2022.txt.gz (which seems to be generated with messages previous to current date).
If you sent the files before, it is fine to include a link to the relevant message in the list (such as the first link included in this message).
BTW, it might be worth considering a GitHub or GitLab repository for not minimal samples. There files may be stored (and the whole repository might be deleted when not needed).
I hope it helps,
Pablo
___________________________________________________________________________________ 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
___________________________________________________________________________________
participants (3)
-
Bruce Horrocks
-
Fabrice Couvreur
-
Pablo Rodriguez