[Xy-pic] Re: Environment form of Xy-pic (problem solved! ..for now)

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


It seems I did a lot of copying and pasting when trying to get this to
work, since the following already does the job (just eliminate some
spurious &)

\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