[pstricks] Glue oddity with \pstVerb

Michael Sharpe msharpe at ucsd.edu
Tue Aug 26 23:11:07 CEST 2008


It appears that \pstVerb does something odd to glue suppression inside  
a pspicture. In the following example, the circle is not drawn with  
center at (4,4)---it is displaced to the right.

\documentclass{article}
\usepackage{pstricks}
\listfiles
\begin{document}
\begin{pspicture}(-.5,-.5)(6.5,6.5)
\psgrid[subgriddiv=0,griddots=10]
\def\myx{2}
%\rput(0,0){}
\pstVerb{ /Xcoor 2 3 mul 2 sub def }
\pscircle(4,4){1}
\end{pspicture}
\end{document}

The problem goes away if any one of the following changes is made:

(a) comment out the \pstVerb;
(b) add a comment at the end of the \def\myx{2}. or comment that line  
out;
(c) uncomment the %\rput(0,0){}.

  article.cls    2005/09/16 v1.4f Standard LaTeX document class
   size10.clo    2005/09/16 v1.4f Standard LaTeX file (size option)
pstricks.sty    2008/01/24 v0.37 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2008/07/31 v1.26 `PSTricks' (tvz)
   xcolor.sty    2007/01/21 v2.11 LaTeX color extensions (UK)
    color.cfg    2007/01/18 v1.5 color configuration of teTeX/TeXLive
    dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)

Michael




More information about the PSTricks mailing list