From: MJD@MATH.AMS.ORG (AMS Technical Support)
Newsgroups: comp.text.tex
Subject: Re:  [zusman%bimacs.BITNET@uu.psi.com (Paul Zusmanovich): Help with
Date: 10 Nov 92 17:58:31 GMT
Organization: Info-Tex<==>Comp.Text.Tex Gateway
X-Gateway-Source-Info: Mailing List

[ in reply to ]
zusman%bimacs.BITNET@uu.psi.com (Paul Zusmanovich)
> Paul Zusmanovich
> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
> S-mail:                            e-mail:
> Department of Mathematics          zusman@bimacs.cs.biu.ac.il  (Internet)
> Bar-Ilan University                zusman@bimacs.bitnet        (Bitnet)
> Ramat-Gan 52900
> Israel                             FAX: +972-3-5353325
> =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=

Dear Professor Zusmanovich:

This is in reply to your post of 28 Oct 1992 to comp.text.tex:

> I'm using ams-TeX, Version 2.1 running on SunOS UNIX. I know perfectly
> well how to draw a commutative diagram of the shape
>
>          * --> *
>          |     |
>          V     V
>          * --> *
>
> using \CD in math-mode. But drawing a diagram of the following shape:
>
>          * --> * --> *
>          |           |
>          V           V
>          * --------> *
>
> seems to me as an unsolvable problem.
>
> Any comments, suggestions,... would be greatly appreciated.

Try the test document appended below. One method involves knowing that
it is possible to nest a CD inside another CD (if you enclose it in
braces). The other method involves knowing that the underlying
structure beneath \CD is just a matrix, and that the plain TeX
commands \multispan and \rightarrowfill can be put to good use here.

But better yet, try getting the XYPic package. It is probably
available at ftp.uni-stuttgart.de but I don't know what subdirectory.
The description below that I happened to have at hand was from the
archive niord.shsu.edu at Sam Houston State University (Texas, USA).

                                  XYPIC
                                  -----
XYPIC includes the files for Kristoffer H. Rose's <kris@diku.dk> June
24, 1992 release (Version 2.6) of XY-pic.  XY-pic is a macro package for
AMS-TeX, plain TeX, LaTeX, and AMS-LaTeX for typesetting diagrams with the
following characteristics:
 -- Specified as a matrix of entries aligned in rows and columns.
 -- Any entry may be connected to any other entry using arrows that are
    automatically rotated and stretched as required to meet their target;
    a variety of arrow styles may be used.
 -- Arrows may be decorated with labels that are `tied` to a specified
    point of the arrow independent of its direction.
 -- Special support for arrows that cross each other, arrows that `go by'
    other entries, combined arrows, and arrows that bend around other
    entries.
 -- Support for entries and arrows that are independent of the matrix
    structure.

To retrieve the package of 17 files distributed in 20 parts, include:
 SENDME XYPIC
in the body of a mail message to FILESERV@SHSU.BITNET (FILESERV@SHSU.edu).
To retrieve a specific file from this package, such as XYPIC.XYPIC_STY
include:
 SENDME XYPIC.XYPIC_STY
in your mail message to FILESERV.  A ZIP file, XYPIC-2_6.ZIP, is available
for anonymous ftp retrieval in the [.XYPIC] directory on Niord.SHSU.edu
(192.92.115.8).

Files in this package: (1 Block = 512 bytes)
File                  Blocks  Save file as:
-------------------------------------------------------------------------------
XYPIC.COPYING             37  COPYING
XYPIC.INSTALL              8  INSTALL
XYPIC.MAKEFILE            13  Makefile
XYPIC.README              12  README
XYPIC.TRAILER              5  TRAILER
XYPIC.XYAMSTEX_DOC         6  xyamstex.doc
XYPIC.XYATIP10_MF          7  xyatip10.mf
XYPIC.XYBTIP10_MF          7  xybtip10.mf
XYPIC.XYLINE10_MF          8  xyline10.mf
XYPIC.XYMISC10_MF         10  xymisc10.mf
XYPIC.XYPICMAN_BIB        15  xypicman.bib
XYPIC.XYPICMAN_BST        36  xypicman.bst
XYPIC.XYPICMAN_DEF        32  xypicman.def
XYPIC.XYPICMAN_DOC_1OF2   79  xypicman.doc
XYPIC.XYPICMAN_DOC_2OF2   12  xypicman.doc
XYPIC.XYPIC_DOC_1OF3      79  xypic.doc
XYPIC.XYPIC_DOC_2OF3      77  xypic.doc
XYPIC.XYPIC_DOC_3OF3      10  xypic.doc
XYPIC.XYPIC_STY            2  xypic.sty
XYPIC.XYQC10_MF            7  xyqc10.mf

> I'm relatively new user both of TeX and of usenet, so forgive me if
> my question is FAQ, or this is not a right place to ask, etc...

E-mail to tech-support@math.ams.org is usually a good way to get
answers for AMSTeX questions. Let me mention that this address is
found in all the users guides for AMSTeX, AMSFonts, AMSLaTeX, etc. so
that readers who have one of those needn't go to great lengths to
save a copy of this message or write down that address in marking
pen on their wrist.

Michael Downes
Technical Support Department
American Mathematical Society
Internet: tech-support@math.ams.org
800-321-4AMS extension 4080
401-455-4080

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentstyle{amsppt}

\document
Test of commutative diagram with one arrow spanning an extra column.
First with nested CD (see `The Joy of TeX' (look up `commutative
diagrams' in the index)).
$$
\define\arrowstretch{\pretend{}\haswidth{\CD @>>> B @>>> \endCD}}
\CD
A &{\CD @>>> B @>>> \endCD}& C\\
@VVV    @VVV\\
D @>\arrowstretch>> E
\endCD
$$
And now again with the plain TeX commands multispan and
rightarrowfill. (See `The TeXbook'.)
$$\CD
A @>>> B @>>> C\\
@VVV   @.     @VVV\\
D&\multispan{3}\;\rightarrowfill\;&E
\endCD
$$

\enddocument
Newsgroups: comp.text.tex