From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50323 Path: news.gmane.org!not-for-mail From: Jin-Hwan Cho Newsgroups: gmane.comp.tex.context Subject: Re: XeConTeXt bug report II: MetaPost Graphics Date: Tue, 12 May 2009 14:51:13 +0900 Message-ID: References: <68bfdc900905112200x33fa357eqa546bd9d4c4753a1@mail.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 1242128863 30724 80.91.229.12 (12 May 2009 11:47:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 11:47:43 +0000 (UTC) Cc: mailing list for ConTeXt users , Jonathan Kew To: Yue Wang Original-X-From: ntg-context-bounces@ntg.nl Tue May 12 13:47:33 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 1M3qSK-0006j7-Kb for gctc-ntg-context-518@m.gmane.org; Tue, 12 May 2009 13:47:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 4CF251FD12; Tue, 12 May 2009 13:47:26 +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 17864-04-2; Tue, 12 May 2009 13:46:01 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7DD3D1FF15; Tue, 12 May 2009 13:45:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E88211FEC3 for ; Tue, 12 May 2009 07:51:38 +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 23137-04 for ; Tue, 12 May 2009 07:51:29 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by ronja.ntg.nl (Postfix) with ESMTP id A4F4A1FEBD for ; Tue, 12 May 2009 07:51:29 +0200 (CEST) Original-Received: from mail-gx0-f208.google.com (mail-gx0-f208.google.com [209.85.217.208]) by filter2-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4C5pR2D015948 for ; Tue, 12 May 2009 07:51:28 +0200 Original-Received: by gxk4 with SMTP id 4so6503431gxk.2 for ; Mon, 11 May 2009 22:51:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=v18SnE2QJDdVvKTtSVEuT0AwocoKb9PBRgUjTo5mpl0=; b=COYOZBae3yMhVBKFhzTS1cxa0/vvZpUY4qFsfFpxzY5v6sPPRVzJpeCEyx8t/AKtQ7 c1v746AXUHsWw6IHxgt/sG6Y2NCdEjwJJezzxpEqthGUp1OWV5RA29zeu3fP47tShh3A EFpg1JBobP8hbDDnMRPCSXkUVuwjH513cw4sc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=GhdPmwUZlJdmyoelM+PidooFjc69shwEBrI1/q7Db5kZZB5KgKomCgMwsIH5HF08zE IZ259SfGMcRfdEB6OglIUZ5wyMKemuVr05lD9rb28PvJM4J+l5wAvnNz2nOBvSl0mSbB Sh2RQLCvlPr0GKkQ2/EaaPlolGoG17ZU8uY+8= Original-Received: by 10.100.198.16 with SMTP id v16mr14815841anf.81.1242107475910; Mon, 11 May 2009 22:51:15 -0700 (PDT) Original-Received: from ?192.168.123.182? (eagleheights-119-192.resnet.wisc.edu [146.151.119.192]) by mx.google.com with ESMTPS id 4sm2072249yxj.27.2009.05.11.22.51.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 11 May 2009 22:51:15 -0700 (PDT) In-Reply-To: <68bfdc900905112200x33fa357eqa546bd9d4c4753a1@mail.gmail.com> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.217.208; 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: 223519936 - 2aefcb4a7abc - 20090512 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-Virus-Scanned: amavisd-new at ntg.nl X-Mailman-Approved-At: Tue, 12 May 2009 13:45:15 +0200 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:50323 Archived-At: Hi, Yue Wang, Many years have passed since I wrote spec-dpx.tex for ConTeXt. The file spec-dpx.tex included in texlive 2008 (the only one I have) looks quite changed according to the progression of ConTeXt. Anyway, your example worked when I change the 763th line of spec-dpx.tex as follows: {\scratchdimen\wd#2\scratchdimen.5\scratchdimen\hskip-\the\scratchdimen ==> {% But, I do not know this modification of \setMPPDFobject does not affect other cases. Could you check more examples? Best regards, ChoF. On May 12, 2009, at 2:00 PM, Yue Wang wrote: > Hi, Hans and Jin-Hwan: > > Here is a simple ConTeXt metafun demo file: > > \starttext > \setupcolors[state=start] > \startMPpage > path p ; color c[] ; > p := fullsquare scaled 4cm ; > c[0] := transparent(1,.5,red) ; > c[1] := transparent(1,.5,green) ; > c[2] := transparent(1,.5,blue) ; > for i = 0 upto 2 : > fill p rotated (i*30) withcolor white ; > endfor ; > for i = 0 upto 2 : > fill p rotated (i*30) withcolor c[i] ; > endfor ; > addbackground withcolor transparent(1,.5,cmyk(0,0,1,0)) ; > \stopMPpage > \stoptext > > When process the file using luatex or pdftex, we can see a nice > picture there. > However, when > 1) using pdftex to produce the dvi, and convert the dvi using dvipdfmx > 2) using xetex to produce the pdf using xdvipdfmx > the figure is placed at the wrong place. there will be a displacement > for all the metapost figures when xetex is used to produce the > graphics. I attach the wrong result in the mail. > > So my question is : > - is this a bug in ConTeXt, or in (x)dvipdfmx. can the bug be fixed? > > Thanks > > Yue Wang > ___________________________________________________________________________________ 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 ___________________________________________________________________________________