ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Indenting tables
@ 2007-02-05 20:12 The Wizard
  2007-02-05 21:35 ` Aditya Mahajan
  0 siblings, 1 reply; 3+ messages in thread
From: The Wizard @ 2007-02-05 20:12 UTC (permalink / raw)
  To: ntg-context

All -
I am creating simple tables like this

\starttable[|l|l|l|l|]
\HL
\VL \bf Time Frame \VL \bf SAN A \VL \bf SAN B \VL \bf SAN C \VL \AR \HL
\VL 10pm to 6am - Backup \VL 1500 MB/s \VL 1500 MB/s \VL 1500 MB/s \VL 
\AR \HL
\VL 6am to 10pm – NBU Vaulting \VL \rightarrow \VL \rightarrow \VL 
4500MB/s \VL \AR \HL
\stoptable

The table is created fine, but I would like it to be "centered" in the 
surrounding text. The current table starts at the left page margin, 
rather than where the text starts. Is there a simple way to "indent" the 
left edge of the table to match the surrounding text? I have tried using 
\setuptables[align=middle], but it seems to have no effect.

-- 
Mark Almeida                             mark.almeida@sun.com
Solutions Architect                      (707)398-9524/x81132
Sun Professional Services                (707)429-0341 Home Office
                                         (707)480-5038 Cell

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

* Re: Indenting tables
  2007-02-05 20:12 Indenting tables The Wizard
@ 2007-02-05 21:35 ` Aditya Mahajan
  2007-02-05 23:43   ` The Wizard
  0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2007-02-05 21:35 UTC (permalink / raw)
  To: Mark.Almeida, mailing list for ConTeXt users

On Mon, 5 Feb 2007, The Wizard wrote:

> All -
> I am creating simple tables like this
>
> \starttable[|l|l|l|l|]
> \HL
> \VL \bf Time Frame \VL \bf SAN A \VL \bf SAN B \VL \bf SAN C \VL \AR \HL
> \VL 10pm to 6am - Backup \VL 1500 MB/s \VL 1500 MB/s \VL 1500 MB/s \VL
> \AR \HL
> \VL 6am to 10pm – NBU Vaulting \VL \rightarrow \VL \rightarrow \VL
> 4500MB/s \VL \AR \HL
> \stoptable
>
> The table is created fine, but I would like it to be "centered" in the
> surrounding text. The current table starts at the left page margin,
> rather than where the text starts. Is there a simple way to "indent" the
> left edge of the table to match the surrounding text? I have tried using
> \setuptables[align=middle], but it seems to have no effect.

You can use

\midaligned{\starttable ... \stoptable}

or (untested)

\placetable
    [here][none]{none}
    {\starttable ... \stoptable}

Aditya
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

* Re: Indenting tables
  2007-02-05 21:35 ` Aditya Mahajan
@ 2007-02-05 23:43   ` The Wizard
  0 siblings, 0 replies; 3+ messages in thread
From: The Wizard @ 2007-02-05 23:43 UTC (permalink / raw)
  To: Aditya Mahajan; +Cc: mailing list for ConTeXt users

Aditya Mahajan wrote:
> On Mon, 5 Feb 2007, The Wizard wrote:
>
>   
>> All -
>> I am creating simple tables like this
>>
>> \starttable[|l|l|l|l|]
>> \HL
>> \VL \bf Time Frame \VL \bf SAN A \VL \bf SAN B \VL \bf SAN C \VL \AR \HL
>> \VL 10pm to 6am - Backup \VL 1500 MB/s \VL 1500 MB/s \VL 1500 MB/s \VL
>> \AR \HL
>> \VL 6am to 10pm – NBU Vaulting \VL \rightarrow \VL \rightarrow \VL
>> 4500MB/s \VL \AR \HL
>> \stoptable
>>
>> The table is created fine, but I would like it to be "centered" in the
>> surrounding text. The current table starts at the left page margin,
>> rather than where the text starts. Is there a simple way to "indent" the
>> left edge of the table to match the surrounding text? I have tried using
>> \setuptables[align=middle], but it seems to have no effect.
>>     
>
> You can use
>
> \midaligned{\starttable ... \stoptable}
>
> or (untested)
>
> \placetable
>     [here][none]{none}
>     {\starttable ... \stoptable}
>
> Aditya
>
>   
Aditya -
Thanks so much; the \placetable... form did exactly what I was looking for.

-- 
Mark Almeida                             mark.almeida@sun.com
Solutions Architect                      (707)398-9524/x81132
Sun Professional Services                (707)429-0341 Home Office
                                         (707)480-5038 Cell

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

end of thread, other threads:[~2007-02-05 23:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-05 20:12 Indenting tables The Wizard
2007-02-05 21:35 ` Aditya Mahajan
2007-02-05 23:43   ` The Wizard

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