* applying properties to columns / rows in xtables
@ 2016-02-17 14:48 Pablo Rodriguez
2016-02-17 15:01 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2016-02-17 14:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear list,
having this basic xtable (adapted from xtables-mkiv.pdf):
\starttext
\startxtable[option=stretch]
\startxrow
\startxcell one \stopxcell
\startxcell two \stopxcell
\stopxrow
\startxrow
\startxcell alpha \stopxcell
\startxcell beta \stopxcell
\stopxrow
\stopxtable
\stoptext
Is there any way to apply properties to the first column and the second
column without having to add an identifier to each xcell?
In this sample, it would be easy. In a longer xtable, I would like to
avoid it :-).
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 5+ messages in thread
* Re: applying properties to columns / rows in xtables
2016-02-17 14:48 applying properties to columns / rows in xtables Pablo Rodriguez
@ 2016-02-17 15:01 ` Wolfgang Schuster
2016-02-17 15:12 ` Pablo Rodriguez
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2016-02-17 15:01 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 644 bytes --]
> Pablo Rodriguez <mailto:oinos@gmx.es>
> 17. Februar 2016 um 15:48
> Dear list,
>
> having this basic xtable (adapted from xtables-mkiv.pdf):
>
> \starttext
> \startxtable[option=stretch]
> \startxrow
> \startxcell one \stopxcell
> \startxcell two \stopxcell
> \stopxrow
> \startxrow
> \startxcell alpha \stopxcell
> \startxcell beta \stopxcell
> \stopxrow
> \stopxtable
> \stoptext
>
> Is there any way to apply properties to the first column and the second
> column without having to add an identifier to each xcell?
>
> In this sample, it would be easy. In a longer xtable, I would like to
> avoid it :-).
What do you want to do?
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 1728 bytes --]
[-- Attachment #2: 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] 5+ messages in thread
* Re: applying properties to columns / rows in xtables
2016-02-17 15:01 ` Wolfgang Schuster
@ 2016-02-17 15:12 ` Pablo Rodriguez
2016-02-17 15:22 ` Wolfgang Schuster
0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2016-02-17 15:12 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 02/17/2016 04:01 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 17. Februar 2016 um 15:48
>> In this sample, it would be easy. In a longer xtable, I would like to
>> avoid it :-).
>
> What do you want to do?
Sorry, Wolfgang. You’re right, I forgot to tell-
I want to avoid tagging each cell to get this:
\starttext
\startxtable[option=stretch]
\startxrow
\startxcell[align=left] one \stopxcell
\startxcell[align=center] two \stopxcell
\stopxrow
\startxrow
\startxcell[align=left] alpha \stopxcell
\startxcell[align=center] beta \stopxcell
\stopxrow
\stopxtable
\stoptext
I don’t know whether there is something similar to:
\setupxtable[column:first][align=left]
Having to add an identifier to the xcell is something that I would like
to avoid too.
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 5+ messages in thread
* Re: applying properties to columns / rows in xtables
2016-02-17 15:12 ` Pablo Rodriguez
@ 2016-02-17 15:22 ` Wolfgang Schuster
2016-02-17 16:05 ` Pablo Rodriguez
0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2016-02-17 15:22 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1873 bytes --]
> Pablo Rodriguez <mailto:oinos@gmx.es>
> 17. Februar 2016 um 16:12
>
> Sorry, Wolfgang. You’re right, I forgot to tell-
>
> I want to avoid tagging each cell to get this:
>
> \starttext
> \startxtable[option=stretch]
> \startxrow
> \startxcell[align=left] one \stopxcell
> \startxcell[align=center] two \stopxcell
> \stopxrow
> \startxrow
> \startxcell[align=left] alpha \stopxcell
> \startxcell[align=center] beta \stopxcell
> \stopxrow
> \stopxtable
> \stoptext
>
> I don’t know whether there is something similar to:
>
> \setupxtable[column:first][align=left]
>
> Having to add an identifier to the xcell is something that I would like
> to avoid too.
>
> Many thanks for your help,
>
> Pablo
> Wolfgang Schuster <mailto:schuster.wolfgang@gmail.com>
> 17. Februar 2016 um 16:01
> What do you want to do?
>
> Wolfgang
> Pablo Rodriguez <mailto:oinos@gmx.es>
> 17. Februar 2016 um 15:48
> Dear list,
>
> having this basic xtable (adapted from xtables-mkiv.pdf):
>
> \starttext
> \startxtable[option=stretch]
> \startxrow
> \startxcell one \stopxcell
> \startxcell two \stopxcell
> \stopxrow
> \startxrow
> \startxcell alpha \stopxcell
> \startxcell beta \stopxcell
> \stopxrow
> \stopxtable
> \stoptext
>
> Is there any way to apply properties to the first column and the second
> column without having to add an identifier to each xcell?
>
> In this sample, it would be easy. In a longer xtable, I would like to
> avoid it :-).
\starttext
\setupxtable[align=\ifcase\currentxtablecolumn\or flushright\else middle\fi]
\startxtable[option=stretch]
\startxrow
\startxcell one \stopxcell
\startxcell two \stopxcell
\stopxrow
\startxrow
\startxcell alpha \stopxcell
\startxcell beta \stopxcell
\stopxrow
\stopxtable
\stoptext
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 4679 bytes --]
[-- Attachment #2: 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] 5+ messages in thread
* Re: applying properties to columns / rows in xtables
2016-02-17 15:22 ` Wolfgang Schuster
@ 2016-02-17 16:05 ` Pablo Rodriguez
0 siblings, 0 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2016-02-17 16:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 02/17/2016 04:22 PM, Wolfgang Schuster wrote:
> [...]
> \setupxtable[align=\ifcase\currentxtablecolumn\or flushright\else middle\fi]
Many thanks for your fast reply, Wolfgang.
This is exactly what I need. I wouldn’t have found out myself in centuries.
Many thanks for your help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 5+ messages in thread
end of thread, other threads:[~2016-02-17 16:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-17 14:48 applying properties to columns / rows in xtables Pablo Rodriguez
2016-02-17 15:01 ` Wolfgang Schuster
2016-02-17 15:12 ` Pablo Rodriguez
2016-02-17 15:22 ` Wolfgang Schuster
2016-02-17 16:05 ` Pablo Rodriguez
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).