From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/46779 Path: news.gmane.org!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: mkiv and MetaPost Date: Wed, 14 Jan 2009 09:18:45 +0100 Message-ID: References: <2BDE627B-E319-41F4-A8AF-4BC12B5D93EF@gmail.com> <496D9AFF.1060600@elvenkind.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="windows-1252"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1231921243 18039 80.91.229.12 (14 Jan 2009 08:20:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Jan 2009 08:20:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jan 14 09:21:54 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 1LN10c-0003ai-3H for gctc-ntg-context-518@m.gmane.org; Wed, 14 Jan 2009 09:21:54 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E27DA1FDFB; Wed, 14 Jan 2009 09:20:31 +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 01373-03-2; Wed, 14 Jan 2009 09:19:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6726C1FB89; Wed, 14 Jan 2009 09:19:35 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9D19A1FB89 for ; Wed, 14 Jan 2009 09:19: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 01373-03 for ; Wed, 14 Jan 2009 09:18:48 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by ronja.ntg.nl (Postfix) with ESMTP id 4C5811FA4C for ; Wed, 14 Jan 2009 09:18:48 +0100 (CET) Original-Received: from mail-bw0-f16.google.com (mail-bw0-f16.google.com [209.85.218.16]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n0E8Il9o000658 for ; Wed, 14 Jan 2009 09:18:47 +0100 Original-Received: by bwz9 with SMTP id 9so1112844bwz.2 for ; Wed, 14 Jan 2009 00:18:47 -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 :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Mf5cPTedruWBCCgyfNOUi5hFe4+++rOgDL/HhxepUGk=; b=sEgmu1WfLP24K1argpob8cogcd/0B2vaarI76/jOU3WB6e9vPBnyDXKP897YYZaEac N2sDTnjLZnQE7PtvE63W+9oxXtvWKiaO5i32w4o2i/y/qJVX1FmqJscyVlAv+uqH33Vb fK41m8rQWAQoLhKh6wGswC3mnn5U7/oAzw41Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=UUcUNLBqqKrrS9xt+a+ToZ331augBwBBPJNCO7YmGh1FIBiEF5/uoVheFibgGLu8t5 lYN9gFHUJJWry/lGY5GDmkHTGq4DTaDNWMLjiaUVjmCfgFzo1Bu5DxmmBdFC3l1H4nR4 OdZnT24Hx7l9ccmlqxYMuq4uL90DPFIGFHTRQ= Original-Received: by 10.223.103.147 with SMTP id k19mr23561198fao.0.1231921127026; Wed, 14 Jan 2009 00:18:47 -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 y15sm33178421fkd.27.2009.01.14.00.18.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 14 Jan 2009 00:18:46 -0800 (PST) In-Reply-To: <496D9AFF.1060600@elvenkind.com> 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: 164980064 - 7ecabf83a055 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 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:46779 Archived-At: On 14 janv. 09, at 08:57, Taco Hoekwater wrote: > Otared Kavian wrote: >> Thanks Aditya for your explanation, but I must say that it is not = >> convincing because with mkiv one of the buffers is processed with = >> \processMPbuffer, while the other is not=85 So there must be some = >> other hidden behaviour which has changed between mkii and mkiv. > > I will leave it for Hans to figure what exactly goes wrong, but the = > problem is caused by the comment characters in the axes-1 buffer. > > Best wishes, > Taco Hi Taco, Thanks for finding the problem: indeed as you point out, in the = minimal example which I reproduce below, one sees that the comment = character % in the \startbuffer[axes-2] part is not interpreted correctly in mkiv: = if one puts that character at the end of last line of the buffer the = ouput is correct, while if one puts it at the end of other lines the = result is "undefined". So for the file I have to typeset right now, I'll remove those nasty = "%", but I hope that the problem will be solved in mkiv=85 By the way, in one of your messages some time ago you said that there = is a command \luatexversion but it doesn't exist on my installation: is it removed or I understod = wrong? Best wishes: OK %%%%% bug-metapost-1.tex %!TEX TS-program =3D mkiv \setupcolors[state=3Dstart] \starttext \startbuffer[axes-1] numeric u ; u :=3D .5cm ; path xox ; xox :=3D (-u,0)--(8u,0) ; path yoy ; yoy :=3D (0,-u)--(0,7u) ; draw xox withcolor blue ; draw yoy withcolor blue ; \stopbuffer \startbuffer[axes-2] numeric u ; u :=3D .5cm ; path xox ; xox :=3D (-u,0)--(8u,0) ; path yoy ; yoy :=3D (0,-u)--(0,7u) ; draw xox withcolor blue ; % <------ here is the problem draw yoy withcolor blue ; \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, \blank[2*big] This MetaPost graphic is shown correctly with mkiv: \placefigure[middle][-]{}{\processMPbuffer[axes-1]} {} \blank but not this one \placefigure[middle][-]{}{\processMPbuffer[axes-2]} {} \stoptext ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________