ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problems with TABLE
@ 2010-09-30 13:08 Patrick Gundlach
  2010-09-30 13:43 ` Peter Münster
  0 siblings, 1 reply; 5+ messages in thread
From: Patrick Gundlach @ 2010-09-30 13:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems with TABLE
  2010-09-30 13:08 Problems with TABLE Patrick Gundlach
@ 2010-09-30 13:43 ` Peter Münster
  2010-09-30 14:13   ` Patrick Gundlach
  2010-09-30 14:21   ` Wolfgang Schuster
  0 siblings, 2 replies; 5+ messages in thread
From: Peter Münster @ 2010-09-30 13:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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/


___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems with TABLE
  2010-09-30 13:43 ` Peter Münster
@ 2010-09-30 14:13   ` Patrick Gundlach
  2010-09-30 20:32     ` Hans Hagen
  2010-09-30 14:21   ` Wolfgang Schuster
  1 sibling, 1 reply; 5+ messages in thread
From: Patrick Gundlach @ 2010-09-30 14:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems with TABLE
  2010-09-30 13:43 ` Peter Münster
  2010-09-30 14:13   ` Patrick Gundlach
@ 2010-09-30 14:21   ` Wolfgang Schuster
  1 sibling, 0 replies; 5+ messages in thread
From: Wolfgang Schuster @ 2010-09-30 14:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 30.09.2010 um 15:43 schrieb Peter Münster:

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

Use \hsize, \localhsize is the current width in a narrower environment or in a itemze.

Wolfgang

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Problems with TABLE
  2010-09-30 14:13   ` Patrick Gundlach
@ 2010-09-30 20:32     ` Hans Hagen
  0 siblings, 0 replies; 5+ messages in thread
From: Hans Hagen @ 2010-09-30 20:32 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Patrick Gundlach

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
-----------------------------------------------------------------
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-30 20:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-30 13:08 Problems with TABLE Patrick Gundlach
2010-09-30 13:43 ` Peter Münster
2010-09-30 14:13   ` Patrick Gundlach
2010-09-30 20:32     ` Hans Hagen
2010-09-30 14:21   ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).