]> git.pond.sub.org Git - empserver/blob - info/INFO.MAC
WIP empdump, %a
[empserver] / info / INFO.MAC
1 .\" EMPIRE TROFF MACRO FILE
2 .\"
3 .\"
4 .\" The TH Macro is for specifying the title of a new section
5 .\"
6 .\" In english:
7 .\"
8 .\"   Define the string Ts to be "$1 : $2" where $1 and $2 are the
9 .\"   first and second args to .TH
10 .\"
11 .\" push an "environment" onto the stack so that changes in
12 .\" font, etc. don't inturrupt what is going on in the
13 .\" text
14 .\"
15 .\" make sure that proportional spacing is on
16 .\"
17 .\" print the string Ts, centered
18 .\"
19 .\" restore spacing (not covered by environment)
20 .\"
21 .\" pop off the enviornment
22 .\"
23 .de TH          
24 .ds Ts \\$1\\\\0:\\\\0\\$2
25 .ev 1
26 .cs \\*N
27 'ce 1
28 \\*(nF\\*(Ts\\*(pF
29 .if \\n(CS>0 .cs \\*N \\*(cS
30 'sp
31 .ev
32 ..
33 .\"
34 .\"
35 .\"
36 .\"
37 .\"
38 .\"
39 .de EX          \" Start of macro EX
40 .nf
41 .ti +0.3i       \" Temporary indent of 3/10 inch
42 .\" Constant spacing for EF font = 26/36 ems 
43 .cs \*(EF 26
44 .nr CS 1        \" Indicate constant spacing on
45 .lg 0           \" Turn off ligature mode
46 .ps 8           \" 8-point
47 \*(eF[##:##] Command : \\$1 \\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9\*(nF
48 .ps 10          \" 10-point
49 .lg             \" Turn ligaturing back on
50 .\" Turn off constant spacing
51 .cs \*(EF
52 .nr CS 0        \" Indicate constant spacing off
53 .br             \" Break
54 .fi
55 ..
56 .de SY                  \" Start of macro SY
57 .s1
58 .\" Print out "SYNTAX" in bold font
59 \*(bFSYNTAX\*(pF
60 .ti +0.3i               \" Temporarily indent 3/10 inch
61 .\" Constant spacing for EF font, 26/36 ens
62 .cs \*(EF 26
63 .nr CS 1        \" Indicate constant spacing on
64 .lg 0           \" No ligatures
65 .ps 10          \" 10 point
66 .\" Print out in EF font
67 \*(eF[##:##] Command : \\$1\*(pF
68 .ps 10          \" 10 point
69 .lg                     \" Turn ligatures back on
70 .cs \*(EF               \" Turn off constant spacing
71 .nr CS 0                \" Indicate constant spacing off
72 .s1
73 ..
74 .de LV
75 .s1
76 Level: \\$1
77 .s1
78 ..
79 .de NA                  \" Start of macro NA -- name of command/concept
80 .s1
81 .\" Print out "NAME" in bold font
82 \*(bFNAME\*(pF
83 .ti +0.3i               \" Temporarily indent 3/10 inch
84 \\*(nF\\$1 \- \\$2\*(pF
85 .s1
86 ..
87 .de SA                  \" Start of macro SA -- SEE ALSO
88 .s1
89 .\" Print out "SEE ALSO" in bold font
90 \*(bFSEE ALSO\*(pF
91 .ti +0.3i               \" Temporarily indent 3/10 inch
92 \\*(nF\\$1\*(pF
93 .s1
94 ..
95 .de L                   \" Start of macro L
96 .br                     \" Break
97 .ti -\w'\\$1\\0\\0'u    \" Indent backwards with of 1st arg + 2 spaces
98 .\" Print 1st arg + 2 spaces
99 \\$1\0\0\c
100 ..
101 .de SH                  \" Start of macro SH -- section heading
102 .s1
103 \s+2\*(bF\\$1\*(pF\s0
104 .sp 0.6
105 ..
106 .de SS                  \" Start of macro SS -- subsection heading
107 .s1
108 \*(bF\\$1\*(pF
109 .sp 0.6
110 ..
111 .de NF          \" Start of macro NF
112 .nf             \" No-fill
113 .\" Constant width 26/36 ens
114 .cs \*(EF 26
115 .nr CS 1        \" Indicate constant spacing on
116 .lg 0           \" No ligatures
117 .ps 8           \" 8-point
118 .di Nf          \" Send output to macro Nf
119 \*(eF           \" Switch to EF font
120 .nr nF \\n(.i   \" Store current indent in nF number register
121 .in +0.3i       \" Add indentation 3/10 inch
122 ..
123 .de FI          \" Start of FI macro
124 .in \\n(nFu     \" Restore previous indentation
125 \*(nF           \" Interpolate nF register
126 .di             \" Terminate output to macro Nf
127 .ne \\n(dnu     \" Give me at least as much space as in dn number reg
128 .Nf             \" Call macro Nf
129 .ps 10          \" 10-point
130 .lg             \" Restore ligatures
131 .\" Turn off constant width
132 .cs \*(EF
133 .nr CS 0        \" Indicate constant spacing off
134 .fi             \" Back into fill mode
135 ..
136 .hy 15          \" Auto hyphenation with restrictions -- see troff man
137 .de s1          \" Start of macro s1
138 .sp 1           \" Blank line
139 .ne 4           \" Give me 4 vertical lines
140 ..
141 .ds HT \t       \" Define HT macro as a horizontal tab