docs/master
view style @ 6:2136d3e29f12
style: added H2, added BU, rework in NH.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 07 Mar 2012 14:34:39 +0100 |
parents | 8fea9ed7c298 |
children | 7497062adc82 |
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 RC LinLibertine_R otf
21 .feature RC +onum +smcp
22 .fp 0 BC LinLibertine_RB otf
23 .feature BC +onum +smcp
25 .ig
26 . nr PS 10
27 . nr VS 12
28 ..
30 .nr PI 3n
31 .nr PD .5v
32 .nr lu 0
33 .af PN i
35 .ds _E '\\\\n(PN''\f(RCMarkus Schnalke: The Modern Mail Handler\fP' \" left
36 .ds _O '\f(RCChapter \\\\n(H1\ \ \\\\*(_C\fP''\\\\n(PN' \" right
37 .ds CH "
39 .nr HM 3.3c
40 .nr FM 6.6c
41 .nr LL 14c
42 .ll 14c
43 .nr LT \n(LL
44 .nr PO 2.3c
45 .de _X
46 \&
47 ..
48 .wh 2.8c _X
50 .de _M \" change margins for text block on next page
51 .if e .nr PO -2.3c
52 .if o .nr PO +2.3c
53 .ds CF "
54 ..
55 .wh -1u _M
57 .de CW
58 .nr PQ \\n(.f
59 .if t \{\
60 . ft CW
61 . if !^\\$1^^ \&\\$1\f\\n(PQ\\$2
62 .\}
63 .if n \{\
64 . ie ^\\$1^^ .ul 999
65 . el .ul 1
66 . if \\n(.$=1 \&\\$1
67 . if \\n(.$>1 \&\\$1\c
68 . if \\n(.$>1 \&\\$2
69 .\}
70 ..
72 .ds [. [
73 .ds .] ]
74 .rm ]<
75 .de ]<
76 . LP
77 . de FP
78 . IP \\\\$1.
79 \\..
80 . rm FS FE
81 ..
83 .am PT
84 . rs
85 ..
87 .rm NH
88 .de NH
89 .SH
90 .nr NS \\$1
91 .if !\\n(.$ .nr NS 1
92 .if !\\n(NS .nr NS 1
93 .nr H\\n(NS +1
94 .if \\n(NS<2 .nr H2 0
95 .if \\n(NS<3 .nr H3 0
96 .ds SN \\n(H1
97 .if \\n(NS>1 .as SN \&.\\n(H2
98 .if \\n(NS>2 .as SN \&.\\n(H3
99 ..
101 .de H0
102 .EH "
103 .OH "
104 .bp
105 .if e .bp
106 .EH "\\\\*(_E
107 .OH "\\\\*(_O
108 .ds CF \\n(PN
109 \
110 . lg 0
111 . nr PS +6
112 . nr VS +6
113 .if \\n(.$=2 .if ,\\$2,no, .SH
114 .if \\n(.$=1 \{\
115 . NH 1
116 . ce 1
117 Chapter \\*(SN
118 . sp .5
119 .\}
120 . ce 1
121 . tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
122 \&\\$1
123 . br
124 . tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
125 . nr PS -6
126 . nr VS -6
127 . lg
128 .ds _C "\\$1
129 . RT
130 . XS
131 . sp .5v
132 . B
133 .if ''\\*(SN' \&\\$1
134 .if \\*(SN \{\
135 Chapter \\*(SN \\$1
136 .\}
137 . XE
138 .sp 4
139 .nr PP 0
140 ..
142 .de H1
143 .br
144 .ne 7
145 .sp
146 . nr PS +2
147 . nr VS +2
148 .if '\\$2'no' .SH
149 .if \\n(.$=1 .NH 2
150 . lg 0
151 . tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
152 .if !'\\$2'no' \&\\*(SN
153 \\$1
154 . br
155 . tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
156 . nr PS -2
157 . nr VS -2
158 . lg
159 . RT
160 .if !'\\$2'no' \{\
161 .ds _S "\\$1
162 . XS
163 \\*(SN \\$1
164 . XE
165 .\}
166 .nr PP 0
167 ..
169 .de H2
170 .br
171 .ne 5
172 .if '\\$2'no' .SH
173 .if \\n(.$=1 .NH 3
174 .if !'\\$2'no' \&\\*(SN
175 \\$1
176 . RT
177 .if !'\\$2'no' \{\
178 .ds _S "\\$1
179 . XS
180 \\*(SN \\$1
181 . XE
182 .\}
183 .nr PP 0
184 ..
186 .de P
187 .ie \\n(PP .PP
188 .el .LP
189 .nr PP 1
190 ..
192 .am IP
193 .nr PP 0
194 ..
196 .de BU
197 .IP \(bu
198 ..
200 .am QP
201 .ps -1
202 ..
204 .am DS
205 .ft CW
206 .ps -1
207 .ta T 8n
208 .nr PP 0
209 ..
211 .am FA
212 .ps 8
213 .vs 9
214 ..