From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20481 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Re: Animations in ConTeXt Date: Tue, 24 May 2005 19:58:48 +0200 Message-ID: <6faad9f0050524105874409ba4@mail.gmail.com> References: <1116757157.13109.9.camel@drr.elaphus> Reply-To: Mojca Miklavec , 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 1116957690 15007 80.91.229.2 (24 May 2005 18:01:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 May 2005 18:01:30 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue May 24 20:01:26 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 1Dadhj-0007Fd-Na for gctc-ntg-context-518@m.gmane.org; Tue, 24 May 2005 20:00:35 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E3B6B127A9; Tue, 24 May 2005 20:02:17 +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 29932-03; Tue, 24 May 2005 20:02:17 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 956E9127B8; Tue, 24 May 2005 19:58:51 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4E88C127B8 for ; Tue, 24 May 2005 19:58:50 +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 29771-06 for ; Tue, 24 May 2005 19:58:49 +0200 (CEST) Original-Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by ronja.ntg.nl (Postfix) with ESMTP id 3BC73127A9 for ; Tue, 24 May 2005 19:58:48 +0200 (CEST) Original-Received: by wproxy.gmail.com with SMTP id 36so393662wra for ; Tue, 24 May 2005 10:58:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=DW3/sCatRhRSAjzWZQdLWjtGhnA9ptOCCPL2FEeCKjLhb1kS9YJzOu69QmqQawjYoiiIm+STdBRIkzgEjmgpEl5mbbNZ/0exnjZ5Dz6lgw+jb4RIcBSdfEMJEjLYGZ87anrQ/U0qQ/sJ9QlC6ffybgCO2diTxZ7KnpNWc96J+LA= Original-Received: by 10.54.44.53 with SMTP id r53mr690447wrr; Tue, 24 May 2005 10:58:48 -0700 (PDT) Original-Received: by 10.54.138.16 with HTTP; Tue, 24 May 2005 10:58:48 -0700 (PDT) Original-To: mailing list for ConTeXt users In-Reply-To: <1116757157.13109.9.camel@drr.elaphus> Content-Disposition: inline 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:20481 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20481 On 5/22/05, Richard Hirsch wrote: >=20 > Of course you would want to put the symbol definitions and the > definition of the fieldstack into a loop. I tried > %% \newcount\angle > %% \angle=3D0%\zerocount > %% \dorecurse{12} {% > %% \number\angle:\qquad > %% \definestarsymbol{\the\angle} > %% \symbol[star \number\angle]\par > %% \advance\angle by 6} > and did get the single symbols. I wasn't successful however in putting > the symbol list of the fieldstack definition into a loop. Perhaps the > ConTeXt gurus can help. I discovered some possible sources of problems, but didn't manage to solve = them. I changed this part of code (just for debugging reasons): \startuniqueMPgraphic{drawstar}{rotation} draw thestar rotated \MPvar{rotation}; % this line was added label("\MPvar{rotation}", origin); \stopuniqueMPgraphic Problem N. #1: -------------- Consider now the following definition: \newcount\angle \angle=3D0 \definesymbol [star \the\angle] [\uniqueMPgraphic{drawstar}{rotation=3D\the\angle}] \advance\angle by 6 \definesymbol [star \the\angle] [\uniqueMPgraphic{drawstar}{rotation=3D\the\angle}] This should define two symbols, \symbol[star 0] and \symbol[star 6]. It did, but "rotation=3D\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. ???? Problem N. #2: -------------- Instead of writing \definestarsymbol{0} \definestarsymbol{6} \definestarsymbol{12} ... I tried to use: \newcount\angle {\angle=3D0\loop\ifnum\angle<67% \definesymbol [star \the\angle] [{\uniqueMPgraphic{drawstar}{rotation=3D0}}] Defining symbol \the\angle \dots\crlf \advance\angle by 6 \repeat} Because of some unknown reason \symbol[star 0], ... cannot be recalled at a= ll. Can anyone find the reason for problems?=20 I had very similiar problems when trying to add \loop\ifnum...\repeat to the example in http://www.fi.muni.cz/~xholecek/animations/, which is written in plain TeX anyway. Mojca