[pstricks] Glue oddity with \pstVerb
Herbert Voss
Herbert.Voss at FU-Berlin.DE
Wed Aug 27 09:28:21 CEST 2008
Michael Sharpe schrieb:
> 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.
this is the default behaviour of LaTeX. PSTricks kills glue
and spaces only for own macros, but in this case not for \myx
\def\myx{2}% is correct or
\def\myx{2 }% to have a space, if \myx is used inside PostScript
Herbert
>
> \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){}.
More information about the PSTricks
mailing list