adjust image docs to use svg instead of png
This commit is contained in:
parent
6e062466a0
commit
a460ab960c
|
@ -12,7 +12,9 @@
|
||||||
"img-eval.rkt"
|
"img-eval.rkt"
|
||||||
scribble/decode
|
scribble/decode
|
||||||
scribble/manual
|
scribble/manual
|
||||||
scribble/eval)
|
scribble/eval
|
||||||
|
scribble/core
|
||||||
|
scribble/html-properties)
|
||||||
|
|
||||||
@(define guide-eval (make-img-eval))
|
@(define guide-eval (make-img-eval))
|
||||||
|
|
||||||
|
@ -35,8 +37,8 @@
|
||||||
@(interaction-eval #:eval guide-eval
|
@(interaction-eval #:eval guide-eval
|
||||||
(require racket/list racket/local))
|
(require racket/list racket/local))
|
||||||
|
|
||||||
|
@title[#:style (style "svg" (list (render-pict-as 'svg-images)))
|
||||||
@title[#:tag "image-guide"]{Image Guide}
|
#:tag "image-guide"]{Image Guide}
|
||||||
|
|
||||||
This section introduces the @racketmodname[2htdp/image] library
|
This section introduces the @racketmodname[2htdp/image] library
|
||||||
through a series of increasingly complex image constructions
|
through a series of increasingly complex image constructions
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
(img-eval '(extra-margin 0))))
|
(img-eval '(extra-margin 0))))
|
||||||
|
|
||||||
|
|
||||||
@teachpack["image"]{Images}
|
@teachpack[#:svg? #t "image"]{Images}
|
||||||
|
|
||||||
@(define mode/color-and-nitty-text
|
@(define mode/color-and-nitty-text
|
||||||
(make-splice
|
(make-splice
|
||||||
|
|
|
@ -1,12 +1,17 @@
|
||||||
#lang racket/base
|
#lang racket/base
|
||||||
|
|
||||||
(require scribble/manual)
|
(require scribble/manual
|
||||||
|
scribble/core
|
||||||
|
scribble/html-properties)
|
||||||
|
|
||||||
(provide teachpack
|
(provide teachpack
|
||||||
beginner-require)
|
beginner-require)
|
||||||
|
|
||||||
(define (teachpack tp . name)
|
(define (teachpack #:svg? [svg? #f] tp . name)
|
||||||
(apply title #:tag tp
|
(apply title #:tag tp
|
||||||
|
#:style (if svg?
|
||||||
|
(style "svg" (list (render-pict-as 'svg-images)))
|
||||||
|
#f)
|
||||||
`(,@name ": " ,(filepath (format "~a.rkt" tp))
|
`(,@name ": " ,(filepath (format "~a.rkt" tp))
|
||||||
,(index (format "~a teachpack" tp)))))
|
,(index (format "~a teachpack" tp)))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user