<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{&lt;->}(-1.5,0)(1.5,0)</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>\psline{&lt;->}(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; ">&nbsp;&nbsp; (\feld) &nbsp; 1751 &nbsp; 4702 &nbsp; 1.0 &nbsp; (!) &nbsp; 1761 &nbsp; 4764 &nbsp; 1.0 &nbsp; (y) &nbsp; 2222 &nbsp; 4725 &nbsp; 1.0 &nbsp; (!) &nbsp; 2252 &nbsp; 4764 &nbsp; 1.0 &nbsp; (x) &nbsp; 2476 &nbsp; 4725 &nbsp; 1.0 &nbsp; (!) &nbsp; 2504 &nbsp; 4764 &nbsp; 1.0 &nbsp; (|) &nbsp; 664 &nbsp; 4959 &nbsp; 1.0 &nbsp; --nostringval-- &nbsp; --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; ">&nbsp;&nbsp; %interp_exit &nbsp; .runexec2 &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; 2 &nbsp; %stopped_push &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; false &nbsp; 1 &nbsp; %stopped_push &nbsp; 1905 &nbsp; 1 &nbsp; 3 &nbsp; %oparray_pop &nbsp; 1904 &nbsp; 1 &nbsp; 3 &nbsp; %oparray_pop &nbsp; 1888 &nbsp; 1 &nbsp; 3 &nbsp; %oparray_pop &nbsp; 1771 &nbsp; 1 &nbsp; 3 &nbsp; %oparray_pop &nbsp; --nostringval-- &nbsp; %errorexec_pop &nbsp; .runexec2 &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; 2 &nbsp; %stopped_push &nbsp; --nostringval-- &nbsp; --nostringval-- &nbsp; 1834 &nbsp; 29 &nbsp; 4 &nbsp; %oparray_pop &nbsp; --nostringval-- &nbsp; 1818 &nbsp; 29 &nbsp; 4 &nbsp; %oparray_pop &nbsp; --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; ">&nbsp;&nbsp; --<a href="dict:1148/1684(ro)(G)--">dict:1148/1684(ro)(G)--</a> &nbsp; --<a href="dict:0/20(G)--">dict:0/20(G)--</a> &nbsp; --<a href="dict:115/200(L)--">dict:115/200(L)--</a> &nbsp; --<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: &nbsp;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&nbsp;</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>&lt;to be read again>&nbsp;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \crcr&nbsp;</div><div>l.45 ...n{The vector field $\vFof{x,y}=y\vi+x\vj$}</div><div>********************************************************************* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</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">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</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">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</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">&nbsp; &nbsp;<span class="Apple-converted-space">&nbsp;</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>