summaryrefslogtreecommitdiff
path: root/doc/macros.texi
blob: 77c626bf578c89ea739acad7235b4388d8030873 (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
@set VERSION 0.2.1
@set GUILE_VERSION 2.0
@set RACKET_VERSION 5.3
@set EMACS_VERSION 23.2
@set DOWN_BASE https://github.com/@/jaor/@/geiser/@/downloads
@set OLD_DOWN_BASE http://download.savannah.nongnu.org/@/releases/@/geiser
@set TARBALL geiser-@value{VERSION}.tar.gz

@macro downfile{FILE, CAPT}
@c @uref{@value{DOWN_BASE}/@/@value{VERSION}/@/\FILE\, \CAPT\}
@uref{@value{DOWN_BASE}/@/\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 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