From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77338 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: adjust width of text automatically Date: Sun, 15 Jul 2012 21:40:42 +0200 Message-ID: <50031CBA.6060206@wxs.nl> References: <87bojg7vum.fsf@micropit.couberia.bzh> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1342381288 21710 80.91.229.3 (15 Jul 2012 19:41:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 15 Jul 2012 19:41:28 +0000 (UTC) To: ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 15 21:41:28 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SqUh5-0000nX-1i for gctc-ntg-context-518@m.gmane.org; Sun, 15 Jul 2012 21:41:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C0A80101F1; Sun, 15 Jul 2012 21:41:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5vhEAyTrZ-xC; Sun, 15 Jul 2012 21:41:22 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25A49101F9; Sun, 15 Jul 2012 21:41:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CA138101F9 for ; Sun, 15 Jul 2012 21:41:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zBVMMmL9N25L for ; Sun, 15 Jul 2012 21:41:19 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 6F9C4101F1 for ; Sun, 15 Jul 2012 21:41:19 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6FJcmYV004360 for ; Sun, 15 Jul 2012 21:38:49 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.101; Original-Received: from [10.100.1.101] (unverified [10.100.1.101]) by pragma-net.nl (SurgeMail 5.3h2) with ESMTP (TLS) id 570-1713362 for ; Sun, 15 Jul 2012 21:41:15 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1 In-Reply-To: <87bojg7vum.fsf@micropit.couberia.bzh> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=03; city=Hattem; latitude=52.4724; longitude=6.0696; http://maps.google.com/maps?q=52.4724,6.0696&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WHyHCM53 - e60bae6f1809 - 20120715 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77338 Archived-At: On 15-7-2012 19:55, Peter M=FCnster 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=3D0pt, height=3D7cm, textwidth=3D\textwidth, option=3Dstre= tch] > \bTR > \bTD bla bla bla bla bla bla bla bla bla \eTD > \bTD \externalfigure[hacker][height=3D7cm] \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=3D7cm] \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 t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________