From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20851 Path: news.gmane.org!not-for-mail From: Albrecht Kauffmann Newsgroups: gmane.comp.tex.context Subject: Re: Metapost question Date: Tue, 14 Jun 2005 09:56:54 +0200 (CEST) Message-ID: References: <42AE7F1E.8050401@physik.fu-berlin.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1118735887 29297 80.91.229.2 (14 Jun 2005 07:58:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Jun 2005 07:58:07 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 14 09:58:05 2005 Return-path: 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 1Di6Ir-0002d8-Lo for gctc-ntg-context-518@m.gmane.org; Tue, 14 Jun 2005 09:57:45 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4F0B912813; Tue, 14 Jun 2005 10:02:42 +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 28877-01; Tue, 14 Jun 2005 10:02:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DAA6C127C1; Tue, 14 Jun 2005 10:00:47 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A8CA9127C1 for ; Tue, 14 Jun 2005 10:00:46 +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 28527-07 for ; Tue, 14 Jun 2005 10:00:46 +0200 (CEST) Original-Received: from persius.rz.uni-potsdam.de (persius.rz.uni-potsdam.de [141.89.68.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1FF88127BB for ; Tue, 14 Jun 2005 10:00:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by persius.rz.uni-potsdam.de (8.12.11/8.12.11) with ESMTP id j5E80iYb015278 for ; Tue, 14 Jun 2005 10:00:44 +0200 (CEST) Original-Received: from persius.rz.uni-potsdam.de ([127.0.0.1]) by localhost (persius [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14792-02 for ; Tue, 14 Jun 2005 10:00:41 +0200 (CEST) Original-Received: from persius.rz.uni-potsdam.de (persius.rz.uni-potsdam.de [141.89.68.1]) by persius.rz.uni-potsdam.de (8.12.11/8.12.11) with ESMTP id j5E7utvg010941 for ; Tue, 14 Jun 2005 09:56:55 +0200 (CEST) Original-To: mailing list for ConTeXt users In-Reply-To: <42AE7F1E.8050401@physik.fu-berlin.de> X-Virus-Scanned: by amavisd-new at rz.uni-potsdam.de X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20851 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20851 Hallo Tobias, you can use char in the following manner: Emean:=5;% A quite simple example label.lft(btex $A=$ etex,pair exression); label.rt(char(48+Emean),the same pair expression); Clearly, if Emean is an expression like xxx.xxxx, you must convert it in a sequence of single chars (not quite simple). Greetings Albrecht On Tue, 14 Jun 2005, Tobias Burnus wrote: > Hello, > > does someone know how, if at all, one can printout some variable? Like > Emean:=(2*Eone+Ezero+2*Etwo)/5.; > label.urt(btex $A = x$ .... > where x is the value of Emean? I frequently create some diagrams, modify > them and then forget to change the label. (If one could set the number > of digits, it would be even nicer.) > > Tobias > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context >