1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
|
<html>
<head><title>\parbox</title></head>
<body>
<h1>\parbox</h1>
<P>
</P>
<P>
<CODE>\parbox[position][height][inner-pos]{width}{text}</CODE>
</P>
<P>
A <CODE>parbox</CODE> is a box whose contents are created in <CODE>paragraph</CODE>
mode. The <CODE>\parbox</CODE> has two mandatory arguments:
</P>
<UL>
<LI>
<CODE>width</CODE> - specifies the width of the parbox, and
<LI>
<CODE>text</CODE> - the text that goes inside the parbox.
</UL>
<P>
LaTeX will position a <CODE>parbox</CODE> so its centre lines up with the centre of
the text line. The optional <I>position</I> argument allows you
to line up either the top or bottom line in the parbox (default is top).
</P>
<P>
If the <I>height</I> argument is not given, the box will have the natural
height of the text.
</P>
<P>
The <I>inner-pos</I> argument controls the placement of the text inside the
box. If it is not specified, <I>position</I> is used.
</P>
<UL>
<LI>
<CODE>t</CODE> -- text is placed at the top of the box.
<LI>
<CODE>c</CODE> -- text is centred in the box.
<LI>
<CODE>b</CODE> -- text is placed at the bottom of the box.
<LI>
<CODE>s</CODE> -- stretch vertically. The text must contain
vertically stretchable space for this to work.
</UL>
<P>
A <CODE>\parbox</CODE> command is used for a parbox containing a small piece
of text, with nothing fancy inside. In particular, you shouldn't use
any of the paragraph-making environments inside a <CODE>\parbox</CODE>
argument. For larger pieces of text, including ones containing a
paragraph-making environment, you should use a <CODE>minipage</CODE>
environment See section <A href="sec46.html">minipage</A>.
</P>
<p>--><a href="index.html">LaTeX index</a>
</body>
</html>
|