Re: [NTG-context] pictures in tabulate

2010-10-17 Thread Thomas A. Schmitz

On Oct 18, 2010, at 12:20 AM, Hans Hagen wrote:

> When there is a 'p' in the preamble, lines are forced to lineheights but as I 
> needed images in tabulate a while ago too, I added:
> 
> \tabulatesplitlinemode 2
> 
> So maybe that helps. It might become an option some day.
> 
> Hans

Excellent, this works! Thanks Hans.

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


Re: [NTG-context] pictures in tabulate

2010-10-17 Thread Hans Hagen

On 17-10-2010 11:24, Thomas A. Schmitz wrote:

Hi all,

I'm looking for a way to use pictures inside a tabulate environment. 
Unfortunately, newer versions of ConTeXt don't take the picture height into 
account. The following code gives a somewhat disappointing result both in mkii 
and mkiv:

\starttext

\starttabulate[|rw(3em)|p|]
\NC YYY \NC ZZZ \NC \NR
\NC XXX \NC \dontleavehmode \externalfigure[cow][frame=on,width=0.5\textwidth] 
\NC \NR
\NC YYY \NC ZZZ \NC \NR
\stoptabulate

\stoptext

Interestingly, this used to work a couple of years ago (last time I used this 
was 2008), but something must have changed. I tried putting the externalfigure 
into a \tbox, but no dice. Bug or feature?


When there is a 'p' in the preamble, lines are forced to lineheights but 
as I needed images in tabulate a while ago too, I added:


\tabulatesplitlinemode 2

So maybe that helps. It might become an option some day.

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
___


[NTG-context] pictures in tabulate

2010-10-17 Thread Thomas A. Schmitz
Hi all,

I'm looking for a way to use pictures inside a tabulate environment. 
Unfortunately, newer versions of ConTeXt don't take the picture height into 
account. The following code gives a somewhat disappointing result both in mkii 
and mkiv:

\starttext

\starttabulate[|rw(3em)|p|]
\NC YYY \NC ZZZ \NC \NR
\NC XXX \NC \dontleavehmode \externalfigure[cow][frame=on,width=0.5\textwidth] 
\NC \NR
\NC YYY \NC ZZZ \NC \NR
\stoptabulate

\stoptext

Interestingly, this used to work a couple of years ago (last time I used this 
was 2008), but something must have changed. I tried putting the externalfigure 
into a \tbox, but no dice. Bug or feature? 

All best 

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