ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Tables & localfootnote alignment
@ 2007-06-14 18:04 Dave
  2007-06-15 11:48 ` Peter Rolf
  0 siblings, 1 reply; 4+ messages in thread
From: Dave @ 2007-06-14 18:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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

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

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Tables & localfootnote alignment
  2007-06-14 18:04 Tables & localfootnote alignment Dave
@ 2007-06-15 11:48 ` Peter Rolf
  2007-06-15 12:19   ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Peter Rolf @ 2007-06-15 11:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


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

* Re: Tables & localfootnote alignment
  2007-06-15 11:48 ` Peter Rolf
@ 2007-06-15 12:19   ` Wolfgang Schuster
  2007-06-15 13:56     ` Dave
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2007-06-15 12:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2007/6/15, Peter Rolf <indiego@gmx.net>:
> 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
___________________________________________________________________________________


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

* Re: Tables & localfootnote alignment
  2007-06-15 12:19   ` Wolfgang Schuster
@ 2007-06-15 13:56     ` Dave
  0 siblings, 0 replies; 4+ messages in thread
From: Dave @ 2007-06-15 13:56 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

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 <schuster.wolfgang@googlemail.com> wrote:
>
> 2007/6/15, Peter Rolf <indiego@gmx.net>:
> > 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
>
> ___________________________________________________________________________________
>

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

[-- Attachment #2: Type: text/plain, Size: 487 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2007-06-15 13:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-14 18:04 Tables & localfootnote alignment Dave
2007-06-15 11:48 ` Peter Rolf
2007-06-15 12:19   ` Wolfgang Schuster
2007-06-15 13:56     ` Dave

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