From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20524 Path: news.gmane.org!not-for-mail From: olibou@free.fr Newsgroups: gmane.comp.tex.context Subject: [Q] Combining Date: Sat, 28 May 2005 07:18:48 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: sea.gmane.org 1117257434 16099 80.91.229.2 (28 May 2005 05:17:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 May 2005 05:17:14 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat May 28 07:17: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 1Dbtgu-0004P2-Ef for gctc-ntg-context-518@m.gmane.org; Sat, 28 May 2005 07:16:56 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1A2EE12778; Sat, 28 May 2005 07:19:07 +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 31361-05; Sat, 28 May 2005 07:19:02 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 621741277C; Sat, 28 May 2005 07:19:02 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C51BD1277C for ; Sat, 28 May 2005 07:19:01 +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 31304-06 for ; Sat, 28 May 2005 07:19:01 +0200 (CEST) Original-Received: from postfix4-1.free.fr (postfix4-1.free.fr [213.228.0.62]) by ronja.ntg.nl (Postfix) with ESMTP id 2C08812778 for ; Sat, 28 May 2005 07:19:00 +0200 (CEST) Original-Received: from olinux.free.fr (vil93-3-82-225-64-31.fbx.proxad.net [82.225.64.31]) by postfix4-1.free.fr (Postfix) with ESMTP id B8BBA317CD4 for ; Sat, 28 May 2005 07:19:00 +0200 (CEST) Original-Received: by olinux.free.fr (Postfix, from userid 501) id 1469B66375; Sat, 28 May 2005 07:18:48 +0200 (CEST) Original-To: ntg-context@ntg.nl User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) 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:20524 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20524 --=-=-= Hello, I initially was looking for having several multilign text box in a metapost. But I do not know how to it. I finally take the technic of "register" as explain in the "complex text in graphic" paragraph of the metafun manual. But then, I was to animate it in a presentation. I learn to animate with the "growing graphic" chapter. But I do not know how to combine register and animate. Does somebody has an example of doing so ... I will try to reverse engineer his source ;-) so he or she will not lose his time with me ? In case you like to reverse my source, I give it as a small example. In this example, I wish I could exchange "Bonjour" for a better and more complex text ;-) --=-=-= Content-Type: application/x-tex Content-Disposition: attachment; filename=t2.tex \setupinteractionscreen[state=start,option=max] \setupinteraction[state=start, menu=on] \setuppapersize[S6][S6] \setuplayout [width=fit, rightedge=3cm, margin=0pt, rightedgedistance=2cm, height=middle, header=0pt, footer=0pt, topspace=1cm, backspace=1cm] \starttext \startbuffer[defs] u:=0.5cm; path p; picture lab; p := (0,0)..(10u,0)..(20u,1u); path contours; contours := (unitsquare xyscaled (25u,10u)) shifted (-2u,-2u); vardef anx(expr n) = point ((n-1997)/5) of p enddef; drawoptions(withcolor .625red) ; def timeaxe = drawarrow p withpen pencircle scaled 1.5pt; for i=1998 step 1 until 2005 : draw anx(i)--anx(i)+(0,0.3u) withpen pencircle scaled 2pt ; lab := thelabel.bot(decimal(i),origin); draw lab scaled 0.7 shifted (anx(i)-(0,0.3u)) withcolor 0.625green; endfor; enddef ; def creation = pair creation; creation := anx(1998)+(-2u,+3u); label.top("Bonjour", creation); drawarrow (anx(1998)..creation); enddef; \stopbuffer \startbuffer[1] timeaxe; setbounds currentpicture to contours; \stopbuffer \startbuffer[2] timeaxe; creation; setbounds currentpicture to contours; \stopbuffer \definesymbol[step1][{\processMPbuffer[defs,1]}] \definesymbol[step2][{\processMPbuffer[defs,2]}] \definefieldstack [temps] [step1,step2] [frame=on] \placefigure [here][fig:steps] {Cliquez \goto{ici}[JS(Walk_Field{temps})]} {\fieldstack[temps]} \stoptext --=-=-= -- Oli --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --=-=-=--