<!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.2 Labeling with any object</TITLE>
<META NAME="description" CONTENT="2.2 Labeling with any object">
<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="arrowsobjects" NAME="tex2html219" HREF="node12.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="previous" SRC="./previous.gif"></A><A NAME="tex2html223" HREF="node12.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="previous" SRC="./previoussection.gif"></A><A NAME="tex2html225" HREF="node11.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="up" SRC="./up.gif"></A><A NAME="tex2html221" HREF="node14.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="next" SRC="./nextsection.gif"></A><A NAME="tex2html227" HREF="node14.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="next" SRC="./next.gif"></A></P><H2><A NAME="SECTION00042000000000000000">2.2 Labeling with any object</A></H2> Xy-pic supports a general format for entering any TeX
text as labels (as well as entries to be
explained later). The character <code>*</code> is reserved for this: in its
simplest form <code>*{</code><em>math</em><code>}</code> will typeset the <em>math</em>
material as an object. This is like <code>{</code><em>math</em><code>}</code> except that
the default style is ignored and there is no added blank margin.
<P>
However, in general the following form of
<code>*</code><em>object</em> is available:
<P><CENTER><TABLE BORDER=BASIC CELLPADDING=3 COLS=1><TR><TD><code>*</code><em>modifiers</em><code>{</code><em>text</em><code>}</code>
</TABLE></CENTER><P>
<P>
where <em>modifiers</em> can be used to change
the shape and size of the constructed object. The
following are the most common, the full list of possibilities can be
found in the reference manual [<A HREF="node34.html#RM95:Xy-picRM">8</A>, fig. 3,]:
<P><CENTER><TABLE BORDER=BASIC CELLPADDING=3 COLS=2><TR><TD> <code>+</code> <TD> grow <TR><TD>
<code>+<</code><em>dimen</em><code>></code> <TD> grow by <em>dimen</em> <TR><TD>
<code>+=</code> <TD> grow to enclosing square <TR><TD>
<code>-</code> <TD> shrink <TR><TD>
<code>-<</code><em>dimen</em><code>></code> <TD> shrink by <em>dimen</em> <TR><TD>
<code>-=</code> <TD> shrink to contained square <TR><TD>
<code>!</code> <TD> do not center <TR><TD>
<code>[o]</code> <TD> round <TR><TD>
<code>[l]</code> <code>[r]</code> <code>[u]</code> <code>[d]</code> <TD> adjust left, right,...<TR><TD>
<code>[F]</code> <code>[F=]</code> <TD> <IMG WIDTH=63 HEIGHT=25 ALIGN=BOTTOM ALT="tex2html_wrap2558" SRC="img28.gif">
<IMG WIDTH=72 HEIGHT=25 ALIGN=BOTTOM ALT="tex2html_wrap2560" SRC="img29.gif"><TR><TD>
<code>[F.]</code> <code>[F--]</code>
<TD> <IMG WIDTH=71 HEIGHT=26 ALIGN=BOTTOM ALT="tex2html_wrap2562" SRC="img30.gif">
<IMG WIDTH=74 HEIGHT=26 ALIGN=BOTTOM ALT="tex2html_wrap2564" SRC="img31.gif"><TR><TD>
<code>[F-,]</code> <code>[F-:<3pt>]</code>
<TD> <IMG WIDTH=76 HEIGHT=27 ALIGN=BOTTOM ALT="tex2html_wrap2566" SRC="img32.gif">
<IMG WIDTH=85 HEIGHT=25 ALIGN=BOTTOM ALT="tex2html_wrap2568" SRC="img33.gif">
</TABLE></CENTER><P>
<P>
Since objects specified this way start with no margin, a single <code>+</code>
is usually included to get the default spacing.
<P>
<A NAME="Exercise7"> </A><H4><A NAME="SECTION00042010000000000000">Exercise 7.</A></H4> Typeset <IMG WIDTH=82 HEIGHT=32 ALIGN=BOTTOM ALT="tex2html_wrap_inline2570" SRC="img34.gif"> .
<P>
<A HREF="node33.html#Answer7">Answer.</A>
There can only be one <em>boxing</em>. This can be any box
generation command. The following are the most useful
<em>boxing</em><code>{</code><em>text</em><code>}</code> combinations:
<P><CENTER><TABLE BORDER=BASIC CELLPADDING=3 COLS=2><TR><TD> <code>@</code><em>variant</em><code>{</code><em>tip</em><code>}</code> <TD> tip (or shaft) object <TR><TD>
<code>\txt</code><code>{</code>...<code>}</code> <TD> ordinary <em>text</em> <TR><TD>
<code>\composite</code><code>{</code>...<code>*</code>...<code>}</code> <TD> combined objects <TR><TD>
<code>\frm</code><code>{}</code> <TD> repeat last object
</TABLE></CENTER><P>
<P>
(the possibilities for <em>variant</em> and <em>tip</em> are given in the
following section). Finally, <code>\hbox</code><code>{</code>...<code>}</code><A NAME="tex2html8" HREF="footnode.html#1520"><IMG ALIGN=ABSMIDDLE ALT="gif" SRC="./foot.gif"></A> is a quick way to ensure
text-mode interpretation of a single object. However, <code>\txt</code>
allows the use of <code> \\</code> in <em>text</em> to create a line break, and the special form <code>\txt<6pc>{</code>...<code>}</code> will constrain the
text to a centered 6pc wide column. By the way, <code>\txt</code> can be
used outside of Xy-pic constructions.
<P>
Finally, several objects can be combined using the last form; the
<code>*</code>s serve to separate the composed object.
<P>
<A NAME="Exercise8"> </A><H4><A NAME="SECTION00042020000000000000">Exercise 8.</A></H4> Typeset <IMG WIDTH=134 HEIGHT=94 ALIGN=MIDDLE ALT="tex2html_wrap_inline2574" SRC="img35.gif"> .
<P>
<A HREF="node33.html#Answer8">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="tex2html219" HREF="node12.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="previous" SRC="./previous.gif"></A><A NAME="tex2html223" HREF="node12.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="previous" SRC="./previoussection.gif"></A><A NAME="tex2html225" HREF="node11.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="up" SRC="./up.gif"></A><A NAME="tex2html221" HREF="node14.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="next" SRC="./nextsection.gif"></A><A NAME="tex2html227" HREF="node14.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>
|