summaryrefslogtreecommitdiff
path: root/tmac/groff_me.7.man
blob: 36261045788f4f841496832524a0239c5fd6bdb9 (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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
'\" t
.TH groff_me @MAN7EXT@ "@MDATE@" "groff @VERSION@"
.SH Name
groff_me \- \(lqme\(rq macro package for formatting documents with GNU \
roff
.
.
.\" ====================================================================
.\" Legal Terms
.\" ====================================================================
.\"
.\" Copyright (C) 1980, 1993
.\"   The Regents of the University of California.  All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in
.\"    the documentation and/or other materials provided with the
.\"    distribution.
.\" 3. [Deleted.  See
.\"     ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change]
.\" 4. Neither the name of the University nor the names of its
.\"    contributors may be used to endorse or promote products derived
.\"    from this software without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS"
.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
.\" PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR
.\" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\"	@(#)me.7	8.1 (Berkeley) 06/05/93
.\"
.\" Modified for groff by jjc@jclark.com
.\" Changed to use TBL and eliminate low-level troff hackery by ESR
.\" (this enables it to be lifted to structural markup).
.
.
.\" Save and disable compatibility mode (for, e.g., Solaris 10/11).
.do nr *groff_groff_me_7_man_C \n[.cp]
.cp 0
.
.
.\" ====================================================================
.SH Synopsis
.\" ====================================================================
.
.SY "groff \-me"
.RI [ option\~ .\|.\|.\&]
.RI [ file\~ .\|.\|.]
.
.SY "groff \-m me"
.RI [ option\~ .\|.\|.\&]
.RI [ file\~ .\|.\|.]
.YS
.
.
.\" ====================================================================
.SH Description
.\" ====================================================================
.
The GNU implementation of the
.I me
macro package is part of the
.I groff
document formatting system.
.
The
.I me
package of macro definitions for the
.I roff
language provides a convenient facility for preparing technical papers
in various formats.
.
This version is based on the
.I me
distributed with 4.4BSD and can be used with the GNU
.I troff
formatter as well as those descended from AT&T
.IR troff .
.
.
.P
Some formatter requests are unsafe in conjunction with this package;
however,
the following may be used with impunity after the first call to a
paragraphing macro like
.B lp
or
.BR pp .
.
Some arguments are optional;
see
.MR groff @MAN7EXT@
for details,
particularly of requests whose argument list is designated with an
ellipsis.
.
An asterisk
.B *
marks
.I groff
extensions.
.
.
.P
.TS
Lb1 Li L.
ad	c	set text adjustment mode to \fIc
af	r f	assign format \fIf\fP to register \fIr
am	m e	append to macro \fIm\fP until \fIe\fP called
as	s t	append rest of line \fIt\fP to string \fIs
bp	n	begin new page numbered \fIn
br	\&	break output line
ce	n	center next \fIn\fP output lines
cp	n	en-/disable AT&T \fItroff\fP compatibility mode\fB*
de	m e	define macro \fIm\fP until \fIe\fP called
do	t	interpret input \fIt\fP with compatibility mode off\fB*
ds	s t	define rest of line \fIt\fP as string \fIs
el	\&	else part of \fBie\fP conditional
fc	c d	set field delimiter \fIc\fP and padding glyph \fId
fi	\&	enable filling
hc	c	set hyphenation character to \fIc
hy	m	set automatic hyphenation mode to \fIm
ie	p t	as \fBif\fP, but enable interpretation of later \fBel
if	p t	if condition \fIp\/\fP, interpret rest of line \fIt
in	h	set indentation to distance \fIh\fP
lc	c	set leader repetition glyph to \fIc
ls	n	set line spacing to \fIn
mc	c h	set (right) margin glyph to \fIc\fP at distance \fIh
mk	r	mark vertical position in register \fIr\fP
na	\&	disable adjustment of text
ne	v	need vertical space of distance \fIv
nf	\&	disable filling
nh	\&	disable automatic hyphenation
nr	r n i	assign register \fIr\fP value \fIn\fP with \
auto-increment \fIi
ns	\&	begin no-space mode
.\" XXX: some punity with .pl; #55081
pl	v	set page length to \fIv
pn	n	set next page number to \fIn
po	h	set page offset to \fIh
rj	n	right-align next \fIn\fP output lines\fB*
rm	m	remove macro, string, or request \fIm
rn	m n	rename macro, string, or request \fIm\fP to \fIn
rr	r	remove register
rs	\&	restore spacing (end no-space mode)
rt	v	return to vertical position set by \fBmk\fP, or \fIv
so	f	source (interpolate) input file \fIf
sp	n	insert \fIn\fP lines of vertical space
ta	\fR.\|.\|.	set tab stops
tc	c	set tab repetition glyph to \fIc
ti	h	set temporary indentation (next line only) to \fIh
tl	\fR.\|.\|.	output three-part title
tr	\fR.\|.\|.	translate characters
ul	n	underline next \fIn\fP output lines
.TE
.
.
.P
Except on title pages
(produced by calling
.BR tp ),
.I me
suppresses the output of vertical space at the tops of pages;
the
.B sp
request will thus not work there.
.
You can instead call
.B bl
or enclose the desired spacing request in a diversion,
for instance by calling
.B (b
and
.BR )b .
.
.I me
also intercepts the
.B ll
request;
see the
.RI \[lq] me
Reference Manual\[rq]
for details.
.
.
.P
Output of the
.IR grn ,
.IR pic ,
.IR eqn ,
.IR refer ,
and
.I tbl
preprocessors
is acceptable as input.
.
.
.\" ====================================================================
.SS Macros
.\" ====================================================================
.
.ne 2v \" Keep at least the first entry together with the heading.
.TS
Lb L.
$0	post-section heading hook
$1	pre-section depth 1 hook
$2	pre-section depth 2 hook
$3	pre-section depth 3 hook
$4	pre-section depth 4 hook
$5	pre-section depth 5 hook
$6	pre-section depth 6 hook
$C	post-chapter title hook
$H	page/column heading hook
$c	output chapter number and title
$f	output footer
$h	output header
$p	output section heading
$s	output footnote area separator
(b	begin block
(c	begin centered block
(d	begin delayed text
(f	begin footnote
(l	begin list
(q	begin long quotation
(x	begin index entry
(z	begin floating keep
)b	end block
)c	end centered block
)d	end delayed text
)f	end footnote
)l	end list
)q	end long quotation
)x	end index entry
)z	end floating keep
++	set document segment type
+c	begin chapter
1c	end multi-column layout
2c	begin multi-column layout
EN	end \fI@g@eqn\fP equation
EQ	begin \fI@g@eqn\fP equation
GE	end \fI@g@grn\fP picture with position at bottom
GF	end \fI@g@grn\fP picture with position at top
GS	start \fI@g@grn\fP picture
IE	end \fIideal\fP picture with position at bottom
IF	end \fIideal\fP picture with position at top
IS	start \fIideal\fP picture
PE	end \fI@g@pic\fP picture with position at bottom
PF	end \fI@g@pic\fP picture with position at top
PS	start \fI@g@pic\fP picture
TE	end \fI@g@tbl\fP table
TH	end heading for multi-page \fI@g@tbl\fP table
TS	begin \fI@g@tbl\fP table
ar	use Arabic numerals for page numbers
b	embolden argument
ba	set base indentation
bc	begin new column
bi	embolden and italicize argument
bl	insert space (even at page top; cf.\& \fBsp\fP)
bx	box argument
ef	set even-numbered page footer
eh	set even-numbered page header
ep	end page
fo	set footer
he	set header
hl	draw horizontal line
hx	suppress next page's headers/footers
i	italicize argument
ip	begin indented paragraph
ix	set indentation without break
ll	set line length
lp	begin fully left-aligned paragraph
m1	set page top to header distance
m2	set header to text distance
m3	set text to footer distance
m4	set footer to page bottom distance
n1	begin output line numbering
n2	end or alter output line numbering
np	begin numbered paragraph
of	set odd-numbered page footer
oh	set odd-numbered page header
pa	begin page
pd	output delayed text
pp	begin first-line indented paragraph
q	quote argument
r	set argument in roman
re	reset tab stops
ro	use Roman numerals for page numbers
sh	begin numbered section
sk	skip next page
sm	set argument at smaller type size
sx	change section depth
sz	set type size and vertical spacing
tp	begin title page
u	underline argument
uh	begin unnumbered section
xl	set line length (local)
xp	output index
.TE
.
.
.\" ====================================================================
.SS Registers
.\" ====================================================================
.
.ne 2v \" Keep at least the first entry together with the heading.
.TS
Lb L.
$0	section depth
$1	first section number component
$2	second section number component
$3	third section number component
$4	fourth section number component
$5	fifth section number component
$6	sixth section number component
$V	vertical spacing of displayed text (as percentage)
$c	current column number
$d	delayed text number
$f	footnote number
$i	paragraph base indentation
$l	column width
$m	number of available columns
$p	numbered paragraph number
$s	column spacing (indentation)
$v	vertical spacing of text (as percentage)
$x	super/subscript line height increase
bi	display (block) indentation
bm	distance from text area to page bottom
bs	display (block) pre/post space
bt	block threshold for keeps
ch	current chapter number
df	display font
es	equation pre/post space
ff	footnote font
fi	footnote indentation (first line only)
fm	footer margin
fp	footnote type size in points
fs	footnote prespace
fu	footnote undent (right indentation)
hm	header margin
ii	indented paragraph indentation
pf	paragraph font
pi	paragraph indentation
po	page offset
pp	paragraph type size in points
ps	paragraph prespace
qi	long quotation left/right indentation
qp	long quotation type size in points
qs	long quotation pre/post space
sf	section title font
si	section indentation per level of depth
so	additional section title offset
sp	section title type size in points
ss	section prespace
tf	title font
tm	distance from page top to text area
tp	title type size in points
xs	index entry prespace
xu	index undent (right indentation)
y2	year of the century
y4	year
yr	year minus 1900
zs	floating keep pre/post space
.TE
.
.
.\" ====================================================================
.SS Strings
.\" ====================================================================
.
.ne 2v \" Keep at least the first entry together with the heading.
.TS
Lb L.
#	delayed text marker
$n	concatenated section number
*	footnote marker
<	begin subscripting
>	end subscripting
dw	weekday name
lq	left double quotation mark
mo	month name
rq	right double quotation mark
td	date
{	begin superscripting
}	end superscripting
.TE
.
.
.\" ====================================================================
.SH Files
.\" ====================================================================
.
.I @MACRODIR@/me.tmac
(a wrapper for
.IR e.tmac )
.br
.I @MACRODIR@/e.tmac
.
.
.\" ====================================================================
.SH Notes
.\" ====================================================================
.
Early
.I roff
macro packages limited themselves to a single-letter namespace
.RI ( mm ,
.IR ms ,
.IR mv ,
.IR mn ,
and so on).
.
.\" 'When I started writing the -me macros it began as something in my
.\" private tree (I don't remember what I called it).  Then some other
.\" folks on the INGRES project wanted to use it, but our system admin
.\" at the time didn't want to dicker with the system namespace at the
.\" behest of a mere undergraduate, so he didn't like anything that was
.\" actually descriptive lest people think it was "official".  He
.\" finally consented to "-meric" (which I always hated), since it was
.\" obviously non-official.  By the time my macros became popular around
.\" Berkeley it got shortened to "-me", much to my relief.
.\"
.\" Of course, if AT&T had been willing to let Berkeley have -ms then
.\" most likely -me would never have happened at all.  Without a macro
.\" package, nroff/troff is basically unusable; -me stepped into the
.\" vacuum.' -- Eric Allman
.\"
.\" https://minnie.tuhs.org/pipermail/tuhs/2018-November/017033.html
.
The \(lqe\(rq in \(lqme\(rq stands for \(lqEric P.\& Allman\(rq,
who wrote the macro package and the original technical papers
documenting it while an undergraduate at the University of California.
.
.
.\" ====================================================================
.SH "See also"
.\" ====================================================================
.
.
Two manuals are available in source and rendered form.
.
On your system,
they may be compressed and/or available in additional formats.
.
.
.TP
.I @DOCDIR@/meintro.me
.TQ
.I @DOCDIR@/meintro.ps
is
\[lq]Writing Papers with
.I Groff
Using
.RI \- me \[rq],
by Eric P.\& Allman,
adapted for
.I groff
by James Clark.
.
.
.TP
.I @DOCDIR@/meref.me
.TQ
.I @DOCDIR@/meref.ps
is the
.RI \[lq] me
Reference Manual\[rq],
by Eric P.\& Allman,
adapted for
.I groff
by James Clark and G.\& Branden Robinson.
.
.
.P
.IR "Groff: The GNU Implementation of troff" ,
by Trent A.\& Fisher and Werner Lemberg,
is the primary
.I groff
manual.
.
You can browse it interactively with \[lq]info groff\[rq].
.
.
.P
For preprocessors supported by
.IR me ,
see
.MR @g@eqn @MAN1EXT@ ,
.MR @g@grn @MAN1EXT@ ,
.MR @g@pic @MAN1EXT@ ,
.MR @g@refer @MAN1EXT@ ,
and
.MR @g@tbl @MAN1EXT@ .
.
.
.P
.MR groff @MAN1EXT@ ,
.MR @g@troff @MAN1EXT@ ,
.MR groff @MAN7EXT@
.
.
.\" Restore compatibility mode (for, e.g., Solaris 10/11).
.cp \n[*groff_groff_me_7_man_C]
.do rr *groff_groff_me_7_man_C
.
.
.\" Local Variables:
.\" fill-column: 72
.\" mode: nroff
.\" End:
.\" vim: set filetype=groff textwidth=72: