[NTG-context] mptopdf (broken again)

Mojca Miklavec mojca.miklavec.lists at gmail.com
Wed Jan 12 18:26:47 CET 2011


On Wed, Jan 12, 2011 at 18:12, Mojca Miklavec
<mojca.miklavec.lists at gmail.com> wrote:
> 2011/1/12 Michal Kvasnička <prgosek at gmail.com>:
>> Hallo.
>>
>> I tried mtxrun --script mptopdf chart08.1 but I've got the following error.
>>
>> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
>>  \write18 enabled.
>> entering extended mode
>> [MP to PDF]
>> (./charts08.1{/home/qasar/programy/context_stable/tex/texmf/fonts/m
>> ap/pdftex/plain/pdftex.map}) [1]
>> !pdfTeX error: pdftex (file lmmi9): Font lmmi9 at 600 not found
>>  ==> Fatal error occurred, no output PDF file produced!
>
> I have tried to compile the following example:
>
> beginfig(1);
> draw btex $x+1=2$ etex;
> endfig;
> end.
>
> It works fine with TeX Live 2010/TLContrib, but fails in minimals
> (nearly-latest version of ConTeXt).
>
> To me this seems as if mptopdf was trying to run plain pdfTeX instead
> of ConTeXt [or I have no idea what]. It then only reads pdftex.map
> which certainly lacks the information about lmmi font. But I wonder
> why it only reads from pdftex.map ... I could fix pdftex.map, but I
> would like to figure out what exactly is going on ...

Just some more information ... Looking into the filename.1 makes me
very suspicious:

%!PS
%%BoundingBox: 0 0 0 0
%%HiResBoundingBox: 0 0 0 0
%%Creator: MetaPost 1.503
%%CreationDate: 2011.01.12:1822
%%Pages: 1
%*Font: ec-lmr12 11.95517 11.95517 1c:800c04010000000006d42298
%*Font: lmmi12 11.95517 11.95517 78:8
%%BeginProlog
%%EndProlog
%%Page: 1 1
 0 0 0 setrgbcolor
208.537 -9.2369 moveto
(1) ec-lmr12 11.95517 fshow
-1.133 -67.5053 moveto
(b) ec-lmr12 11.95517 fshow
5.6958 -67.5053 moveto
(egin\034g\(1\);) ec-lmr12 11.95517 fshow
60.9747 -67.5053 moveto
(dra) ec-lmr12 11.95517 fshow
77.5584 -67.5053 moveto
(w) ec-lmr12 11.95517 fshow
89.9146 -67.5053 moveto
(btex) ec-lmr12 11.95517 fshow
116.2533 -67.5053 moveto
(x) lmmi12 11.95517 fshow
showpage
%%EOF

What exactly does "begindraw" do in EPS file? Adding ec-lmr12 and
lmmi12 into pdftex.map got rid of the error, but didn't generate any
valid output (it created an empty pdf). What mptopdf run on filename.1
does is basically
    pdftex -fmt=mptopdf -progname=context \\relax mathmp.1
(maybe I'm wrong; but it behaved exactly like that), but I didn't
manage to get any sensible output out of that.

Mojca


More information about the ntg-context mailing list