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 ___________________________________________________________________________________