From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: internal mptopdf converter skips some glyphs in labels
Date: Fri, 9 Aug 2013 16:41:55 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.02.1308091635140.491@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <874nayy5k6.fsf@approx.mit.edu>
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
___________________________________________________________________________________
next prev parent reply other threads:[~2013-08-09 20:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-09 20:26 Sanjoy Mahajan
2013-08-09 20:41 ` Aditya Mahajan [this message]
2013-08-09 23:50 ` Sanjoy Mahajan
2013-08-10 0:09 ` Aditya Mahajan
2013-08-09 21:50 ` Hans Hagen
2013-08-09 23:45 ` Sanjoy Mahajan
2014-06-05 2:17 ` Sanjoy Mahajan
2014-06-05 8:04 ` Hans Hagen
2014-06-05 19:37 ` Sanjoy Mahajan
2014-06-05 20:25 ` Hans Hagen
2014-06-05 21:27 ` Sanjoy Mahajan
2014-06-05 23:19 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.02.1308091635140.491@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).