Re: [NTG-context] placetable and localfootnotes

2019-05-01 Thread Wolfgang Schuster

Otared Kavian schrieb am 01.05.2019 um 12:01:

Thanks Alan for your attention.
In fact the footnote mechanism lacks the ability to work fine in a certain 
number of environments, including in framedtext. I don't know whether this can 
be overcome…

\starttext

One\footnote{First footnote}

\startframedtext
Two\footnote{Second footnote}
\stopframedtext

\startpostponingnotes
\startframedtext
Three\footnote{Second footnote}
\stopframedtext
\stoppostponingnotes

\stoptext

Wolfgang

___
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] placetable and localfootnotes

2019-05-01 Thread Otared Kavian
Hi Aditya,

Thank you for your explanation: indeed when the whole table is included in an 
hbox as you point out, the footnote mechanism and placetable work fine 
together. But I am not sure whether this would be the case when a table is 
split over two or more pages.

On the other hand, as I mentioned in another reply to Alan, the footnote 
mechanism does not work within a framedtext, and I am not sure with your turn 
around solution that would work. I will do some testing in a document where 
exercises and proclaims are defined to be typeset within framedtext and if your 
solution works I will let you know.

Best regards: OK

> On 1 May 2019, at 01:12, Aditya Mahajan  wrote:
> 
> On Tue, 30 Apr 2019, Otared Kavian wrote:
> 
>> Hi Hans,
>> 
>> It seems that there is a conflict between \startplacetable and 
>> \startlocalfootnotes: in the following example when the latter command (and 
>> its \stop counterpart) is commented out the table is placed correctly in the 
>> middle, while otherwise the table is not centered.
> 
> Usually, this is because the content of the float is in a vbox instead of a 
> hbox:
> 
> \starttext
> \startplacetable
>  \vbox{test}
> \stopplacetable
> 
> \startplacetable
>  \hbox{test}
> \stopplacetable
> \stoptext
> 
> Use your favorite mechanism to create a hbox around the content and the 
> output will be okay:
> 
> \startplacetable
>  \hbox{\startlocalfootnotes
>  \startplacelegend[location={bottom,middle}]
>\startcontent
>  \startxtable
>\startxrow
>  \startxcell Alpha \stopxcell
>  \startxcell Beta\footnote{Footnote Here} \stopxcell
>\stopxrow
>\startxrow
>  \startxcell Beta \stopxcell
>  \startxcell Alpha\stopxcell
>\stopxrow
>  \stopxtable
>\stopcontent
>\startcaption
>  \placelocalfootnotes
>\stopcaption
>  \stopplacelegend
> \stoplocalfootnotes}
> \stopplacetable
> \stoptext
> 
> Aditya
> ___
> 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
___


Re: [NTG-context] placetable and localfootnotes

2019-05-01 Thread Otared Kavian
Thanks Alan for your attention.
In fact the footnote mechanism lacks the ability to work fine in a certain 
number of environments, including in framedtext. I don't know whether this can 
be overcome…

Best regards: OK

> On 1 May 2019, at 00:59, Alan Braslau  wrote:
> 
> 
> 
>> On 30Apr19, at 02:54, Otared Kavian  wrote:
>> 
>> Hi Hans,
>> 
>> It seems that there is a conflict between \startplacetable and 
>> \startlocalfootnotes: in the following example when the latter command (and 
>> its \stop counterpart) is commented out the table is placed correctly in the 
>> middle, while otherwise the table is not centered.
>> 
>> Best regards: OK
>> %%% begin localfootnotes-xtable.tex
>> \startplacetable
>> \startlocalfootnotes
>>  \startxtable
>>  \startxrow
>>  \startxcell Alpha \stopxcell
>>  \startxcell Beta\footnote{Footnote Here} \stopxcell
>>  \stopxrow
>>  \startxrow
>>  \startxcell Beta \stopxcell
>>  \startxcell Alpha\stopxcell
>>  \stopxrow
>>  \stopxtable
>> \placelocalfootnotes
>> \stoplocalfootnotes
>> \stopplacetable
>> %%% end localfootnotes-xtable.tex
> 
> 
> The following doesn’t help:
> 
> \automigrateinserts % needed to handle footnotes within a box...
> 
> (I have found this necessary in the past in order to use footnotes in placed 
> tables.)
> 
> Alan
> 
> --
> Alan Braslau
> 
> 
> 
> ___
> 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
___


