* pictures in tabulate
@ 2010-10-17 21:24 Thomas A. Schmitz
2010-10-17 22:20 ` Hans Hagen
0 siblings, 1 reply; 3+ messages in thread
From: Thomas A. Schmitz @ 2010-10-17 21:24 UTC (permalink / raw)
To: mailing ConTeXt users list for
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pictures in tabulate
2010-10-17 21:24 pictures in tabulate Thomas A. Schmitz
@ 2010-10-17 22:20 ` Hans Hagen
2010-10-18 5:32 ` Thomas A. Schmitz
0 siblings, 1 reply; 3+ messages in thread
From: Hans Hagen @ 2010-10-17 22:20 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Thomas A. Schmitz
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pictures in tabulate
2010-10-17 22:20 ` Hans Hagen
@ 2010-10-18 5:32 ` Thomas A. Schmitz
0 siblings, 0 replies; 3+ messages in thread
From: Thomas A. Schmitz @ 2010-10-18 5:32 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-18 5:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-17 21:24 pictures in tabulate Thomas A. Schmitz
2010-10-17 22:20 ` Hans Hagen
2010-10-18 5:32 ` Thomas A. Schmitz
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).