summaryrefslogtreecommitdiff
path: root/tmac/groff_me.7.man
blob: b468042d13ead71675de9f124f363d7d2690cf94 (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
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
'\" 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 The Regents of the University of California.
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms are permitted
.\" provided that the above copyright notice and this paragraph are
.\" duplicated in all such forms and that any documentation,
.\" advertising materials, and other materials related to such
.\" distribution and use acknowledge that the software was developed
.\" by the University of California, Berkeley.  The name of the
.\" University may not be used to endorse or promote products derived
.\" from this software without specific prior written permission.
.\" THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\"	@(#)me.7	6.4 (Berkeley) 4/13/90
.\"
.\" 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 [ input-file
\&.\|.\|.\&]
.
.SY "groff \-m me"
.RI [ option
\&.\|.\|.\&]
.RI [ input-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 .
.
.
.PP
Many
.I roff
requests are unsafe in conjunction with this package; however, the
following requests may be used with impunity after the first
.BR .pp :
.TS
l l.
\fB.bp\fP	begin new page
\fB.br\fP	break output line here
\fB.sp\fP \fIn\fP	insert \fIn\fP spacing lines
\fB.ls\fP \fIn\fP	(line spacing) \fIn\fP=1 single, \fIn\fP=2 double
\fB.na\fP	no alignment of right margin
\fB.ce\fP \fIn\fP	center next \fIn\fP lines
\fB.ul\fP \fIn\fP	underline next \fIn\fP lines
.TE
.PP
.I Note:
In contrast to its behavior with other macro packages and \(lqraw\(rq
.IR roff ,
when using the
.I me
package,
the
.B .sp
request will
.I not
put space at the top of a page.
.
.
.PP
Output of the
.IR pic ,
.IR eqn ,
.IR refer ,
and
.I tbl
preprocessors
is acceptable as input.
.
.
.\" ====================================================================
.SS "Macro reference"
.\" ====================================================================
.
Numeric arguments to macros are denoted with lowercase letters and
string arguments with uppercase.
.
An optional macro argument such as
.I x
appears in brackets,
.BI [ x \/\c
.BR ] .
.
Note that arguments to macros generally must be quoted if they contain
whitespace.
.
An exception is the argument to header and footer macros, which require
some explanation.
They take the form
.RI \(lq c
.I left c middle c right
.IR c \(rq,
with spaces added here for clarity.
The strings
.IR left ,
.IR middle ,
and
.I right
correspond to their page placement and can contain unprotected
whitespace, but must not contain the (non-space) character
.IR c ,
which delimits them.
For brevity, the table presents header and footer arguments as
.IR clcmcrc .
Popular choices for
.I c
are the ASCII apostrophe
.RB \(lq \(aq \(rq
and the ASCII double quote
.RB \(lq \(dq \(rq.
.
.
.PP
This list is incomplete;
some requests are too complex to summarize in a table, and some that
are listed below accept additional arguments not shown.
See the
.I \-me Reference Manual
for interesting details.
.
.
.PP
.TS
l l l lx.
Request	Initial	Causes	Explanation
	Value	Break
_
\&.(c	\-	yes	T{
Begin centered block.
T}
\&.(d	\-	no	T{
Begin delayed text.
T}
\&.(f	\-	no	T{
Begin footnote.
T}
\&.(l	\-	yes	Begin list.
\&.(q	\-	yes	T{
Begin major quote.
T}
\&.(x [\fIX\fP]	\-	no	T{
Begin item in index (named
.IR X ).
T}
\&.(z	\-	no	T{
Begin floating keep.
T}
\&.)c	\-	yes	T{
End centered block.
T}
\&.)d	\-	yes	T{
End delayed text.
T}
\&.)f	\-	yes	T{
End footnote.
T}
\&.)l	\-	yes	End list.
\&.)q	\-	yes	T{
End major quote.
T}
\&.)x	\-	yes	T{
End index item.
T}
\&.)z	\-	yes	T{
End floating keep.
T}
\&.++ \fIM\fP [\fIclcmcrc\fP]	\-	no	T{
Define paper section as
.IR M ,
which must be one of
.B C
(chapter),
.B A
(appendix),
.B P
(preliminary, i.e., front matter or table of contents),
.B AB
(abstract),
.B B
(bibliography),
.B RC
(chapters renumbered from page one each chapter),
or
.B RA
(appendix renumbered from page one)
(and set page header to
.IR clcmcrc ).
T}
\&.+c [\fIT\fP]	\-	yes	T{
Begin chapter (or appendix, etc., as set by
.BR .++ )
(with title
.IR T ).
T}
\&.1c	1	yes	T{
One-column format on a new page.
T}
\&.2c	1	yes	T{
Two-column format.
T}
\&.EN	\-	yes	T{
Space after equation
produced by
.I eqn
or
.IR neqn .
T}
\&.EQ [\fIM\fP [\fIT\fP]]	\-	yes	T{
Begin displayed equation (with indentation
.IR M ,
which must be one of
.B C
(centered, default),
.B I
(indented),
or
.B L
(justified left) (and title
.I T
in right margin)).
T}
\&.GE	\-	yes	T{
End \fIgremlin\fP picture.
T}
\&.GS	\-	yes	T{
Begin \fIgremlin\fP picture.
T}
\&.PE	\-	yes	T{
End \fIpic\fP picture.
T}
\&.PS	\-	yes	T{
Begin \fIpic\fP picture.
T}
\&.TE	\-	yes	T{
End
.I tbl
table.
T}
\&.TH	\-	yes	T{
End heading of
.I tbl
table.
T}
\&.TS [\fBH\fP]	\-	yes	T{
Begin
.I tbl
table; if
.BR H ,
table repeats heading on each page.
T}
\&.b [\fIX\fP [\fIY\fP]]	\-	no	T{
Print
.I X
in bold (appending
.I Y
in the previous font); if no arguments, switch to bold.
T}
\&.ba \fIn\fP	0	yes	T{
Augment the base indent (for regular text, like paragraphs)
by
.IR n .
T}
\&.bc	\-	yes	T{
Begin new column.
T}
\&.bi [\fIX\fP [\fIY\fP]]	\-	no	T{
Print
.I X
in bold italics (appending
.I Y
in the previous font); if no arguments, switch to bold italics.
T}
\&.bu	\-	yes	T{
Begin bulleted paragraph.
T}
\&.bx [\fIX\fP [\fIY\fP]]	\-	no	T{
Print \fIX\fP in a box (with Y appended).
Renders reliably only if filling disabled.
T}
\&.ef \fIclcmcrc\fP	""""	no	T{
Set even-numbered page footer.
T}
\&.eh \fIclcmcrc\fP	""""	no	T{
Set even-numbered page header.
T}
\&.fo \fIclcmcrc\fP	""""	no	T{
Set page footer.
T}
\&.hx	\-	no	T{
Suppress headers and footers on next page.
T}
\&.he \fIclcmcrc\fP	""""	no	T{
Set page header.
T}
\&.hl	\-	yes	T{
Draw a horizontal line.
T}
\&.i [\fIX\fP [\fIY\fP]]	\-	no	T{
Print
.I X
in italics (appending
.I Y
in the previous font); if no arguments, switch to italics.
T}
\&.ip [\fIX\fP [\fIn\fP]]	\fIn\fP=5n	yes	T{
Start indented paragraph (with hanging tag
.I X
(and indentation
.IR n )).
T}
\&.lp	\-	yes	T{
Begin paragraph with first line flush left.
T}
\&.np	1	yes	T{
Start numbered paragraph.
T}
\&.of \fIclcmcrc\fP	""""	no	T{
Set odd-numbered page footer.
T}
\&.oh \fIclcmcrc\fP	""""	no	T{
Set odd-numbered page header.
T}
\&.pd	\-	yes	T{
Print delayed text.
T}
\&.pp	\-	yes	T{
Begin paragraph with indented first line.
T}
\&.r [\fIX\fP [\fIY\fP]]	\-	no	T{
Print
.I X
in roman (appending
.I Y
in the previous font); if no arguments, switch to roman.
T}
\&.re	0.5i	no	T{
Reset tabs to default values.
T}
\&.sh [\fIn\fP [\fIT\fP]]	\fIn\fP=1	yes	T{
Start numbered section; print section number (set to
.I n
(and title
.IR T ))
in bold.
T}
\&.sk	\-	no	T{
Leave the next page blank.
Only one page is remembered ahead.
T}
\&.sm \fIX\fP [\fIY\fP]	\-	no	T{
Print
.I X
in a smaller point size (appending
.I Y
at the previous size).
T}
\&.sz \fIn\fP	10p	no	T{
Augment the point size by
.I n
points.
T}
\&.tp	\-	yes	T{
Begin title page.
T}
\&.u \fIX\fP [\fIY\fP]	\-	no	T{
Underline
.I X
(appending
.I Y
without underlining).
Renders reliably only if filling disabled.
T}
\&.uh [\fIT\fP]	\-	yes	T{
Start unnumbered section (and print title
.I T
in bold).
T}
\&.xp [\fIX\fP]	\-	no	T{
Print index (named
.IR X ).
T}
.TE
.
.
.\" ====================================================================
.SH Files
.\" ====================================================================
.
.I @MACRODIR@/me.tmac
(a wrapper file 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 ,
etc.).
.
.\" '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 and James Clark.
.
.
.TP
.I @DOCDIR@/meref.me
.TQ
.I @DOCDIR@/meref.ps
is the
.RI \[lq]\- me
Reference Manual\[rq],
by Eric P.\& Allman and James Clark.
.
.
.PP
.IR "Groff: The GNU Implementation of troff" ,
by Trent A.\& Fisher and Werner Lemberg
.
.
.PP
For preprocessors supported by
.IR me ,
see
.IR \%@g@eqn (@MAN1EXT@),
.IR \%@g@grn (@MAN1EXT@),
.IR \%@g@pic (@MAN1EXT@),
.IR \%@g@refer (@MAN1EXT@),
and
.IR \%@g@tbl (@MAN1EXT@).
.
.
.PP
.IR groff (@MAN1EXT@),
.IR \%@g@troff (@MAN1EXT@)
.
.
.\" 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
.\" tab-with: 20
.\" End:
.\" vim: set filetype=groff tabstop=20 textwidth=72: