From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83760 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: internal mptopdf converter skips some glyphs in labels Date: Fri, 9 Aug 2013 16:41:55 -0400 (EDT) Message-ID: References: <874nayy5k6.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"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1376080939 308 80.91.229.3 (9 Aug 2013 20:42:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Aug 2013 20:42:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 09 22:42:23 2013 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 1V7tVu-0003kW-6v for gctc-ntg-context-518@m.gmane.org; Fri, 09 Aug 2013 22:42:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D2D0C10216; Fri, 9 Aug 2013 22:41:34 +0200 (CEST) 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 OgFTKsN9IUb6; Fri, 9 Aug 2013 22:41:33 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 7AFAB1020A; Fri, 9 Aug 2013 22:41:33 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 517571020A for ; Fri, 9 Aug 2013 22:41:32 +0200 (CEST) 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 7og1K7cba1s2 for ; Fri, 9 Aug 2013 22:41:14 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 0E9A0101E5 for ; Fri, 9 Aug 2013 22:41:14 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r79Kfw8s027441 for ; Fri, 9 Aug 2013 22:41:59 +0200 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hackers.mr.itd.umich.edu ID 52055414.B1519.2626 ; Authuser adityam; 9 Aug 2013 16:41:56 EDT In-Reply-To: <874nayy5k6.fsf@approx.mit.edu> User-Agent: Alpine 2.02 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QKaIFW6w - 53a41fdde8d6 - 20130809 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:83760 Archived-At: On Fri, 9 Aug 2013, Sanjoy Mahajan wrote: > The internal mptopdf converter in MkIV omit some glyphs in the labels. > Here's a minimal example (test.tex): > > \starttext > > \externalfigure[testfig.1][frame=on] > \blank > \externalfigure[testfig-1.pdf][frame=on] > > \stoptext > > And testfig.1 is produced by testfig.mp Any particular reason that you are compiling metapost files using mp and then including them in ConTeXt rather than directly using any one of the inbuilt ConTeXt environments for handling mp (\startMPcode, \useMPgraphic, \processMPbuffer, etc.) > beginfig(1) > label(btex $\Omega$ etex, (0,0)); > currentpicture := currentpicture scaled 5; > endfig; > end > > Here's testfig.1 to save a step in debugging: > > %!PS > %%BoundingBox: -18 -18 18 18 > %%HiResBoundingBox: -17.98805 -17.0195 17.98798 17.0195 > %%Creator: MetaPost 1.803 > %%CreationDate: 2013.08.09:1612 > %%Pages: 1 > %*Font: cmr10 49.81323 9.96265 0a:8 > %%BeginProlog > %%EndProlog > %%Page: 1 1 > 0 0 0 setrgbcolor > -17.98805 -17.0195 moveto > (\012) cmr10 49.81323 fshow > showpage > %%EOF > > Then do: > > mptopdf testfig.1 > context test.tex > xpdf test.pdf > > The first framed box, using the internal mps->pdf conversion, is empty. > The second framed go, using the pdf file produced by mptopdf, correctly > contains \Omega. Try adding prologues := 2; or prologues := 3; in your mp file. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________