<!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> </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.
The original data file is much longer, and created externally. I have
truncated it and used the filecontents package for brevity. I am running
WinXP/SP2 with MiKteX and WinEdt.</FONT></DIV>
<DIV> </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> </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><to be read again>
<BR>
\par </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>If I comment the \pst-pdf line, and run LaTeX ->
dvips -> pspdf, I get the output I expect and desire.</FONT></DIV>
<DIV> </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> </DIV>
<DIV><FONT face=Arial size=2>and .png included. I seem to be able to
incorporate other pstricks related images, but suffer the failure when I try to
use psgraph.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>An additional question, if I may. I used to
use the ps4pdf package instead of pst-pdf. It worked quite well, given
that all the pstricks code had to be "bracketted" with PSforPDF{ ...
}. Unfortunately it seems to have been removed, and near as I can tell
superceded by \pst-pdf. Can anyone tell me what happened here?
</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>\documentclass{article}</DIV>
<DIV> </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> </DIV>
<DIV>\listfiles</DIV>
<DIV> </DIV>
<DIV>\usepackage{pst-pdf}%</DIV>
<DIV> </DIV>
<DIV>\usepackage{pstricks-add}%</DIV>
<DIV> </DIV>
<DIV>\begin{document}</DIV>
<DIV> </DIV>
<DIV>\psset{yAxisLabel=Beta Angle (degrees),xAxisLabel={Days from Vernal
Equinox},%<BR>
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>
\readdata{\datafile}{./datafile1.dat}%<BR>
\listplot[linecolor=red]{\datafile1}%<BR>\end{psgraph}%</DIV>
<DIV> </DIV>
<DIV>\end{document}</DIV>
<DIV> </DIV>
<DIV>The output of listfile (with \pst-pdf commented)</DIV>
<DIV> </DIV>
<DIV> *File List*<BR> article.cls 2005/09/16 v1.4f
Standard LaTeX document class<BR> size10.clo 2005/09/16
v1.4f Standard LaTeX file (size option)<BR>filecontents.sty
2006/03/11 v1.1a Create an external file from within a LaTeX
document<BR>pstricks-add.sty 2007/09/03 v. 0.11 package
wrapper for pstricks-add.tex (hv)<BR>pstricks.sty 2006/08/10
v0.32 LaTeX wrapper for `PSTricks' (RN,HV)<BR>pstricks.tex
2006/12/22 v1.15 `PSTricks' (tvz)<BR> xcolor.sty
2007/01/21 v2.11 LaTeX color extensions (UK)<BR>
color.cfg 2007/01/18 v1.5 color configuration of
teTeX/TeXLive<BR> dvips.def 1999/02/16 v3.0i
Driver-dependant file (DPC,SPQR)<BR>pstricks-add.tex
2008/01/01 v3.00 `PSTricks-add' (hv)<BR>pst-xkey.tex
2005/11/25 v1.6 PSTricks specialization of xkeyval
(HA)<BR> xkeyval.sty 2006/11/18 v2.5f package option
processing (HA)<BR> xkeyval.tex 2006/11/18 v2.5f
key=value parser (HA)<BR>pstricks-add.pro 2007/11/18 v. 0.15,
PostScript prologue file (hv)<BR> ***********</DIV>
<DIV> </DIV>
<DIV>If I comment all he psgraph code, the listfile produces</DIV>
<DIV> </DIV>
<DIV>*File List*<BR> article.cls 2005/09/16 v1.4f
Standard LaTeX document class<BR> size10.clo 2005/09/16
v1.4f Standard LaTeX file (size option)<BR>filecontents.sty
2006/03/11 v1.1a Create an external file from within a LaTeX
document<BR> pst-pdf.sty 2007/06/04 v1.1p PS graphics for
pdfLaTeX (RN,HjG)<BR>graphicx.sty 1999/02/16 v1.0f Enhanced
LaTeX Graphics (DPC,SPQR)<BR> keyval.sty 1999/03/16
v1.13 key=value parser (DPC)<BR>graphics.sty 2006/02/20 v1.0o
Standard LaTeX Graphics (DPC,SPQR)<BR>
trig.sty 1999/03/16 v1.09 sin cos tan
(DPC)<BR>graphics.cfg 2007/01/18 v1.5 graphics configuration
of teTeX/TeXLive<BR> dvips.def 1999/02/16 v3.0i
Driver-dependant file (DPC,SPQR)<BR>pstricks.sty 2006/08/10
v0.32 LaTeX wrapper for `PSTricks' (RN,HV)<BR>pstricks.tex
2006/12/22 v1.15 `PSTricks' (tvz)<BR> xcolor.sty
2007/01/21 v2.11 LaTeX color extensions (UK)<BR>
color.cfg 2007/01/18 v1.5 color configuration of
teTeX/TeXLive<BR> preview.sty 2006/08/25 11.84
(AUCTeX/preview-latex)prtightpage.def<BR> pdftex.def
2007/06/12 v0.04h Graphics/color for
pdfTeX<BR>pstricks-add.sty 2007/09/03 v. 0.11 package wrapper
for pstricks-add.tex (hv)<BR>pstricks-add.tex 2008/01/01 v3.00
`PSTricks-add' (hv)<BR>pst-xkey.tex 2005/11/25 v1.6 PSTricks
specialization of xkeyval (HA)<BR> xkeyval.sty 2006/11/18
v2.5f package option processing (HA)<BR> xkeyval.tex
2006/11/18 v2.5f key=value parser (HA)<BR>pstricks-add.pro
2007/11/18 v. 0.15, PostScript prologue file (hv)<BR> ***********</DIV>
<DIV> </DIV>
<DIV>Bruce Burlton</DIV>
<DIV>Carleton University</FONT></DIV></BODY></HTML>