ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* aligning a table alignment with local footnotes
@ 2017-05-29 22:33 Alan Bowen
       [not found] ` <352d56f3-a8d4-5e31-ba5b-14f77fa1acdc@wxs.nl>
  2017-05-30  1:05 ` Aditya Mahajan
  0 siblings, 2 replies; 5+ messages in thread
From: Alan Bowen @ 2017-05-29 22:33 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 755 bytes --]

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.

Alan


Alan

[-- Attachment #1.2: Type: text/html, Size: 2134 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Fwd: Re: aligning a table alignment with local footnotes
       [not found] ` <352d56f3-a8d4-5e31-ba5b-14f77fa1acdc@wxs.nl>
@ 2017-05-29 22:59   ` Hans Hagen
  2017-05-30 13:34   ` Alan Bowen
  1 sibling, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2017-05-29 22:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users




-------- 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 <pragma@wxs.nl>
To: Alan Bowen <bowenalan03@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: aligning a table alignment with local footnotes
  2017-05-29 22:33 aligning a table alignment with local footnotes Alan Bowen
       [not found] ` <352d56f3-a8d4-5e31-ba5b-14f77fa1acdc@wxs.nl>
@ 2017-05-30  1:05 ` Aditya Mahajan
  2017-05-30 13:37   ` Alan Bowen
  1 sibling, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2017-05-30  1:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Mon, 29 May 2017, 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

I usually use:

\startplacetable
\hbox{\startplacelegend[location=bottom]
    \startcontent
      TABLE
    \stopcontent
    \startcaption
      footnote
    \stopcaption
\stopplacelegend}
\stopplacetable
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: aligning a table alignment with local footnotes
       [not found] ` <352d56f3-a8d4-5e31-ba5b-14f77fa1acdc@wxs.nl>
  2017-05-29 22:59   ` Fwd: " Hans Hagen
@ 2017-05-30 13:34   ` Alan Bowen
  1 sibling, 0 replies; 5+ messages in thread
From: Alan Bowen @ 2017-05-30 13:34 UTC (permalink / raw)
  To: Hans Hagen, mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1825 bytes --]

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 <pragma@wxs.nl> wrote:

> 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
> -----------------------------------------------------------------
>

[-- Attachment #1.2: Type: text/html, Size: 2777 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: aligning a table alignment with local footnotes
  2017-05-30  1:05 ` Aditya Mahajan
@ 2017-05-30 13:37   ` Alan Bowen
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Bowen @ 2017-05-30 13:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1445 bytes --]

Thanks for this too, Aditya. I have some tables that this may work very
well with.

All best, Alan


On Mon, May 29, 2017 at 9:05 PM, Aditya Mahajan <adityam@umich.edu> wrote:

> On Mon, 29 May 2017, 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
>>
>
> I usually use:
>
> \startplacetable
> \hbox{\startplacelegend[location=bottom]
>    \startcontent
>      TABLE
>    \stopcontent
>    \startcaption
>      footnote
>    \stopcaption
> \stopplacelegend}
> \stopplacetable
>
> ____________________________________________________________
> _______________________
> 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 2874 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-30 13:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-29 22:33 aligning a table alignment with local footnotes Alan Bowen
     [not found] ` <352d56f3-a8d4-5e31-ba5b-14f77fa1acdc@wxs.nl>
2017-05-29 22:59   ` Fwd: " Hans Hagen
2017-05-30 13:34   ` Alan Bowen
2017-05-30  1:05 ` Aditya Mahajan
2017-05-30 13:37   ` Alan Bowen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).