[Xy-pic] Compilation error:

Lars Peter Cleary lc at publius.ch
Wed Dec 12 12:20:53 CET 2007


Hi all

I have some trouble compiling this bit of added code (without it it works):

\xymatrix{
 & & & & & & & {\circ} \ar@{-}[dl]_\frac{1}{2} \ar@{-}[dr]^\frac{1}{2}
& & & & & & & \\
 & & & *+[F]\txt{L1} \ar@{-}[dl]_\frac{1}{2} \ar@{-}[dr]^\frac{1}{2} &
& & & & & & & *+[F]\txt{L2} \ar@{-}[dl]_\frac{1}{4}
\ar@{-}[dr]^\frac{3}{4} & & & \\
 & & *+[o][F-]\txt{G} \ar@{-}[dl]_1 \ar@{-}[dr]^1 & & *+[o][F-]\txt{V}
\ar@{-}[dl]_1 \ar@{-}[dr]^1 & & & & & &
 *+[o][F-]\txt{G} \ar@{-}[dl]_1 \ar@{-}[dr]^1 & & *+[o][F-]\txt{V}
\ar@{-}[dl]_1 \ar@{-}[dr]^1 & & \\ & *+[F]\txt{L1}
\ar@{-}[dl]_\frac{1}{2} \ar@{-}[dr]^\frac{1}{2} & & & &
 *+[F]\txt{L2} \ar@{-}[dl]_\frac{1}{4} \ar@{-}[dr]^\frac{3}{4} & & &
*+[F]\txt{L2} \ar@{-}[dl]_\frac{1}{4}
 \ar@{-}[dr]^\frac{3}{4} & & & & *+[F]\txt{L1} \ar@{-}[dl]_\frac{1}{2}
\ar@{-}[dr]^\frac{1}{2} & \\
*+[o][F-]\txt{G} & & *+[o][F-]\txt{V} & & *+[o][F-]\txt{G} &
*+[o][F-]\txt{V} & & *+[o][F-]\txt{G} & & *+[o][F-]\txt{V}
& & *+[o][F-]\txt{G} & & *+[o][F-]\txt{V}
}

The error messages I get from the console:
Argument of \frac has an extra }. } (followed by: )
Paragraph ended before \frac was complete. } (followed by: )

The lines indicated are the ones of the last bracket closing '\xymatrix{}'.



I tried omitting the fractions, then it compiles (some formatting
corrections are needed though, I'll sort that later.).



Does anybody see an obvious error in my code?

Thanks and kind regards
Lars


More information about the xy-pic mailing list