From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46590 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: question about MPpositiongraphic Date: Sat, 3 Jan 2009 15:02:16 +0100 Message-ID: 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 1230991496 16488 80.91.229.12 (3 Jan 2009 14:04:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Jan 2009 14:04:56 +0000 (UTC) To: mailing ConTeXt users list for Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 03 15:06:03 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 1LJ787-0002Dp-P3 for gctc-ntg-context-518@m.gmane.org; Sat, 03 Jan 2009 15:05:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A1B2F1FBC6; Sat, 3 Jan 2009 15:04:11 +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 09153-01-2; Sat, 3 Jan 2009 15:03:01 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7D46F1FB74; Sat, 3 Jan 2009 15:03:01 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DDD6D1FB5A for ; Sat, 3 Jan 2009 15:02:59 +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 04983-03-12 for ; Sat, 3 Jan 2009 15:02:19 +0100 (CET) Original-Received: from mailout08.t-online.de (mailout08.t-online.de [194.25.134.20]) by ronja.ntg.nl (Postfix) with ESMTP id A27641FB74 for ; Sat, 3 Jan 2009 15:02:19 +0100 (CET) Original-Received: from fwd09.aul.t-online.de by mailout08.sul.t-online.de with smtp id 1LJ751-0000nh-01; Sat, 03 Jan 2009 15:02:19 +0100 Original-Received: from [192.168.0.2] (XjgEhmZLwhbv71uNWHdgf41ZG7dXDEgRxNY5usMO4V+t2flspwmwm-mapCRF-UPZ0q@[87.178.89.73]) by fwd09.aul.t-online.de with esmtp id 1LJ74y-1TtdMO0; Sat, 3 Jan 2009 15:02:16 +0100 X-Mailer: Apple Mail (2.930.3) X-ID: XjgEhmZLwhbv71uNWHdgf41ZG7dXDEgRxNY5usMO4V+t2flspwmwm-mapCRF-UPZ0q@t-dialin.net X-TOI-MSGID: 6c23a002-f8f8-4026-b818-7f37f1f203b8 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:46590 Archived-At: 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? All best Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________