[pstricks] color string

Herbert Voss LaTeX at zedat.fu-berlin.de
Sun Feb 18 09:27:15 CET 2007


caapv 208 schrieb:
> With the code below, the first occurrence of \psfillcolor
> prints "white", while the second prints "gray 1":
>
>  \documentclass{article}
>  \usepackage{pstricks}
>  \begin{document}
>  \psfillcolor
>  \psset{fillcolor=white}
>  \psfillcolor
>  \end{document}
>
> On the other hand, with the code below, they both prints
> "white":
>
>  \documentclass[noxcolor]{article}
>  \usepackage{pstricks}
>  \begin{document}
>  \psfillcolor
>  \psset{fillcolor=white}
>  \psfillcolor
>  \end{document}
>
> Is there a way to obtain the current fill color in a
> consistent format (either "white" or "gray 1" is OK),
> which can be used regardless of the package option to
> pstricks?
http://perce.de/LaTeX/pstricks/latex/pstricks.sty is a version
that has
"gray 1" -> \usepackage{pstricks}
"white" -> \usepackage[noxcolor]{pstricks}
"white" -> \usepackage[plain]{pstricks}

Herbert



More information about the PSTricks mailing list