Re: [NTG-context] placetable and localfootnotes

2019-04-30 Thread Aditya Mahajan

On Tue, 30 Apr 2019, Otared Kavian wrote:


Hi Hans,

It seems that there is a conflict between \startplacetable and 
\startlocalfootnotes: in the following example when the latter command 
(and its \stop counterpart) is commented out the table is placed 
correctly in the middle, while otherwise the table is not centered.


Usually, this is because the content of the float is in a vbox instead of 
a hbox:


\starttext
\startplacetable
  \vbox{test}
\stopplacetable

\startplacetable
  \hbox{test}
\stopplacetable
\stoptext

Use your favorite mechanism to create a hbox around the content and the 
output will be okay:


\startplacetable
  \hbox{\startlocalfootnotes
  \startplacelegend[location={bottom,middle}]
\startcontent
  \startxtable
\startxrow
  \startxcell Alpha \stopxcell
  \startxcell Beta\footnote{Footnote Here} \stopxcell
\stopxrow
\startxrow
  \startxcell Beta \stopxcell
  \startxcell Alpha\stopxcell
\stopxrow
  \stopxtable
\stopcontent
\startcaption
  \placelocalfootnotes
\stopcaption
  \stopplacelegend
\stoplocalfootnotes}
\stopplacetable
\stoptext

Aditya
___
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] placetable and localfootnotes

2019-04-30 Thread Alan Braslau


> On 30Apr19, at 02:54, Otared Kavian  wrote:
> 
> Hi Hans,
> 
> It seems that there is a conflict between \startplacetable and 
> \startlocalfootnotes: in the following example when the latter command (and 
> its \stop counterpart) is commented out the table is placed correctly in the 
> middle, while otherwise the table is not centered.
> 
> Best regards: OK
> %%% begin localfootnotes-xtable.tex
> \startplacetable
> \startlocalfootnotes
>   \startxtable
>   \startxrow
>   \startxcell Alpha \stopxcell
>   \startxcell Beta\footnote{Footnote Here} \stopxcell
>   \stopxrow
>   \startxrow
>   \startxcell Beta \stopxcell
>   \startxcell Alpha\stopxcell
>   \stopxrow
>   \stopxtable
> \placelocalfootnotes
> \stoplocalfootnotes
> \stopplacetable
> %%% end localfootnotes-xtable.tex


The following doesn’t help:

\automigrateinserts % needed to handle footnotes within a box...

(I have found this necessary in the past in order to use footnotes in placed 
tables.)

Alan

--
Alan Braslau



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


[NTG-context] placetable and localfootnotes

2019-04-30 Thread Otared Kavian
Hi Hans,

It seems that there is a conflict between \startplacetable and 
\startlocalfootnotes: in the following example when the latter command (and its 
\stop counterpart) is commented out the table is placed correctly in the 
middle, while otherwise the table is not centered.

Best regards: OK
%%% begin localfootnotes-xtable.tex
\startplacetable
\startlocalfootnotes
\startxtable
\startxrow
\startxcell Alpha \stopxcell
\startxcell Beta\footnote{Footnote Here} \stopxcell
\stopxrow
\startxrow
\startxcell Beta \stopxcell
\startxcell Alpha\stopxcell
\stopxrow
\stopxtable
\placelocalfootnotes
\stoplocalfootnotes
\stopplacetable
%%% end localfootnotes-xtable.tex
___
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
___