Re: [NTG-context] footnotes in captions in floatcombinations

2020-10-11 Thread Henning Hraban Ramm
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
___
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
___


Re: [NTG-context] footnotes in captions in floatcombinations

2020-10-02 Thread Henning Hraban Ramm
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
___
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
___


Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-20 Thread Henning Hraban Ramm

> 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
___
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
___


Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-20 Thread Henning Hraban Ramm


> 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

___
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
___


Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-20 Thread Henning Hraban Ramm


> 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

___
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
___


Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-20 Thread 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

-
  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
___


Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-19 Thread Henning Hraban Ramm


> 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
___
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
___


Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-16 Thread Henning Hraban Ramm

> 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
___
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
___


Re: [NTG-context] footnotes in captions in floatcombinations

2020-09-16 Thread Henning Hraban Ramm
Thank you, Otared!

I updated to LMTX/MkIV 2020.09.15 18:11:

The images appear if I use --luatex (i.e. MkIV vs. LMTX),
but the footnotes use the width of the image.
The old MWE can’t show that.

Without \automigrateinserts I get both images and the short footnote, but not 
the long one.


\useMPlibrary[dum]
\automigrateinserts
\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




Am 14.09.2020 um 22:43 schrieb Otared Kavian :
> 
> Hi Hraban,
> 
> Your are right, your file is typeset correctly as expected with ConTeXt mkiv 
> version 2020.06.25 10:55, but not with the current lmtx.
> (I am sending you the output with this message).
> 
> Best regards: Otared K.
> 
> 
> 
>> On 14 Sep 2020, at 21:40, Henning Hraban Ramm  wrote:
>> 
>> Hi,
>> I got a problem with current LMTX as well as with other versions – while I’m 
>> sure it used to work at some point:
>> 
>> As soon as there’s a footnote in the caption of a placefigure within a 
>> floatcombination, the figure won’t get placed. There’s no problem outside of 
>> floatcombinations or with floatcombinations without footnotes.
>> 
>> Please let there be an easy fix...
>> 
>> Hraban
>> 
>> 
>> \useMPlibrary[dum]
>> \automigrateinserts
>> \showframe
>> 
>> \starttext
>> 
>> \input knuth
>> 
>> %\startplacefigure[location=none]
>> %\startfloatcombination[2*1]
>> \startplacefigure[title={Image with footnote\footnote[f:1]{foo bar baz}}]
>> \externalfigure[001][width=.48\textwidth]
>> \stopplacefigure
>> \startplacefigure[title={Another image with 
>> footnote\footnote[f:2]{Something}}]
>> \externalfigure[002][width=.48\textwidth]
>> \stopplacefigure
>> %\stopfloatcombination
>> %\stopplacefigure
>> 
>> \input lorem
>> 
>> \startplacefigure[location=none]
>> \startfloatcombination[2*1]
>> \startplacefigure[title={Left Image\footnote[f:3]{doo be doo}}]
>> \externalfigure[003][width=.48\textwidth]
>> \stopplacefigure
>> \startplacefigure[title={Right Image%\footnote[f:4]{Anything}
>> }]
>> \externalfigure[004][width=.48\textwidth]
>> \stopplacefigure
>> \stopfloatcombination
>> \stopplacefigure
>> 
>> \startplacefigure[location=none]
>> \startfloatcombination[2*1]
>> \startplacefigure[title={Left Image}]
>> \externalfigure[005][width=.48\textwidth]
>> \stopplacefigure
>> \startplacefigure[title={Right Image}]
>> \externalfigure[006][width=.48\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
>> ___
> 

___
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
___