[NTG-context] wrong heights in TABLE

Hans Hagen pragma at wxs.nl
Wed Mar 10 18:54:17 CET 2010


On 10-3-2010 9:32, Peter Münster wrote:
> On Wed, Mar 10 2010, Taco Hoekwater wrote:
>
>> This second example is a broken table specifier when no modes
>> are enabled: it produces and empty row, which is a no-no.
>
> Ok, here an even better and smaller example-test-file:
>
> \starttext
> Problem:\blank
> \bTABLE
> \bTR \bTH 1. col                \eTH \bTH 2. col                 \eTH  \eTR
> \bTR \bTD 1 row in 1. col       \eTD \bTD[nr=2] 2 rows in 2. col \eTD  \eTR
> \bTR \bTD[nr=2] 2 rows in 1. col\eTD                                   \eTR
> \bTR                                 \bTD[nr=3] 3 rows in 2. col \eTD  \eTR
> \bTR \bTD 1 row in 1. col       \eTD                                   \eTR
> \bTR \bTD 1 row in 1. col       \eTD                                   \eTR
> \eTABLE
> \stoptext

actually it's a feature ... took me a while to figure out that there is 
a check that takes care of it

so, i will not change the code but provide a flag (to be used at your 
own risk)

test:

\starttext

\startbuffer
\bTABLE
\bTR[height=20pt] \bTH 1. col                \eTH \bTH 2. col 
       \eTH  \eTR
\bTR[height=20pt] \bTD 1 row in 1. col       \eTD \bTD[nr=2] 2 rows in 
2. col \eTD  \eTR
\bTR[height=20pt] \bTD[nr=2] 2 rows in 1. col\eTD 
             \eTR
\bTR[height=20pt]                                 \bTD[nr=3] 3 rows in 
2. col \eTD  \eTR
\bTR[height=20pt] \bTD 1 row in 1. col       \eTD 
             \eTR
\bTR[height=20pt] \bTD 1 row in 1. col       \eTD 
             \eTR
\eTABLE

\bTABLE
\bTR[height=20pt] \bTH 2. col                 \eTH  \bTH 1. col 
        \eTH \eTR
\bTR[height=20pt] \bTD[nr=2] 2 rows in 2. col \eTD  \bTD 1 row in 1. col 
       \eTD \eTR
\bTR[height=20pt]                                   \bTD[nr=2] 2 rows in 
1. col\eTD \eTR
\bTR[height=20pt] \bTD[nr=3] 3 rows in 2. col \eTD 
             \eTR
\bTR[height=20pt]                                   \bTD 1 row in 1. col 
       \eTD \eTR
\bTR[height=20pt]                                   \bTD 1 row in 1. col 
       \eTD \eTR
\eTABLE
\stopbuffer

\start
     \getbuffer
     \tightTBLrowspanfalse
     \getbuffer
\stop

\stoptext

will be in next beta

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


More information about the ntg-context mailing list