ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Alignment in tables
@ 2009-08-14 12:55 Curiouslearn
  2009-08-14 13:02 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Curiouslearn @ 2009-08-14 12:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Can someone please tell me why the following does not center the text in the
first row?
Thanks in advance.


\setupTABLE[row][1][align={middle}]
\setupTABLE[column][1][width=2.5in,align={lohi}]
\setupTABLE[column][2][width=3in,align={lohi}]

\bTABLE
    \bTR
        \bTD {\bf Concept} \eTD
        \bTD {\bf Definition} \eTD
    \eTR
    \bTR
        \bTD {\bf Closure} of a set $ E \subset M $ ($ \text{cl}(E) $) \eTD
        \bTD \hskip 1em $ \text{cl}(E) = \cap\{ F : E \subset F, F \text{ is
closed} \}$ \eTD
    \eTR
    \bTR
        \bTD $ x $ is a {\bf contact point} or {\bf accumulation point} of $
E $ if \eTD
        \bTD \hskip 1em $ \forall \varepsilon > 0, B_{\varepsilon}(x) \cap E
\neq \emptyset $ \eTD
    \eTR
\eTABLE

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

* Re: Alignment in tables
  2009-08-14 12:55 Alignment in tables Curiouslearn
@ 2009-08-14 13:02 ` Wolfgang Schuster
  2009-08-14 13:04   ` Curiouslearn
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2009-08-14 13:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 14.08.2009 um 14:55 schrieb Curiouslearn:

> Can someone please tell me why the following does not center the  
> text in the first row?
> Thanks in advance.
>
> \setupTABLE[row][1][align={middle}]
> \setupTABLE[column][1][width=2.5in,align={lohi}]


This setup overwrites the previous one, write them in reverse order  
and it will work.

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

* Re: Alignment in tables
  2009-08-14 13:02 ` Wolfgang Schuster
@ 2009-08-14 13:04   ` Curiouslearn
  2009-08-14 13:15     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Curiouslearn @ 2009-08-14 13:04 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

> Can someone please tell me why the following does not center the text in
>> the first row?
>> Thanks in advance.
>>
>> \setupTABLE[row][1][align={middle}]
>> \setupTABLE[column][1][width=2.5in,align={lohi}]
>>
>
>
> This setup overwrites the previous one, write them in reverse order and it
> will work.
>
> Wolfgang


I tried

\setupTABLE[column][1][width=2.5in,align={lohi}]
\setupTABLE[column][2][width=3in,align={lohi}]
\setupTABLE[row][1][align={middle}]

But that does not work either.

Thanks for any help.

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

* Re: Alignment in tables
  2009-08-14 13:04   ` Curiouslearn
@ 2009-08-14 13:15     ` Wolfgang Schuster
  2009-08-14 13:30       ` Curiouslearn
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2009-08-14 13:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 14.08.2009 um 15:04 schrieb Curiouslearn:

> I tried
>
> \setupTABLE[column][1][width=2.5in,align={lohi}]
> \setupTABLE[column][2][width=3in,align={lohi}]
> \setupTABLE[row][1][align={middle}]
>
> But that does not work either.

weird but this works

\setupTABLE[row][first][align=middle,style=bold]

and you can now write

     \bTR
         \bTD Concept \eTD
         \bTD Definition \eTD
     \eTR

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

* Re: Alignment in tables
  2009-08-14 13:15     ` Wolfgang Schuster
@ 2009-08-14 13:30       ` Curiouslearn
  0 siblings, 0 replies; 5+ messages in thread
From: Curiouslearn @ 2009-08-14 13:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Yes, that worked great. After looking at your solution, I vaguely remember
that this had happened before. For the first row, "first" has worked "1" did
not. It was so long back that I had forgotten about it.

Thanks for the solution.

On Fri, Aug 14, 2009 at 9:15 AM, Wolfgang Schuster <
schuster.wolfgang@googlemail.com> wrote:

>
> Am 14.08.2009 um 15:04 schrieb Curiouslearn:
>
>  I tried
>>
>> \setupTABLE[column][1][width=2.5in,align={lohi}]
>> \setupTABLE[column][2][width=3in,align={lohi}]
>> \setupTABLE[row][1][align={middle}]
>>
>> But that does not work either.
>>
>
> weird but this works
>
> \setupTABLE[row][first][align=middle,style=bold]
>
> and you can now write
>
>    \bTR
>        \bTD Concept \eTD
>        \bTD Definition \eTD
>    \eTR
>
>
> 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
>
> ___________________________________________________________________________________
>

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

end of thread, other threads:[~2009-08-14 13:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-14 12:55 Alignment in tables Curiouslearn
2009-08-14 13:02 ` Wolfgang Schuster
2009-08-14 13:04   ` Curiouslearn
2009-08-14 13:15     ` Wolfgang Schuster
2009-08-14 13:30       ` Curiouslearn

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