Fwd: Re: aligning a table alignment with local footnotes
-------- Forwarded Message --------
Subject: Re: [NTG-context] aligning a table alignment with local footnotes
Date: Tue, 30 May 2017 00:58:47 +0200
From: Hans Hagen
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)
-
Hans Hagen