ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Construct tables column after column
@ 2018-09-10 10:47 Jan Willem Flamma
  2018-09-10 11:23 ` Taco Hoekwater
  2018-09-10 11:43 ` Henri Menke
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Willem Flamma @ 2018-09-10 10:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list members,

Table are constructed row after row like in the code below:

Building up a table row after row
\par
\bTABLE
    \bTR
        \bTC Row 1, Column 1 \eTC
        \bTC Row 1, Column 2 \eTC
    \eTR
    \bTR
        \bTC Row 2, Column 1 \eTC
        \bTC Row 2, Column 2 \eTC
    \eTR
\eTABLE

But is it possible to construct tables column after column?
(The code below does not generate output. I merely switched the xTC and xTR to illustate the idea)

Building up a table column after column
\par
\bTABLE
    \bTC
        \bTR Column 1, Row 1 \eTR
        \bTR Column 1, Row 2 \eTR
    \eTC
    \bTC
        \bTR Column 2, Row 1 \eTR
        \bTR Column 2, Row 2 \eTR
    \eTC
\eTABLE

Kind regards,
Jan Willem Flamma
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Construct tables column after column
  2018-09-10 10:47 Construct tables column after column Jan Willem Flamma
@ 2018-09-10 11:23 ` Taco Hoekwater
  2018-09-10 11:43 ` Henri Menke
  1 sibling, 0 replies; 3+ messages in thread
From: Taco Hoekwater @ 2018-09-10 11:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

This is a funny bit of synchronicity. I made exactly the same request 
for extreme tables (\startxtable) during the ConTeXt meeting. Would
xtables work for you as well? It would be easier for Hans to set it up
in that because a) bTABLE is ‘like html’ which would not allow a swap
like that and b) xtable has explicits command for rows and cells, but 
not columns, so that could be added without any extra effort and confusion.

Best wishes,
Taco

> On 10 Sep 2018, at 12:47, Jan Willem Flamma <register12c@gmail.com> wrote:
> 
> Dear list members,
> 
> Table are constructed row after row like in the code below:
> 
> Building up a table row after row
> \par
> \bTABLE
>    \bTR
>        \bTC Row 1, Column 1 \eTC
>        \bTC Row 1, Column 2 \eTC
>    \eTR
>    \bTR
>        \bTC Row 2, Column 1 \eTC
>        \bTC Row 2, Column 2 \eTC
>    \eTR
> \eTABLE
> 
> But is it possible to construct tables column after column?
> (The code below does not generate output. I merely switched the xTC and xTR to illustate the idea)
> 
> Building up a table column after column
> \par
> \bTABLE
>    \bTC
>        \bTR Column 1, Row 1 \eTR
>        \bTR Column 1, Row 2 \eTR
>    \eTC
>    \bTC
>        \bTR Column 2, Row 1 \eTR
>        \bTR Column 2, Row 2 \eTR
>    \eTC
> \eTABLE
> 
> Kind regards,
> Jan Willem Flamma
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

Taco Hoekwater
Elvenkind BV




___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: Construct tables column after column
  2018-09-10 10:47 Construct tables column after column Jan Willem Flamma
  2018-09-10 11:23 ` Taco Hoekwater
@ 2018-09-10 11:43 ` Henri Menke
  1 sibling, 0 replies; 3+ messages in thread
From: Henri Menke @ 2018-09-10 11:43 UTC (permalink / raw)
  To: ntg-context

On 09/10/2018 10:47 PM, Jan Willem Flamma wrote:
> Dear list members,
> 
> Table are constructed row after row like in the code below:
> 
> Building up a table row after row
> \par
> \bTABLE
>     \bTR
>         \bTC Row 1, Column 1 \eTC
>         \bTC Row 1, Column 2 \eTC
>     \eTR
>     \bTR
>         \bTC Row 2, Column 1 \eTC
>         \bTC Row 2, Column 2 \eTC
>     \eTR
> \eTABLE
> 
> But is it possible to construct tables column after column?

If you are not scared of plain TeX macros, you can use \valign.

\starttext

\begingroup
\hsize=5cm
\valign{%
  \strut#\aligntab\strut#\cr
  %
  Column 1, Row 1\aligntab
  Column 1, Row 2\cr
  %
  Column 2, Row 1\aligntab
  Column 2, Row 2\cr
}
\endgroup

\stoptext

> (The code below does not generate output. I merely switched the xTC and xTR to illustate the idea)
> 
> Building up a table column after column
> \par
> \bTABLE
>     \bTC
>         \bTR Column 1, Row 1 \eTR
>         \bTR Column 1, Row 2 \eTR
>     \eTC
>     \bTC
>         \bTR Column 2, Row 1 \eTR
>         \bTR Column 2, Row 2 \eTR
>     \eTC
> \eTABLE
> 
> Kind regards,
> Jan Willem Flamma
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2018-09-10 11:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-10 10:47 Construct tables column after column Jan Willem Flamma
2018-09-10 11:23 ` Taco Hoekwater
2018-09-10 11:43 ` Henri Menke

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