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? Thanks David
On Fri, 28 Mar 2008 14:02:55 -0700
David
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 Wolfgang
On Sat, 29 Mar 2008 18:23:01 +0100, Wolfgang Schuster wrote:
On Fri, 28 Mar 2008 14:02:55 -0700 David
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
_________________________________________________________ Thank you, Wolfgang. For my purposes, this setup is perfect. David
On Sun, Mar 30, 2008 at 3:12 AM, David
On Sat, 29 Mar 2008 18:23:01 +0100, Wolfgang Schuster wrote:
On Fri, 28 Mar 2008 14:02:55 -0700 David
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
Wolfgang,
Can you use the leftoffset/rightoffset on individual table cells?
Thanks,
Mike
-----Original Message-----
From: ntg-context-bounces@ntg.nl on behalf of Wolfgang Schuster
Sent: Fri 4/11/2008 8:13 AM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Natural tables, offsets
On Sun, Mar 30, 2008 at 3:12 AM, David
On Sat, 29 Mar 2008 18:23:01 +0100, Wolfgang Schuster wrote:
On Fri, 28 Mar 2008 14:02:55 -0700 David
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
Hi Wolfgang, Thanks a lot for this solution! Willi On Mar 29, 2008, at 6:23 PM, Wolfgang Schuster wrote:
On Fri, 28 Mar 2008 14:02:55 -0700 David
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
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 ______________________________________________________________________ _____________
On Sun, Mar 30, 2008 at 7:04 PM, Willi Egger
Hi Wolfgang,
Thanks a lot for this solution!
I needed something similiar not so long ago for \framed and used this solution because it could be easy integrated in a setup command. Offset parameters for all margins would be the better solution but this another topic. Wolfgang
participants (4)
-
David
-
Santy, Michael
-
Willi Egger
-
Wolfgang Schuster