include problem
[unix-history] / .ref-BSD-3 / usr / doc / trofftut / tt04
CommitLineData
8340f87c
BJ
1.NH
2Indents and Line Lengths
3.PP
4.UL troff
5starts with a line length of 6.5 inches,
6too wide for 8\(12\(mu11 paper.
7To reset the line length,
8use
9the
10.BD .ll
11command, as in
12.P1
13^ll 6i
14.P2
15As with
16.BD .sp ,
17the actual length can be specified in several ways;
18inches are probably the most intuitive.
19.PP
20The maximum line length provided by the typesetter is 7.5 inches, by the way.
21To use the full width, you will have to reset the default physical left margin (``page offset''),
22which is normally slightly less than one inch from the left edge
23of the paper.
24This is done by the
25.BD .po
26command.
27.P1
28^po 0
29.P2
30sets the offset as far to the left as it will go.
31.WS
32.PP
33The indent command
34.BD .in
35causes the left margin to be indented
36by some specified amount from the page offset.
37If we use
38.BD .in
39to move the left margin in,
40and
41.BD .ll
42to move the right margin to the left,
43we can
44make offset blocks of text:
45.P1
46^in 0.3i
47^ll \(mi0.3i
48text to be set into a block
49^ll +0.3i
50^in \(mi0.3i
51.P2
52will create a block that looks like this:
53.P1
54.fi
55.ll -0.3i
56Pater noster qui est in caelis sanctificetur nomen tuum;
57adveniat regnum tuum; fiat voluntas tua, sicut in caelo,
58et in terra. ...
59Amen.
60.ll +0.3i
61.P2
62Notice the use of `+' and `\(mi'
63to specify the amount of change.
64These change the previous setting by the specified amount,
65rather than just overriding it.
66The distinction is quite important:
67.BD .ll\ +1i
68makes lines one inch longer;
69.BD .ll\ 1i
70makes them one inch
71.ul
72long.
73.PP
74With
75.BD .in ,
76.BD .ll
77and
78.BD .po ,
79the previous value is used if no argument is specified.
80.PP
81To indent a single line, use the `temporary indent'
82command
83.BD .ti .
84For example, all paragraphs in this memo
85effectively begin with the command
86.P1
87^ti 3
88.P2
89Three of what?
90The default unit for
91.BD .ti ,
92as for most horizontally oriented commands
93.BD .ll , (
94.BD .in ,
95.BD .po ),
96is ems;
97an em is roughly the width of the letter `m'
98in the current point size.
99(Precisely, a em in size
100.ul
101p
102is
103.ul
104p
105points.)
106Although inches are usually clearer than ems to people who don't set type
107for a living,
108ems have a place:
109they are a measure of size that is proportional to the current point size.
110If you want to make text that keeps its proportions
111regardless of point size,
112you should use ems for all dimensions.
113Ems can be specified as scale factors directly,
114as in
115.BD .ti\ 2.5m .
116.PP
117Lines can also be indented negatively
118if the indent is already positive:
119.P1
120^ti \(mi0.3i
121.P2
122causes the next line to be moved back three tenths of an inch.
123Thus to make a decorative initial capital,
124we indent the whole paragraph, then move the letter `P' back with
125a
126.BD .ti
127command:
128.P1
129.ll -0.3i
130.fi
131.in +.3i
132.ti -0.3i
133\s36\v'2'P\v'-2'\s0ater noster qui est in caelis sanctificetur
134nomen tuum;
135adveniat regnum tuum;
136'in -.3i
137fiat voluntas tua,
138sicut in caelo, et in terra. ...
139Amen.
140.ll +0.3i
141.P2
142Of course, there is also some trickery to make the `P'
143bigger (just a `\es36P\es0'),
144and to move it
145down from its normal position
146(see the section on local motions).