From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/31025 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: calculations Date: Tue, 26 Sep 2006 19:14:29 +0200 Message-ID: References: <93F3046C-F059-4C5D-AC7F-73DFD5A4AAD6@fiee.net> <0DE942E8-4FE2-41E2-8C04-6D2DD127172D@fiee.net> <4512E411.2070504@gmx.net> <181E3AED-683E-4B2C-9D7B-5AE966E621E5@fiee.net> <4517A56C.5020704@gmx.net> <5563EF4F-4088-42F3-A0C9-B33540FFA3A5@fiee.net> <4518CE66.4080703@elvenkind.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1159290941 5281 80.91.229.2 (26 Sep 2006 17:15:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Sep 2006 17:15:41 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 26 19:15:36 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 1GSGWE-0008Pk-QG for gctc-ntg-context-518@m.gmane.org; Tue, 26 Sep 2006 19:14:54 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DA2A31FE5C; Tue, 26 Sep 2006 19:14:53 +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 17655-01; Tue, 26 Sep 2006 19:14:41 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3ADB11FEB0; Tue, 26 Sep 2006 19:14:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AC9011FEB0 for ; Tue, 26 Sep 2006 19:14:37 +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 16465-01-2 for ; Tue, 26 Sep 2006 19:14:31 +0200 (CEST) Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by ronja.ntg.nl (Postfix) with SMTP id 9CE1C1FE5C for ; Tue, 26 Sep 2006 19:14:31 +0200 (CEST) Original-Received: from [62.203.216.29] (helo=[10.128.9.3]) by mrelayeu.kundenserver.de (node=mrelayeu2) with ESMTP (Nemesis), id 0MKwtQ-1GSGVq3tE0-0003S8; Tue, 26 Sep 2006 19:14:31 +0200 In-Reply-To: <4518CE66.4080703@elvenkind.com> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:71ece21a21b2fa6ef1812787a4eaee0e 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:31025 Archived-At: Am 2006-09-26 um 08:53 schrieb Taco Hoekwater: >> I think I tried everything but didn't get it to work. >> For the moment I use: >> \def\LPscale{0.6315789} % downscale the image >> \def\LPkscale{632} >> % doesn't work: \def\LPkscale{\numexpr1000\LPscale\relax} > > Missed this thread so far, but how about this? > \edef\LPkscale{\the\numexpr1000\LPscale\relax} Thank you. That doesn't run on an error, but scales way too much. With \def\LPscale{0.6315789} the command should have the same effect as \def\LPkscale{632} But \edef\LPkscale{\the\numexpr1000\LPscale\relax} seems to scale about 100 times too much. I simply(?!?) want to multiply some floating point value with 1000 to set the "scale" parameter of \externalfigure. Why ist this so difficult? Is there a book or tutorial on TeX as a programming language somewhere? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://contextgarden.net http://www.cacert.org (I'm an assurer)