summaryrefslogtreecommitdiff
path: root/static/unix-v10/man6/mpm.6
blob: f765bf7c36d78f7ad8426e3b0405d5d265df507c (plain)
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
.TH MPM 6
.CT 1 writing_troff
.SH NAME
mpm, mspe \- macros for page makeup
.SH SYNOPSIS
.B troff -mpm
.I file ...
.PP
.B troff -mspe
.I file ...
.SH DESCRIPTION
These
.IR troff (1)
macros, largely compatible with
.IR ms (6),
make better pages.
They silently invoke and provide information to a
postprocessor that moves floating figures, avoids widows, and justifies
pages vertically by stretching vertical spaces that result from 
.BR .PP ,
.BR .LP ,
.BR .IP ,
.BR .QP ,
.BR .SH ,
.BR .NH ,
.BR .DS / .DE ,
.BR .EQ / .EN ,
.BR .TS / .TE ,
.BR .PS / .PE ,
.BR .P1 / .P2 ,
and
.BR .QS / .QE .
The packages support different styles:
.TP
-mpm
generic 
.TP
.B -mspe
.I Software\(emPractice and Experience
.PP
The following macros are different from or not part of
.BR -ms .
Values denoted
.I n
have default value
.BR 1v .
.TP
.BR .BP
Begin a new page.
.PD 0
.TP
.B .FL
Flush: force out previous keeps.
.TP
.B .FC
Finish a two-column region and start a new one.
.TP
.BI .KF \ m
Floating keep, with preferred center at vertical position
.IR m .
Special values
.L top
(default) and
.L bottom
are permitted.
.TP
.BI .NE \ n
Start new page if remaining vertical space on this page
is less than
.I n .
.TP
.B .P1
Begin a program display (Courier font).
.TP
.B .P2
End a program display.
.TP
.BI .P3
Insert optional break point in program display.
.TP
.BI .SP " n " exactly
.br
.ns
.TP
.BI .SP " n " 
Insert vertical space of height
.I n,
stretchable unless
.B exactly
is present.
.TP
.BI .Tm " text"
Place page number and
.I text
on the standard error output.
.TP
.BI .X " text"
Present
.I text
to the hidden page-makeup program
as part of a device-dependent output sequence
.BR x
.BR X
.IR "text" .
Equivalent to
.BI \eX' text ' .
.PD
.PP
Useful number registers:
.PD 0
.TP
.B HM
Header margin; default 1 inch.
.TP
.B FM
Footer margin; default 1 inch.
.TP
.B FO
Footer position; default 10 inches.
.TP
.B %#
Page number of current page.
.TP
.BR dP , dV
Shrinkage of point size and vertical spacing for
.BR .P1 ,
in points.
.PD
.PP
Useful strings:
.PD 0
.TP
.BR %e , %o
Even and odd page title commands, as
.BR .tl\ '''' .
.PD
.SH FILES
.F /usr/lib/tmac/tmac.pm
.br
.F /usr/lib/tmac/pm
.SH "SEE ALSO"
.IR ms (6), 
.IR troff (1)
.br
B. W. Kernighan and C. J. Van Wyk,
`The \-mpm Macro Package',
this manual, Volume\ 2
.SH BUGS
These features of
.B -ms
are missing:
.PD0
.IP
Document styles other than the default
.BR .RP .
.br
Space between front matter and first paragraph.
Recover it with
.BR ".SP 2" .
.br
Separating rule above footnotes.
.br
Keeps assigned to a separate page.
.br
Pages with more than two columns.
.LP
.I Troff
option
.B -o
doesn't work with
.BR -mpm 
because only the postprocessor knows the page numbers.
.PD