Plan 9 from Bell Labs’s /usr/web/sources/contrib/steve/root/sys/lib/texmf/doc/generic/xypic/xyguide-html/node25.html

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN">
<!--Converted with LaTeX2HTML 96.1-h (September 30, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), 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}  &amp; B \ar[d]^{b}  \\
  A'\ar[u]^{a'} &amp; 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&nbsp;<A HREF="node13.html#arrowsobjects">2.2</A>):
<BLOCKQUOTE><PRE>\entrymodifiers={++[o][F-]}
\SelectTips{cm}{}
\xymatrix @-1pc {
 *\txt{start} \ar[r]
 &amp; 0 \ar@(r,u)[]^b \ar[r]_a
 &amp; 1 \ar[r]^b \ar@(r,d)[]_a
 &amp; 2 \ar[r]^b
   \ar `dr_l[l]  `_ur[l]  _a [l]
 &amp;*++[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>&#160;<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>
&lt;<a href="mailto:krisrose@brics.dk">krisrose@brics.dk</a>&gt;
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>

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.