# Axis alignment in Xy-pic diagrams

.
Axis alignment in Xy-pic diagrams.
TUGboat 22 (2001), 330–334.

By default, Xy-pic aligns diagrams according to the center of each object. For many types of diagrams, such center alignment is the preferred choice; however, axis alignment is sometimes better. (In fact, simple TeX code like $A \to A^2$ uses axis alignment.) This article studies attempts to instruct Xy-pic to use axis alignment and presents a concise solution to the problem. Enhancements to Xy-pic are proposed.

## Notes:

• The software enhancement suggestions were addressed in the Xy-pic 3.8 release.
• The article should still be of interest for studying the finer points of mathematical typesetting in the context of diagram alignment; but, in reading the article, please remain aware that descriptions of default Xy-pic behavior refer to the older version of Xy-pic that was current at the time of publication.