Fwd: Re: footnotes in captions in floatcombinations
-------- Forwarded Message --------
Subject: Re: [NTG-context] footnotes in captions in floatcombinations
Date: Wed, 16 Sep 2020 13:38:44 +0200
From: Hans Hagen
\useMPlibrary[dum] \automigrateinserts
that one does nothing in lmtx
\showframe
\starttext
\input lorem
\startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={Left Image\footnote[f:3]{\input knuth }}] \externalfigure[003][width=.48\textwidth] \stopplacefigure \startplacefigure[title={Right Image\footnote[f:4]{Anything}}] \externalfigure[004][width=.48\textwidth] \stopplacefigure \stopfloatcombination \stopplacefigure
\input tufte
\stoptext It was kind of tricky to identify (as i first though that you meant that it also happened in mkiv) but I managed to find a solution. New bin needed so not yet uploaded.
Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Am 16.09.2020 um 13:39 schrieb Hans Hagen
: On 9/16/2020 12:08 PM, Henning Hraban Ramm wrote:
\automigrateinserts
that one does nothing in lmtx
At least it doesn’t interfere. ;) But good to know it’s becoming obsolete.
\showframe \starttext \input lorem \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={Left Image\footnote[f:3]{\input knuth }}] \externalfigure[003][width=.48\textwidth] \stopplacefigure \startplacefigure[title={Right Image\footnote[f:4]{Anything}}] \externalfigure[004][width=.48\textwidth] \stopplacefigure \stopfloatcombination \stopplacefigure \input tufte \stoptext It was kind of tricky to identify (as i first though that you meant that it also happened in mkiv)
In MkIV I get images and footnotes, but the width of the footnotes is always that of the image. In LMTX I don’t get anything.
but I managed to find a solution. New bin needed so not yet uploaded.
Thank you! Looking forward to it. Hraban
Am 16.09.2020 um 13:48 schrieb Henning Hraban Ramm
: In MkIV I get images and footnotes, but the width of the footnotes is always that of the image.
In LMTX I don’t get anything.
Current state (v. 2020.09.18 20:32): Some progress: Footnotes are still as wide as the image they belong to (in both versions), but in LMTX some footnotes are missing. Hraban
On 9/19/2020 6:36 PM, Henning Hraban Ramm wrote:
Am 16.09.2020 um 13:48 schrieb Henning Hraban Ramm
: In MkIV I get images and footnotes, but the width of the footnotes is always that of the image.
In LMTX I don’t get anything.
Current state (v. 2020.09.18 20:32):
Some progress: Footnotes are still as wide as the image they belong to (in both versions), but in LMTX some footnotes are missing.
mwe missing ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Am 20.09.2020 um 13:34 schrieb Hans Hagen
: On 9/19/2020 6:36 PM, Henning Hraban Ramm wrote:
Am 16.09.2020 um 13:48 schrieb Henning Hraban Ramm
: In MkIV I get images and footnotes, but the width of the footnotes is always that of the image.
In LMTX I don’t get anything. Current state (v. 2020.09.18 20:32): Some progress: Footnotes are still as wide as the image they belong to (in both versions), but in LMTX some footnotes are missing. mwe missing
Regarding the width it’s still the same MWE (slightly adapted), apparently not related to floatcombinations but a general problem of footnotes in captions; couldn’t reproduce “some missing” in an MWE yet. Hraban \useMPlibrary[dum] \automigrateinserts % nop in LMTX \showframe \starttext \input knuth % Footnotes, but no combination %\startplacefigure[location=none] %\startfloatcombination[2*1] \startplacefigure[title={1 Image with footnote\footnote[f:1]{\input lorem }}] \externalfigure[001][width=.34\textwidth] \stopplacefigure \startplacefigure[title={2 Another image with footnote\footnote[f:2]{\input tufte }}] \externalfigure[002][width=.62\textwidth] \stopplacefigure %\stopfloatcombination %\stopplacefigure \input lorem % both \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={3 Left Image\footnote[f:3]{\input knuth }}] \externalfigure[003][width=.34\textwidth] \stopplacefigure \startplacefigure[title={4 Right Image\footnote[f:4]{\input dawkins }}] \externalfigure[004][width=.62\textwidth] \stopplacefigure \stopfloatcombination \stopplacefigure \input lorem % combination without footnotes \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={5 Left Image}] \externalfigure[005][width=.34\textwidth] \stopplacefigure \startplacefigure[title={6 Right Image}] \externalfigure[006][width=.62\textwidth] \stopplacefigure \stopfloatcombination \stopplacefigure \input tufte \stoptext
Am 20.09.2020 um 13:59 schrieb Henning Hraban Ramm
: In MkIV I get images and footnotes, but the width of the footnotes is always that of the image.
In LMTX I don’t get anything. Current state (v. 2020.09.18 20:32): Some progress: Footnotes are still as wide as the image they belong to (in both versions), but in LMTX some footnotes are missing. mwe missing
Regarding the width it’s still the same MWE (slightly adapted), apparently not related to floatcombinations but a general problem of footnotes in captions; couldn’t reproduce “some missing” in an MWE yet.
I found another problem with captions in floatcombinations: They are always bottom-aligned to each other, so that the distance between image and caption differs. This is the same in current LMTX and MkIV. Hraban \usemodule[visual] \definecolor[fakerulecolor][c=.2,m=.1,k=.2] \useMPlibrary[dum] \automigrateinserts % nop in LMTX \showframe \setupcaptions[ headstyle={\ss\bfx}, align={flushleft,high}, hang=yes, ] \starttext \fakewords{10}{30} % Footnotes, but no combination %\startplacefigure[location=none] %\startfloatcombination[2*1] \startplacefigure[title={\fakewords{5}{10}\footnote[f:1]{\fakewords{10}{30}}}] \externalfigure[001][width=.34\textwidth] \stopplacefigure \startplacefigure[title={\fakewords{5}{10}\footnote[f:2]{\fakewords{10}{30}}}] \externalfigure[002][width=.62\textwidth] \stopplacefigure %\stopfloatcombination %\stopplacefigure \fakewords{20}{30} % both \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={\fakewords{5}{10}\footnote[f:3]{\fakewords{10}{30}}}] \externalfigure[003][width=.34\textwidth] \stopplacefigure \startplacefigure[title={\fakewords{5}{10}\footnote[f:4]{\fakewords{10}{30}}}] \externalfigure[004][width=.62\textwidth] \stopplacefigure \stopfloatcombination \stopplacefigure \fakewords{10}{30} % combination without footnotes \startplacefigure[location=none] \startfloatcombination[2*1] \startplacefigure[title={\fakewords{5}{10}}] \externalfigure[005][width=.34\textwidth] \stopplacefigure \startplacefigure[title={\fakewords{5}{10}}] \externalfigure[006][width=.62\textwidth] \stopplacefigure \stopfloatcombination \stopplacefigure \fakewords{5}{10} \stoptext
Am 20.09.2020 um 16:22 schrieb Henning Hraban Ramm
: In MkIV I get images and footnotes, but the width of the footnotes is always that of the image.
In LMTX I don’t get anything. Current state (v. 2020.09.18 20:32): Some progress: Footnotes are still as wide as the image they belong to (in both versions), but in LMTX some footnotes are missing. mwe missing
Regarding the width it’s still the same MWE (slightly adapted), apparently not related to floatcombinations but a general problem of footnotes in captions; couldn’t reproduce “some missing” in an MWE yet.
\setupfootnotes[ width=\textwidth, ] actually fixes that problem. Ouch. Didn’t find a setup that changes the alignment, though. Hraban
Coming back to this complex:
Am 20.09.2020 um 16:38 schrieb Henning Hraban Ramm
: Didn’t find a setup that changes the alignment, though.
The alignment problem is fixed, can’t remember in which release. But I still struggle with those footnotes, unfortunately I can’t tell the author “footnotes in captions are evil, don’t do that”. And I know it’s a really tricky edge case. FiCiFC work, if ... - there’s enough space on the page where the float is placed – page breaks don’t disturb the order of footnotes The latter means: If I use \placefigure[top]... in front of a paragraph full of footnotes, the paragraph starts on one page and the image gets placed on the next, then the footnote in the figure’s caption might have e.g. no.11, the paragraph uses footnote no.12 etc. The first footnote(s) of the paragraph find their place on the first page, the footnote(s) of the figure will never get placed, because its numbering is out of order. If I put \placefigure in the middle of the paragraph, I can keep the order of footnotes and get to see the footnote of the figure, but the paragraph is split into two. - Would it be possible to do the footnote numbering after the float placement, so that a footnote in a float keeps the reading order or numbers and gets its place on the right page? – As a workaround, how can I use \placefigure in the middle of a paragraph without breaking it? Hraban
Hi, I still would be happy about answers to the following questions:
Am 02.10.2020 um 12:13 schrieb Henning Hraban Ramm
: - Would it be possible to do the footnote numbering after the float placement, so that a footnote in a float caption keeps the reading order of numbers and gets its place on the right page?
– As a workaround, how can I use \placefigure in the middle of a paragraph without breaking it?
And I isolated another problem, or even two: \usemodule[visual] \definecolor[fakerulecolor][c=.2,m=.1,k=.2] \useMPlibrary[dum] \automigrateinserts % nop in LMTX \showframe \setupcaptions[ headstyle={\ss\bfx}, align={flushleft,high}, prefixsegments=none, location={bottom,low}, hang=yes, ] \setupfootnotes[ width=\textwidth, ] \starttext \startplacefigure[location=page,title={\fakewords{5}{7}\footnote{\fakewords{20}{30}}}]% rId128 \externalfigure[dummy][width=\textwidth,height=.66\textheight] \stopplacefigure \fakewords{5}{10} \stoptext In this example, the footnote is broken to the next page, even if there’s plenty of space. How can I avoid that? If I put it in a \vbox, the footnote number is too low. Additionally and strangely, the float page is doubled. I experienced that sometimes with last pages of documents. That must be a bug. Hraban
participants (2)
-
Hans Hagen
-
Henning Hraban Ramm