* adjust width of text automatically
@ 2012-07-15 17:55 Peter Münster
2012-07-15 19:40 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Peter Münster @ 2012-07-15 17:55 UTC (permalink / raw)
To: ConTeXt users
Hi,
Is it possible to place one box beside another, both with the same
height, one box with an image of unknown width, and the other uses the
remaining width.
I've tried this, but without success:
--8<---------------cut here---------------start------------->8---
\starttext
\bTABLE[offset=0pt, height=7cm, textwidth=\textwidth, option=stretch]
\bTR
\bTD bla bla bla bla bla bla bla bla bla \eTD
\bTD \externalfigure[hacker][height=7cm] \eTD
\eTR
\eTABLE
\stoptext
--8<---------------cut here---------------end--------------->8---
If yes, how?
If no, then I'll try to get the width of the image with img.scan() ...
TIA for any hints!
--
Peter
___________________________________________________________________________________
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] 2+ messages in thread
* Re: adjust width of text automatically
2012-07-15 17:55 adjust width of text automatically Peter Münster
@ 2012-07-15 19:40 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2012-07-15 19:40 UTC (permalink / raw)
To: ConTeXt users
On 15-7-2012 19:55, Peter Münster wrote:
> Hi,
>
> Is it possible to place one box beside another, both with the same
> height, one box with an image of unknown width, and the other uses the
> remaining width.
>
> I've tried this, but without success:
>
> --8<---------------cut here---------------start------------->8---
> \starttext
> \bTABLE[offset=0pt, height=7cm, textwidth=\textwidth, option=stretch]
> \bTR
> \bTD bla bla bla bla bla bla bla bla bla \eTD
> \bTD \externalfigure[hacker][height=7cm] \eTD
> \eTR
> \eTABLE
> \stoptext
> --8<---------------cut here---------------end--------------->8---
>
> If yes, how?
>
> If no, then I'll try to get the width of the image with img.scan() ...
>
> TIA for any hints!
>
\getfiguredimensions[hacker][height=7cm]
\figurewidth \figureheight
-----------------------------------------------------------------
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] 2+ messages in thread
end of thread, other threads:[~2012-07-15 19:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-15 17:55 adjust width of text automatically Peter Münster
2012-07-15 19:40 ` Hans Hagen
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).