Problems with TABLE
Hi, I still have some problems with TABLE: \bTABLE[frame=on] \bTR \bTD abc \eTD \bTD abc \eTD \bTD[frame=off,rightframe=on,rulethickness=1mm] abc \eTD \bTD abc \eTD \eTR \bTR \bTD[background=color, backgroundcolor=yellow] abc \eTD \bTD[nc=2,nr=2,background=color, backgroundcolor=yellow] \externalfigure[cow][width=.2\textwidth] \eTD \bTD abc \eTD \eTR \bTR \bTD abc \eTD \bTD abc \eTD \eTR \bTR \bTD abc \eTD \bTD abc \eTD \bTD abc \eTD \bTD abc \eTD \eTR \eTABLE 1) the cow sticks out of the cell. How can I pen the cow to the cell? 2) the third cell in the first row: when I turn on the right rule, the "abc" goes down. How can I have the abc on the baseline with the other ones in the first row _and_ have a right rule like that? Patrick
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/
\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 hope that this is a bug and not a feature.... Thanks! Patrick
On 30-9-2010 4:13, Patrick Gundlach wrote:
\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...)
in the second pass the localhsize can be different and as a result the final result somewhat unexpected
- 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 hope that this is a bug and not a feature....
some day soon I'll rewrite the code and add more configurability (i think I started already but probably lost the code) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (4)
-
Hans Hagen
-
Patrick Gundlach
-
Peter Münster
-
Wolfgang Schuster