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