Xy-pic User's Guide ?previouspreviousupnextnext

2.2 Labeling with any object

Xy-pic supports a general format for entering any TeX text as labels (as well as entries to be explained later). The character * is reserved for this: in its simplest form *{math} will typeset the math material as an object. This is like {math} except that the default style is ignored and there is no added blank margin.

However, in general the following form of *object is available:

*modifiers{text}

where modifiers 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 [8, fig. 3,]:

+ grow
+<dimen> grow by dimen
+= grow to enclosing square
- shrink
-<dimen> shrink by dimen
-= shrink to contained square
! do not center
[o] round
[l] [r] [u] [d] adjust left, right,...
[F] [F=] tex2html_wrap2558 tex2html_wrap2560
[F.] [F--] tex2html_wrap2562 tex2html_wrap2564
[F-,] [F-:<3pt>] tex2html_wrap2566 tex2html_wrap2568

Since objects specified this way start with no margin, a single + is usually included to get the default spacing.

 

Exercise 7.

Typeset tex2html_wrap_inline2570 .

Answer. There can only be one boxing. This can be any box generation command. The following are the most useful boxing{text} combinations:

@variant{tip} tip (or shaft) object
\txt{...} ordinary text
\composite{...*...} combined objects
\frm{} repeat last object

(the possibilities for variant and tip are given in the following section). Finally, \hbox{...}gif is a quick way to ensure text-mode interpretation of a single object. However, \txt allows the use of \\ in text to create a line break, and the special form \txt<6pc>{...} will constrain the text to a centered 6pc wide column. By the way, \txt can be used outside of Xy-pic constructions.

Finally, several objects can be combined using the last form; the *s serve to separate the composed object.

 

Exercise 8.

Typeset tex2html_wrap_inline2574 .

Answer.

-

 

Xy-pic User's Guide ?previouspreviousupnextnext



© Kristoffer H. Rose <krisrose@brics.dk> January 6, 1997 / LaTeX2HTMLv96.1-h