<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">The following pspicture prints fine when it is the complete text of a short test file, but when run in the context of a larger file, it yields no error messages while texing, but then yields the error which follows the *****<div><br></div><div>*****************************************************************************************************</div><div><div>\begin{figure}[htbp]</div><div>\begin{center}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>\begin{pspicture}(-2,-2)(2,2)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>\psline{<->}(-1.5,0)(1.5,0)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>\psline{<->}(0,-1.5)(0,1.5)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>\multido{\rx=-1+0.25}{9}{%</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>\multido{\ry=-1+0.25}{9}{%</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>\pstVerb{</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>/x \rx\space def</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>/y \ry\space def</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>/ValueTempA \ry\space 2 div def</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>/ValueTempB \rx\space 2 div def</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>\psset{arrows=->}</div><div><span class="Apple-tab-span" style="white-space:pre">                                        </span>\psline(!x y)(!x ValueTempA add y ValueTempB add)</div><div><span class="Apple-tab-span" style="white-space:pre">                                </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>}</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>\end{pspicture}</div><div>%\caption{The vector field $\vFof{x,y}=y\vi+x\vj$}</div><div>\label{fig: vfieldyx}</div><div>\end{center}</div><div>\end{figure}%</div><div>***************************************************************************************************</div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Error: /invalidrestore in --restore--</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Operand stack:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> (\feld) 1751 4702 1.0 (!) 1761 4764 1.0 (y) 2222 4725 1.0 (!) 2252 4764 1.0 (x) 2476 4725 1.0 (!) 2504 4764 1.0 (|) 664 4959 1.0 --nostringval-- --nostringval--</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Execution stack:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1905 1 3 %oparray_pop 1904 1 3 %oparray_pop 1888 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- 1834 29 4 %oparray_pop --nostringval-- 1818 29 4 %oparray_pop --nostringval--</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Dictionary stack:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "> --<a href="dict:1148/1684(ro)(G)--">dict:1148/1684(ro)(G)--</a> --<a href="dict:0/20(G)--">dict:0/20(G)--</a> --<a href="dict:115/200(L)--">dict:115/200(L)--</a> --<a href="dict:227/300(L)--">dict:227/300(L)--</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Current allocation mode is local</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Last OS error: 2</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Current file position is 8962800</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">GPL Ghostscript 8.62: Unrecoverable error, exit code 1</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">### FAILED to generate /tmp/altpdflatex.9589-1226431794/Hardcore2.pdf ()</div><div>++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++</div><div>Both the test file and the main text file call the following packages for pstricks (the main text calls others that have nothing to do with pstricks):</div><div><br></div><div><div>\usepackage{amsmath, amssymb}</div><div>\usepackage{pstricks, pst-plot, pst-math, pst-3dplot}</div><div>\usepackage{pst-grad, pst-func, pst-text}</div><div>\usepackage[monochrome]{pstcol}</div><div><br></div></div></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I don't know if the following is a clue to what is going on: if the caption is uncommented, where</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">the relevant macro definitions are</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">\newcommand{\vFof}[1]{\veof{F}{#1}}</div><div><div>\newcommand{\veof}[2]{\of{\ve{#1}}{#2}}%vector function</div><div><div>\newcommand{\of}[2]{\ensuremath{#1\!\left(#2\right)}}%function of </div><div><div>\newcommand{\ve}[1]{\ensuremath{\overrightarrow{#1}}}</div><div><br></div><div><div>\newcommand{\vi}{\ve{\imath}}</div><div>\newcommand{\vj}{\ve{\jmath}}</div><div><br></div><div>then I get the error message</div><div><br></div><div>******************************************************************</div><div><div>! Illegal parameter number in definition of \reserved@a.</div><div><to be read again> </div><div> \crcr </div><div>l.45 ...n{The vector field $\vFof{x,y}=y\vi+x\vj$}</div><div>********************************************************************* </div><div><br></div><div>Any idea what might be going on?</div></div></div></div><div><br></div></div></div></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><br class="Apple-interchange-newline">Zbigniew Nitecki</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Department of Mathematics</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Tufts University</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medford, MA 02155</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; "><br></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">telephones:</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office<span class="Apple-converted-space"><span class="Apple-converted-tab"> <span class="Apple-converted-space"> </span></span></span>(617)627-3843</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Dept.<span class="Apple-converted-space"><span class="Apple-converted-tab"> <span class="Apple-converted-space"> </span></span></span>(617)627-3234</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Dept. fax<span class="Apple-converted-space"><span class="Apple-converted-tab"> <span class="Apple-converted-space"> </span></span></span>(617)627-3966</font></p><a href="http://www.tufts.edu/~znitecki/">http://www.tufts.edu/~znitecki/</a></span> </div><br></div></body></html>