OK. Clean directory.

qdf $ ls
OTqdbpreview.sty        dev.qdf                 sample2.qdf
dev.1                   dev.tex                 useemp.mp
dev.mp                  functions.qdf           useemp.pdf
dev.pdf                 qdftools.mp             useemp.tex
qdf $

useemp.tex:

\documentclass{article}
\usepackage{amsmath}
\usepackage{emp,ifpdf}

\ifpdf
\DeclareGraphicsRule{*}{mps}{*}{}
\fi

\setlength{\unitlength}{1cm}

\begin{document}

Now is the time for all good men to come to the aid of their country.

\empprelude{input qdftools}

\begin{empfile}
\begin{empdef}[david](4,4)
numeric u; 10u=3in;
gridfivefive;
xyaxesfivefive;
\end{empdef}
\end{empfile}

\immediate\write18{mpost -tex=latex \jobname}

\empuse{david}

Now is the time for all good men to come to the aid of their country.

\end{document}

qdftools.mp:

numeric s; s=0.2;
color gridlines; gridlines:=(s,s,s);

def openbluedot(expr pos)=
fill fullcircle scaled 4pt withcolor white;
draw fullcircle scaed 4pt withcolor blue;
enddef;

def openreddot(expr pos)=
fill fullcircle scaled 4pt withcolor white;
draw fullcircle scaed 4pt withcolor red;
enddef;

def filledreddot(expr pos)=
fill fullcircle scaled 4pt withcolor red;
draw fullcircle scaed 4pt withcolor red;
enddef;

def filledbluedot(expr pos)=
fill fullcircle scaled 4pt withcolor blue;
draw fullcircle scaed 4pt withcolor blue;
enddef;

def vtick(expr pos)=
draw ((0,-3)--(0,3)) shifted pos;
enddef;

def htick(expr pos)=
draw ((-3,0)--(3,0)) shifted pos;
enddef;

def gridfivefive =
for k=-5u step 1u until 5u:
   draw (-5u,k)--(5u,k) withcolor gridlines;
   draw (k,-5u)--(k,5u) withcolor gridlines;
endfor;
enddef;

def xyaxesfivefive=
drawdblarrow (-5u,0)--(5u,0);
label.rt(btex $x$ etex, (5u,0));
label.bot(btex $25$ etex, (5u,0));
drawdblarrow (0,-5u)--(0,5u);
label.top(btex $y$ etex, (0,5u));
label.lft(btex $5$ etex, (0,5u));
enddef;

endinput;

Now a run:

$ pdflatex --shell-escape useemp.tex

...
)This is MetaPost, Version 0.901 (Web2C 7.5.5)
(useemp.mp (qdftools.mpnewer: target file `qdftools.mpx' doesn't exist.
/usr/local/teTeX/bin/powerpc-apple-darwin-current/makempx: Command  
failed: latex mpxerr.tex; see mpxerr.log

 >> qdftools.mp
 >> qdftools.mpx
! Unable to make mpx file.
l.41  label.rt(btex
                     $x$ etex, (5u,0));
Transcript written on useemp.log.

emp: File useemp.1 not found:
emp: Process useemp.mp with MetaPost and then reprocess this file.
[1{/Users/darnold/Library/texmf/fonts/map/pdftex/updmap/pdftex.map}]
(./useemp.aux) )</usr/local/teTeX/share/texmf.tetex/fonts/type1/ 
bluesky/cm/cmr1
0.pfb>
Output written on useemp.pdf (1 page, 7947 bytes).
Transcript written on useemp.log.

Now my directory:

qdf $ ls
OTqdbpreview.sty        functions.qdf           useemp.aux
dev.1                   mpx509.dvi              useemp.log
dev.mp                  mpxerr.log              useemp.mp
dev.pdf                 mpxerr.tex              useemp.pdf
dev.qdf                 qdftools.mp             useemp.tex
dev.tex                 sample2.qdf

And mpxerr.log:

qdf $ cat mpxerr.log
This is pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5)  
(format=latex 2006.6.27)  28 JUN 2006 09:10
entering extended mode
**mpx509.tex
(./mpx509.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german,  
ngerman, d
utch, italian, norsk, portuges, spanish, swedish, nohyphenation, loaded.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <7> on input line 12.
LaTeX Font Info:    External font `cmex10' loaded for size
(Font)              <5> on input line 12.
[1] [1] [1] [1]
! I can't find file `mpx509.aux'.
\enddocument ...makeatletter \input \jobname .aux
                                                   \fi [EMAIL PROTECTED]  
\ifdim \f...
l.19 \end{document}

Please type another input file name
! Emergency stop.
\enddocument ...makeatletter \input \jobname .aux
                                                   \fi [EMAIL PROTECTED]  
\ifdim \f...
l.19 \end{document}

*** (job aborted, file error in nonstop mode)

Here is how much of TeX's memory you used:
10 strings out of 95138
181 string characters out of 1183036
2045165 words of memory out of 4500000
3256 multiletter control sequences out of 10000+50000
3640 words of font info for 14 fonts, out of 2000000 for 2000
58 hyphenation exceptions out of 5000
18i,2n,12p,76b,66s stack positions out of 5000i,500n,6000p,200000b, 
40000s
Output written on mpx509.dvi (4 pages, 432 bytes).



On Jun 28, 2006, at 9:04 AM, Taco Hoekwater wrote:

> David Arnold wrote:
>> Taco,
>>
>> Not sure what you mean here, so I ran:
>>
>> latex useemp.tex
>>
>> And got:
>> <correct output>
>
> And now I am lost as well. Nothing useful in the mpxerr.log, I assume?
>
> Taco
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to