From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/76823 Path: news.gmane.org!not-for-mail From: Alfredo Catalina Newsgroups: gmane.comp.tex.context Subject: Re: \externalfigure shows text alongside the picture Date: Fri, 8 Jun 2012 20:57:02 +0200 Message-ID: References: <78EBC165-4507-4D2A-918A-C92B414DBC4F@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0804901554==" X-Trace: dough.gmane.org 1339181834 5760 80.91.229.3 (8 Jun 2012 18:57:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2012 18:57:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 08 20:57:12 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 1Sd4Mu-0008Ux-M7 for gctc-ntg-context-518@m.gmane.org; Fri, 08 Jun 2012 20:57:08 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 43503101E5; Fri, 8 Jun 2012 20:57:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id SIm+9XOkAGXP; Fri, 8 Jun 2012 20:57:06 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AEEBD101E2; Fri, 8 Jun 2012 20:57:06 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B33E1101E2 for ; Fri, 8 Jun 2012 20:57:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UTyitFawH803 for ; Fri, 8 Jun 2012 20:57:04 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 872E5101DD for ; Fri, 8 Jun 2012 20:57:04 +0200 (CEST) Original-Received: from mail-yx0-f169.google.com (mail-yx0-f169.google.com [209.85.213.169]) by filter1-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q58Iv2xV014537 for ; Fri, 8 Jun 2012 20:57:03 +0200 Original-Received: by yenm7 with SMTP id m7so2029153yen.14 for ; Fri, 08 Jun 2012 11:57:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0sp+/vlcEDo97lmzmVn9TTu3esIFReuK7+cKPPuQxAI=; b=hV2dHpQ+Ed7DdI9CQpowU8i0RKVr5FqaVEiMCKz022Bygxsir4T8pDqS4ghDNXL7Vi 9ru7D9Nv87ktbq4/AJCEfzLfjAn8FAZ1noDf3NdBbE89vP3v8yzWEqRuJN4IFyAzJXbR BpChKV+zj2GL0+xKHOFLGSJ0VbikbHKN4LFL4868OgmcPVEBa7VMLIe26q1WGw9qzt9n b25rGgj1pCg2FMk6O/RhgMGBPptwhwSkm7+xB0O7FnCi3PtjT8xvQbEPvbQJk//FnaBs P4i3yGYYqLBU1H9dx/bs4m3qwft2vOn/hNBm2VzryWevdUhSgT5syqtZ8WwDgypRKXir pQOQ== Original-Received: by 10.60.21.234 with SMTP id y10mr8350653oee.0.1339181822335; Fri, 08 Jun 2012 11:57:02 -0700 (PDT) Original-Received: by 10.76.153.40 with HTTP; Fri, 8 Jun 2012 11:57:02 -0700 (PDT) Original-Received: by 10.76.153.40 with HTTP; Fri, 8 Jun 2012 11:57:02 -0700 (PDT) In-Reply-To: <78EBC165-4507-4D2A-918A-C92B414DBC4F@googlemail.com> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.213.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07HjSV3MI - 0cc0069dc11d - 20120608 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.13 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:76823 Archived-At: --===============0804901554== Content-Type: multipart/alternative; boundary=e89a8fb1edc8cf5b9404c1fa90b8 --e89a8fb1edc8cf5b9404c1fa90b8 Content-Type: text/plain; charset=ISO-8859-1 Great! Thanks Wolfgang! On 8 Jun 2012 17:16, "Wolfgang Schuster" wrote: > > > Am 08.06.2012 um 17:10 schrieb Alfredo Catalina: > > > I am using \externalfigure to show a picture at the desired scale. Instead of providing a number for the width parameter I have made a definition with \def. When I run in mkiv this I get the text "4t" alongside the picture. > > > > \def\DesignSize#1{3.5cm/4*#1}% > > \starttext > > \externalfigure[hacker.jpg][width=\DesignSize{4}] > > \stoptext > > > > In mkii is perfect. > > > > I've also tried > > > > \define[1]\DesignSize{3.5cm/4*#1} > > > > with the same result. > > \define[1]\DesignSize{\the\dimexpr3.5cm/4*#1\relax} > > Wolfgang > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ --e89a8fb1edc8cf5b9404c1fa90b8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

Great! Thanks Wolfgang!

On 8 Jun 2012 17:16, "Wolfgang Schuster" <schuster.wolfgang@googlemail.com>= wrote:
>
>
> Am 08.06.2012 um 17:10 schrieb Alfredo Catalina:
>
> > I am using \externalfigure to show a picture at the desired scale= . Instead of providing a number for the width parameter I have made a defin= ition with \def. When I run in mkiv this I get the text "4t" alon= gside the picture.
> >
> > \def\DesignSize#1{3.5cm/4*#1}%
> > \starttext
> > \externalfigure[hacker.jpg][width=3D\DesignSize{4}]
> > \stoptext
> >
> > In mkii is perfect.
> >
> > I've also tried
> >
> > \define[1]\DesignSize{3.5cm/4*#1}
> >
> > with the same result.
>
> \define[1]\DesignSize{\the\dimexpr3.5cm/4*#1\relax}
>
> Wolfgang
>
> ______________________________________________________________________= _____________
> If your question is of interest to others as well, please add an entry= to the Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.n= tg.nl/mailman/listinfo/ntg-context
> webpage =A0: http://www.pragma-ad= e.nl / http://tex.aanhet.net
> archive =A0: http://foundry.supelec.fr/projects/contextrev/
> wiki =A0 =A0 : http://contextgard= en.net
> ______________________________________________________________________= _____________

--e89a8fb1edc8cf5b9404c1fa90b8-- --===============0804901554== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0804901554==--