[pstricks] Transparent color

Arnaud Schmittbuhl aschmittbuhl at libertysurf.fr
Tue Oct 31 20:38:44 CET 2006


Le Tue, 31 Oct 2006 19:01:27 +0100,
Rafael Castro Triguero <me1catrr at uco.es> a écrit :

> Hello PSTricks users,
> 
> I would like to know why I get this error when I am trying to use 
> \psset{fillstyle=transparent,linestyle=none} like in the example of 
> Pstricks web site
> 
> Undefined fillstyle: 'transparent'

You should update pstricks-add. It is working here with 

 *File List*
 article.cls    2004/02/16 v1.4f Standard LaTeX document class
  size10.clo    2004/02/16 v1.4f Standard LaTeX file (size option)
pstricks-add.sty    2005/03/03 package wrapper for pstricks-add.tex (hv)
pstricks.sty    2005/10/07 v0.25 LaTeX wrapper for `PSTricks' (RN,HV)
pstricks.tex    2005/10/25 v1.12 `PSTricks' (tvz)
  xcolor.sty    2005/10/15 v2.06 LaTeX color extensions (UK)
   color.cfg    2001/08/31 v1.1 color configuration of teTeX/TeXLive
   dvips.def    1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
pstricks-add.tex    2006/09/23 v2.79 `PSTricks-add' (hv)
pst-xkey.tex    2005/02/22 v1.5 PSTricks specialization of xkeyval (HA)
 xkeyval.sty    2005/11/25 v2.5e package option processing (HA)
 xkeyval.tex    2005/08/12 v2.5d key=value parser (HA)

\listfiles
\documentclass{article}
\usepackage{pstricks-add}
\begin{document}
\begin{figure}[h]
\centering \psset{yunit=0.5,fillstyle=transparent}
\begin{pspicture}(-2,0)(2,9)
\pspolygon[fillcolor=blue](-3,0)(-3,7)(3,7)(3,0) 
\pspolygon[fillcolor=brown](-3,7)(-3,9)(3,9)(3,7)
\psline[linewidth=2pt](-4,0)(4,0) \psline(-3,4)(3,4) 
\psline[linewidth=0.5pt](-3,7)(3,7) \psline(-3,9)(3,9)
\psline(-3,0)(-3,9) \psline(3,0)(3,9)
\end{pspicture}
\end{figure}
\end{document}


-- 
Arnaud Schmittbuhl
Montpellier, France




More information about the PSTricks mailing list