[pstricks] Metapost-PSTricks conflict

Herbert Voss Herbert.Voss at FU-Berlin.DE
Wed Jan 14 09:06:59 CET 2009

David Arnold schrieb:
> 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?

then you have to use auto-pst-pdf. For pst-pdf you have to do
the four runs by hand or by a script:

I have no problem with the following example with pst-pdf
(file list below) when I use the script from

However, there is a problem when using auto-pst-pdf. I have to



% 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}



 *File List*
 article.cls    2005/09/16 v1.4f Standard LaTeX document class
  size12.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
 amsmath.sty    2000/07/18 v2.13 AMS math features
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
  amsbsy.sty    1999/11/29 v1.2d
  amsopn.sty    1999/12/14 v2.01 operator names
 amssymb.sty    2002/01/22 v2.2d
amsfonts.sty    2001/10/25 v2.2f
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
graphics.sty    2006/02/20 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks.sty    2008/11/26 v0.40 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2008/11/23 v1.27 `PSTricks' (tvz,hv)
pstricks.pro    2008/01/01 v. 1.03, PostScript prologue file (hv)
pst-dots.pro    2006/12/19 v. 2.00, PostScript prologue file (hv)
pst-algparser.pro    2008/01/01 v. 0.01, PostScript prologue file (hv)
  xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
   color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
dvipsnam.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.sty    2007/09/03 v. 0.12 package wrapper for
pstricks-add.tex (hv
pstricks-add.tex    2008/12/22 v3.16 `PSTricks-add' (hv)
pst-xkey.tex    2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2008/08/13 v2.6a package option processing (HA)
 xkeyval.tex    2008/08/13 v2.6a key=value parser (HA)
pstricks-add.pro    2008/01/01 v. 0.20, PostScript prologue file (hv)
pstricks-add.cfg    2005/01/10 v0.1 addtional user stuff (hv)
 pst-pdf.sty    2008/10/09 v1.1v PS graphics for pdfLaTeX (RN,HjG)
 preview.sty    2008/02/03 11.85 (AUCTeX/preview-latex)
  pdftex.def    2008/09/08 v0.04l Graphics/color for pdfTeX
 pst-pdf.cfg    2007/09/25 v0.3 Automatically creation of EPS files (HV)
     emp.sty    1997/11/12 v1.00 Encapsulated MetaPost LaTeX Package (ohl)
verbatim.sty    2003/08/22 v1.5q LaTeX2e package for verbatim enhancements
   ifpdf.sty    2007/12/12 v1.6 Provides the ifpdf switch (HO)
    umsa.fd    2002/01/19 v2.2g AMS font definitions
    umsb.fd    2002/01/19 v2.2g AMS font definitions
   testD.1    Graphic file (type eps)

More information about the PSTricks mailing list