[Xy-pic] color in xymatrix diagram spreads throughout document
Ross Moore
ross.moore at mq.edu.au
Sun Oct 10 07:44:50 CEST 2010
Hello John,
On 10/10/2010, at 6:29 AM, John G. Bullock wrote:
> Hello,
>
> I am trying to color arrows in a diagram that I construct with Xy-pic v3.82 and pdflatex v1.40.4. I find that coloring curved arrows also colors every subsequent object in my diagram -- and most subsequent parts of my document to boot. I've looked for solutions in the Xy-pic documentation, but I haven't found any. Can someone point me to what I'm doing wrong?
There is definitely a bug here, which need exploration.
You coding:
>
> Here is a minimal example:
>
> \documentclass{article}
> \usepackage{color}
> \usepackage[all]{xy}
> \begin{document}
> \xymatrix{
> X \ar@[red][r] & M\\
> X \ar@[red]@/^/[r] & M\\
> X \ar[r] & M
> }
> \end{document}
... works fine with the previous version of Xy-pic,
*provided* you specify:
\usepackage[pdftex,all]{xy}
or
\usepackage[dvips,all]{xy} and use DVIPS + Ghostscript
>>> viz.
>>> Xy-pic version 3.7 <1999/02/16>
>>> Copyright (c) 1991-1998 by Kristoffer H. Rose <krisrose at ens-lyon.fr>
>>> Xy-pic is free software: see the User's Guide for details.
>>>
>>> Loading kernel: messages; fonts;pdflatex(6159) malloc: *** error for object 0x108f271: pointer being freed was not allocated
>>> *** set a breakpoint in malloc_error_break to debug
>>> allocations: state, direction,
>>> utility macros; pictures: \xy, positions, objects, decorations;
>>> kernel objects: directionals, circles, text; options; algorithms: directions,
>>> edges, connections; Xy-pic loaded)
>>> (/Users/rossmoor/Library/texmf/tex/generic/xypic/xypdftex.tex
>>> Xy-pic option: pdf-TeX driver v.3.8 loaded)
>>> (/usr/local/texlive/2007/texmf-dist/tex/generic/xypic/xyall.tex
>>> Xy-pic option: All features v.3.3
>>> (/usr/local/texlive/2007/texmf-dist/tex/generic/xypic/xycurve.tex
>>> Xy-pic option: Curve and Spline extension v.3.7 curve, circles, loaded)
>>> (/usr/local/texlive/2007/texmf-dist/tex/generic/xypic/xyframe.tex
>>> Xy-pic option: Frame and Bracket extension v.3.7 loaded)
>>> (/usr/local/texlive/2007/texmf-dist/tex/generic/xypic/xycmtip.tex
>>> Xy-pic option: Computer Modern tip extension v.3.3
>>> (/usr/local/texlive/2007/texmf-dist/tex/generic/xypic/xytips.tex
>>> Xy-pic option: More Tips extension v.3.3 loaded) loaded)
>>> (/usr/local/texlive/2007/texmf-dist/tex/generic/xypic/xyline.tex
>>> Xy-pic option: Line styles extension v.3.6 loaded)
>>> (/usr/local/texlive/2007/texmf-dist/tex/generic/xypic/xyrotate.tex
>>> Xy-pic option: Rotate and Scale extension v.3.3 loaded)
>>> (/usr/local/texlive/2007/texmf-dist/tex/generic/xypic/xycolor.tex
>>> Xy-pic option: Colour extension v.3.3 loaded)
>>> (/usr/local/texlive/2007/texmf-dist/tex/generic/xypic/xymatrix.tex
>>> Xy-pic option: Matrix feature v.3.4 loaded)
>>> (/usr/local/texlive/2007/texmf-dist/tex/generic/xypic/xyarrow.tex
>>> Xy-pic option: Arrow and Path feature v.3.5 path, \ar, loaded)
>>> (/usr/local/texlive/2007/texmf-dist/tex/generic/xypic/xygraph.tex
>>> Xy-pic option: Graph feature v.3.7 loaded) loaded))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: texshop_image.jpeg
Type: image/jpeg
Size: 17619 bytes
Desc: not available
URL: <http://tug.org/pipermail/xy-pic/attachments/20101010/2da0ce7e/attachment-0002.jpeg>
-------------- next part --------------
But it does not work properly with TeXLive 2010 "out of the box";
viz.
>>> Xy-pic version 3.8.2 <2010/06/17>
>>> Copyright (c) 1991-2010 by Kristoffer H. Rose <krisrose at tug.org>
>>> Xy-pic is free software: see the User's Guide for details.
>>>
>>> Loading kernel: messages; fonts; allocations: state, direction,
>>> utility macros; pictures: \xy, positions, objects, decorations;
>>> kernel objects: directionals, circles, text; options; algorithms: directions,
>>> edges, connections; Xy-pic loaded)
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xyall.tex
>>> Xy-pic option: All features v.3.6
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xycurve.tex
>>> Xy-pic option: Curve and Spline extension v.3.11 curve, circles, loaded)
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xyframe.tex
>>> Xy-pic option: Frame and Bracket extension v.3.11 loaded)
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xycmtip.tex
>>> Xy-pic option: Computer Modern tip extension v.3.5
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xytips.tex
>>> Xy-pic option: More Tips extension v.3.7 loaded) loaded)
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xyline.tex
>>> Xy-pic option: Line styles extension v.3.9 loaded)
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xyrotate.tex
>>> Xy-pic option: Rotate and Scale extension v.3.7 loaded)
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xycolor.tex
>>> Xy-pic option: Colour extension v.3.10 loaded)
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xymatrix.tex
>>> Xy-pic option: Matrix feature v.3.8 loaded)
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xyarrow.tex
>>> Xy-pic option: Arrow and Path feature v.3.7 path, \ar, loaded)
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xygraph.tex
>>> Xy-pic option: Graph feature v.3.9 loaded) loaded)
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xypdf.tex
>>> Xy-pic option: PDF driver v.1.4 Xy-pic pdf driver: `color' extension support
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xypdf-co.tex loaded)
>>> Xy-pic pdf driver: `curve' extension support
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xypdf-cu.tex loaded)
>>> Xy-pic pdf driver: `frame' extension support
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xypdf-fr.tex loaded)
>>> Xy-pic pdf driver: `line' extension support
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xypdf-li.tex loaded)
>>> Xy-pic pdf driver: `rotate' extension support
>>> (/usr/local/texlive/2010/texmf-dist/tex/generic/xypic/xypdf-ro.tex loaded)
>>> loaded)) (./xy38colorbug.aux)
>>> (/usr/local/texlive/2010/texmf-dist/tex/context/base/supp-pdf.mkii
>>> [Loading MPS to PDF converter (version 2006.09.02).]
>>> ) <xymatrix 2x3 135> [1
>>>
>>> pdfTeX warning: /usr/texbin-2010/pdflatex: pop empty color page stack 0
>>>
>>>
>>> pdfTeX warning: /usr/texbin-2010/pdflatex: pop empty color page stack 0
>>>
>>>
>>> pdfTeX warning: /usr/texbin-2010/pdflatex: pop empty color page stack 0
Note those color-stack warnings that occur.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: texshop_image.jpeg
Type: image/jpeg
Size: 18055 bytes
Desc: not available
URL: <http://tug.org/pipermail/xy-pic/attachments/20101010/2da0ce7e/attachment-0003.jpeg>
-------------- next part --------------
>
> I want nothing to be red except the arrows in the first two lines of
> the diagram. The first line renders as expected: only the arrow is
> red. In the second line, the arrow is curved and red as expected, but
> M is also red. And in the third line, everything is red.
Thanks for reporting this.
We will have a good look at what is going wrong here.
>
> Thank you,
> John
All the best,
Ross
------------------------------------------------------------------------
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
------------------------------------------------------------------------
More information about the xy-pic
mailing list