[pstricks] bug in pst-ghsb, a missing %

vin.gui vin.gui at laposte.net
Fri Apr 16 21:02:09 CEST 2004


> Hello,
> please confirm.
> 
> Without the modification in the preamble there
> is a spurious blank (the one before \else).
> Seen in the output. Delete \iffalse and \fi and
> the blank should be gone.
> 

Confirmed.

Vincent.

> 
> 
> \documentclass{article}
> \usepackage{pst-ghsb}
> \newhsbcolor{ColorA}{0.7 0.1 0.8}
> \newhsbcolor{ColorB}{0.7 0.9 0.8}
> \newhsbcolor{ColorC}{0 0 0}
> \newhsbcolor{ColorD}{0 0 1}
> 
> \iffalse%   delete for second test
> 
> \makeatletter
> \def\psfs at gradient{%
> \ifgradientHSB
> \addto at pscode{gsave
>      gsave \pst at usecolor\psgradbegin currenthsbcolor grestore
>      gsave \pst at usecolor\psgradend currenthsbcolor grestore
>      \psgradlines
>      \psgradmidpoint
>      \psk at gradangle
>      tx at GradientHSBDict begin GradientFillHSB end grestore}%
hv 2004-04-16
> \else
> \addto at pscode{gsave
>      gsave \pst at usecolor\psgradbegin currentrgbcolor grestore
>      gsave \pst at usecolor\psgradend currentrgbcolor grestore
>      \psgradlines
>      \psgradmidpoint
>      \psk at gradangle
>      tx at GradientDict begin GradientFill end grestore}
> \fi}
> \makeatother
> 
> \fi%   delete for second test
> 
> \pagestyle{empty}
> \begin{document}
> \psset{fillstyle=gradient,gradientHSB=true}
> 
> \begin{pspicture}(5,4)
>    \psframe[gradmidpoint=1,gradbegin=ColorA,gradend=ColorB](5,1)
>   
\psframe[gradmidpoint=0.5,gradbegin=ColorC,gradend=ColorD](0,1)(5,2)
>   
\psframe[gradmidpoint=1,gradbegin=ColorA,gradend=ColorB](0,2)(5,3)
>   
\psframe[gradmidpoint=0.5,gradbegin=ColorC,gradend=ColorD](0,3)(5,4)
> \end{pspicture}
> 
> \end{document}
> 
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
> 

Accédez au courrier électronique de La Poste : www.laposte.net ; 
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)






More information about the PSTricks mailing list