[NTG-context] Problems with TABLE

Peter Münster pmlists at free.fr
Thu Sep 30 15:43:08 CEST 2010


On Thu, Sep 30 2010, Patrick Gundlach wrote:
> 
> I still have some problems with TABLE:
> 
> \bTABLE[frame=on]

We need to know the values for rulethickness and offset, so let's define them:

\bTABLE[frame=on, rulethickness=0.5pt, offset=0.1em]


>   \bTD[frame=off,rightframe=on,rulethickness=1mm] abc \eTD

Now, it gets ugly:

  \bTD[frame=off,rightframe=on,rulethickness=1mm,
    offset=\dimexpr 0.1em + 0.5pt - 1mm \relax, roffset=0.1em] abc \eTD

See also: http://tracker.luatex.org/view.php?id=427


>   \bTD[nc=2,nr=2,background=color, backgroundcolor=yellow]
>   \externalfigure[cow][width=.2\textwidth]  \eTD

2 options:

- The cow gets smaller: \externalfigure[cow][width=\localhsize]
  (does not work, I don't know why...)

- The table cells get bigger. You have to define the width. If you want to
  span the cow 50%/50%, then
  \setupTABLE[c][2,3][width=0.1\textwidth]

I wonder, why there is no such problem with the height... ?

Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/




More information about the ntg-context mailing list