don't output cut marks on electrostatic or laser printers
[unix-history] / usr / src / share / me / tmac.orig_me
CommitLineData
84f25a89
EA
1.nr _0 \n(.c
2.\"**********************************************************************
3.\"* *
4.\"* ****** - M E N R O F F / T R O F F M A C R O S ****** *
5.\"* *
6.\"* Produced for your edification and enjoyment by: *
7.\"* Eric Allman *
8.\"* Electronics Research Laboratory *
9.\"* U.C. Berkeley. *
7729eef3
EA
10.\"* current address: *
11.\"* Britton-Lee, Inc. *
d0232b46 12.\"* 1919 Addison Street Suite 304 *
a61ea4a3 13.\"* Berkeley, California 94704 *
84f25a89 14.\"* *
5fcae4d3 15.\"* VERSION 2.18 First Release: 11 Sept 1978 *
84f25a89
EA
16.\"* See file \*(||/revisions for revision history *
17.\"* *
18.\"* Documentation is available. *
19.\"* *
20.\"**********************************************************************
6c97ff5a 21.\"
5fcae4d3 22.\" @(#)tmac.orig_me 2.18 %G%
6c97ff5a 23.\" %beginstrip%
84f25a89
EA
24.\"
25.\" Code on .de commands:
26.\" *** a user interface macro.
27.\" &&& a user interface macro which is redefined
28.\" when used to be the real thing.
29.\" $$$ a macro which may be redefined by the user
30.\" to provide variant functions.
31.\" --- an internal macro.
32.\"
33.if !\n(.V .tm You are using the wrong version of NROFF/TROFF!!
34.if !\n(.V .tm This macro package works only on the version seven
35.if !\n(.V .tm release of NROFF and TROFF.
36.if !\n(.V .ex
37.if \n(pf \
38. nx \*(||/null.me
39.\"\f *** INTERNAL GP MACROS ***
40.de @C \" --- change ev's, taking info with us
41.nr _S \\n(.s
42.nr _V \\n(.v
43.nr _F \\n(.f
44.nr _I \\n(.i
45.ev \\$1
46.ps \\n(_Su
47.vs \\n(_Vu
48.ft \\n(_F
49'in \\n(_Iu
50.xl \\n($lu
51.lt \\n($lu
52.rr _S
53.rr _V
54.rr _F
55.rr _I
56.ls 1
57'ce 0
58..
59.de @D \" --- determine display type (Indent, Left, Center)
60.ds |p "\\$3
61.nr _d \\$1
62.ie "\\$2"C" \
63. nr _d 1
64.el .ie "\\$2"L" \
65. nr _d 2
66.el .ie "\\$2"I" \
67. nr _d 3
68.el .ie "\\$2"M" \
69. nr _d 4
70.el \
71. ds |p "\\$2
72..
73.de @z \" --- end macro
799e5a57 74.if \n@>1 .tm >> @z, .z=\\n(.z ?a=\\n(?a
84f25a89
EA
75.if !"\\n(.z"" \
76\{\
77. tm Line \\n(c. -- Unclosed block, footnote, or other diversion (\\n(.z)
78. di
79. ex
80.\}
81.if \\n(?a \
82. bp \" force out final table
83.rm bp
799e5a57 84.rm @b\" \" don't start another page
84f25a89
EA
85.if t \
86. wh -1p @m
87.br
799e5a57 88.if \n@>1 .tm << @z
84f25a89
EA
89..
90.de @I \" --- initialize processor
91.rm th
92.rm ac
93.rm lo
94.rm sc
95.rm @I
96..
97.\"\f *** STANDARD HEADERS AND FOOTERS ***
98.de he \" *** define header
99.ie !\\n(.$ \
100\{\
101. rm |4
102. rm |5
103.\}
104.el \
105\{\
106. ds |4 "\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
107. ds |5 "\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
108.\}
109..
110.de eh \" *** define even header
111.ie !\\n(.$ \
112. rm |4
113.el \
114. ds |4 "\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
115..
116.de oh \" *** define odd header
117.ie !\\n(.$ \
118. rm |5
119.el \
120. ds |5 "\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
121..
122.de fo \" *** define footer
123.ie !\\n(.$ \
124\{\
125. rm |6
126. rm |7
127.\}
128.el \
129\{\
130. ds |6 "\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
131. ds |7 "\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
132.\}
133..
134.de ef \" *** define even foot
135.ie !\\n(.$ \
136. rm |6
137.el \
138. ds |6 "\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
139..
140.de of \" *** define odd footer
141.ie !\\n(.$ \
142. rm |7
143.el \
144. ds |7 "\\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9
145..
146.de ep \" *** end page (must always be followed by a .bp)
147.if \\n(nl>0 \
148\{\
149. wh 0
150. rs
151. @b
152.\}
153..
154.\"\f *** INTERNAL HEADER AND FOOTER MACROS ***
155.de @h \" --- header
799e5a57 156.if \n@>1 .tm >> @h %=\\n% ?a=\\n(?a ?b=\\n(?b ?w=\\n(?w
84f25a89
EA
157.if (\\n(.i+\\n(.o)>=\\n(.l \
158. tm Line \\n(c. -- Offset + indent exceeds line length
159.if t .if (\\n(.l+\\n(.o)>7.75i \
160. tm Line \\n(c. -- Offset + line length exceeds paper width
161.\" initialize a pile of junk
162.nr ?h \\n(?H \" transfer "next page" to "this page"
163.rr ?H
164.nr ?c \\n(?C
165.rr ?C
166.rn |4 |0
167.rn |5 |1
168.rn |6 |2
169.rn |7 |3
170.nr _w 0 \" reset max footnote width
9271e56c 171.nr ?W 0 \" no wide floats this page (yet)
84f25a89
EA
172.nr ?I 1
173.\" begin actual header stuff
174.ev 2
175.rs
176.if t .@m \" output cut mark
177.if \\n(hm>0 \
178. sp |\\n(hmu \" move to header position
84f25a89
EA
179.@t $h \" output header title
180.if \\n(tm<=0 \
181. nr tm \n(.Vu
182.sp |\\n(tmu \" move to top of text
183.ev
184.mk _k \" for columned output
185.if \\n(?n .nm 1 \" restore line numbering if n1 mode
186.nr $c 1 \" set first column
187.if \n@>4 .tm -- @h >> .ns nl=\\n(nl %=\\n% _k=\\n(_k tm=\\n(tm
188.ie \\n(?s \
189\{\
190. rr ?s
191. rs
192' @b
193.\}
194.el \
195. @n \" begin the column
799e5a57 196.if \n@>2 .tm << @h
84f25a89 197..
5fcae4d3
EA
198.if !\nv \
199\{\
200. de @m \" --- output cut mark (only on C/A/T-style)
201. @O 0
202. lt 7.5i
203. tl '\(rn''\(rn'
204. @O
205. lt
84f25a89 206..
5fcae4d3 207.\}
84f25a89
EA
208.de @n \" --- new column or page
209.if \n@>3 .tm >> @n nl=\\n(nl %=\\n% ?f=\\n(?f ?o=\\n(?o
210.if \\n(bm<=0 \
211. nr bm \\n(.Vu
9271e56c 212.if (\\n(_w<=\\n($l)&(\\n(?W=0) \
84f25a89
EA
213\{\
214. nr _b (\\n(ppu*\\n($ru)/2u \" compute fudge factor (must be < 1P)
215. if \\n(_bu>((\\n(bmu-\\n(fmu-(\\n(tpu*\\n($ru))/2u) \
216. nr _b (\\n(ppu*\\n($ru)-\n(.Vu
217. nr _b +\\n(bmu
218.\}
219.nr _B \\n(_bu
220.ch @f
221.wh -\\n(_bu @f
601202e1
EA
222.nr _b +(\\n(ppu*\\n($ru) \" add 1 paragraph v in case of sweep past
223.if \n@>2 .tm @n .p=\\n(.p bm=\\n(bm _b=\\n(_b _B=\\n(_B
84f25a89
EA
224.nr ?f 0 \" reset footnote flag
225.if \\n(?o \
226\{\
227. (f _ \" reprocess footnotes which run off page
228. nf
229. |o
230. fi
231. )f
232. rm |o
233.\}
234.nr ?o 0
235.if \\n(?T \
236\{\
237. nr _i \\n(.i
238. in \\n($iu
239. |h \" output the table header
240. in \\n(_iu
241. rr _i
242. mk #T \" for tbl commands
243. ns
244.\}
3778aaad 245.if (\\n(?a)&((\\n($c<2):(\\n(?w=0)) \
84f25a89
EA
246\{\
247. nr ?a 0 \" output floating keep
248. @k |t
3778aaad
EA
249. if \\n(?w \
250. mk _k \" don't overstrike wide keeps
251. nr ?w 0
84f25a89
EA
252.\}
253.os
254.$H \" special column header macro
255.ns
256..
257.de @f \" --- footer
601202e1
EA
258.if \n@>1 .tm >> @f %=\\n% nl=\\n(nl ?a=\\n(?a ?b=\\n(?b ?f=\\n(?f
259.if \n@>2 .nr VL \\n(.pu-\\n(nlu
260.if \n@>2 .tm @f bm=\\n(bm _B=\\n(_B _b=\\n(_b .p-nl=\\n(VL
84f25a89
EA
261.ec
262.if \\n(?T \
263\{\
264. nr T. 1 \" for tbl commands (to output bottom line)
265. T# 1 \" output the sides and bottom lines
266. br
267.\}
268.ev 2
269.ce 0
270.if \\n(?b \
271\{\
272. nr ?b 0
799e5a57 273. @k |b\" \" output bottom of page tables
84f25a89
EA
274.\}
275.if \\n(?f \
276. @o \" output footnote if present
277.ie \\n($c<\\n($m \
278. @c \" handle new column
279.el \
280. @e \" new page
281.ev
282.if \n@>2 .tm << @f
283..
284.de @o \" --- output footnote
285.nf
286.ls 1
287.in 0
601202e1 288.if \n@>2 .tm @o last printed text = \\n(nl placing @r trap at -\\n(_B
84f25a89
EA
289.wh -\\n(_Bu @r
290.|f
291.fi
601202e1 292.if \n@>2 .tm @o triggered @r (?o) = \\n(?o
84f25a89 293.if \\n(?o \
d382181b 294\{\
84f25a89
EA
295. di \" just in case triggered @r
296. if \\n(dn=0 \
297\{\
298. rm |o
299. nr ?o 0
300. \}
301. nr dn \\n(_D
302. rr _D
303.\}
304.rm |f
305.ch @r
306..
307.de @c \" --- new column
308.if \n@>2 .tm >> @c %=\\n%
309.rs
310.sp |\\n(_ku
311.@O +\\n($lu+\\n($su
312.nr $c +1
313.@n
314..
315.de @e \" --- end page
316.if \n@>2 .tm >> @e
317.@O \\n(_ou
318.rs
319.sp |\\n(.pu-\\n(fmu-(\\n(tpu*\\n($ru) \" move to footer position
320.@t $f \" output footer title
321.nr ?h 0
322.bp
323..
324.de @t \" --- output header or footer title
325.if !\\n(?h \
326\{\
327. sz \\n(tp \" set header/footer type fonts, etc.
328. @F \\n(tf
329. lt \\n(_Lu \" make title span entire page
330. nf
331. \\$1
332. br
333.\}
334..
335.de $h \" $$$ print header
336.rm |z
337.if !\\n(?c \
338\{\
339. if e .ds |z "\\*(|0
340. if o .ds |z "\\*(|1
341.\}
342.if !\(ts\\*(|z\(ts\(ts \
343' tl \\*(|z
344.rm |z
345..
346.de $f \" $$$ print footer
347.rm |z
348.if \\n(?c \
349\{\
350. if e .ds |z "\\*(|0
351. if o .ds |z "\\*(|1
352.\}
353.if \(ts\\*(|z\(ts\(ts \
354\{\
355. if e .ds |z "\\*(|2
356. if o .ds |z "\\*(|3
357.\}
358.if !\(ts\\*(|z\(ts\(ts \
359' tl \\*(|z
360.rm |z
361..
362.de @r \" --- reprocess overflow footnotes
363.if \n@>3 .tm >> @r .z=\\n(.z ?f=\\n(?f ?a=\\n(?a ?b=\\n(?b _b=\\n(_b
364.di |o \" save overflow footnote
365.nr ?o 1
366.nr _D \\n(dn
367.ns
368..
369.\"\f *** COMMANDS WITH VARIANT DEFINITIONS ***
370.rn bp @b \" --- begin page
371.de bp \" *** begin new page (overrides columns)
372.nr $c \\n($m \" force new page, not new column
373.ie \\n(nl>0 \
374. @b \\$1
375.el \
376\{\
377. if \\n(.$>0 \
378. pn \\$1
379. if \\n(?I \
380. @h \" 'spring' the header trap
381.\}
382.br
383.wh 0 @h \" reset header
384..
385.rn ll xl \" *** special line length (local)
386.de ll \" *** line length (global to environments)
387.xl \\$1
388.lt \\$1
389.nr $l \\n(.l
390.if (\\n($m<=1):(\\n($l>\\n(_L) \
391. nr _L \\n(.l
392..
393.rn po @O \" --- local page offset
394.de po \" *** page offset
395.@O \\$1
396.nr _o \\n(.o
397..
398.\"\f *** MISCELLANEOUS ROFF COMMANDS ***
399.de hx \" *** suppress headers and footers next page
400.nr ?H 1
401..
402.de ix \" *** indent, no break
403'in \\$1
404..
405.de bl \" *** contiguous blank lines
406.br
407.ne \\$1
408.rs
409.sp \\$1
410..
411.de n1 \" *** line numbering 1
412.nm 1
413.xl -\w'0000'u
414.nr ?n 1
415..
416.de n2 \" *** line numbering 2
417.nm \\$1
418.ie \\n(.$ \
419. xl -\w'0000'u
420.el \
421. xl \\n($lu
422..
423.de pa \" *** new page
424.bp \\$1
425..
426.de ro \" *** roman page numbers
427.af % i
428..
429.de ar \" *** arabic page numbers
430.af % 1
431..
432.de m1 \" *** position one space
433.nr _0 \\n(hmu
434.nr hm \\$1v
435.nr tm +\\n(hmu-\\n(_0u
436.rr _0
437..
438.de m2 \" *** position two space
439.nr tm \\n(hmu+\\n(tpp+\\$1v
440..
441.de m3 \" *** position three space
442.nr bm \\n(fmu+\\n(tpp+\\$1v
443..
444.de m4 \" *** position four space
445.nr _0 \\n(fmu
446.nr fm \\$1v
447.nr bm +\\n(fmu-\\n(_0u
448..
449.de sk \" *** leave a blank page (next page)
450.if \\n(.$>0 \
451. tm Line \\n(c. -- I cannot skip multiple pages
452.nr ?s 1
453..
454.\"\f *** MISCELLANEOUS USER SUPPORT COMMANDS ***
455.de re \" *** reset tabs (TROFF defines 15 stops default)
456.ta 0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i +0.5i
457..
458.if t .ig
459.de re \" *** reset tabs (NROFF version)
460.ta 0.8i +0.8i +0.8i +0.8i +0.8i +0.8i +0.8i +0.8i +0.8i +0.8i +0.8i +0.8i +0.8i +0.8i +0.8i
461..
462.de ba \" *** set base indent
463.ie \\n(.$ \
464. nr $i \\$1n
465.el \
466. nr $i \\n(siu*\\n($0u
467..
468.de hl \" *** draw horizontal line
469.br
470\l'\\n(.lu-\\n(.iu'
471.sp
472..
473.\"\f *** PARAGRAPHING ***
474.de pp \" *** paragraph
475.lp \\n(piu
476..
477.de lp \" *** left aligned paragraph
478.@p
479.if \\n(.$ \
480. ti +\\$1
481.nr $p 0 1
482..
483.de ip \" *** indented paragraph w/ optional tag
484.if (\\n(ii>0)&(\\n(ii<1n) \
485. nr ii \\n(iin
486.nr _0 \\n(ii
487.if \\n(.$>1 \
488. nr _0 \\$2n
489.@p \\n(_0u
490.if \\w"\\$1" \
491\{\
492. ti -\\n(_0u
493. ie \\w"\\$1">=\\n(_0 \
494\{\
495\&\\$1
496. br
497. \}
498. el \&\\$1\h'|\\n(_0u'\c
499.\}
500.rr _0
501..
502.de np \" *** numbered paragraph
503.nr $p +1
504.ip (\\n($p)
505..
506.de @p \" --- initialize for paragraph
507.@I \" initialize macro processor
508.if "\\n(.z"|e" .tm Line \\n(c. -- Unmatched continued equation
509.in \\n($iu+\\n(pou
510.if \\n(.$ \
511. in +\\$1n
512.ce 0
513.fi
514.@F \\n(pf
515.sz \\n(ppu
516.sp \\n(psu
517.ne \\n(.Lv+\\n(.Vu
518.ns
519..
520.\"\f *** SECTION HEADINGS ***
521.de sh \" &&& section heading
522.rn sh @T
523.so \\*(||/sh.me
524.sh "\\$1" "\\$2" \\$3 \\$4 \\$5 \\$6 \\$7 \\$8
525.rm @T
526..
527.de $p \" $$$ print section heading
528.if (\\n(si>0)&(\\n(.$>2) \
529. nr $i \\$3*\\n(si
530.in \\n($iu
531.ie !"\\$1\\$2"" \
532\{\
533. sp \\n(ssu \" one of them is non-null
534. ne \\n(.Lv+\\n(.Vu+\\n(psu+(\\n(spu*\\n($ru*\\n(.Lu)
535. ie \\n(.$>2 \
536. ti -(\\n(siu-\\n(sou)
537. el \
538. ti +\\n(sou
539. @F \\n(sf
540. sz \\n(spu
541. if \\$3>0 \
542. $\\$3
543. if \w"\\$2">0 \\$2.
544. if \w"\\$1">0 \\$1\f1\ \ \"
545.\}
546.el \
547. sp \\n(psu
548.@F \\n(pf
549.sz \\n(ppu
550..
551.de uh \" *** unnumbered section heading
552.rn uh @T
553.so \\*(||/sh.me
554.uh "\\$1"
555.rm @T
556..
557.\"\f *** COLUMNNED OUTPUT ***
558.de 2c \" *** double columned output
559.br
560.if \\n($m>1 \
561. 1c \" revert to 1c if already 2c
562.nr $c 1
563.nr $m 2
564.if \\n(.$>1 \
565. nr $m \\$2
566.if \\n(.$>0 \
567. nr $s \\$1n \" param 1: column seperation
568.nr $l (\\n(.l-((\\n($m-1)*\\n($s))/\\n($m
569.xl \\n($lu
570.mk _k
571.ns
572..
573.de 1c \" *** single columned output
574.br
575.nr $c 1
576.nr $m 1
577.ll \\n(_Lu \" return to normal output
578.sp |\\n(.hu
579.@O \\n(_ou
580..
581.de bc \" *** begin column
582.sp 24i
583..
584.\"\f *** FLOATING TABLES AND NONFLOATING BLOCKS ***
585.de (z \" &&& begin floating keep
517824c0 586.rn (z @V
84f25a89
EA
587.so \\*(||/float.me
588.(z \\$1 \\$2
517824c0 589.rm @V
84f25a89
EA
590..
591.de )z \" &&& end floating keep
592.tm Line \\n(c. -- unmatched .)z
593..
594.de (t \" XXX temp ref to (z
595.(z \\$1 \\$2
596..
597.de )t \" XXX temp ref to )t
598.)z \\$1 \\$2
599..
600.de (b \" *** begin block
601.br
602.@D 3 \\$1 \\$2
603.sp \\n(bsu
604.@(
605..
606.de )b \" *** end block
607.br
608.@)
609.if (\\n(bt=0):(\\n(.t<\\n(bt) \
610. ne \\n(dnu \" make it all on one page
611.ls 1
612.nf
613.|k
614.ec
615.fi
616.in 0
617.xl \\n($lu
618.ev
619.rm |k
620.sp \\n(bsu+\\n(.Lv-1v
621..
622.de @( \" --- begin keep
623.if !"\\n(.z"" .tm Line \\n(c. -- Illegal nested keep \\n(.z
624.@M
625.di |k
626\!'rs
627..
628.de @M \" --- set modes for display
629.nr ?k 1
630.@C 1
631.@F \\n(df
632.vs \\n(.su*\\n($Ru
633.nf
634.if "\\*(|p"F" \
635. fi \" set fill mode if "F" parameter
636.if \\n(_d=4 \
637. in 0
638.if \\n(_d=3 \
639\{\
640. in +\\n(biu
641. xl -\\n(biu
642.\}
643.if \\n(_d=1 \
644. ce 10000
645..
646.de @) \" --- end keep
647.br
648.if !"\\n(.z"|k" .tm Line \\n(c. -- Close of a keep which has never been opened
649.nr ?k 0
650.di
651.in 0
652.ce 0
653..
654.de (c \" *** begin block centered text
655.if "\\n(.z"|c" .tm Line \\n(c. -- Nested .(c requests
656.di |c
657..
658.de )c \" *** end block centered text
659.if !"\\n(.z"|c" .tm Line \\n(c. -- Unmatched .)c
f0646cae 660.br \" force out final line
84f25a89
EA
661.di
662.if \n@>4 .tm >> .)c .l=\\n(.l .i=\\n(.i $i=\\n($i dl=\\n(dl
663.ev 1
664.ls 1
665.in (\\n(.lu-\\n(.iu-\\n(dlu)/2u
666.if \n@>4 .tm -- .)c << .in .l=\\n(.l .i=\\n(.i dl=\\n(dl
667.nf
668.|c
669.ec
670.in
671.ls
672.ev
673.rm |c
674..
675.\"\f *** BLOCK QUOTES (OR WHATEVER) AND LISTS ***
676.de (q \" *** begin block quote
677.br
678.@C 1
679.fi
680.sp \\n(qsu
681.in +\\n(qiu
682.xl -\\n(qiu
683.sz \\n(qp
684..
685.de )q \" *** end block quote
686.br
687.ev
688.sp \\n(qsu+\\n(.Lv-1v
689.nr ?k 0
690..
691.de (l \" *** begin list
692.br
693.sp \\n(bsu
694.@D 3 \\$1 \\$2
695.@M
696..
697.de )l \" *** end list
698.br
699.ev
700.sp \\n(bsu+\\n(.Lv-1v
701.nr ?k 0
702..
703.\"\f *** PREPROCESSOR SUPPORT ***
704.de EQ \" &&& begin equation
705.rn EQ @T
706.so \\*(||/eqn.me
707.EQ \\$1 \\$2
708.rm @T
709..
710.de TS \" &&& begin table
517824c0 711.rn TS @W
84f25a89
EA
712.so \\*(||/tbl.me
713.TS \\$1 \\$2
517824c0 714.rm @W
84f25a89 715..
a61ea4a3
EA
716.de ]- \" &&& initialize reference
717.rn ]- @]
718.so \\*(||/refer.me
719.]-
720.rm @]
721..
722.if n .ds [. " [
723.if t .ds [. \s-2\v'-.4m'\f1
724.if n .ds .] ]
725.if t .ds .] \v'.4m'\s+2\fP
726.if n .ds <. "
727.if t .ds <. .
728.if n .ds >. .
729.if t .ds >. "
84f25a89
EA
730.\"\f *** FONT AIDS ***
731.de sz \" *** set point size and vertical spacing
732.ps \\$1
733.vs \\n(.su*\\n($ru \" default vs at pointsize + 20%
734.bd S B \\n(.su/3u
735..
736.de r \" *** enter roman font
737.nr _F \\n(.f
738.ul 0
739.ft 1
740.if \\n(.$ \&\\$1\f\\n(_F\\$2
741.rr _F
742..
743.de i \" *** enter italic
744.nr _F \\n(.f
745.ul 0
746.ft 2
747.if \\n(.$ \&\\$1\f\\n(_F\\$2
748.rr _F
749..
750.de b \" *** enter boldface (underline in NROFF)
751.nr _F \\n(.f
752.ul 0
7729eef3 753.ft \\n($b
84f25a89 754.if \\n(.$ \&\\$1\f\\n(_F\\$2
84f25a89
EA
755.rr _F
756..
757.de rb \" *** enter real boldface (not underlined in NROFF)
758.nr _F \\n(.f
759.ul 0
760.ft 3
761.if \\n(.$ \&\\$1\f\\n(_F\\$2
762.rr _F
763..
764.de u \" *** enter underlined word
765\&\\$1\l'|0\(ul'\\$2
766..
767.de q \" *** enter quoted word
768\&\\*(lq\\$1\\*(rq\\$2
769..
770.de bi \" *** enter word in bold italics
771.ft 2
772.ie t \&\k~\\$1\h'|\\n~u+(\\n(.su/3u)'\\$1\fP\\$2
773.el \&\\$1\fP\\$2
774..
775.de bx \" *** enter boxed word
776.ie \\n($T \&\f2\\$1\fP\\$2
777.el \k~\(br\|\\$1\|\(br\l'|\\n~u\(rn'\l'|\\n~u\(ul'\^\\$2
778..
779.de @F \" --- change font (8 -> underlined, 0 -> no change)
780.nr ~ \\$1
781.if \\n~>0 \
782\{\
783. ul 0
7729eef3
EA
784. if \\n~>4 \
785. nr ~ \\n($b
786. ft \\n~
84f25a89
EA
787.\}
788.rr ~
789..
790.\"\f *** FOOTNOTING ***
791.de (f \" &&& begin footnote
517824c0 792.rn (f @U
84f25a89
EA
793.so \\*(||/footnote.me
794.(f \\$1 \\$2
517824c0 795.rm @U
84f25a89
EA
796..
797.de )f \" &&& end footnote
798.tm Line \\n(c. -- unmatched .)f
799..
800.de $s \" $$$ footnote separator
801\l'2i'
802.if n \
803. sp 0.3
804..
805.\"\f *** DELAYED TEXT ***
806.de (d \" &&& begin delayed text
517824c0 807.rn (d @U
84f25a89
EA
808.so \\*(||/deltext.me
809.(d \\$1 \\$2
517824c0 810.rm @U
84f25a89
EA
811..
812.de )d \" &&& end delayed text
813.tm Line \\n(c. -- unmatched .)d
814..
815.\"\f *** INDEXES (TABLE OF CONTENTS) ***
816.de (x \" &&& begin index
517824c0 817.rn (x @U
84f25a89
EA
818.so \\*(||/index.me
819.(x \\$1 \\$2
517824c0 820.rm @U
84f25a89
EA
821..
822.de )x \" &&& end index entry
823.tm Line \\n(c. -- unmatched .)x
824..
825.\"\f *** STUFF FOR "STANDARD" PAPERS ***
826.de th \" *** set "thesis" mode
827.so \\*(||/thesis.me
828.rm th
829..
830.de +c \" *** begin chapter
831.ep \" force out footnotes
832.if \\n(?o:\\n(?a \
833\{\
834. bp \" force out a table or more footnote
835. rs
836. ep
837.\}
838.nr ?C 1
839.nr $f 1 1
840.ds * \\*[1\\*]\k*
841.if \\n(?R \
842. pn 1
843.bp
844.in \\n($iu \" reset the indent
845.rs
846.ie \\n(.$ \
847. $c "\\$1"
848.el \
849. sp 3
850..
851.de ++ \" *** declare chapter type
852.nr _0 0
853.if "\\$1"C" \
854. nr _0 1 \" chapter
855.if "\\$1"RC" \
856. nr _0 11 \" renumbered chapter
857.if "\\$1"A" \
858. nr _0 2 \" appendix
859.if "\\$1"RA" \
860. nr _0 12 \" renumbered appendix
861.if "\\$1"P" \
862. nr _0 3 \" preliminary material
863.if "\\$1"B" \
864. nr _0 4 \" bibliographic material
865.if "\\$1"AB" \
866. nr _0 5 \" abstract
867.if \\n(_0=0 \
868. tm Line \\n(c. -- Bad mode to .++
869.nr ?R 0
870.if \\n(_0>10 \
871.\{
872. nr ?R 1
873. nr _0 -10
874.\}
875.nr ch 0 1
876.if (\\n(_0=3):(\\n(_0=5) \
877. pn 1 \" must do before .ep
878.ep \" end page for correct page number types
879.if \\n(_0=1 \
880\{\
881. af ch 1
882. af % 1
883.\}
884.if \\n(_0=2 \
885\{\
886. af ch A
887. af % 1
888.\}
889.if \\n(_0=3 \
890. af % i
891.if \\n(_0=4 \
892. af % 1
893.if \\n(_0=5 \
894. af % 1
895.if \\n(.$>1 \
896. he \\$2
897.if !\\n(_0=\\n(_M .if \\n(_M=3 \
898. pn 1
899.nr _M \\n(_0
900.rr _0
901..
902.de $c \" $$$ print chapter title
903.sz 12
904.ft B
905.ce 1000
906.if \\n(_M<3 \
907. nr ch +1
908.ie \\n(_M=1 CHAPTER\ \ \\n(ch
909.el .if \\n(_M=2 APPENDIX\ \ \\n(ch
910.if \w"\\$1" .sp 3-\\n(.L
911.if \w"\\$1" \\$1
912.if (\\n(_M<3):(\w"\\$1") \
913. sp 4-\\n(.L
914.ce 0
915.ft
916.sz
917.ie \\n(_M=1 \
918. $C Chapter \\n(ch "\\$1"
919.el .if \\n(_M=2 \
920. $C Appendix \\n(ch "\\$1"
921..
922.de tp \" *** title page
923.hx
924.bp
925.br
926.rs
927.pn \\n%
928..
929.de ac \" *** setup for ACM photo-ready paper
930.rn ac @T
931.so \\*(||/acm.me
932.ac "\\$1" "\\$2"
933.rm @T
934..
935.de lo \" *** pull in the set of local macros
936.\" all these macros should be named "*X", where X is any letter
937.so \\*(||/local.me
938.rm lo
939..
940.\"\f *** DATES ***
941.if \n(mo=1 .ds mo January
942.if \n(mo=2 .ds mo February
943.if \n(mo=3 .ds mo March
944.if \n(mo=4 .ds mo April
945.if \n(mo=5 .ds mo May
946.if \n(mo=6 .ds mo June
947.if \n(mo=7 .ds mo July
948.if \n(mo=8 .ds mo August
949.if \n(mo=9 .ds mo September
950.if \n(mo=10 .ds mo October
951.if \n(mo=11 .ds mo November
952.if \n(mo=12 .ds mo December
953.if \n(dw=1 .ds dw Sunday
954.if \n(dw=2 .ds dw Monday
955.if \n(dw=3 .ds dw Tuesday
956.if \n(dw=4 .ds dw Wednesday
957.if \n(dw=5 .ds dw Thursday
958.if \n(dw=6 .ds dw Friday
959.if \n(dw=7 .ds dw Saturday
960.ds td \*(mo \n(dy, 19\n(yr
961.\"\f *** PARAMETRIC INITIALIZATIONS ***
962.if (1m<0.1i)&(\nx!=0) \
963. vs 9p \" for 12-pitch DTC terminals
964.rr x
965.nr $r \n(.v/\n(.s \" ratio of vs to ps for .sz request
966.nr $R \n($r \" ratio for displays & footnotes
967.nr hm 4v \" header margin
968.nr tm 7v \" top margin
969.nr bm 6v \" bottom margin
970.nr fm 3v \" footer margin
971.nr tf 3 \" title font: (real) Times Bold
972.nr tp 10 \" title point size
973.hy 14
974.nr bi 4n \" indent for blocks
975.nr pi 5n \" indent for paragraphs
976.nr pf 1 \" normal text font
977.nr pp 10 \" normal text point size
978.nr qi 4n \" indent for quotes
979.nr qp -1 \" down one point
980.nr ii 5n \" indent for .ip's and .np's
981.nr $m 1 \" max number of columns
982.nr $s 4n \" column separation
983.ds || /usr/lib/me
984.if \n@>0 .ds || .
985.bd S B 3
986.\"\f *** OTHER INITIALIZATION ***
987.ds [ \u\x'-0.25v'
988.ds ] \d
989.ds < \d\x'0.25v'
990.ds > \u
991.ds - --
992.if t \
993\{\
994. ds [ \v'-0.4m'\x'-0.2m'\s-3
995. ds ] \s0\v'0.4m'
996. ds < \v'0.4m'\x'0.2m'\s-3
997. ds > \s0\v'-0.4m'
998. ds - \-
6c97ff5a
EA
999. nr fi 0.3i
1000.\}
1001.if n \
1002\{\
1003. nr fi 3n
84f25a89
EA
1004.\}
1005.nr _o \n(.o
1006.if n .po 1i
1007.if \n(.V=1v \
1008. nr $T 2
1009.if \n(.T=0 \
1010. nr $T 1
1011.if t \
1012\{\
1013. nr $T 0
1014. po -0.5i \" make ugly line on LHS
1015.\}
6c97ff5a
EA
1016.if \nv \
1017. po 1i \" for vtroff
84f25a89
EA
1018.if \n($T \
1019\{\
1020. if \n($T=1 \
1021. po 0
1022. ds [ [
1023. ds ] ]
1024. ds < <
1025. ds > >
1026.\}
7729eef3
EA
1027.nr $b \nb \" figure the real font 8 font
1028.rr b
1029.if \n($b=0 \
1030\{\
1031. if n .nr $b 2 \" italic
1032. if t .nr $b 3 \" bold
1033.\}
84f25a89
EA
1034.nr ps 0.5v \" paragraph pre/post spacing
1035.if \n($T \
1036. nr ps 1v
1037.if t .nr ps 0.35v
1038.nr bs \n(ps \" block pre/post spacing
1039.nr qs \n(ps \" quote pre/post spacing
1040.nr zs 1v \" float-block pre/postspacing
1041.nr xs 0.2v \" index prespacing
1042.nr fs 0.2v \" footnote prespacing
1043.if \n($T \
1044. nr fs 0
1045.if n .nr es 1v \" equation pre/postspacing
1046.if t .nr es 0.5v
1047.wh 0 @h \" set header
1048.nr $l \n(.lu \" line length
1049.nr _L \n(.lu \" line length of page
1050.nr $c 1 \" current column number
1051.nr $f 1 1 \" footnote number
1052.ds * \*[1\*]\k*\" \" footnote "name"
1053.nr $d 1 1 \" delayed text number
1054.ds # [1]\k#\" \" delayed text "name"
1055.nr _M 1 \" chapter mode is chapter
1056.ds lq \&"\" \" left quote
1057.ds rq \&"\" \" right quote
1058.if t \
1059. ds lq ``
1060.if t \
1061. ds rq ''
1062.em @z
1063.\" *** FOREIGN LETTERS AND SPECIAL CHARACTERS ***
1064.de sc \" *** define special characters
1065.so \\*(||/chars.me
1066.rm sc
1067..
1068.ll 6.0i
1069.lt 6.0i