From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46591 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: question about MPpositiongraphic Date: Sat, 3 Jan 2009 15:26:25 +0100 Message-ID: <737ED430-F3D6-4375-903E-8ADCD46D58F3@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1230993220 21012 80.91.229.12 (3 Jan 2009 14:33:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Jan 2009 14:33:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 03 15:34:48 2009 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 lo.gmane.org with esmtp (Exim 4.50) id 1LJ7aM-0000uk-1V for gctc-ntg-context-518@m.gmane.org; Sat, 03 Jan 2009 15:34:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 125EA1FBD0; Sat, 3 Jan 2009 15:33:25 +0100 (CET) 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 14865-01-3; Sat, 3 Jan 2009 15:32:44 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5386B1FB39; Sat, 3 Jan 2009 15:32:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA7C21FB1F for ; Sat, 3 Jan 2009 15:32:06 +0100 (CET) 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 12848-02 for ; Sat, 3 Jan 2009 15:31:16 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by ronja.ntg.nl (Postfix) with ESMTP id C78D51FC16 for ; Sat, 3 Jan 2009 15:26:28 +0100 (CET) Original-Received: by fg-out-1718.google.com with SMTP id 19so171649fgg.8 for ; Sat, 03 Jan 2009 06:26:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:to:in-reply-to :content-type:content-transfer-encoding:mime-version:subject:date :references:x-mailer:from; bh=B3cRPG+zsdSYRfL6Vfl6h1hnZOGGqzmitYmk+tNrers=; b=r654lDhY++MmSXkhDRx+ed2OAvBJ/r7wz/GBZkGJ23MBPi6WLXB3mSuJ1Q6rTg7qCZ VNNaGLZwqrmhufdTZKZbfp20/NnoLZuUN/v5cfTDqP4H3hCftxDzn9tJQwOF8xr1GZAd h0Z2k2UD99zjRb3ij3iG2EVwwwQl8nEJ+3xK4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:to:in-reply-to:content-type:content-transfer-encoding :mime-version:subject:date:references:x-mailer:from; b=sDGgtKaDWUlT7bkvcTeH70C4wPgrEC/lJIur5HqjhNbFZqXBKymIV4tKLKJHgd+jRw UcnARNUCki7kSNTQqkLvFsMxptECdiVXVpflXP29Obd4TEMlFBJG9k47as8J/CoBSFji rhOUwS/ih72w0jBM5KQmqCBkOfsUDeazdzVzg= Original-Received: by 10.86.29.8 with SMTP id c8mr11117997fgc.67.1230992788648; Sat, 03 Jan 2009 06:26:28 -0800 (PST) Original-Received: from ?192.168.2.23? (p5B295EE6.dip.t-dialin.net [91.41.94.230]) by mx.google.com with ESMTPS id l19sm21276504fgb.9.2009.01.03.06.26.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 03 Jan 2009 06:26:28 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.930.3) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:46591 Archived-At: Am 03.01.2009 um 15:02 schrieb Thomas A. Schmitz: > Hi all, > > first, best wishes for the New Year to all of you - may 2009 bring > peace and fortune and world domination for ConTeXt! > > And my little question - trivial for the resident experts, I guess, > but I can't find a solution: I want to write a little macro that > will allow me to place a thin curved line under letters (metrical > symbol for synizesis). Now that metafun is so fast in mkiv, I > thought I'd use a MPpositiongraphic for that purpose, but my problem > is that I can't make the graphic really local - when it is used more > than once in a document, Metafin uses the last values for all > occurrences. I tried grouping and the "save" command, but to no > avail. Here's an example that shows the problem: > > \startMPpositiongraphic{placesynizesis} > StartPage ; > begingroup ; save a ; > initialize_box(\MPpos{\MPvar{self}}) ; > numeric a ; a = ExHeight/6 ; > z1 = llxy ; > z2 = lrxy ; > z3 = 1/2[z1,z2] ; > z4 = ((x1 + 2a),(y1 - 2a)) ; > z5 = (x3, (y3 - 4a)) ; > z6 = ((x2 - 2a),(y2 - 2a)) ; > path syn ; syn := z4 .. z5 .. z6 ; > pickup pencircle scaled a ; > draw syn ; > anchor_box(\MPanchor{\MPvar{self}}) ; > endgroup ; > StopPage ; > \stopMPpositiongraphic% > \setMPpositiongraphic{POS}{placesynizesis} > > \define[1]\synizesis > {\hpos{POS}{#1}} > > \starttext > > \switchtobodyfont[25pt] > > test: \synizesis{au} and \synizesis{aeiou} > > \stoptext > > Any solution to this conundrum? \newcount\synizesisnumber \define[1]\synizesis {\advance\synizesisnumber\plusone \setMPpositiongraphic{POS-\number\synizesisnumber}{placesynizesis} \hpos{POS-\number\synizesisnumber}{#1}} Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________