ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* placetable and localfootnotes
@ 2019-04-30  8:54 Otared Kavian
  2019-04-30 22:59 ` Alan Braslau
  2019-04-30 23:12 ` Aditya Mahajan
  0 siblings, 2 replies; 6+ messages in thread
From: Otared Kavian @ 2019-04-30  8:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: placetable and localfootnotes
  2019-04-30  8:54 placetable and localfootnotes Otared Kavian
@ 2019-04-30 22:59 ` Alan Braslau
  2019-05-01 10:01   ` Otared Kavian
  2019-04-30 23:12 ` Aditya Mahajan
  1 sibling, 1 reply; 6+ messages in thread
From: Alan Braslau @ 2019-04-30 22:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users



> On 30Apr19, at 02:54, Otared Kavian <otared@gmail.com> 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
___________________________________________________________________________________

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

* Re: placetable and localfootnotes
  2019-04-30  8:54 placetable and localfootnotes Otared Kavian
  2019-04-30 22:59 ` Alan Braslau
@ 2019-04-30 23:12 ` Aditya Mahajan
  2019-05-01 10:07   ` Otared Kavian
  1 sibling, 1 reply; 6+ messages in thread
From: Aditya Mahajan @ 2019-04-30 23:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

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

* Re: placetable and localfootnotes
  2019-04-30 22:59 ` Alan Braslau
@ 2019-05-01 10:01   ` Otared Kavian
  2019-05-01 10:21     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Otared Kavian @ 2019-05-01 10:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <braslau.list@comcast.net> wrote:
> 
> 
> 
>> On 30Apr19, at 02:54, Otared Kavian <otared@gmail.com> 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
___________________________________________________________________________________

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

* Re: placetable and localfootnotes
  2019-04-30 23:12 ` Aditya Mahajan
@ 2019-05-01 10:07   ` Otared Kavian
  0 siblings, 0 replies; 6+ messages in thread
From: Otared Kavian @ 2019-05-01 10:07 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <adityam@umich.edu> 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
___________________________________________________________________________________

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

* Re: placetable and localfootnotes
  2019-05-01 10:01   ` Otared Kavian
@ 2019-05-01 10:21     ` Wolfgang Schuster
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2019-05-01 10:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Otared Kavian

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
___________________________________________________________________________________

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

end of thread, other threads:[~2019-05-01 10:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-30  8:54 placetable and localfootnotes Otared Kavian
2019-04-30 22:59 ` Alan Braslau
2019-05-01 10:01   ` Otared Kavian
2019-05-01 10:21     ` Wolfgang Schuster
2019-04-30 23:12 ` Aditya Mahajan
2019-05-01 10:07   ` Otared Kavian

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