ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Natural tables, offsets
@ 2008-03-28 21:02 David
  2008-03-29 17:23 ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: David @ 2008-03-28 21:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Natural tables, offsets
  2008-03-28 21:02 Natural tables, offsets David
@ 2008-03-29 17:23 ` Wolfgang Schuster
  2008-03-30  1:12   ` David
  2008-03-30 17:04   ` Willi Egger
  0 siblings, 2 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2008-03-29 17:23 UTC (permalink / raw)
  To: ntg-context

On Fri, 28 Mar 2008 14:02:55 -0700
David <davidandrewrogers@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

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] 8+ messages in thread

* Re: Natural tables, offsets
  2008-03-29 17:23 ` Wolfgang Schuster
@ 2008-03-30  1:12   ` David
  2008-04-11 13:13     ` Wolfgang Schuster
  2008-03-30 17:04   ` Willi Egger
  1 sibling, 1 reply; 8+ messages in thread
From: David @ 2008-03-30  1:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, 29 Mar 2008 18:23:01 +0100, Wolfgang Schuster wrote:

> On Fri, 28 Mar 2008 14:02:55 -0700
> David <davidandrewrogers@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

_________________________________________________________

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

David
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Natural tables, offsets
  2008-03-29 17:23 ` Wolfgang Schuster
  2008-03-30  1:12   ` David
@ 2008-03-30 17:04   ` Willi Egger
  2008-03-31  8:08     ` Wolfgang Schuster
  1 sibling, 1 reply; 8+ messages in thread
From: Willi Egger @ 2008-03-30 17:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <davidandrewrogers@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
>
> 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
___________________________________________________________________________________


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

* Re: Natural tables, offsets
  2008-03-30 17:04   ` Willi Egger
@ 2008-03-31  8:08     ` Wolfgang Schuster
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2008-03-31  8:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Mar 30, 2008 at 7:04 PM, Willi Egger <w.egger@boede.nl> wrote:
> 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
___________________________________________________________________________________
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] 8+ messages in thread

* Re: Natural tables, offsets
  2008-03-30  1:12   ` David
@ 2008-04-11 13:13     ` Wolfgang Schuster
  2008-04-11 13:24       ` Santy, Michael
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2008-04-11 13:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 1346 bytes --]

On Sun, Mar 30, 2008 at 3:12 AM, David <davidandrewrogers@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@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

[-- Attachment #2: wolf-rul.zip --]
[-- Type: application/zip, Size: 5282 bytes --]

[-- Attachment #3: 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] 8+ messages in thread

* Re: Natural tables, offsets
  2008-04-11 13:13     ` Wolfgang Schuster
@ 2008-04-11 13:24       ` Santy, Michael
  2008-04-14  6:09         ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Santy, Michael @ 2008-04-11 13:24 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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


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 <davidandrewrogers@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@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


[-- Attachment #1.2: Type: text/html, Size: 3050 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] 8+ messages in thread

* Re: Natural tables, offsets
  2008-04-11 13:24       ` Santy, Michael
@ 2008-04-14  6:09         ` Wolfgang Schuster
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2008-04-14  6:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Fri, Apr 11, 2008 at 3:24 PM, Santy, Michael
<Michael.Santy@dynetics.com> wrote:
>
> Wolfgang,
>
> Can you use the leftoffset/rightoffset on individual table cells?

Yes you can.

You could also the offset parameters in \framed and any other command which
use \localframed.

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] 8+ messages in thread

end of thread, other threads:[~2008-04-14  6:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-28 21:02 Natural tables, offsets David
2008-03-29 17:23 ` Wolfgang Schuster
2008-03-30  1:12   ` David
2008-04-11 13:13     ` Wolfgang Schuster
2008-04-11 13:24       ` Santy, Michael
2008-04-14  6:09         ` Wolfgang Schuster
2008-03-30 17:04   ` Willi Egger
2008-03-31  8:08     ` Wolfgang Schuster

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