<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">
<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos ([email protected]), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>2.1 Explicit label positioning</TITLE>
<META NAME="description" CONTENT="2.1 Explicit label positioning">
<META NAME="keywords" CONTENT="xyguide-html">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<LINK REL=STYLESHEET HREF="xyguide-html.css">
</HEAD>
<BODY LANG="EN" BGCOLOR="#FFFFFF">
<P ALIGN=RIGHT><FONT SIZE=1>Xy-pic User's Guide</FONT> <A HREF="18pt.html"><IMG SRC="./quest.gif" ALIGN=TOP HEIGHT=27 WIDTH=21 BORDER=0 ALT="?"></A><A NAME="arrowsplaces" NAME="tex2html207" HREF="node11.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="previous" SRC="./previous.gif"></A><A NAME="tex2html211" HREF="node11.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="previous" SRC="./previoussection.gif"></A><A NAME="tex2html213" HREF="node11.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="up" SRC="./up.gif"></A><A NAME="tex2html209" HREF="node13.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="next" SRC="./nextsection.gif"></A><A NAME="tex2html215" HREF="node13.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="next" SRC="./next.gif"></A></P><H2><A NAME="SECTION00041000000000000000">2.1 Explicit label positioning</A></H2> The label commands explained in
section <A HREF="node7.html#basicslabels">1.4</A> place the label text near the point along
the arrow halfway between the centers of the base and target entries.
This, however, may be changed by inserting a <em>place</em> between
the <code>^</code>, <code>_</code>, or <code>|</code>, and the actual label (in fact <code>-</code>
is a <em>place</em>). In general you may insert the following:
<UL>
<LI><code><</code> will place the label at the point where the actual arrow
begins, <I>i.e.</I>, "appears from under" the base, so
<code>$\xymatrix@1{A\ar[r]^<{+}&B}$</code> will typeset <IMG WIDTH=82 HEIGHT=21 ALIGN=BOTTOM ALT="tex2html_wrap2546" SRC="img19.gif">.
<LI>Similarly, <code>></code> will place the label at the point where the actual
arrow ends, <I>i.e.</I>, "disappears below" the target, so
<code>$\xymatrix@1{A\ar[r]^>{+}&B}$</code> will typeset <IMG WIDTH=82 HEIGHT=21 ALIGN=BOTTOM ALT="tex2html_wrap2548" SRC="img20.gif">.
<LI><code><<</code> and <code>>></code> will place the following label at a point just
a bit<A NAME="tex2html7" HREF="footnode.html#1721"><IMG ALIGN=ABSMIDDLE ALT="gif" SRC="./foot.gif"></A> further from the beginning and end of the arrow, so
<code>$\xymatrix@1{A\ar[r]^>>{+}&B}$</code> will typeset <IMG WIDTH=82 HEIGHT=21 ALIGN=BOTTOM ALT="tex2html_wrap2550" SRC="img21.gif">. Using more <code><</code>s or <code>></code>s
will move the label further in.
<LI>A factor in <code>()</code>s: <IMG WIDTH=25 HEIGHT=29 ALIGN=MIDDLE ALT="tex2html_wrap_inline2530" SRC="img22.gif"> indicates that the label should be
"tied" to the point <I>a</I> of the way from the center of the base entry
(called <code>(0)</code>) to the center of the target (called <code>(1)</code>)
instead of in the middle, so
<code>$\xymatrix@1{A\ar[r]^(.3){+}&B}$</code> will typeset <IMG WIDTH=82 HEIGHT=21 ALIGN=BOTTOM ALT="tex2html_wrap2552" SRC="img23.gif">.
<LI>A factor can be given <em>after</em> some <code><</code> or <code>></code>s, in which case
the place is computed as if the base was specified by the
<code><</code>s and target specified by the <code>></code>s. Hence
<code>$\xymatrix@1{A\ar[r]^<(0){+}&B}$</code> will typeset <IMG WIDTH=82 HEIGHT=21 ALIGN=BOTTOM ALT="tex2html_wrap2554" SRC="img24.gif">.
<LI>Finally, there is a simple way to denote the place on an arrow where
it intersects with a straight line between
two points: the place <code>!{</code><IMG WIDTH=15 HEIGHT=26 ALIGN=MIDDLE ALT="tex2html_wrap_inline2538" SRC="img25.gif"><code>;</code><IMG WIDTH=15 HEIGHT=26 ALIGN=MIDDLE ALT="tex2html_wrap_inline2540" SRC="img26.gif"><code>}</code> places the label
relative to the point on the arrow where the line from the target
<IMG WIDTH=15 HEIGHT=26 ALIGN=MIDDLE ALT="tex2html_wrap_inline2538" SRC="img25.gif"> to the target <IMG WIDTH=15 HEIGHT=26 ALIGN=MIDDLE ALT="tex2html_wrap_inline2540" SRC="img26.gif"> crosses it. <B>BUG</B>: Only works for straight
arrows at present.
<P>
</UL>
As usual more possibilities can be found in the reference
manual [<A HREF="node34.html#RM95:Xy-picRM">8</A>, fig. 2,].
<P>
<A NAME="Exercise6"> </A><H4><A NAME="SECTION00041010000000000000">Exercise 6.</A></H4> Typeset
<P><CENTER><BR><IMG WIDTH=284 HEIGHT=103 ALIGN=BOTTOM ALT="displaymath372" SRC="img27.gif"><BR></CENTER><P>
<P>
<A HREF="node33.html#Answer6">Answer.</A>
<P>
<P> <P ALIGN=RIGHT><FONT SIZE=1>Xy-pic User's Guide</FONT> <A HREF="18pt.html"><IMG SRC="./quest.gif" ALIGN=TOP HEIGHT=27 WIDTH=21 BORDER=0 ALT="?"></A><A NAME="tex2html207" HREF="node11.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="previous" SRC="./previous.gif"></A><A NAME="tex2html211" HREF="node11.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="previous" SRC="./previoussection.gif"></A><A NAME="tex2html213" HREF="node11.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="up" SRC="./up.gif"></A><A NAME="tex2html209" HREF="node13.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="next" SRC="./nextsection.gif"></A><A NAME="tex2html215" HREF="node13.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="next" SRC="./next.gif"></A><P><ADDRESS>
<BR><HR>
<a href="COPYING/index.html">�/a> <a href="http://www.brics.dk/~krisrose/">Kristoffer H. Rose</a>
<<a href="mailto:[email protected]">[email protected]</a>>
January 6, 1997
/
<a href="http://www-dsed.llnl.gov/files/programs/unix/latex2html/manual/">LaTeX2<TT>HTML</TT>v96.1-h</a>
</FONT>
</ADDRESS>
</BODY>
</HTML>
|