[pstricks] pstricks and color revisited (with xypic)

Jonny Smith joesm77 at gmail.com
Fri Jan 4 17:01:01 CET 2008


Hi,

I'm trying to combine the packages xypic, color, and lately pst-grad. Why?
I've already designed fairly complex posters with xypic and color but have
been recommended by one of the maintainers of xypic to include pstricks to
achieve my design goals. Redrawing all my posters with pstricks only is not
an option for me since too time-intense and such...

So I started off fooling around and figured there is a package clash with
the color option of xypic and pstricks. Also color and pstricks apparently
do not work together which has been discussed for example at

http://tug.org/mailman/htdig/pstricks/2005/003350.html

as well as in the README file of the pstricks package:

      a - To use the standard `color' or `xcolor' package with PSTricks, you
must load the `pstricks.sty' package, which interface the two packages,
loading them in the right order, and overriding some small parts of
PSTricks to allow it to use the `color' or `xcolor' package system for
specifying color. We STRONGLY recommend that you use this way today.
pstricks.sty loads by default the xcolor package, but there is an option
"noxcolor". If you are a LaTeX user then load _always_ first the
pstricks.sty package.

      b - Don't try to load the `color' or `xcolor' package if you use
`pstricks.sty' or `pst-all' (it is already loaded in the correct order).

I'm not sure if I understood this right so I did

\documentclass{minimal}

\usepackage{pstricks}
\usepackage{pst-grad}
\usepackage[usenames]{color}
\usepackage[dvips,all,color]{xy}

\definecolor{Ofont}{rgb}{0,0,0.8}

\begin{document}

\newxyColor{lightblue}{0.8 0.85 1}{rgb}{}

\psset{linestyle=none,fillstyle=gradient,gradmidpoint=0,gradend=yellow!40}

\centering
\xy (0,-20)*+<1.5pt>[<40pt>]{
        \begin{pspicture}(-2.5,-1.25)(2.5,1.25)
          \psellipse[gradbegin=blue!40,GradientScale=2](2.5,1.25)
        \end{pspicture}
        \begin{pspicture}(3,4)

\pspolygon[gradbegin=black,GradientPos={(-1,1)},GradientScale=2](0,0)(1,3)(3,2)(
1.5,2)(2,0.5)
        \end{pspicture}
};
(0,-30)*++[F**:lightblue:<10pt>]{
{\color{Ofont}
        - X   & = & Y
}
};
\endxy

\end{document}

which doesn't seem to be right.

Do you know what's wrong?

Thanks,

Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20080104/7a387559/attachment.html 


More information about the PSTricks mailing list