# Is there any probability that PGFplots/TikZ interferes with the xymatrix (xy package)? [closed]

That's the question. In case the answer is true I'll post my problem (full with all the latex, etc.). The main problem is that if I use externalize from TikZ / PGFplots, pdflatex shows me a problem (which I think is) about `\xymatrix{}`. Is that possible?

What the hell have this packages in common?

Here's what I've found. I have a command defined

``````\newcommand{\compos}[7][|]{\ensuremath{\xymatrix{{#2} \ar@/_2pc/[rr]#1{#7}
\ar[r]^-{#3} & #4 \ar[r]^-{#5} & #6}}}
``````

which has 6 (and one optional) argument. If I put that code in the middle of the document (substituting the characters by what I want), there is no problem, but if I call that command by `\compos{blah}{blah}...{blah}` I get an error.

My preamble is this:

``````\documentclass{minimal}
\usepackage[all]{xy}
\usepackage{tikz}
\usepackage{pgfplots}
\usepgfplotslibrary{external}
``````

And the problem is exactly here:

``````\usepgfplotslibrary{external}
\tikzexternalize[prefix=figures/]{Minimal}
``````

If I comment that two lines, I get no errors.

-
Welcome to TeX.SX! Package conflicts can arise, unfortunately. But without a minimal example it's very difficult to say. – egreg Nov 7 '12 at 22:54
This doesn't help. Please, edit your question, instead of adding in the comments. That's not an example showing the problem, is it? – egreg Nov 7 '12 at 23:46
I know, sorry. But I was editing the question and forgot to delete the comment. – Manuel Nov 7 '12 at 23:49
Well I solved it. I found that `\usepgfplotslibrary{external}` technically does the same as `\usetikzlibrary{external}`. But it doesn't, if I write the second one I get no errors. I don't know :) Thanks. Should I answer correctly? Or edit the question? Or leave it? – Manuel Nov 7 '12 at 23:57
Well, okey. I understand this couldn't help so much as you said, it's too localized. I will try to help around the site (I discovered it 3 days ago). Thanks for the welcome! And as I've seen, a great, great community to help. Congratulations! – Manuel Nov 8 '12 at 0:13