summaryrefslogtreecommitdiff
path: root/doc/macros.texi
blob: 950c81ff50741968d13a4d0917bc78fa1c0f674e (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
@set VERSION 0.1.1
@set GUILE_VERSION 1.9.14
@set RACKET_VERSION 5.0.1
@set EMACS_VERSION 23.2
@set DOWN_BASE http://download.savannah.nongnu.org/releases/geiser
@set TARBALL geiser-@value{VERSION}.tar.gz

@macro downfile{FILE, CAPT}
@uref{@value{DOWN_BASE}/@value{VERSION}/\FILE\, \CAPT\}
@end macro

@macro vblurb{GVERS, RVERS, DATE}
@html
<div class="version" align="right">
@end html
@downfile{@value{TARBALL},
          Version @value{VERSION} (\DATE\) Guile \GVERS\+ and Racket \RVERS\+}
@html
</div>
@end html
@end macro

@macro dvblurb{DATE}
@vblurb{@value{GUILE_VERSION}, @value{RACKET_VERSION}, \DATE\}
@end macro

@macro alt{HTML, NOHTML}
@ifhtml
\HTML\
@end ifhtml
@ifnothtml
\NOHTML\
@end ifnothtml
@end macro

@macro altr{LINK, TXT, TLINK, TRAIL}
@ifhtml
@ref{\LINK\,,\TXT\}\TRAIL\
@end ifhtml
@ifinfo
@pxref{\LINK\,\TXT\}\TRAIL\
@end ifinfo
@iftex
@ref{\TLINK\}\TRAIL\
@end iftex
@end macro

@macro img{FILE, ALIGN}
@ifhtml
@html
<img src="img/\FILE\.png" class="float\ALIGN\"/>
@end html
@end ifhtml
@end macro

@macro imgc{FILE}
@ifhtml
@html
<img src="img/\FILE\.png"/>
@end html
@end ifhtml
@end macro