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 ___________________________________________________________________________________