[NTG-context] Tables & localfootnote alignment

Peter Rolf indiego at gmx.net
Fri Jun 15 13:48:12 CEST 2007


Hi Dave,

I don't know enough about it, to give you a clean solution. Just ignore
the rest, if someone gives a better (more general) solution.

Peter

Dave schrieb:
> Hi all,
> 
> I am trying to add footnotes to a table but need for them to be aligned
> on the left (flush) edge of the table.  I've tried everything I can
> think of but I'm stuck (with deadlines looming).  Below is a quick
> example....
> 
> Many thanks,
> Dave
> 
> %%%
> % TeXExec | context source date: 2007.04.17 12:51
> %%%
> 
> setupcaption[table][location=top]
> 
> \starttext

\showframe
> 
> % Portrait
> \startlocalfootnotes[n=0]
> \placetable
>   [page] 
>   [table1]
>   {Caption goes here}
> \placelegend
> { % Rules
>   \setupTABLE[frame=off]
>   \setupTABLE[column][first][leftframe=off]
>   \setupTABLE[column][last][rightframe=off]
>   \setupTABLE[row][first][topframe=on,bottomframe=on]
>   \setupTABLE[row][last][bottomframe=on]
>   % Alignment
>   \setupTABLE[column][1][align=right]
>   \setupTABLE[column][2][align=right]
>   \setupTABLE[column][3][align=right]
>   % Width
>   \setupTABLE[option=stretch]
>   % Table
>   \bTABLE
>   % Heading
>   \bTR\bTH Column 1\footnote{footnote for column 1}
>   \eTH\bTH Column 2\footnote{fn 4 col 2}
>   \eTH\bTH Description \eTH\eTR
>   % Body 
>   \bTR\bTD test \eTD\bTD test \eTD\bTD test \eTD\eTR
>   \bTR\bTD test \eTD\bTD test \eTD\bTD test \eTD\eTR
>   \bTR\bTD test \eTD\bTD test \eTD\bTD test \eTD\eTR
>   \bTR\bTD test \eTD\bTD test \eTD\bTD test \eTD\eTR
>   \bTR\bTD test \eTD\bTD test \eTD\bTD test \eTD\eTR
>   \eTABLE
> }
> {\framed{%
         ^^^^ +1
>    {\placelocalfootnotes}
> }
% \framed with defined width for alignment
{\framed[width=\textwidth,align=right]
   {\ruledhbox{\hskip10mm\placelocalfootnotes}} % \hbox
}

the values needed for width= and \hskip may vary from table to table


> \stoplocalfootnotes
> 
> 
> % Landscape
> \startlocalfootnotes[n=0]
> \placetable
>   [90]
>   [table2]
>   {Caption goes here}
> \placelegend
> { % Rules
>   \setupTABLE[frame=off]
>   \setupTABLE[column][first][leftframe=off]
>   \setupTABLE[column][last][rightframe=off]
>   \setupTABLE[row][first][topframe=on,bottomframe=on]
>   \setupTABLE[row][last][bottomframe=on]
>   % Alignment
>   \setupTABLE[column][1][align=right,width=6cm]
>   \setupTABLE[column][2][align=right,width=5cm]
>   \setupTABLE[column][3][align=right,width=11cm]
>   % Width
>   \setupTABLE[option=stretch,textwidth=22cm]
>   % Table
>   \bTABLE
>   % Heading
>   \bTR\bTH Column 1\footnote{footnote for column 1}
>   \eTH\bTH Column 2\footnote{fn 4 col 2}
>   \eTH\bTH Description \eTH\eTR
>   % Body   
>   \bTR\bTD test \eTD\bTD test \eTD\bTD test \eTD\eTR
>   \bTR\bTD test \eTD\bTD test \eTD\bTD test \eTD\eTR
>   \bTR\bTD test \eTD\bTD test \eTD\bTD test \eTD\eTR
>   \bTR\bTD test \eTD\bTD test \eTD\bTD test \eTD\eTR
>   \bTR\bTD test \eTD\bTD test \eTD\bTD test \eTD\eTR
>   \eTABLE
> }
> {\framed{%
        ^^^^
>    {\placelocalfootnotes}
> }
{\framed[width=\textheight,align=right]
   {\ruledhbox{\hskip5mm\placelocalfootnotes}}
}

> \stoplocalfootnotes
> 
> 
> \stoptext
> 
> 
> ------------------------------------------------------------------------
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________



More information about the ntg-context mailing list