The position of the text label, at marked-point number 4, could be adjusted by choosing a different set of XY-pic modifiers for the expansion of the macro \labeltextmodifiers. This works when there is just a single label to fine-tune, but is no good when there is more than one, that need to be adjusted in different ways.
To achieve specialised adjustments, all of the commands introduced so far have an extra argument for specifying XY-pic modifiers. This argument comes immediately after the command-name, but before the opening brace; e.g.
The above example shows how this could be done. The source code is as follows. Note how three of the math labels are positioned with explicit XY-pic modifiers, while the others use \labelmathmodifiers. The single text label is also positioned explicitly, to good effect, so there is no need for \labeltextmodifiers.
\WARMprocessEPS{Fig5.4.1}{eps}{bb}
\renewcommand{\labelmathmodifiers}{+!D}
\renewcommand{\labelmathstyle}{\scriptstyle}
\renewcommand{\labeltextstyle}{\footnotesize}
\begin{xy}
\xyMarkedImport{}
\xyMarkedMathPoints ++!D!L(.1){2}
\xyMarkedMathPoints +!D!L(.3){5}
\xyMarkedMathPoints ++!D{6}
\xyMarkedMathExcept{2,4-6}
\xyMarkedTxtPoints ++!D!L(.2){4}
\end{xy}
Recall the effect of the XY-pic modifiers, e.g. +!D!L(.3).
Firstly TEX sets an \hbox containing the typeset label.
Usually this box is centered, so that if there were no
<modifier>s the center of the label would be anchored at the marked point.
The modifier + adds a small margin, increasing the size of the box
both vertically and horizontally.
Next the !D shifts the reference point
(
own) within the box to the bottom edge;
with no further modifiers, the label now appears entirely above
the position of the marked point, with the bottom edge occuring the width of the
margin away from it.
Finally the !L(.3) nudges the reference point
towards the
efthand edge,
by an amount .3 of the distance to it,
so that now more of the label appears on the righthand side of the marked point.
Note that nudging using !D, !L, !R
and !U (
p), has the effect of
shifting the label in the opposite direction to the specified nudge.
Numerical <factor>s, such as (.3), are optional;
if omitted, the reference point is moved all the way to the specified edge.
(Refer to the XY-pic Reference Manual [6],
for details of the XY-pic language for structured diagrams.)