Re: [NTG-context] aligning a table alignment with local footnotes
Many thanks, Hans. This is very fine solution for the tables that I have,
since they are quite wide.
Alan
On Mon, May 29, 2017 at 6:58 PM, Hans Hagen
On 5/30/2017 12:33 AM, Alan Bowen wrote:
What is the best way to center a table and control/fix the textwidth of the local footnotes?
I currently have:
\starttext
\startbuffer[Tab01] \startlocalfootnotes \bTABLE \bTR\bTD So\eTD\bTD what% \footnote{\input knuth} % <= \eTD\eTR \eTABLE {\placelocalfootnotes} \stoplocalfootnotes \stopbuffer
\startplacetable[title=Test, align=middle] {\getbuffer[Tab01]} \stopplacetable
\stoptext
If the footnote is commented out, the table is centered (as I want it). With the footnote, the table is flushleft. I have managed to get what I need by defining the \hsize of the footnotes and tweaking the loffset of the table. But a general, less “empirical” approach would be vastly better.
\starttext
\startbuffer[Tab01] \startlocalfootnotes \setbox\scratchbox\vbox{\bTABLE \bTR\bTD So\eTD\bTD what\footnote{\input knuth}\eTD\eTR \eTABLE}% \hsize\wd\scratchbox \box\scratchbox \par \placelocalfootnotes \stoplocalfootnotes \stopbuffer
\startplacetable[title=Test,align=middle]{\getbuffer[Tab01]} \stopplacetable
\stoptext
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (1)
-
Alan Bowen