File: sec160.html

package info (click to toggle)
ts 9802-1
  • links: PTS
  • area: non-free
  • in suites: hamm
  • size: 2,348 kB
  • ctags: 1,468
  • sloc: tcl: 4,567; ansic: 3,389; makefile: 88; sh: 1
file content (74 lines) | stat: -rw-r--r-- 1,740 bytes parent folder | download | duplicates (3)
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>&#92;parbox</title></head>
<body>
<h1>&#92;parbox</h1>
<P>

</P>
<P>
<CODE>&#92;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>&#92;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>&#92;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>&#92;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>--&gt;<a href="index.html">LaTeX index</a>
</body>
</html>