From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50296 Path: news.gmane.org!not-for-mail From: Yue Wang Newsgroups: gmane.comp.tex.context Subject: Re: XeConTeXt bug report II: MetaPost Graphics Date: Tue, 12 May 2009 16:21:48 +0800 Message-ID: <68bfdc900905120121n214c427cn3c15693dfa02bb6a@mail.gmail.com> References: <68bfdc900905112200x33fa357eqa546bd9d4c4753a1@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1242116695 25256 80.91.229.12 (12 May 2009 08:24:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 08:24:55 +0000 (UTC) Cc: mailing list for ConTeXt users , Jonathan Kew To: Jin-Hwan Cho Original-X-From: ntg-context-bounces@ntg.nl Tue May 12 10:24:46 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 1M3nG6-0004ju-U9 for gctc-ntg-context-518@m.gmane.org; Tue, 12 May 2009 10:22:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6E0E11FEEE; Tue, 12 May 2009 10:22:42 +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 03705-02; Tue, 12 May 2009 10:22:00 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ACE401FED1; Tue, 12 May 2009 10:22:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8EF5B1FED1 for ; Tue, 12 May 2009 10:21:58 +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 26883-06-2 for ; Tue, 12 May 2009 10:21:50 +0200 (CEST) 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 6B1421FECD for ; Tue, 12 May 2009 10:21:50 +0200 (CEST) Original-Received: from mail-qy0-f103.google.com (mail-qy0-f103.google.com [209.85.221.103]) by filter3-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4C8LnIO005093 for ; Tue, 12 May 2009 10:21:49 +0200 Original-Received: by qyk1 with SMTP id 1so4856305qyk.16 for ; Tue, 12 May 2009 01:21:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=pLr+h2IgMoawgBdIMY53kKUb+xOSXnXXM8gEveqnOtc=; b=MBHTGpRNBE8kK4ROCrkVAtpDzajAuJeQsHnrpIbmr+P8fnb9r05haoKGMf2gRw6l8K 4GLaFW3rriQyDIBlXXHJ0QkxEixo6NR25UpwZb38FiSzrZT9YN7yGg17FbvZVr0Nbq5q VmtoKNokJOpNrfuWwyxS3gY9X3tSiBywmv3+E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=xd3WtvMITi5tuf8JL4NCV/xbdFzI1PvbDDGw0ZLUtQb+lsTM9e806sRm+Ul5ZJAaD9 KH8MUdOKCzOFI1v7dD3LEP0JKW/OMxOXdsIlr7ZruccMFR6kpvcXM+ByILeudqBwdD9x b1OzEh6KGhI0Nq9Bx7D+puSEqqiM8YQ2AmmZ0= Original-Received: by 10.229.85.132 with SMTP id o4mr1347443qcl.0.1242116508629; Tue, 12 May 2009 01:21:48 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.221.103; 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: 223625210 - e50153e42520 - 20090512 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:50296 Archived-At: Hi, all: I tried this fix with some of my documents and it seems that this fixed all my documents. Hans, can you commit that to HEAD? Thanks a lot, Jin-Hwan:) Yue Wang On Tue, May 12, 2009 at 1:51 PM, Jin-Hwan Cho wrote: > 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 > > =3D=3D> > > {% > > 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=3Dstart] >> \startMPpage >> =A0path p ; color c[] ; >> =A0p :=3D fullsquare scaled 4cm ; >> =A0c[0] :=3D transparent(1,.5,red) ; >> =A0c[1] :=3D transparent(1,.5,green) ; >> =A0c[2] :=3D transparent(1,.5,blue) ; >> =A0for i =3D 0 upto 2 : >> =A0 fill p rotated (i*30) withcolor white ; >> =A0endfor ; >> =A0for i =3D 0 upto 2 : >> =A0 fill p rotated (i*30) withcolor c[i] ; >> =A0endfor ; >> =A0addbackground 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 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 ___________________________________________________________________________= ________