How do I set the grayscale values for arrows in xypic?

You can use xcolor package which provides the gray color.

enter image description here


\[\xymatrix{\bullet \ar@[gray][r] & \bullet}\]

You have to specify the color model. You find the syntax in section 13 of the Xy-pic reference guide (texdoc xyrefer).


\newxycolor{testgray}{.5 gray}


\xymatrix{\bullet \ar@[testgray][r] & \bullet}


I added cmtip because my eyes bleed when I see the default arrow tips. Also align should never be used for simple equations not involving alignment (and \xymatrix alone doesn't count).

enter image description here



Xy Pic