# [Xy-pic] xy-pic : bug

Ross Moore ross.moore at mq.edu.au
Wed Apr 27 01:12:06 CEST 2011

Hello Matsaya,

On 25/04/2011, at 9:36 AM, Matsaya Vishnu wrote:

> Hello,
>
> Sorry to bother you with that, but I did not find another way to report this bug.

The Xy-pic mailing list is at   xy-pic at tug.org
You can subscribe through the webpage at:

http://tug.org/mailman/listinfo/xy-pic

> Indeed, there is a bug with colored and bended arrows, see the ECM.

No. Your example does not exhibit a bug.
Did you look at the Log messages that it produces ?

Xy-pic Warning: illegal [<shape>] ignored: shape [red] not defined [colouredarr
ows:11].

support for colour. This is because you also need to specify
which driver is being used to process the LaTeX job.

You should be able to test the following alternative drivers:

\usepackage[pdf,color,all]{xy}

using pdfLaTeX as the processor,  or

\usepackage[ps,dvips,color,all]{xy}

using TeX + dvi + Ghostscript  as the processing stream.

Now you should get the result shown in the 1st attached image,
in which only the straight part of your curved arrow is shown
in red color, as well as an arrowhead that does not face the
way you may want it to.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: texshop_image.jpeg
Type: image/jpeg
Size: 13821 bytes
Desc: not available
URL: <http://tug.org/pipermail/xy-pic/attachments/20110427/39d30aac/attachment-0002.jpeg>
-------------- next part --------------

The curved parts are font characters, and cannot easily
be coloured red this way.

The arrowhead can be turned, but it is rather tricky.
Here is one way to do it, using Xy-pic kernel coding.

\xymatrix{
A\ar@[red]r[d][rr][rr]
\save[rr];p,!D;**\dir{},p*[red]\dir{>}\restore
&B&C\\
D & E & F
}

-------------- next part --------------
A non-text attachment was scrubbed...
Name: texshop_image.jpeg
Type: image/jpeg
Size: 13272 bytes
Desc: not available
URL: <http://tug.org/pipermail/xy-pic/attachments/20110427/39d30aac/attachment-0003.jpeg>
-------------- next part --------------

There may be other ways to achieve this. You will need to
study examples in the Xy-pic Reference Manual, and develop
a fuller understanding of how Xy-pic works, in positionaing
and orienting individual pieces within a diagram.

>
> Thank you for all the work you have already done.
>
> Matsaya Vishnu

Hope this helps,

Ross Moore

>
>
> \documentclass{minimal}
> \usepackage{color}
> \usepackage[all]{xy}
> \begin{document}
> \xymatrix{
> 	A\ar@[red]r[d][rr][rr]&B&C\\
> 	D & E & F
> }
> \end{document}

------------------------------------------------------------------------
Ross Moore                                       ross.moore at mq.edu.au
Mathematics Department                           office: E7A-419
Macquarie University                             tel: +61 (0)2 9850 8955
Sydney, Australia  2109                          fax: +61 (0)2 9850 8114
------------------------------------------------------------------------