Xy-pic User's Guide: Next: 1.4 Labels. Up: 1 Basics. Previous: 1.2 Entries.

1.3 Arrows

An `arrow' in an Xy-pic diagram is a generic term for the drawn decorations that are added to the basic matrix structure. In Xy-pic all arrows must be specified along with the entry they start in; this is called their base entry. Each particular arrow command then refers explicitly to its target entry.

All arrows are obtained through the \ar command which takes many options of which we will describe a few here and some more in section 2. In its simplest form an arrow is entered as \ar[hop] where hop is a sequence of single letters: u for up, d for down, l for left, and r for right, e.g., the arrow \ar[ur] reads `typeset an arrow from the current entry to that one up and one right'.

 

Exercise 1.

Which entry does [] refer to?

Answer.

The relative coordinates specified in this way are purely logical, e.g., if the diagram contains very wide entries then the arrows will be nearly horizontal. The constructed arrows are aligned along the line between the centers of the base and target entries; they will not automatically disappear under entries that they cross (we discuss how this is achieved in section 2.7).

The arrow style kan be changed by writing the command as \ar@style[hop]. This will be described in more detail in section 2.3; here we just list the most common @styles (most obvious variations also work):

 

Exercise 2.

Typeset

Answer.


Xy-pic User's Guide: Next: 1.4 Labels. Up: 1 Basics. Previous: 1.2 Entries.



© Kristoffer Høgsbro Rose <kris@diku.dk> / October 18, 1995.