ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: David Arnold <dwarnold45@cox.net>
Subject: Re: emp.sty and metapost
Date: Wed, 28 Jun 2006 09:11:43 -0700	[thread overview]
Message-ID: <766B179B-774A-41E1-8029-D653E9AA5D8C@cox.net> (raw)
In-Reply-To: <44A2A879.2030402@elvenkind.com>

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 \@dofilelist  
\ifdim \f...
l.19 \end{document}

Please type another input file name
! Emergency stop.
\enddocument ...makeatletter \input \jobname .aux
                                                   \fi \@dofilelist  
\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

  reply	other threads:[~2006-06-28 16:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-28  4:00 David Arnold
2006-06-28  4:23 ` Aditya Mahajan
2006-06-28  6:06   ` David Arnold
2006-06-28  7:07     ` Taco Hoekwater
2006-06-28  7:17       ` Hans Hagen
2006-06-28 15:27         ` David Arnold
2006-06-28 15:24       ` David Arnold
2006-06-28 16:04         ` Taco Hoekwater
2006-06-28 16:11           ` David Arnold [this message]
2006-06-28 17:40             ` Taco Hoekwater
2006-06-28 14:08     ` Aditya Mahajan
2006-06-28 15:37       ` David Arnold
2006-06-28 15:47         ` Taco Hoekwater
2006-06-28 18:37         ` Aditya Mahajan

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=766B179B-774A-41E1-8029-D653E9AA5D8C@cox.net \
    --to=dwarnold45@cox.net \
    --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).