ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Fwd: Re: footnotes in captions in floatcombinations
       [not found] <11f8c593-ad57-6dad-4b06-f5100a406713@xs4all.nl>
@ 2020-09-16 11:39 ` Hans Hagen
  2020-09-16 11:48   ` Henning Hraban Ramm
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2020-09-16 11:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users




-------- Forwarded Message --------
Subject: Re: [NTG-context] footnotes in captions in floatcombinations
Date: Wed, 16 Sep 2020 13:38:44 +0200
From: Hans Hagen <j.hagen@xs4all.nl>
To: Henning Hraban Ramm <texml@fiee.net>

On 9/16/2020 12:08 PM, Henning Hraban Ramm wrote:

> \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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: footnotes in captions in floatcombinations
  2020-09-16 11:39 ` Fwd: Re: footnotes in captions in floatcombinations Hans Hagen
@ 2020-09-16 11:48   ` Henning Hraban Ramm
  2020-09-19 16:36     ` Henning Hraban Ramm
  0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2020-09-16 11:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 16.09.2020 um 13:39 schrieb Hans Hagen <j.hagen@xs4all.nl>:
> 
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: footnotes in captions in floatcombinations
  2020-09-16 11:48   ` Henning Hraban Ramm
@ 2020-09-19 16:36     ` Henning Hraban Ramm
  2020-09-20 11:34       ` Hans Hagen
  0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2020-09-19 16:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> Am 16.09.2020 um 13:48 schrieb Henning Hraban Ramm <texml@fiee.net>:
> 
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: footnotes in captions in floatcombinations
  2020-09-19 16:36     ` Henning Hraban Ramm
@ 2020-09-20 11:34       ` Hans Hagen
  2020-09-20 11:59         ` Henning Hraban Ramm
  0 siblings, 1 reply; 9+ messages in thread
From: Hans Hagen @ 2020-09-20 11:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Henning Hraban Ramm

On 9/19/2020 6:36 PM, Henning Hraban Ramm wrote:
> 
> 
>> Am 16.09.2020 um 13:48 schrieb Henning Hraban Ramm <texml@fiee.net>:
>>
>> 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
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: footnotes in captions in floatcombinations
  2020-09-20 11:34       ` Hans Hagen
@ 2020-09-20 11:59         ` Henning Hraban Ramm
  2020-09-20 14:22           ` Henning Hraban Ramm
  0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2020-09-20 11:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> Am 20.09.2020 um 13:34 schrieb Hans Hagen <j.hagen@xs4all.nl>:
> 
> On 9/19/2020 6:36 PM, Henning Hraban Ramm wrote:
>>> Am 16.09.2020 um 13:48 schrieb Henning Hraban Ramm <texml@fiee.net>:
>>> 
>>> 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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: footnotes in captions in floatcombinations
  2020-09-20 11:59         ` Henning Hraban Ramm
@ 2020-09-20 14:22           ` Henning Hraban Ramm
  2020-09-20 14:38             ` Henning Hraban Ramm
  0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2020-09-20 14:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> Am 20.09.2020 um 13:59 schrieb Henning Hraban Ramm <texml@fiee.net>:
>>>> 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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: footnotes in captions in floatcombinations
  2020-09-20 14:22           ` Henning Hraban Ramm
@ 2020-09-20 14:38             ` Henning Hraban Ramm
  2020-10-02 10:13               ` Henning Hraban Ramm
  0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2020-09-20 14:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 20.09.2020 um 16:22 schrieb Henning Hraban Ramm <texml@fiee.net>:
>>>>> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: footnotes in captions in floatcombinations
  2020-09-20 14:38             ` Henning Hraban Ramm
@ 2020-10-02 10:13               ` Henning Hraban Ramm
  2020-10-11 17:46                 ` Henning Hraban Ramm
  0 siblings, 1 reply; 9+ messages in thread
From: Henning Hraban Ramm @ 2020-10-02 10:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Coming back to this complex:

> Am 20.09.2020 um 16:38 schrieb Henning Hraban Ramm <texml@fiee.net>:
> 
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: footnotes in captions in floatcombinations
  2020-10-02 10:13               ` Henning Hraban Ramm
@ 2020-10-11 17:46                 ` Henning Hraban Ramm
  0 siblings, 0 replies; 9+ messages in thread
From: Henning Hraban Ramm @ 2020-10-11 17:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi, I still would be happy about answers to the following questions:

> Am 02.10.2020 um 12:13 schrieb Henning Hraban Ramm <texml@fiee.net>:
> 
> - 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-10-11 17:46 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <11f8c593-ad57-6dad-4b06-f5100a406713@xs4all.nl>
2020-09-16 11:39 ` Fwd: Re: footnotes in captions in floatcombinations Hans Hagen
2020-09-16 11:48   ` Henning Hraban Ramm
2020-09-19 16:36     ` Henning Hraban Ramm
2020-09-20 11:34       ` Hans Hagen
2020-09-20 11:59         ` Henning Hraban Ramm
2020-09-20 14:22           ` Henning Hraban Ramm
2020-09-20 14:38             ` Henning Hraban Ramm
2020-10-02 10:13               ` Henning Hraban Ramm
2020-10-11 17:46                 ` Henning Hraban Ramm

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).