From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30927 Path: news.gmane.org!not-for-mail From: Vit Zyka Newsgroups: gmane.comp.tex.context Subject: Re: calculations Date: Thu, 21 Sep 2006 10:04:19 +0200 Message-ID: <45124783.9060500@seznam.cz> References: <93F3046C-F059-4C5D-AC7F-73DFD5A4AAD6@fiee.net> <0DE942E8-4FE2-41E2-8C04-6D2DD127172D@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1158825912 26717 80.91.229.2 (21 Sep 2006 08:05:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 21 Sep 2006 08:05:12 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 21 10:05:08 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1GQJXq-0000R0-UB for gctc-ntg-context-518@m.gmane.org; Thu, 21 Sep 2006 10:04:31 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5839A1FE1B; Thu, 21 Sep 2006 10:04:29 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15961-01-2; Thu, 21 Sep 2006 10:04:23 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 97B551FC07; Thu, 21 Sep 2006 10:04:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 26C081FE15 for ; Thu, 21 Sep 2006 10:04:21 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 15961-01 for ; Thu, 21 Sep 2006 10:04:10 +0200 (CEST) Original-Received: from smtp.seznam.cz (smtp.seznam.cz [212.80.76.43]) by ronja.ntg.nl (Postfix) with SMTP id BED1C1FC07 for ; Thu, 21 Sep 2006 10:04:09 +0200 (CEST) Original-Received: (qmail 2439 invoked from network); 21 Sep 2006 08:04:08 -0000 Original-Received: from unknown (HELO ?127.0.0.1?) (typokvitek@seznam.cz@82.208.57.182) by tic.go.seznam.cz with ESMTPA; 21 Sep 2006 08:04:08 -0000 X-Seznam-User: typokvitek@seznam.cz User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) Original-To: mailing list for ConTeXt users In-Reply-To: <0DE942E8-4FE2-41E2-8C04-6D2DD127172D@fiee.net> X-Antivirus: avast! (VPS 0638-0, 19.09.2006), Outbound message X-Antivirus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:30927 Archived-At: Henning Hraban Ramm wrote: > Am 2006-09-20 um 00:40 schrieb nico: > = >> \figurewidth is not a dimension. I guess the following should work: >> >> \def\LPscale{.6315789} % downscale the image >> \ifvmode >> \getfiguredimensions[\bufferprefix >> lilypond-\the\lily!figures.pdf][]% >> \leavevmode% >> \newdimen\FigWidth >> \newdimen\FigWidthReal=3D\figurewidth >> \FigWidth=3D\dimexpr(\LPscale\FigWidthReal) >> \ifdim\FigWidth>\localhsize >> \!!dimena=3D\localhsize >> \advance\!!dimena by-\FigWidth >> \noindent\hskip\!!dimena >> \fi >> \fi > = > Thank you very much, that works indeed. > = >> \externalfigure[\lily!img][scale=3D\dimexpr(1000\LPscale)]% > = > But here \dimexpr is nonsense (should have seen that before). > But "scale=3D1000\LPscale" just concatenates the two "strings", and TeX = > doesn't seem to reckognize a * \def\LPscale{.6315789pt} scale=3D\withoutpt\the\dimexpr\LPscale*1000\relax Vit > How can I multiply two values? Di I need some expansion magick or = > just something like "eval()"? > = > = > Greetlings from Lake Constance! > Hraban > --- > http://www.fiee.net/texnique/ > http://contextgarden.net > http://www.cacert.org (I'm an assurer) > = > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > = -- = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D Ing. V=EDt Z=FDka, Ph.D. TYPOkv=EDtek database publishing databazove publikovani data maintaining and typesetting in typographic quality priprava dat a jejich sazba v typograficke kvalite tel.: (+420) 777 198 189 www: http://typokvitek.com =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D