-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmacros.m4
73 lines (56 loc) · 1.02 KB
/
macros.m4
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
divert(-1)
define(`_startpage',`dnl
<html>
<head>
<title>$1</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>')
define(`_endpage',`dnl
</body>
</html>')
define(`_itemize',`dnl
<ul>
_listitems($@)
</ul>')
define(`_enumerate',`dnl
<ol>
_listitems($@)
</ol>')
define(`_listitems',`dnl
ifelse($#, 0, `',
$#, 1, `<li>$1</li>',
`<li>$1</li>
_listitems(shift($@))')')
define(`_title',`dnl
<h1>$1</h1>')
define(`_section',`dnl
<h2>$1</h2>')
define(`_subsection',`dnl
<h3>$1</h3>')
define(`_par',`dnl
<p>$1</p>')
define(`_timestamp', `dnl
Last update: esyscmd(`date')')
define(`_article', `dnl
"$1"<br>
$2, <i>$3</i> <b>$4</b>, $5 ($6).')
define(`_activity', `dnl
$1 - $2<br>
$3')
define(`_link', `dnl
<a href=$2>$1</a>')
define(`_navbar', `dnl
<ul class="nav">
_listitems(dnl
_link(`Home', `"index.html"'),
_link(`Vitae', `"vitae.html"'),
_link(`Resources', `"resources.html"'))
</ul>')
define(`LQ', `dnl
changequote([,])`dnl'
changequote`'')
define(`RQ', `dnl
changequote([,])dnl`
'changequote`'')
divert(0)