Is there a way to color certain (but not all) arrows using \xymatrix
? I wish the following ignorant attempt would work!!
\usepackage{xypic,color}
\begin{document}
\[
\xymatrix
{
X\ar[r]\color{red}{\ar[d]} & Y\\
Z
}
\]
\end{document}
arrowscolorxy-pic
Is there a way to color certain (but not all) arrows using \xymatrix
? I wish the following ignorant attempt would work!!
\usepackage{xypic,color}
\begin{document}
\[
\xymatrix
{
X\ar[r]\color{red}{\ar[d]} & Y\\
Z
}
\]
\end{document}
Best Answer
Specify the
color
option to thexy
package. Then you could apply a color style by@[color]
.For example:
Note: load
xy
, notxypic
which produces at least a warning. To be able to provide options specifically for each package, write one\usepackage
for each package. Perhaps use the enhanced packagexcolor
instead ofcolor
.