# Problem with \xymatrix in svjour3 [closed]

I attempt to compile the following

\newcommand{\arb}[1]{\ar@<-.15ex>[#1]\ar@<.15ex>[#1]\ar@<-.075ex>[#1]\ar@<.075ex>[#1]\ar[#1]}
$\xymatrix{ & \arb{rr}^<<<<{}="1"^g & & \arb{dr}_<<<<{}="5"^f &\\ \arb{ur}^h \ar[rr]^>>>>>>{}="2"_>>>>>>{}="3"^k \arb{dr}_c &\ar[ur]^d\ar[dr]_e & &\\ & \arb{rr}^<<<<{}="4"_b & &\arb{ur}^<<<<{}="6"_a & \ar@{=>}"1";"2"^{T} \ar@{=>}"3";"4"^{V} \ar@/_.6pc/@{=>}"5";"6"^{U} } \;\qquad \xymatrix{ &\arb{rr}^>>>>>>{}="1"^g\ar[dr] & & \arb{dr}^f &\\ \arb{ur}_>>>>{}="5"^h \arb{dr}^>>>>{}="6"_c & &\ar[rr]^<<<<{}="2"_<<<<{}="3"& &\\ & \arb{rr}^>>>>>>{}="4"_b \ar[ur]& &\arb{ur}_a & \ar@{=>}"1";"2"^{A} \ar@{=>}"3";"4"^{C} \ar@/^.6pc/@{=>}"5";"6"^{B}}$


and I get the error

[2][3]<xymatrix
!Missing $inserted. <inserted text>$
l.157 }


When I hit "go to error" the space \;\qquad is highlighted. I'm using the header

\documentclass[draft]{svjour3}
\usepackage{amscd,amssymb} %amsxtra,amsmath}
\usepackage[pdftex]{hyperref}
\usepackage{natbib}
\input xy
\xyoption{all}
\usepackage[v2,cmtip]{xy}


-
Welcome to TeX.sx! “Go to error” might be misleading. It's rather pointing on your first xymatrix usage (something in there is wrong). Why do you use \input xy and \usepackage{xy}? –  Qrrbrbirlbel Oct 17 '12 at 3:25
Thanks for the welcome! The question about \input xy vs. \usepackage{xy} is interesting, though commenting out the latter doesn't affect the error message described above. –  Justin Oct 17 '12 at 3:28
It has something to do with svjour3, but I don't know what. –  Justin Oct 17 '12 at 3:29
That's odd. I've not gotten that error for this block. –  Justin Oct 17 '12 at 3:31
Closed as too localized, as it was a hidden problem with the table of contents (tex.stackexchange.com/questions/77973/…). –  Stefan Kottwitz Oct 17 '12 at 10:06

## closed as too localized by Stefan Kottwitz♦Oct 17 '12 at 10:06

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

Processing your example (I don't have the svjour3 class, so I used article) code one gets the error message

 ! Xy-pic error: in entry "1,4": No [dr] (is "2,5") from here.
\xyerror@ ...#2}\fi \errmessage {Xy-pic error: #1}


which indicates the problem; on entry 1.4 you declared an arrow going down and to the right (to entry 2.5), and no entry 2.5 exists. Adding an extra & character to the second row solves the problem :

\documentclass{article}
\usepackage{amscd,amssymb} %amsxtra,amsmath}
\usepackage[pdftex]{hyperref}
\usepackage{natbib}
\usepackage[all,v2,cmtip]{xy}
\begin{document}

\newcommand{\arb}[1]{\ar@<-.15ex>[#1]\ar@<.15ex>[#1]\ar@<-.075ex>[#1]\ar@<.075ex>[#1]\ar[#1]}
$\xymatrix{ & \arb{rr}^<<<<{}="1"^g & & \arb{dr}_<<<<{}="5"^f &\\ \arb{ur}^h \ar[rr]^>>>>>>{}="2"_>>>>>>{}="3"^k \arb{dr}_c & &\ar[ur]^d\ar[dr]_e & & \\ & \arb{rr}^<<<<{}="4"_b & &\arb{ur}^<<<<{}="6"_a & \ar@{=>}"1";"2"^{T} \ar@{=>}"3";"4"^{V} \ar@/_.6pc/@{=>}"5";"6"^{U} } \;\qquad \xymatrix{ &\arb{rr}^>>>>>>{}="1"^g\ar[dr] & & \arb{dr}^f &\\ \arb{ur}_>>>>{}="5"^h \arb{dr}^>>>>{}="6"_c & &\ar[rr]^<<<<{}="2"_<<<<{}="3"& &\\ & \arb{rr}^>>>>>>{}="4"_b \ar[ur]& &\arb{ur}_a & \ar@{=>}"1";"2"^{A} \ar@{=>}"3";"4"^{C} \ar@/^.6pc/@{=>}"5";"6"^{B}}$
\end{document}


-
I copied that modified code into the original tex file and attempted to compile, and I got the same error I mentioned above. I'm not getting any error about a vacuous cell in the matrix, and it runs fine if I use article document class. The problem only originated when I attempted it in svjour3. –  Justin Oct 17 '12 at 5:48
Actually the first time it compiles there are no problems, and then only on the second compile does it give that error. –  Justin Oct 17 '12 at 6:24