docs/master

view style @ 39:22ae3981a76b

style: New RN macro to reset page numbers and change their style.
author markus schnalke <meillo@marmaro.de>
date Tue, 15 May 2012 22:11:16 +0200
parents 115bbf438967
children 7b620f6b1e97
line source
1 .do xflag 3
2 .de __
3 ..
4 .blm __ \" ignore empty lines in input
5 .lc_ctype en_US.utf8
6 .mediasize a4
8 .fp 1 R LinLibertine_R otf
9 .feature R +onum
10 .fp 2 I LinLibertine_RI otf
11 .feature I +onum
12 .fp 3 B LinLibertine_RB otf
13 .feature B +onum
14 .fp 4 BI LinLibertine_RBI otf
15 .feature BI +onum
16 .fp 5 CW TerminusMedium-4.36 ttf
17 .fp 0 CI TerminusMediumItalic-4.36 ttf
18 .fp 0 CB TerminusBold-4.36 ttf
19 .fp 0 L TerminusMedium-4.36 ttf
20 .fp 0 SC LinLibertine_R otf
21 .feature SC +onum +smcp
22 .fp 0 IC LinLibertine_RI otf
23 .feature IC +onum +smcp
24 .fp 0 BC LinLibertine_RB otf
25 .feature BC +onum +smcp
27 .ig
28 . nr PS 10
29 . nr VS 12
30 ..
32 .nr PI 3n
33 .nr PD .5v
34 .nr lu 0
35 .af PN i
37 .ds _E '\\\\n(PN''\f(SCMarkus Schnalke: The Modern Mail Handler\fP' \" left
38 .ds _O '\f(SCChapter \\\\n(H1\ \ \\\\*(_C\fP''\\\\n(PN' \" right
39 .ds _o '\f(SC\\\\*(_C\fP''\\\\n(PN' \" right
40 .ds CH "
42 .nr HM 3.3c
43 .nr FM 6.6c
44 .nr LL 14c
45 .ll 14c
46 .nr LT \n(LL
47 .nr PO 2.3c
48 .de _X
49 \&
50 ..
51 .wh 2.8c _X
53 .de _M \" change margins for text block on next page
54 .if e .nr PO -2.3c
55 .if o .nr PO +2.3c
56 .ds CF "
57 ..
58 .wh -1u _M
60 .de CW
61 .nr PQ \\n(.f
62 .if t \{\
63 . ft CW
64 . if !^\\$1^^ \&\\$1\f\\n(PQ\\$2
65 .\}
66 .if n \{\
67 . ie ^\\$1^^ .ul 999
68 . el .ul 1
69 . if \\n(.$=1 \&\\$1
70 . if \\n(.$>1 \&\\$1\c
71 . if \\n(.$>1 \&\\$2
72 .\}
73 ..
75 .ds [. " [
76 .ds .] ]
77 .rm ]<
78 .de ]<
79 . LP
80 . de FP
81 . IP \\\\$1.
82 \\..
83 . rm FS FE
84 ..
86 .am PT
87 . rs
88 ..
90 .rm NH
91 .de NH
92 .SH
93 .nr NS \\$1
94 .if !\\n(.$ .nr NS 1
95 .if !\\n(NS .nr NS 1
96 .nr H\\n(NS +1
97 .if \\n(NS<2 .nr H2 0
98 .if \\n(NS<3 .nr H3 0
99 .ds SN \\n(H1
100 .if \\n(NS>1 .as SN \&.\\n(H2
101 .if \\n(NS>2 .as SN \&.\\n(H3
102 ..
104 .de AB
105 .EH "
106 .OH "
107 .bp
108 .if e .bp
109 \
110 .lg 0
111 .nr PS +6
112 .nr VS +6
113 .SH
114 .ce 1
115 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
116 \&\\$1
117 .br
118 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
119 .nr PS -6
120 .nr VS -6
121 .lg
122 .RT
123 .sp 4
124 .nr PP 0
125 ..
127 .de H0
128 .EH "
129 .OH "
130 .bp
131 .if e .bp
132 \
133 . lg 0
134 . nr PS +6
135 . nr VS +6
136 .ie \\n(.$=1 \{\
137 . NH 1
138 . ce 1
139 Chapter \\*(SN
140 . sp .5
141 .\}
142 .el .if ,\\$2,no, .SH
143 . ce 1
144 . tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
145 \&\\$1
146 . br
147 . tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
148 . nr PS -6
149 . nr VS -6
150 . lg
151 .ds _C "\\$1
152 . RT
153 . XS
154 . sp .5v
155 . B
156 .ie \\n(.$=1 \{\
157 Chapter \\*(SN \\$1
158 .\}
159 .el .if ,\\$2,no, \&\\$1
160 . XE
161 .EH "\\\\*(_E
162 .ie \\n(H1 .OH "\\\\*(_O
163 .el .OH "\\\\*(_o
164 .ds CF \\n(PN
165 .sp 4
166 .nr PP 0
167 ..
170 .\" Reset page Numbers, set page number format ($1) and move to a right page.
171 .de RN
172 .ie e .pn 1
173 .el \{
174 . pn 0
175 . bp
176 .\}
177 .ie \\n(.$=1 .af PN \\$1
178 .el .af PN 1
179 ..
182 .de H1
183 .br
184 .ne 7
185 .sp
186 . nr PS +2
187 . nr VS +2
188 .if '\\$2'no' .SH
189 .if \\n(.$=1 .NH 2
190 . lg 0
191 . tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
192 .if !'\\$2'no' \&\\*(SN
193 \\$1
194 . br
195 . tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
196 . nr PS -2
197 . nr VS -2
198 . lg
199 . RT
200 .if !'\\$2'no' \{\
201 .ds _S "\\$1
202 . XS
203 \\*(SN \\$1
204 . XE
205 .\}
206 .nr PP 0
207 ..
209 .de H2
210 .br
211 .ne 4
212 .if \\n(.$=1 .NH 3
213 \&\\*(SN
214 \\$1
215 .RT
216 .ds _S "\\$1
217 .XS
218 \\*(SN \\$1
219 .XE
220 .nr PP 0
221 ..
223 .de U2
224 .br
225 .ne 4
226 .SH
227 .if \\n(.$=1 .NH 3
228 \\$1
229 .RT
230 .nr PP 0
231 ..
233 .de P
234 .ie \\n(PP .PP
235 .el .LP
236 .nr PP 1
237 ..
239 .am IP
240 .nr PP 0
241 ..
243 .de BU
244 .IP \(bu
245 ..
247 .am QP
248 .ps -1
249 ..
251 .am DS
252 .ft CW
253 .ps -1
254 .ta T 8n
255 .nr PP 0
256 ..
258 .am FA
259 .ps 8
260 .vs 9
261 ..
263 .de Fn \" file name
264 .CW "\\$1" "\\$2
265 ..
266 .de Pn \" program name
267 .CW "\\$1" "\\$2
268 ..
269 .de Fu \" function
270 .CW "\\$1" "\\$2
271 ..
272 .de Ev \" env variable
273 .CW "\\$1" "\\$2
274 ..
275 .de Cl \" command line
276 `\c
277 .CW "\\$1" "'\\$2
278 ..
279 .de Sw \" switch
280 .CW "\\$1" "\\$2
281 ..
282 .de Mp \" man page
283 .I "\\$1" "\\$2
284 ..
285 .de Pe \" profile entry
286 .CW "\\$1" "\\$2
287 ..