-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlib.rkt
58 lines (47 loc) · 1.21 KB
/
lib.rkt
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
#lang racket/base
(require
(for-label redex/reduction-semantics)
(for-label racket)
scribble/manual
scribble/example
racket/runtime-path
racket/function
scribble/core
scribble/latex-properties
scribble/html-properties)
(provide
(for-label
(all-from-out
racket
redex/reduction-semantics))
(all-from-out
racket/function
scribble/example)
(all-defined-out))
(define boxy-evalor (make-base-eval))
(define-runtime-path custom-css-path "custom.css")
(define-runtime-path custom-tex-path "custom.tex")
(define backlink-style
(make-style
"footer-backlink"
(list
(make-css-addition custom-css-path)
(make-tex-addition custom-tex-path))))
(define frwdlink-style
(make-style
"footer-frwdlink"
(list
(make-css-addition custom-css-path)
(make-tex-addition custom-tex-path))))
(define (footer-nav back frwd)
(cons
(element backlink-style (list (seclink back "← ") (seclink back)))
(if frwd
(list
(element frwdlink-style (list (seclink frwd) (seclink frwd " →"))))
'())))
(define (rtech . x)
(apply tech x #:doc '(lib "redex/redex.scrbl")))
(define (gtech . x)
(apply tech x #:doc '(lib "scribblings/guide/guide.scrbl")))
(define redex racketplainfont)