ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Centerd table?
@ 2011-04-19  9:32 Procházka Lukáš Ing. - Pontex s. r. o.
  2011-04-19  9:39 ` luigi scarso
  2011-04-19 12:10 ` Wolfgang Schuster
  0 siblings, 2 replies; 3+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2011-04-19  9:32 UTC (permalink / raw)
  To: ConTeXt

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

Hello,

why this code doesn't give a centered table?

---

\starttext
   \startalignment[middle]
     \dontleavehmode
     \starttable[|c|c|c|]
       \HL
       \VL a \VL b \VL c \VL\AR
       \HL
       \VL a \VL b \VL c \VL\AR
       \HL
     \stoptable
   \stopalignment
\stoptext

---

How to achieve it?

Thanks in advance.

Kind regards,

Lukas


-- 
Ing. Lukáš Procházka [mailto:LPr@pontex.cz]
Pontex s. r. o.      [mailto:pontex@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

[-- Attachment #2: t-Table.mkiv --]
[-- Type: application/octet-stream, Size: 228 bytes --]

\starttext
  \startalignment[middle]
    \dontleavehmode
    \starttable[|c|c|c|]
      \HL
      \VL a \VL b \VL c \VL\AR
      \HL
      \VL a \VL b \VL c \VL\AR
      \HL
    \stoptable
  \stopalignment
\stoptext

[-- Attachment #3: t-Table.pdf --]
[-- Type: application/pdf, Size: 5092 bytes --]

[-- Attachment #4: Type: text/plain, Size: 485 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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Centerd table?
  2011-04-19  9:32 Centerd table? Procházka Lukáš Ing. - Pontex s. r. o.
@ 2011-04-19  9:39 ` luigi scarso
  2011-04-19 12:10 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: luigi scarso @ 2011-04-19  9:39 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/4/19 Procházka Lukáš Ing. - Pontex s. r. o. <LPr@pontex.cz>:
> Hello,
>
> why this code doesn't give a centered table?
>
> ---
>
> \starttext
>  \startalignment[middle]
>    \dontleavehmode
>    \starttable[|c|c|c|]
>      \HL
>      \VL a \VL b \VL c \VL\AR
>      \HL
>      \VL a \VL b \VL c \VL\AR
>      \HL
>    \stoptable
>  \stopalignment
> \stoptext
>
> ---
>
> How to achieve it?
>
> Thanks in advance.
>
> Kind regards,

\starttext
 \startalignment[middle]
   \dontleavehmode
\input knuth
\centerline{
   \starttable[|c|c|c|]
     \HL
     \VL a \VL b \VL c \VL\AR
     \HL
     \VL a \VL b \VL c \VL\AR
     \HL
   \stoptable}
 \stopalignment
\stoptext


-- 
luigi
___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Centerd table?
  2011-04-19  9:32 Centerd table? Procházka Lukáš Ing. - Pontex s. r. o.
  2011-04-19  9:39 ` luigi scarso
@ 2011-04-19 12:10 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2011-04-19 12:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 19.04.2011 um 11:32 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> why this code doesn't give a centered table?
> 
> ---
> 
> \starttext
>  \startalignment[middle]
>    \dontleavehmode
>    \starttable[|c|c|c|]
>      \HL
>      \VL a \VL b \VL c \VL\AR
>      \HL
>      \VL a \VL b \VL c \VL\AR
>      \HL
>    \stoptable
>  \stopalignment
> \stoptext
> 
> ---
> 
> How to achieve it?

\placetable[force,none]{}
  {\starttable[|c|c|c|]
   …
   \stoptable}

When you want less space before and after the table
you can define your own float with reduced spacing.

\definefloat[fixedtable][table]

\setupfloat[fixedtable][spacebefore=,spaceafter=,default={force,none}]

\starttext

\placefixedtable{}
  {\starttable[|c|c|c|]
   …
   \stoptable}

\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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2011-04-19 12:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-19  9:32 Centerd table? Procházka Lukáš Ing. - Pontex s. r. o.
2011-04-19  9:39 ` luigi scarso
2011-04-19 12:10 ` 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).