A TABLE bug (?) from the Wiki.
The Wiki page on TABLE contains the following example: ---- \setupTABLE[r][each][height=1cm] \setupTABLE[c][each][width=1cm] \setupTABLE[r][1][height=0cm,frame=off] \bTABLE \bTR \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR \bTR \bTD[nc=2,nr=2] r1c1 \eTD \bTD r1c3 \eTD \bTD[nr=2] r1c4 \eTD \bTD[nr=2,nc=2] r1c5 \eTD \eTR \bTR \bTD[nr=2] r2c3 \eTD \eTR \bTR \bTD[nc=2] r3c1 \eTD \bTD[nc=2] r3c4 \eTD \bTD r3c6 \eTD \eTR \bTR \bTD r4c1 \eTD \bTD[nc=2] r4c2 \eTD \bTD[nr=2] r4c4 \eTD \bTD[nc=2] r4c5 \eTD \eTR \bTR \bTD[nr=2,nc=2] r5c1 \eTD \bTD[nr=2] r5c3 \eTD \bTD[nr=2,nc=2] r5c5 \eTD \eTR \bTR \bTD r6c4 \eTD \eTR \eTABLE ---- This comes with a note: "There is an ugly hack in the code. An empty first row with zero height and no borders is added. If the row is omitted, then something odd happens to the number of columns." Is this an actual bug in ConTeXt, or is it a bug in the example? If the latter, what's the fix? Thanks, - Brooks
Brooks Moses wrote:
Is this an actual bug in ConTeXt, or is it a bug in the example? If the latter, what's the fix?
indeed a bug, seems like the combinex nc/nr case is not handled ok \setupTABLE[r][each][height=1cm] \setupTABLE[c][each][width=1cm] \bTABLE \bTR \bTD[nc=2] r1c1 \eTD \bTD r1c3 \eTD \bTD[nr=2] r1c4 \eTD \eTR \bTR \bTD r2c3 \eTD \eTR \eTABLE \bTABLE \bTR \bTD[nr=2] r1c1 \eTD \bTD r1c3 \eTD \bTD[nr=2] r1c4 \eTD \eTR \bTR \bTD r2c3 \eTD \eTR \eTABLE \bTABLE \bTR \bTD[nr=2,nc=2] r1c1 \eTD \bTD r1c3 \eTD \bTD[nr=2] r1c4 \eTD \eTR \bTR \bTD r2c3 \eTD \eTR \eTABLE ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Brooks Moses
-
Hans Hagen