<DIV>Hi, thank you for your response: By comparing a sucseesful execution and a failure execution I suspect that somehow the path might have been screwed up.</DIV> <DIV> </DIV> <DIV>This is sucessful execution:</DIV> <DIV><<mpost --tex=latex 2ms1<BR>This is MetaPost, Version 0.993 (Web2C 7.5.6)<BR>(2ms1.mp [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11{c:/TexLive2007/texmf-<BR>var/fonts/map/dvips/updmap/psfonts.map}] [21] [22] [31] [32] )<BR>16 output files written: 2ms1.0 .. 2ms1.32<BR>Transcript written on 2ms1.log.>></DIV> <DIV> </DIV> <DIV>As you can see that in the middle of [11], it looked up c:/TexLive2007/texmf-var/fonts/map/dvips/updmap/psfonts.map and finish up the rest execution.</DIV> <DIV> </DIV> <DIV> </DIV> <DIV>and this is a failure:</DIV> <DIV><<mpost --tex=latex 2ms3<BR>This is MetaPost, Version 0.993 (Web2C 7.5.6)<BR>(2ms3.mp [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]makempx: Command failed:
la<BR>tex mpxerr.tex; see mpxerr.log</DIV> <DIV>>> 2ms3.mp<BR>>> 2ms3.mpx<BR>! Unable to make mpx file.<BR>l.156 label.lft(btex<BR> $A$ etex, z8);<BR>11 output files written: 2ms3.0 .. 2ms3.10<BR>Transcript written on 2ms3.log.>></DIV> <DIV> </DIV> <DIV>But here, in the middle of [10], somehow it couldnot find the right path and produce an error message "makempx: Command failed: latex mpxerr.tex; see mpxerr.log"</DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV> </DIV> <DIV><BR><B><I>nicola <vitacolo@dimi.uniud.it></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">In article <BR><6faad9f00703260425w16525f20v759c5569c388a810@mail.gmail.com>,<BR>"Mojca Miklavec"
<MOJCA.MIKLAVEC.LISTS@GMAIL.COM>wrote:<BR><BR>> On 3/25/07, Steve MC Han wrote:<BR>> > Hi, I have trouble with metapost. Could someone give some insight for this?<BR>> ><BR>> > This is the error message.<BR>> ><BR>> > <<! Unable to make mpx file.<br>> > l.78 label.bot(btex<BR>> > $\hbox{\sf Rectangle}$ etex, (0,-.6u));<BR>> > 6 output files written: 2MS4.1 .. 2MS4.8<BR>> > Transcript written on 2MS4.log.>><BR>> ><BR>> > So, I tried set the path straight by typing "c:\TexLive2007\bin\win32" at<BR>> > command prompt, it magically worked. But with different file, I still have<BR>> > trouble with similar error message. This time, even with set path like<BR>> > above, it didn't work.<BR>> ><BR>> > <<MPOST 2MS3<br --tex="latex">> > This is MetaPost, Version 0.993 (Web2C 7.5.6)<BR>> > (2MS3.mp [0] [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]makempx:
Command<BR>> > failed: la<BR>> > tex mpxerr.tex; see mpxerr.log<BR>> > >> 2MS3.mp<BR>> > >> 2MS3.mpx<BR>> > ! Unable to make mpx file.<BR>> > l.156 label.lft(btex<BR>> > $A$ etex, z8);<BR>> > 11 output files written: 2MS3.0 .. 2MS3.10<BR>> > Transcript written on 2MS3.log.>><BR>> ><BR>> > This trouble started after I did "mptopdf". At first, mptopdf didn't create<BR>> > pdf files even thoufgh there was no error message. So, by consulting Contex<BR>> > conversion to pdf manual<BR>> ><BR>> > http://tex.aanhet.net/context/mirror/general/sources/mptopdf.pdf<BR>> ><BR>> > I typed "pdftex --ini mptopdf" at prompt command and after that it produced<BR>> > pdf files but now mpost didn't work with the above error message. I think<BR>> > path<BR>> ><BR>> > c:/TeXLive2007/texmf-var/fonts/map/dvips/updmap/psfonts.map<BR>> ><BR>> >
is screwed up somehow.<BR>> <BR>> The mechanism has been changed heavily in May 2006 (before that, the<BR>> old mechanism sometimes didn't recognize ConTeXt properly), so I was<BR>> finally glad that it worked as it should. But no LaTeX user has ever<BR>> upgraded ConTeXt before TeXLive 2007 came around. I used mptopdf, but<BR>> it never came to my mind to try it with the latex switch.<BR>> <BR>> In the long term it should really be fixed, but as a temporary<BR>> workaround you should be able to convert files without the latex<BR>> switch. If you need some special settings (a special font or whatever<BR>> else), please post some concrete example. You can just delete<BR>> everything latex-related and safely use ConTeXt command with mptopdf<BR>> (which really shouldn't be much different).<BR>> <BR>> I'm really sorry for the inconvenience ...<BR>> <BR>> See also http://www.ntg.nl/pipermail/ntg-context/2007/023050.html<BR>>
<BR>> Mojca<BR>> <BR>> <BR>> A minimal example for Hans:<BR>> <BR>> verbatimtex<BR>> %&latex<BR>> \documentclass[12pt,a4paper]{article}<BR>> \begin{document}<BR>> etex<BR>> <BR>> beginfig(1);<BR>> draw btex $A$ etex;<BR>> endfig;<BR>> end.<BR>> <BR>> (perhaps it would make sense to add a note on<BR>> http://www.tug.org/texlive/bugs.html)<BR><BR>Just to mention that last weekend I have posted a similar problem in <BR>gmane.comp.tex.context (maybe this mailing list is better for questions <BR>related to mptopdf?):<BR><BR>http://thread.gmane.org/gmane.comp.tex.context/33948<BR><BR>>From what I have read above, I deduce that mptopdf should not be used <BR>with %&latex (at least for now), but I would be glad if someone could <BR>answer the questions of my other message, because I am a bit confused <BR>(after all, mptopdf does call mpost, right?).<BR><BR>One reason why I would use mptopdf with LaTeX is to include
images with <BR>externalfigure and to add labels with LaTeX-specific features (e.g., <BR>symbols in mathrsfs or yfonts packages). Is there a better way to do <BR>that?<BR><BR>Nicola<BR><BR>_______________________________________________<BR>metapost mailing list<BR>http://tug.org/mailman/listinfo/metapost<BR></BLOCKQUOTE><BR><p> 
<hr size=1>TV dinner still cooling?<br><a href="http://us.rd.yahoo.com/evt=49979/*http://tv.yahoo.com/">Check out "Tonight's Picks"</a> on Yahoo! TV.