[NTG-context] placetable and localfootnotes

Aditya Mahajan adityam at umich.edu
Wed May 1 01:12:40 CEST 2019


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


More information about the ntg-context mailing list