-------- 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 <pra...@wxs.nl>
To: Alan Bowen <bowenala...@gmail.com>
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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________