<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Dear Taco,<br><br>Thanks for the answer. I followed what you said:<br><br>$ latex --parse-first-line --interaction=nonstopmode mpxerr.tex <br><br><div style="margin-left: 40px;">This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)<br> restricted \write18 enabled.<br>entering extended mode<br>(./mpxerr.tex<br>LaTeX2e <2009/09/24><br>Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh<br>yphenation, romanian, irish, coptic, serbian, turkish, welsh, esperanto, uppers<br>orbian, estonian, indonesian, interlingua, icelandic, kurmanji, slovenian, load<br>ed.<br>(/usr/share/texmf-texlive/tex/latex/base/book.cls<br>Document Class: book 2007/10/19 v1.4h Standard LaTeX document class<br>(/usr/share/texmf-texlive/tex/latex/base/bk10.clo)) (./dvidrv.sty<br>(/etc/texmf/tex/latex/config/color.cfg)<br> The DVI
driver is set to dvips.<br>) (./hrefout.sty (./hrefout.cfg)<br> href output is turned on? no.<br>) (./bookjh.sty (/usr/share/texmf-texlive/tex/latex/graphics/color.sty<br>(/etc/texmf/tex/latex/config/color.cfg)<br>(/usr/share/texmf-texlive/tex/latex/graphics/dvips.def)<br>(/usr/share/texmf-texlive/tex/latex/graphics/dvipsnam.def))<br>(/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty<br>(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)<br>(/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty<br>(/usr/share/texmf-texlive/tex/latex/graphics/trig.sty)<br>(/etc/texmf/tex/latex/config/graphics.cfg))) (./linalgjh.sty<br>(/usr/share/texmf-texlive/tex/latex/jknapltx/mathrsfs.sty)<br>(/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty<br>For additional information on amsmath, use the `?'
option.<br>(/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty<br>(/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty))<br>(/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty)<br>(/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty))<br>(/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty<br><br>Package amsfonts Warning: The 'psamsfonts' option is obsolete in AMSFonts v3.<br><br>) (/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty)<br>(/usr/share/texmf-texlive/tex/latex/amscls/amsthm.sty
(./text.thm))<br>(/usr/share/texmf-texlive/tex/latex/tools/array.sty)<br>(/usr/share/texmf-texlive/tex/latex/amsmath/amscd.sty)<br>(/usr/share/texmf-texlive/tex/latex/tools/dcolumn.sty)<br>(/usr/share/texmf-texlive/tex/latex/jknapltx/ursfs.fd)<br>(/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd)<br>(/usr/share/texmf-texlive/tex/latex/amsfonts/umsb.fd))<br>(/usr/share/texmf-texlive/tex/latex/base/makeidx.sty)<br>(/usr/share/texmf-texlive/tex/latex/fancyhdr/fancyhdr.sty) (./shadethm.sty)<br>(/usr/share/texmf-texlive/tex/latex/footnpag/footnpag.sty)<br>(/usr/share/texmf-texlive/tex/latex/tools/verbatim.sty) (./engnum.sty<br> TeX or LaTeX sub-style EngNum <93-Jul-22 jh><br>)) (./mpxerr.aux)<br><br>! LaTeX Error: Can not include graphics of type: mps.<br><br>See the LaTeX manual or LaTeX Companion for explanation.<br>Type H <return> for immediate
help.<br> ... <br> <br>l.6 \begin{document}<br> %<br>[1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1]<br>[1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1]<br>[1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1]<br>[1]
[1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1]<br>[1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1]<br>[1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1]<br>[1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1]<br>[1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1]<br>[1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1]<br>[1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] [1] (./mpxerr.aux) <br>)<br>(see the transcript file for additional information)<br>Output written on mpxerr.dvi (178 pages, 17600 bytes).<br>Transcript written on mpxerr.log.<br><br></div><br>Hence it gives error something about "! LaTeX Error: Can not include graphics of type: mps."<br><br>Here is the beginning part of ch1.mp file:<br>------------------------------------------------------>--------------------------------<br><div style="margin-left:
40px;">% CH1.mp<br>% MetaPost input file with chapter one pictures.<br>verbatimtex<br>%&latex<br>\documentclass{book}<br>\usepackage{dvidrv} \usepackage{hrefout}<br>\usepackage{bookjh,linalgjh}<br>\usepackage{verbatim}<br>\begin{document}<br>etex<br><br>input jh<br>ahangle:=40;<br><br>%..........................................<br>% dblarrow_with_label<br>% draw this: |<----label----->|<br>%def dblarrow_with_label(expr ptone, pttwo, lbl)=<br>% begingroup<br>% pickup updown_tick;<br>% drawdot ptone; drawdot pttwo;<br>% drawdblarrow (ptone+.5(tickwidth,0v))--(pttwo-.5(tickwidth,0v));<br>% pic p;<br>% p=thelabel(btex lbl etex,.5[ptone,pttwo]);<br>% unfill bbox p;<br>% draw p; <br>% endgroup<br>%enddef;<br><br>%--------------------------------<br>% Fulcrum and Balls (1) and (2)<br>% section
1.1<br>beginfig(1);<br> numeric u; %scaling factor<br> numeric v; %vertical scaling factor<br> numeric w; %horizontal scaling factor<br><br> u:=.015in; v:=u; w:=v;<br> % the teeter-totter<br> linecap:=butt; <br> z0=(-55w,0v); z1=-z0;<br> pickup pencircle scaled line_width_light;<br> draw z0--z1;<br> path fulcrum;<br> z2=(-8w,-5v); x3=-x2; y3=y2;<br> fulcrum=(0w,0v)--z2--z3--cycle;<br> filldraw fulcrum withcolor shading_color; draw fulcrum;<br> % the masses<br> numeric unitmass, c, h, two;<br> unitmass=16pt; % with c=4 and h=1, solved for (4/3)\pi x^3.<br> c=0.98475*unitmass; h=0.62035*unitmass; two=0.78159*unitmass;<br> draw fullcircle scaled c shifted (-15w,.5c);<br> label(btex {\small $c$} etex,(-15w,.5c));<br> draw fullcircle scaled
h shifted (-40w,.5h);<br> label(btex {\small $h$} etex,(-40w,.5h));<br> draw fullcircle scaled two shifted (50w,.5two);<br> label(btex {\small $2$} etex,(50w,.5two));<br> % the decorations<br> linecap:=squared;<br> pickup pencircle scaled line_width_light;<br> y4=1.3unitmass; y5=-.9unitmass;<br> picture picc, pich, pictwo;<br> picc=thelabel(btex {\tiny $15$} etex,(.5*(-15w),y5));<br> pich=thelabel(btex {\tiny $40$} etex,(.5*(-40w),y4));<br> pictwo=thelabel(btex {\tiny $50$} etex,(.5*(50w),y4));<br> interim ahangle:=30;<br> drawarrow ((-15w,y5)-(10pt,0v))--((-15w,y5)-(.5tickwidth,0v));<br> drawarrow ((0w,y5)+(10pt,0v))--((0w,y5)+(.5tickwidth,0v));<br> unfill bbox picc;<br> draw picc; <br> drawdblarrow
((-40w,y4)+(.5tickwidth,0v))--((0w,y4)-(.5tickwidth,0v));<br> unfill bbox pich;<br> draw pich; <br> drawdblarrow ((0w,y4)+(.5tickwidth,0v))--((50w,y4)-(.5tickwidth,0v));<br> unfill bbox pictwo;<br> draw pictwo;<br> pen vert_bar;<br> vert_bar:=pensquare xscaled tickwidth yscaled 4pt;<br> pickup vert_bar;<br> drawdot (-15w,y5); drawdot (0w,y5);<br> drawdot (-40w,y4); drawdot (0w,y4);<br> drawdot (0w,y4); drawdot (50w,y4);<br>endfig;<br></div>--------------------------<-------------------------------------------------------<br> I got the book source from "ftp://joshua.smcvt.edu/pub/hefferon/book/linear_algebra.zip" which includes many metapost figures. <br><br>Regards,<br>Ozhan<br>--- <b>03/09/10 Cum tarihinde Taco Hoekwater
<i><taco@elvenkind.com></i></b> şöyle yazıyor:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>Kimden: Taco Hoekwater <taco@elvenkind.com><br>Konu: Re: [metapost] Unable to make mpx file. Btex and etex issue<br>Kime: "ozhan fenerci" <o_fenerci@yahoo.com.tr><br>Kopya: metapost@tug.org<br>Tarihi: 3 Eylül 2010 Cuma, 16:45<br><br><div class="plainMail">On 09/03/2010 02:07 PM, ozhan fenerci wrote:<br>> Dear List,<br>><br>> I am trying to learn metapost. I found a book which uses metapost<br>> extensively. I wanted to compile the a few example from it but I failed.<br>><br>> mpost works until it hits the line " label(btex{\small $c$}<br>> etex,(-15w,.5c));". Mpost gives the error like :<br>><br>> $mpost ch1.mp<br>><br>><br>> This is MetaPost, version 1.208 (kpathsea version 5.0.0)<br>> (./ch1.mp (./jh.mp
(/usr/share/texmf-texlive/metapost/base/boxes.mp)<br>> (/usr/share/texmf-texlive/metapost/base/graph.mp<br>> (/usr/share/texmf-texlive/metapost/base/marith.mp<br>> (/usr/share/texmf-texlive/metapost/base/string.mp))<br>> (/usr/share/texmf-texlive/metapost/base/format.mp<br>> (/usr/share/texmf-texlive/metapost/base/string.mp)<br>> (/usr/share/texmf-texlive/metapost/base/texnum.mp))))fatal: Command<br>> failed: latex --parse-first-line --interaction=nonstopmode mp518785.tex;<br>> see mpxerr.log<br>> >> ch1.mp<br>> >> ch1.mpx<br>> ! Unable to make mpx file.<br>> l.54 label(btex<br>> {\small $c$} etex,(-15w,.5c));<br>> Transcript written on ch1.log.<br>><br>> I don't know what have gone wrong but sometihing about "btex and etex"<br>> issue.<br><br>Running latex failed. The metapost command above will have left you<br>with mpxerr.tex in the current directory, please try to
run<br><br> $ latex --parse-first-line --interaction=nonstopmode mpxerr<br><br>to see what the actual latex error was.<br><br>Best wishes,<br>Taco<br></div></blockquote></td></tr></table><br>