[Xy-pic] Using macros in xymatrix
Andrew Clegg
andrew.clegg at gmail.com
Sat Jul 28 04:03:42 CEST 2007
On 7/28/07, Ross Moore <ross at ics.mq.edu.au> wrote:
> >
> > \newcommand{\lab}[1]{*+[F]\txt{\tt #1}}
>
> This cannot work, as it does not turn on Xy-pic parsing.
> The * is a shorthand for \drop , within an Xy-pic parsing context,
> so you need to define this macro as either:
>
> \newcommand{\lab}[1]{\drop+[F]\txt{\tt #1}}
Umm... Neither of these work. They cause an error like this:
[25] [26] [27] <xymatrix
! Illegal parameter number in definition of \lastprentry@@.
<to be read again>
1
l.293 }
The table causing the error looks like this:
xymatrix{
& & & & & \lab{Os} \ar@{-}`l[ldd][ldd] \ar@{-}`r[rrdd][rrdd] & & \\
& \lab{Ds} \ar@{-}`l[ld][ld] \ar@{-}`r[rd][rd] & & \lab{Ss}
\ar@{-}`l[ld][ld] \ar@{-}`r[rd][rd] & & & \lab{Ds} \ar@{-}`l[ld][ld]
\ar@{-}`r[rd][rd] & \\
\xmpl{the} & & \xmpl{man.n} & & \xmpl{saw.v} & \xmpl{the} & & \xmpl{dog} \\
}
This doesn't contain any of the other macros (and I've commented them
out for now) so I know it's not one of them causing it... Any ideas?
Thanks for your input! You're one of the developers right? Nice one
for putting such a powerful package together.
Andrew.
More information about the xy-pic
mailing list