From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46775 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: mkiv and MetaPost Date: Wed, 14 Jan 2009 05:16:42 +0100 Message-ID: <2BDE627B-E319-41F4-A8AF-4BC12B5D93EF@gmail.com> 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 1231906737 17481 80.91.229.12 (14 Jan 2009 04:18:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2009 04:18:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 14 05:20:08 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 1LMxEe-0008E2-4h for gctc-ntg-context-518@m.gmane.org; Wed, 14 Jan 2009 05:20:08 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 29BDD1FDFE; Wed, 14 Jan 2009 05:18:49 +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 29643-03; Wed, 14 Jan 2009 05:17:36 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0BF9D1FDE1; Wed, 14 Jan 2009 05:17:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8B6F11FDE1 for ; Wed, 14 Jan 2009 05:17:32 +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 22380-01-3 for ; Wed, 14 Jan 2009 05:16:46 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by ronja.ntg.nl (Postfix) with ESMTP id 7D1D51FDD9 for ; Wed, 14 Jan 2009 05:16:46 +0100 (CET) Original-Received: from mail-bw0-f16.google.com (mail-bw0-f16.google.com [209.85.218.16]) by filter4-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0E4GjIB028952 for ; Wed, 14 Jan 2009 05:16:45 +0100 Original-Received: by bwz9 with SMTP id 9so962934bwz.2 for ; Tue, 13 Jan 2009 20:16:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:content-transfer-encoding:mime-version:subject:date :x-mailer; bh=POA2s+R06qVYXi9OHZ6jD4k1N8CeE1Y+LihO6MXLZuM=; b=Y/K9Vzkp/jyr+v2E8Y4zk+lIOYRYQ4KPn6ikbW/n1qCJLOaBVF3tdlYdw1/Lic1ah3 UbLJbe16YjgtlRKigLN35nAU+0p5VAtIbcuZHUrmLoKQXU9ltb71vuh0Gdl1+d95vxu6 AiVP50mbPj6JVdaXaZf3FUTn9syBKrUFtxoSA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding :mime-version:subject:date:x-mailer; b=BE2drbEZhabsRB8oiUzZ/7b0aTqoLFvrolg8fjFCMZdVF3rhRXWqBOcxBdQqiVzga3 DLw5zNRkRPS6KUxvMeDQVYn8HahdPUg0COXv+P1t20yjKtRzfAV7nCvey/By68skWf6s okUGBz1GMmkmWyzw+gXZHTbxOOLrR5FQdE25s= Original-Received: by 10.181.135.5 with SMTP id m5mr11643227bkn.87.1231906604665; Tue, 13 Jan 2009 20:16:44 -0800 (PST) Original-Received: from ?192.168.0.10? (mna75-3-82-66-231-76.fbx.proxad.net [82.66.231.76]) by mx.google.com with ESMTPS id 35sm41594527fkt.16.2009.01.13.20.16.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Jan 2009 20:16:44 -0800 (PST) X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.218.16; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 164917731 - ae1ce8a015b7 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:46775 Archived-At: Hi all, I have a file which contains the lines below: I can typeset it and obtain a correct result with mkii, but not with mkiv (the second buffer named "axes-1" does not result in a MetaPost graphic when one says \processMPbuffer[axes-1]). The file and the resulting PDF can be found on http://www.kavian.fr/tex/bug-mkiv Thanks in advance for any help. Best regards: OK %%%%%% begin bug-metapost.tex \setupcolors[state=start] \starttext \startbuffer[axes-1] textextoffset := ExHeight ; numeric u ; u := .5cm ; vardef arrowheadonpath (expr p, s) = save autoarrows ; boolean autoarrows ; autoarrows := true ; set_ahlength(scaled ahfactor) ; % arrowhead p if s<1 : cutafter (point (s*arclength(p)+.5ahlength) on p) fi enddef ; path xox ; xox := (-u,0)--(8u,0) ; path yoy ; yoy := (0,-u)--(0,7u) ; draw xox withcolor blue ; draw yoy withcolor blue ; ahfactor := 4 ; % default is 2.5 fill arrowheadonpath(xox,1) withcolor .625blue ; % try .25 fill arrowheadonpath(yoy,1) withcolor .625blue ; % try .25 \stopbuffer \startbuffer[chemin-1] textextoffset := ExHeight ; numeric u ; u := .5cm ; z1 = (5u,0) ; z2 = z1 rotated 60 ; z11 = z1 rotated 15 ; z12 = z1 rotated 30 ; z13 = z1 rotated 45 ; z0 = (2u,0) rotated 30 ; path gamma ; gamma := (0,0)--(5u,0) ; draw gamma withpen pencircle scaled .4mm withcolor .625yellow ; path gammaR ; gammaR := z1..z11..z12..z13..z2 ; draw gammaR withpen pencircle scaled .4mm withcolor .625yellow ; dotlabel.bot (btex \switchtobodyfont[10pt] \strut $R$ etex, z1) ; path gammaRR ; gammaRR := z2--(0,0) ; draw gammaRR withpen pencircle scaled .4mm withcolor .625yellow ; dotlabel.top (btex \switchtobodyfont[10pt] \strut $R{\rm e}^{2{\rm i} \pi/n}$ etex , z2) ; dotlabel.rt (btex \switchtobodyfont[10pt] \strut ${\rm e}^{{\rm i}\pi/ n}$ etex , z0) ; label.rt (btex \switchtobodyfont[10pt] \strut $\Gamma_{R}$ etex , z11) ; fill arrowheadonpath(gamma,.4) withcolor .625yellow ; fill arrowheadonpath(gammaR,.4) withcolor .625yellow ; fill arrowheadonpath(gammaRR,.4) withcolor .625yellow ; \stopbuffer This file has been typeset on \currentdate{} at \currenttime, with \doifmodeelse{mkiv} {mkiv, LuaTeX revision \luatexrevision, (LuaTeX date stamp \luatexdatestamp)} {mkii, using the command: \type{texexec basic-test.tex}}, ConTeXt version \contextversion. % LuaTeX version \luatexversion, This MetaPost graphic is shown with mkiv: \placefigure[middle][-]{}{\processMPbuffer[chemin-1]} {} \blank but not this one \placefigure[middle][-]{}{\processMPbuffer[axes-1]} {} \blank nor this one \placefigure[middle][-]{}{\processMPbuffer[axes-1,chemin-1]} {} \stoptext ___________________________________________________________________________________ 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 ___________________________________________________________________________________