[Xy-pic] color support for xypdf with latex?

Daniel Müllner nospamplease at stanford.edu
Sun Mar 6 20:35:48 CET 2011


Hi Leslie,

Solution 1: Write the color definition within the document text, not the 
preamble.

\documentclass{article}
\usepackage{xy}
\xyoption{pdf}
\xyoption{color}
\begin{document}
\newxycolor{lightgrey}{.33 gray}
\xy
*[lightgrey]\hbox{Grey}
\endxy
\end{document}

Solution 2: Use the color/xcolor package.

\documentclass{article}
\usepackage{xcolor}
\usepackage{xy}
\xyoption{pdf}
\xyoption{color}
\definecolor{lightgrey}{gray}{.33}
\begin{document}
\xy
*[lightgrey]\hbox{Grey}
\endxy
\end{document}

Nevertheless, your problem should not have occurred. I will correct the 
bug and publish an updated version of xypdf soon.

Best, Daniel


More information about the xy-pic mailing list