Re: [NTG-context] Tables & localfootnote alignment

2007-06-15 Thread Dave

Thank you both for your replies!  I've updated the footnote page on the wiki
with Wolfgang's suggestion.

Dave

On 6/15/07, Wolfgang Schuster <[EMAIL PROTECTED]> wrote:


2007/6/15, Peter Rolf <[EMAIL PROTECTED]>:
> 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

Hi David,

Peter gave you the first hint with the width-key in \framed and the \hbox.
I can give a better solution for your problem but you have to write the
commands in the right way to get it working, what I mean is you should
put braces around \placelegend.

\defineframed[noteframed]
\setupframed
  [noteframed]
  [width=\hsize,
   align=right,
   %height=fit,
   top=\hbox\bgroup,
   bottom=\egroup]

\starttext

\startlocalfootnotes[n=0]
\placetable
{Caption}
{\placelegend
{\bTABLE[width=6cm]
  \bTR\bTD A\footnote{a} \eTD\bTD B\footnote{b} \eTD\eTR
  \eTABLE}
{\noteframed{\placelocalfootnotes}}}
\stoplocalfootnotes

\stoptext

Wolfgang

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net

___

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tables & localfootnote alignment

2007-06-15 Thread Wolfgang Schuster
2007/6/15, Peter Rolf <[EMAIL PROTECTED]>:
> 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

Hi David,

Peter gave you the first hint with the width-key in \framed and the \hbox.
I can give a better solution for your problem but you have to write the
commands in the right way to get it working, what I mean is you should
put braces around \placelegend.

\defineframed[noteframed]
\setupframed
  [noteframed]
  [width=\hsize,
   align=right,
   %height=fit,
   top=\hbox\bgroup,
   bottom=\egroup]

\starttext

\startlocalfootnotes[n=0]
\placetable
{Caption}
{\placelegend
 {\bTABLE[width=6cm]
  \bTR\bTD A\footnote{a} \eTD\bTD B\footnote{b} \eTD\eTR
  \eTABLE}
 {\noteframed{\placelocalfootnotes}}}
\stoplocalfootnotes

\stoptext

Wolfgang
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Tables & localfootnote alignment

2007-06-15 Thread Peter Rolf
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@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
> ___

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Tables & localfootnote alignment

2007-06-14 Thread Dave

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

% 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{%
  {\placelocalfootnotes}
}
\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}
}
\stoplocalfootnotes


\stoptext
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___