[Xy-pic] Using macros in xymatrix

Andrew Clegg andrew.clegg at gmail.com
Sat Jul 28 04:15:22 CEST 2007


Sorry, I should have said in those last mails -- \xmpl is just an
alias for \textsl and \vdu is an alias for \texttt -- that wouldn't
cause a problem would it?

Andrew.

On 7/28/07, Andrew Clegg <andrew.clegg at gmail.com> wrote:
> On 7/28/07, Ross Moore <ross at ics.mq.edu.au> wrote:
> >
> > Simply extend your \arr  macro above to a variant having a 2nd argument:
> >
> >      \newcommand{\arrlab}[2]{\ar@*{[|(2)]}[#1]|+[F]\txt{\tt #2}}
> >
> > Use it, for the above examples, as:
> >
> >          \lab{foo} \arr{r}
> >          \arrlab{r}{bar}
>
> Err, this doesn't quite work, sorry :-)
>
> It compiles, the lines are right, but I only get a plus symbol in each
> label (and no frame).
>
> Example:
>
> \xymatrix at +0.5cm{
> & & *+\txt{\vdu{VBD} \xmpl{saw}} \arrlab{dl}{nsubj} \arrlab{dr}{dobj} & & \\
> & *+\txt{\vdu{NN} \xmpl{man}} \arrlab{dl}{det} & &  *+\txt{\vdu{NN}
> \xmpl{dog}} \arrlab{dr}{det} & \\
> *+\txt{\vdu{DT} \xmpl{the}} & & & & *+\txt{\vdu{DT} \xmpl{the}}
> }
>
> Unless I'm using an out of date version or something? It's 3.7.
>
> Cheers,
>
> Andrew.
>


More information about the xy-pic mailing list