[pstricks] Metapost-PSTricks conflict

David Arnold dwarnold45 at suddenlink.net
Tue Jan 13 18:34:17 CET 2009

All, We have reason to use both Metapost and PSTricks in our database  
of questions for our Optimath system. The following file will not  
compile. We believe it might have something to do with \jobname, but  
not sure. Can anyone tell us what we need to do to get the following  
to compile with pdflatex --shell-escape?






% statsmac and online macros for qdf files



Given the graph below, answer the question.

Given the graph below, answer the question.



numeric u; 10u=2in;

for k=-5u step 1u until 5u:
	draw (-5u,k)--(5u,k) withcolor 0.85white;
	draw (k,-5u)--(k,5u) withcolor 0.85white;

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



\immediate\write18{mpost \jobname}



More information about the PSTricks mailing list