From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85743 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: internal mptopdf conversion fails on older mps file (using MkIV, beta 2013.12.26) Date: Thu, 2 Jan 2014 12:57:37 -0500 Message-ID: <87txdme06m.fsf@approx.mit.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1388685464 20384 80.91.229.3 (2 Jan 2014 17:57:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 Jan 2014 17:57:44 +0000 (UTC) To: Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 02 18:57:52 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VymWk-0002Wv-M8 for gctc-ntg-context-518@m.gmane.org; Thu, 02 Jan 2014 18:57:50 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E709E101EB; Thu, 2 Jan 2014 18:57:49 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MhlTQDMWgCXm; Thu, 2 Jan 2014 18:57:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 62154101E2; Thu, 2 Jan 2014 18:57:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ECAB3101E2 for ; Thu, 2 Jan 2014 18:57:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id mWrUcqq2+fPz for ; Thu, 2 Jan 2014 18:57:44 +0100 (CET) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 9B11A101DE for ; Thu, 2 Jan 2014 18:57:44 +0100 (CET) Original-Received: from EXCAS02.olin.edu (webmail.olin.edu [208.91.55.40]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s02Hvg0N022757 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Thu, 2 Jan 2014 18:57:43 +0100 Original-Received: from approx.mit.edu (75.176.147.178) by EXCAS02.olin.edu (10.1.15.27) with Microsoft SMTP Server (TLS) id 8.3.342.0; Thu, 2 Jan 2014 12:57:41 -0500 Original-Received: from sanjoy by approx.mit.edu with local (Exim 4.82) (envelope-from ) id 1VymWX-0000PC-V9 for ntg-context@ntg.nl; Thu, 02 Jan 2014 12:57:38 -0500 User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1 (i486-pc-linux-gnu) X-Bayes-Prob: 0.3304 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=208.91.55.40; country=US; region=MA; city=Needham; postalcode=02492; latitude=42.2793; longitude=-71.2450; metrocode=506; areacode=781; http://maps.google.com/maps?q=42.2793,-71.2450&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06L95VHdb - 62e4bf147985 - 20140102 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.219 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85743 Archived-At: The MkIV internal mptopdf converter fails on the following minimal example. Here is the tex: ------- cut test2.tex here ------------- \enabletrackers[graphics.conversion,graphics.inclusion,fonts.mapfiles,fonts.loading,fonts.missing,fonts.mapping] \starttext \externalfigure[fig.1][frame=on] \blank \externalfigure[fig-1.pdf][frame=on] \stoptext ------- cut test2.tex here ------------- And here is the figure, which was produced with mpost 0.993 (and also converted to fig-1.pdf using the 'mptopdf' command): -------- cut fig.1 here ------------ %!PS-Adobe-3.0 EPSF-3.0 %%BoundingBox: 0 0 10 10 %%HiResBoundingBox: 0 0 9.96262 9.96262 %%Creator: MetaPost 0.993 %%CreationDate: 2009.10.21:1318 %%Pages: 1 %%BeginProlog /bd{bind def}bind def /hlw{0 dtransform exch truncate exch idtransform pop setlinewidth}bd /vlw{0 exch dtransform truncate idtransform setlinewidth pop}bd /l{lineto}bd/r{rlineto}bd/c{curveto}bd/m{moveto}bd/p{closepath}bd/n{newpath}bd /C{setcmykcolor}bd/G{setgray}bd/R{setrgbcolor}bd/lj{setlinejoin}bd/ml{setmiterlimit}bd /lc{setlinecap}bd/S{stroke}bd/F{fill}bd/q{gsave}bd/Q{grestore}bd/s{scale}bd/t{concat}bd /sd{setdash}bd/rd{[] 0 setdash}bd/P{showpage}bd/B{q F Q}bd/W{clip}bd %%EndProlog %%Page: 1 1 0.7 G n 0 0 m 0 9.96262 l 9.96262 4.98131 l p F P %%EOF -------- cut fig.1 here ------------ Running it through MkIV with the 2013.12.26 beta (or the stable context) produces an empty frame for the inclusion of fig.1, but the correct triangle for the inclusion of fig-1.pdf. The empty frame has the correct size, so the parser is getting at least as far as the bounding box. If I regenerate fig.1 using a recent metapost (1.803), the mps file is simpler, and it is incorporated correctly by context. -------- cut fig.1 produced with recent metapost here ------------ %!PS %%BoundingBox: 0 0 10 10 %%HiResBoundingBox: 0 0 9.96262 9.96262 %%Creator: MetaPost 1.803 %%CreationDate: 2014.01.02:1250 %%Pages: 1 %%BeginProlog %%EndProlog %%Page: 1 1 0.7 setgray newpath 0 0 moveto 0 9.96262 lineto 9.96262 4.98131 lineto closepath fill showpage %%EOF -------- cut fig.1 produced with recent metapost here ------------ Here is the source file: --- cut fig.mp here ----- def darkshaded = withgreyscale 0.70 enddef; beginfig(1) fill (origin--(0,1)--(1,1/2)--cycle) scaled 10pt darkshaded; endfig; --- cut fig.mp here ----- -Sanjoy ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________