[NTG-context] Natural tables, offsets

Wolfgang Schuster schuster.wolfgang at googlemail.com
Fri Apr 11 15:13:16 CEST 2008


On Sun, Mar 30, 2008 at 3:12 AM, David <davidandrewrogers at gmail.com> wrote:
>
> On Sat, 29 Mar 2008 18:23:01 +0100, Wolfgang Schuster wrote:
>
> > On Fri, 28 Mar 2008 14:02:55 -0700
> > David <davidandrewrogers at gmail.com> wrote:
> >
> >> Hi all
> >>
> >> I'm using the natural table environment, and would like the text in
> >> each cell to have some horizontal offset from the cell boundaries - but
> >> I don't want to change the vertical offset. Is there a way to do this?
> >
> > \starttext
> >
> > \startsetups table:margins
> >
> >     \rightskip=1cm\relax
> >     \leftskip=1cm\relax
> >
> > \stopsetups
> >
> > \setupTABLE
> >   [setups=table:margins]
> >
> > \bTABLE
> >     \bTR
> >         \bTD \input ward\par \eTD
> >         \bTD \input ward\par \eTD
> >     \eTR
> >     \bTR
> >         \bTD \input ward\par \eTD
> >         \bTD \input ward\par \eTD
> >     \eTR
> > \eTABLE
> >
> > \stoptext
>

Hi David,

> Thank you, Wolfgang. For my purposes, this setup is perfect.

I updated my extended version of the localframed macros and they
permit you to use

\usemodule[wolf-rul]

\starttext

\setupTABLE[leftoffset=1cm,rightoffset=1cm]

\bTABLE
  \bTR
    \bTD \input ward\par \eTD
    \bTD \input ward\par \eTD  \eTR
  \bTR
    \bTD \input ward\par \eTD
    \bTD \input ward\par \eTD
  \eTR
\eTABLE

\stoptext

Greetings

Wolfgang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wolf-rul.zip
Type: application/zip
Size: 5282 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/ntg-context/attachments/20080411/7f08f07d/attachment.zip 


More information about the ntg-context mailing list