[NTG-context] placelocalfootnotes breaks center alignment

Wolfgang Schuster schuster.wolfgang at gmail.com
Mon Aug 15 12:27:25 CEST 2016


> Henri Menke <mailto:henrimenke at gmail.com>
> 29. Juli 2016 um 12:48
> Dear list,
>
> sometimes, one wants to place footnotes in a table which then appear 
> right below the last row. Therefore ConTeXt ships the clever 
> `\start...\stoplocalfootnotes` mechanism. Unfortunately, putting 
> `\placelocalfootnotes` outside of the table breaks the centering of 
> the table itself. For illustration please see the example below. How 
> can I have my table centered while the footnotes are either 
> left-aligned with respect to the left border of the table or 
> left-aligned with respect to the page (whatever is easier)?
>
> Cheers, Henri
>
> ---
>
> \starttext
>
> \startplacetable
> [title={some table}]
> \startlocalfootnotes
> \startTABLE
> \NC Content\footnote{Footnote} \NC\NR
> \stopTABLE
> \placelocalfootnotes % commenting out unbreaks alignment
> \stoplocalfootnotes
> \stopplacetable
>
> \stoptext
You can use the pairedbox mechanism to place the notes under the table.

\definepairedbox
   [footnote]
   [width=\textwidth,
    align=middle]

\starttext

\startplacetable[title={some table}]
     \startlocalfootnotes
         \startplacepairedbox[footnote]
             \startcontent
                 \startTABLE
                 \NC Content\footnote{Footnote} \NC\NR
                 \stopTABLE
             \stopcontent
             \startcaption
                 \placelocalfootnotes
             \stopcaption
         \stopplacepairedbox
     \stoplocalfootnotes
\stopplacetable

\startplacetable[title={some table}]
     \startlocalfootnotes
         \placepairedbox[footnote]
             {\startTABLE
              \NC Content\footnote{Footnote} \NC\NR
              \stopTABLE}
             {\placelocalfootnotes}
     \stoplocalfootnotes
\stopplacetable

\stoptext

Wolfgang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160815/b5812e31/attachment.html>


More information about the ntg-context mailing list