need for speed
parent
b6c2c97fcf
commit
24f0ca5ff1
Binary file not shown.
@ -0,0 +1,15 @@
|
||||
#lang debug br
|
||||
(require racket/runtime-path pitfall/document)
|
||||
(define-runtime-path fira "fira.ttf")
|
||||
(define PS "typewriter-raw.pdf")
|
||||
(define doc (make-object PDFDocument
|
||||
(hasheq 'compress #t
|
||||
'autoFirstPage #t
|
||||
'size '(300 200))))
|
||||
(time (send* doc
|
||||
[pipe (open-output-file PS #:exists 'replace)]
|
||||
[registerFont "Fira" (path->string fira)]
|
||||
[font "Fira"]
|
||||
[fontSize 12]
|
||||
[text "Hello world" 36 36]))
|
||||
(send doc end)
|
@ -1,7 +1,8 @@
|
||||
#lang quad/typewriter
|
||||
|
||||
◊quad[#:fontsize "11"]{Hello world}
|
||||
◊;quad[#:fontsize "11"]{Hello world}
|
||||
|
||||
◊;quad[#:fontsize "11"]{◊quad[#:link "http://beautifulracket.com"]{An expression that} is not a value can ◊quad[#:fontsize "22"]{always} ◊quad[#:fontsize "7"]{be partitioned} into}
|
||||
|
||||
◊;quad[#:fontsize "11"]{◊quad[#:link "http://beautifulracket.com"]{An expression that} is not a value can ◊quad[#:fontsize "22"]{always} ◊quad[#:fontsize "7"]{be partitioned} into two parts: a redex, which is the part that changed in a single-step simplification (highlighted), and the continuation, which is the evaluation context surrounding an expression. In (- 4 (+ 1 1)), the redex is (+ 1 1), and the continuation is (- 4 []), where [] takes the place of the redex. That is, the continuation says how to "continue" after the redex is reduced to a value."}
|
||||
|
||||
◊quad[#:fontsize "11"]{◊quad[#:link "http://beautifulracket.com"]{An expression that} is not a value can ◊quad[#:fontsize "22"]{always} ◊quad[#:fontsize "7"]{be partitioned} into two parts: a redex, which is the part that changed in a single-step simplification (highlighted), and the continuation, which is the evaluation context surrounding an expression. In (- 4 (+ 1 1)), the redex is (+ 1 1), and the continuation is (- 4 []), where [] takes the place of the redex. That is, the continuation says how to "continue" after the redex is reduced to a value.}
|
Loading…
Reference in New Issue