[pstricks] Syntax *0 not working

Michael Sharpe msharpe at ucsd.edu
Wed Jul 28 07:23:59 CEST 2010


On Jul 27, 2010, at 10:01 PM, Uwe Siart wrote:

> Herbert Voss <Herbert.Voss at fu-berlin.de> writes:
> 
>> Am 27.07.2010 18:01, schrieb Herbert Voss:
>>> Am 27.07.2010 17:23, schrieb Uwe Siart:
>>>> The syntax *0 has stopped working for \rput. The equivalent N still
>>>> works as expected. Is this change intended?
>>> 
>>> Uwe,
>>> thanks for the report. It is an introduced bug with the
>>> ltest changes in th pstricks.tex
>> 
>> Uwe,
>> please try again with pstricks.tex from
>> http://archiv.dante.de/~herbert/PSTricks-TDS/tex/generic/
> 
> Rotation is ok now but use of {*0} and {N} is not equivalent anymore.
> They lead to slightly different positioning as can be seen here:
> 
> % ------------------------------
> \documentclass{article}
> \usepackage{pstricks}
> \begin{document}
> \begin{pspicture}(1,1)
>  \rput{45}(0,0){
>    \rput{*0}(0,0){\color{red}R}
>  }
>  \rput{45}(0,0){
>    \rput{N}(0,0){R}
>  }
> \end{pspicture}
> \end{document}
> % ------------------------------
> 
> -- 
> Uwe

Herbert, Uwe,

With \pst@@@rot defined as

\def\psset@@@rot#1#2\@nil{%
  \psset@@rot#2\@nil%
  \edef\psk at rot{\pst at rotlist \ifx\psk at rot\@empty\else\space ps at rot add \fi}%
  \pst at Verb{ gsave  STV CP T /ps at rot \ifx\psk at rot\@empty 0 \else \psk at rot \fi def grestore }%
}% (MJS)

I don't see any difference in position. 

Uwe, try putting

\makeatletter
\def\psset@@@rot#1#2\@nil{%
  \psset@@rot#2\@nil%
  \edef\psk at rot{\pst at rotlist \ifx\psk at rot\@empty\else\space ps at rot add \fi}%
  \pst at Verb{ gsave  STV CP T /ps at rot \ifx\psk at rot\@empty 0 \else \psk at rot \fi def grestore }%
}% (MJS)
\makeatother

in your preamble.

Michael





More information about the PSTricks mailing list