<!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>3.4 Entry style</TITLE>
<META NAME="description" CONTENT="3.4 Entry style">
<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="entriesstyle" NAME="tex2html367" HREF="node24.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="previous" SRC="./previous.gif"></A><A NAME="tex2html371" HREF="node24.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="previous" SRC="./previoussection.gif"></A><A NAME="tex2html373" HREF="node21.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="up" SRC="./up.gif"></A><A NAME="tex2html369" HREF="node26.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="next" SRC="./nextsection.gif"></A><A NAME="tex2html375" HREF="node26.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="next" SRC="./next.gif"></A></P><H2><A NAME="SECTION00054000000000000000">3.4 Entry style</A></H2> As mentioned above, the entries of a diagram are set in math mode in
text style. You may change this by redefinining the macro
<code>\objectstyle</code>, and the label style by redefining
<code>\labelstyle</code>. We can combine this with the
above to get "small diagrams," <I>e.g.</I>, typing
<BLOCKQUOTE><PRE>$\left(
\def\objectstyle{\scriptstyle}
\def\labelstyle{\scriptstyle}
\vcenter{\xymatrix @-1.2pc @ur {
A \ar[r]^{a} & B \ar[d]^{b} \\
A'\ar[u]^{a'} & B'\ar[l]^{b'} }}
\right)$</PRE></BLOCKQUOTE>
in a paragraph will typeset "<IMG WIDTH=124 HEIGHT=95 ALIGN=BOTTOM ALT="tex2html_wrap2758" SRC="img66.gif">."
<P>
You can even abandon the use of math mode entirely: the command
<code>\def</code> <code>\objectstyle</code> <code>{\hbox}</code> will change the format of entries to
plain text.
<P>
Similarly, all entries are rectangular by default, but it is possible
to change this to <em>round</em> by
declaring the default <em>modifiers</em> to be applied to all entries that do
not override them (<I>cf.</I> section <A HREF="node13.html#arrowsobjects">2.2</A>):
<BLOCKQUOTE><PRE>\entrymodifiers={++[o][F-]}
\SelectTips{cm}{}
\xymatrix @-1pc {
*\txt{start} \ar[r]
& 0 \ar@(r,u)[]^b \ar[r]_a
& 1 \ar[r]^b \ar@(r,d)[]_a
& 2 \ar[r]^b
\ar `dr_l[l] `_ur[l] _a [l]
&*++[o][F=]{3}
\ar `ur^l[lll]`^dr[lll]^b [lll]
\ar `dr_l[ll] `_ur[ll] [ll] }</PRE></BLOCKQUOTE>
will typeset
<P><CENTER><BR><IMG WIDTH=287 HEIGHT=94 ALIGN=BOTTOM ALT="displaymath1080" SRC="img67.gif"><BR></CENTER><P>
Notice how we obtain the double ring using the <code>*</code><em>object</em>
form which then has to include all the desired modifiers (and how the
use of computer modern tips is nice for diagrams as these).
<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="tex2html367" HREF="node24.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="previous" SRC="./previous.gif"></A><A NAME="tex2html371" HREF="node24.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="previous" SRC="./previoussection.gif"></A><A NAME="tex2html373" HREF="node21.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="up" SRC="./up.gif"></A><A NAME="tex2html369" HREF="node26.html"><IMG WIDTH=27 HEIGHT=27 BORDER=0 ALIGN=ABSMIDDLE ALT="next" SRC="./nextsection.gif"></A><A NAME="tex2html375" HREF="node26.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>
|