From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20487 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Re: Animations in ConTeXt Date: Tue, 24 May 2005 23:52:27 +0200 Message-ID: <4293A21B.8020101@wxs.nl> References: <1116757157.13109.9.camel@drr.elaphus> <6faad9f0050524105874409ba4@mail.gmail.com> 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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1116973157 3867 80.91.229.2 (24 May 2005 22:19:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 May 2005 22:19:17 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed May 25 00:19:01 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 1Dahjb-0007At-9r for gctc-ntg-context-518@m.gmane.org; Wed, 25 May 2005 00:18:47 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 29144127CF; Wed, 25 May 2005 00:20:31 +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 31716-07; Wed, 25 May 2005 00:20:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4AE08127A9; Tue, 24 May 2005 23:51:59 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3C793127A9 for ; Tue, 24 May 2005 23:51:57 +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 31263-02 for ; Tue, 24 May 2005 23:51:56 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 66727127A8 for ; Tue, 24 May 2005 23:51:56 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j4OLpmec021629; Tue, 24 May 2005 23:51:48 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id D45971FB99; Tue, 24 May 2005 23:23:46 +0200 (CEST) Original-Received: from [10.100.1.53] (unknown [10.100.1.53]) by server-1.pragma-net.nl (Postfix) with ESMTP id 563E21A68A; Tue, 24 May 2005 21:23:45 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: Mojca Miklavec , mailing list for ConTeXt users In-Reply-To: <6faad9f0050524105874409ba4@mail.gmail.com> X-Virus-Scanned: ClamAV version 0.85.1, clamav-milter version 0.85 on mailrelay02 X-Virus-Status: Clean 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:20487 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20487 Mojca Miklavec wrote: > \newcount\angle > \angle=0 > \definesymbol > [star \the\angle] > [\uniqueMPgraphic{drawstar}{rotation=\the\angle}] > \advance\angle by 6 > \definesymbol > [star \the\angle] > [\uniqueMPgraphic{drawstar}{rotation=\the\angle}] > > This should define two symbols, \symbol[star 0] and \symbol[star 6]. > It did, but "rotation=\the\angle" resulted in "6" in both cases (the > last value), so we get two identical pictures. \the\angle can be > replaced manually by 0/6/12/... but that's not the point. > Can anyone find the reason for problems? \definesymbol[whatever][something which is expanded at the time of invocation \newcount\angle % dangerous command, better use MyAngle or so \expanded {\definesymbol [star \number\angle] [\noexpand\uniqueMPgraphic{drawstar}{rotation=\number\angle}] \advance\angle by 6 \expanded {\definesymbol [star \number\angle] [\noexpand\uniqueMPgraphic{drawstar}{rotation=\number\angle}] ugly but needed Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------