ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
Subject: Re: pictures in tabulate
Date: Mon, 18 Oct 2010 00:20:23 +0200	[thread overview]
Message-ID: <4CBB76A7.1050109@wxs.nl> (raw)
In-Reply-To: <F237CE1C-F0E3-4DD4-9BD8-3030BBB913EA@uni-bonn.de>

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
___________________________________________________________________________________


  reply	other threads:[~2010-10-17 22:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-17 21:24 Thomas A. Schmitz
2010-10-17 22:20 ` Hans Hagen [this message]
2010-10-18  5:32   ` Thomas A. Schmitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CBB76A7.1050109@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=thomas.schmitz@uni-bonn.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).