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
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
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
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 ___________________________________________________________________________________
participants (3)
-
Henri Menke
-
Jan Willem Flamma
-
Taco Hoekwater