[Xy-pic] Re: Environment form of Xy-pic

Rafael Villarroel rvf_lists at fastmail.fm
Fri Jun 4 19:52:48 CEST 2004


Ross Moore <ross at ics.mq.edu.au> writes:

> On 03/06/2004, at 6:33 AM, Rafael Villarroel wrote:
>>
>> I want to do some macros for big commutative diagrams (with more than
>> 9 arguments),
>>

[snip.]

>
> How do you intend to use this ?
> As a sub-part of a larger diagram ?
>
> In this case, you probably need to use the \xybox command;
> viz.

[snip.]

Hello Ross, thanks a lot for your answer!

I did a little more reading of the manuals and I came up with this, I
think it will be clear what I want to achive, but I still have the
problem that the arrows from the front face to the back are
displaced. :(


\documentclass{article}

\usepackage[matrix,arrow]{xy}

\newcommand{\cubeauxone}[8]{\POS+(15,15)%
  \xymatrix"b"{  & & {#1}\ar[r]^-{{#2}}\ar[d]_-{#8} &{#3}\ar[d]^-{{#4}}\\
    & & {#7}\ar[r]^-{{#6}}& {#5}}\cubeauxtwo}
\newcommand{\cubeauxtwo}[4]{%
  \xymatrix{\ar["f"];["b"]^{#1} &\ar["f"];["b"]^{#2}\\
  \ar["f"];["b"]^{#3} &\ar["f"];["b"]^{#4}}
  \endxy}
\newcommand{\cubicaldiag}[8]{%
  \xy\xymatrix"f"{  & & {#1}\ar[r]^-{{#2}}\ar[d]_-{#8} &{#3}\ar[d]^-{{#4}}\\
    & & {#7}\ar[r]^-{{#6}}& {#5}}\cubeauxone}

\begin{document}

\begin{equation}
  \label{eq:3}
  \cubicaldiag{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}{11}{12}{13}{14}{15}{16}{17}%
  {18}{19}{20}
\end{equation}

\end{document}



More information about the xy-pic mailing list