<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16587" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have a problem that I cannot resolve when I use 
the psgraph together with pst-pdf,as shown in the minimal example below.&nbsp; 
The original data file is much longer, and created externally.&nbsp; I have 
truncated it and used the filecontents package for brevity.&nbsp; I am running 
WinXP/SP2 with MiKteX and WinEdt.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>When \pst-pdf is "uncommented", I get the following 
error, when I compile using LaTeX</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Runaway argument?<BR>{0,40})({366,70})\pr@endbox 
{10cm}{5cm}\readdata {\datafile }{./data/\ETC.<BR>! Paragraph ended before 
\psgraph@ii was complete.<BR>&lt;to be read again&gt; 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
\par </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>If I comment the \pst-pdf line, and run LaTeX -&gt; 
dvips -&gt; pspdf, I get the output I expect and desire.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>The reason that I wish to use \pst-pdf is that I am 
producing large lecture notes and slides (a la beamer) which also have many 
.jpegs </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>and .png included.&nbsp; I seem to be able to 
incorporate other pstricks related images, but suffer the failure when I try to 
use psgraph.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>An additional question, if I may.&nbsp; I used to 
use the ps4pdf package instead of pst-pdf.&nbsp; It worked quite well, given 
that all the pstricks code had to be "bracketted" with&nbsp; PSforPDF{ ... 
}.&nbsp; Unfortunately it seems to have been removed, and near as I can tell 
superceded by \pst-pdf.&nbsp; Can anyone tell me what happened here?&nbsp; 
</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=Arial size=2>
<DIV><BR>\documentclass{article}</DIV>
<DIV>&nbsp;</DIV>
<DIV>\usepackage{filecontents}<BR>\begin{filecontents*}{datafile1.dat}<BR>0.00000000,54.188<BR>1.00000000,54.164<BR>2.00000000,54.136<BR>3.00000000,54.105<BR>4.00000000,54.071<BR>5.00000000,54.033<BR>6.00000000,53.992<BR>7.00000000,53.947<BR>8.00000000,53.899<BR>9.00000000,53.847<BR>10.00000000,53.792<BR>\end{filecontents*}</DIV>
<DIV>&nbsp;</DIV>
<DIV>\listfiles</DIV>
<DIV>&nbsp;</DIV>
<DIV>\usepackage{pst-pdf}%</DIV>
<DIV>&nbsp;</DIV>
<DIV>\usepackage{pstricks-add}%</DIV>
<DIV>&nbsp;</DIV>
<DIV>\begin{document}</DIV>
<DIV>&nbsp;</DIV>
<DIV>\psset{yAxisLabel=Beta Angle (degrees),xAxisLabel={Days from Vernal 
Equinox},%<BR>&nbsp; 
xAxisLabelPos={5cm,5.75cm},yAxisLabelPos={-1.cm,9cm}}%<BR>\begin{psgraph}[axesstyle=frame,{xticksize=0 
30},{yticksize=0 366},Dx=50,Dy=10,Oy=40](0,40)(366,70){10cm}{5cm}%<BR>&nbsp; 
\readdata{\datafile}{./datafile1.dat}%<BR>&nbsp; 
\listplot[linecolor=red]{\datafile1}%<BR>\end{psgraph}%</DIV>
<DIV>&nbsp;</DIV>
<DIV>\end{document}</DIV>
<DIV>&nbsp;</DIV>
<DIV>The output of listfile (with \pst-pdf commented)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;*File List*<BR>&nbsp;article.cls&nbsp;&nbsp;&nbsp; 2005/09/16 v1.4f 
Standard LaTeX document class<BR>&nbsp; size10.clo&nbsp;&nbsp;&nbsp; 2005/09/16 
v1.4f Standard LaTeX file (size option)<BR>filecontents.sty&nbsp;&nbsp;&nbsp; 
2006/03/11 v1.1a Create an external file from within a LaTeX 
document<BR>pstricks-add.sty&nbsp;&nbsp;&nbsp; 2007/09/03 v. 0.11 package 
wrapper for pstricks-add.tex (hv)<BR>pstricks.sty&nbsp;&nbsp;&nbsp; 2006/08/10 
v0.32 LaTeX wrapper for `PSTricks' (RN,HV)<BR>pstricks.tex&nbsp;&nbsp;&nbsp; 
2006/12/22 v1.15 `PSTricks' (tvz)<BR>&nbsp; xcolor.sty&nbsp;&nbsp;&nbsp; 
2007/01/21 v2.11 LaTeX color extensions (UK)<BR>&nbsp;&nbsp; 
color.cfg&nbsp;&nbsp;&nbsp; 2007/01/18 v1.5 color configuration of 
teTeX/TeXLive<BR>&nbsp;&nbsp; dvips.def&nbsp;&nbsp;&nbsp; 1999/02/16 v3.0i 
Driver-dependant file (DPC,SPQR)<BR>pstricks-add.tex&nbsp;&nbsp;&nbsp; 
2008/01/01 v3.00 `PSTricks-add' (hv)<BR>pst-xkey.tex&nbsp;&nbsp;&nbsp; 
2005/11/25 v1.6 PSTricks specialization of xkeyval 
(HA)<BR>&nbsp;xkeyval.sty&nbsp;&nbsp;&nbsp; 2006/11/18 v2.5f package option 
processing (HA)<BR>&nbsp;xkeyval.tex&nbsp;&nbsp;&nbsp; 2006/11/18 v2.5f 
key=value parser (HA)<BR>pstricks-add.pro&nbsp;&nbsp;&nbsp; 2007/11/18 v. 0.15, 
PostScript prologue file (hv)<BR>&nbsp;***********</DIV>
<DIV>&nbsp;</DIV>
<DIV>If I comment all he psgraph code, the listfile produces</DIV>
<DIV>&nbsp;</DIV>
<DIV>*File List*<BR>&nbsp;article.cls&nbsp;&nbsp;&nbsp; 2005/09/16 v1.4f 
Standard LaTeX document class<BR>&nbsp; size10.clo&nbsp;&nbsp;&nbsp; 2005/09/16 
v1.4f Standard LaTeX file (size option)<BR>filecontents.sty&nbsp;&nbsp;&nbsp; 
2006/03/11 v1.1a Create an external file from within a LaTeX 
document<BR>&nbsp;pst-pdf.sty&nbsp;&nbsp;&nbsp; 2007/06/04 v1.1p PS graphics for 
pdfLaTeX (RN,HjG)<BR>graphicx.sty&nbsp;&nbsp;&nbsp; 1999/02/16 v1.0f Enhanced 
LaTeX Graphics (DPC,SPQR)<BR>&nbsp; keyval.sty&nbsp;&nbsp;&nbsp; 1999/03/16 
v1.13 key=value parser (DPC)<BR>graphics.sty&nbsp;&nbsp;&nbsp; 2006/02/20 v1.0o 
Standard LaTeX Graphics (DPC,SPQR)<BR>&nbsp;&nbsp;&nbsp; 
trig.sty&nbsp;&nbsp;&nbsp; 1999/03/16 v1.09 sin cos tan 
(DPC)<BR>graphics.cfg&nbsp;&nbsp;&nbsp; 2007/01/18 v1.5 graphics configuration 
of teTeX/TeXLive<BR>&nbsp;&nbsp; dvips.def&nbsp;&nbsp;&nbsp; 1999/02/16 v3.0i 
Driver-dependant file (DPC,SPQR)<BR>pstricks.sty&nbsp;&nbsp;&nbsp; 2006/08/10 
v0.32 LaTeX wrapper for `PSTricks' (RN,HV)<BR>pstricks.tex&nbsp;&nbsp;&nbsp; 
2006/12/22 v1.15 `PSTricks' (tvz)<BR>&nbsp; xcolor.sty&nbsp;&nbsp;&nbsp; 
2007/01/21 v2.11 LaTeX color extensions (UK)<BR>&nbsp;&nbsp; 
color.cfg&nbsp;&nbsp;&nbsp; 2007/01/18 v1.5 color configuration of 
teTeX/TeXLive<BR>&nbsp;preview.sty&nbsp;&nbsp;&nbsp; 2006/08/25 11.84 
(AUCTeX/preview-latex)prtightpage.def<BR>&nbsp; pdftex.def&nbsp;&nbsp;&nbsp; 
2007/06/12 v0.04h Graphics/color for 
pdfTeX<BR>pstricks-add.sty&nbsp;&nbsp;&nbsp; 2007/09/03 v. 0.11 package wrapper 
for pstricks-add.tex (hv)<BR>pstricks-add.tex&nbsp;&nbsp;&nbsp; 2008/01/01 v3.00 
`PSTricks-add' (hv)<BR>pst-xkey.tex&nbsp;&nbsp;&nbsp; 2005/11/25 v1.6 PSTricks 
specialization of xkeyval (HA)<BR>&nbsp;xkeyval.sty&nbsp;&nbsp;&nbsp; 2006/11/18 
v2.5f package option processing (HA)<BR>&nbsp;xkeyval.tex&nbsp;&nbsp;&nbsp; 
2006/11/18 v2.5f key=value parser (HA)<BR>pstricks-add.pro&nbsp;&nbsp;&nbsp; 
2007/11/18 v. 0.15, PostScript prologue file (hv)<BR>&nbsp;***********</DIV>
<DIV>&nbsp;</DIV>
<DIV>Bruce Burlton</DIV>
<DIV>Carleton University</FONT></DIV></BODY></HTML>