summaryrefslogtreecommitdiff
path: root/lib/translate/troff/header
blob: 31ef0a5b6a36a65a97c306c7a8e9657bbf119a43 (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
.ad pb
.pmll 20 999999
.ss 12 0
.ssh 15
.kn 1
.hlm 2
.ds margin 1.25i
.po \*[margin]
.de header
'	sp \*[margin]
..
.de footer
'	bp
..
.wh 0 header
.wh -\*[margin] footer
.ds measure 6i
.ll \*[measure]
.ds body_size 11
.ds body_spacing 14
.ps \*[body_size]
.vs \*[body_spacing]
.\" Extra parsing needed: a -> {post.url, post.mark}.
.de reset
.	ps \*[body_size]
.	vs \*[body_spacing]
..
.de p
.	ti +1m
..
.de /p
..
.de i
..
.de /i
..
.de div
.	sp
..
.de /div
.	sp
..
.\" As the file is traversed, record .sy to a temporary file.
.\" Format using sed, source using .so. Idea taken from utmac.
.\" Then, at the document's end, write the TOC from the recording.
.de a
..
.de /a
..
.de strong
.	ft B
..
.de /strong
.	ft
..
.de span
..
.de /span
..
.de h1
.	ft \*[FONT_DISPLAY]
.	ps 60
.	vs 80
..
.de /h1
.	reset
..
.de h2
.	ft \*[FONT_SUBHEAD]
.	ps 40
.	vs 60
..
.de /h2
.	reset
..
.de h3
.	h2
.	ps 30
.	vs 20
..
.de /h3
.	/h2
..