add an example with html tags and attributes
original commit: 5db7715b279991ae2e9581fc824fb9424b9b2c47
This commit is contained in:
parent
8876f00787
commit
80b8bbd686
|
@ -92,10 +92,10 @@ For example, a Scribble document
|
||||||
scribble/html-properties
|
scribble/html-properties
|
||||||
scribble/latex-properties)
|
scribble/latex-properties)
|
||||||
|
|
||||||
(define inbox-style
|
@(define inbox-style
|
||||||
(make-style "InBox"
|
(make-style "InBox"
|
||||||
(list (make-css-addition "inbox.css")
|
(list (make-css-addition "inbox.css")
|
||||||
(make-tex-addition "inbox.tex"))))
|
(make-tex-addition "inbox.tex"))))
|
||||||
|
|
||||||
@title{Quantum Pet}
|
@title{Quantum Pet}
|
||||||
|
|
||||||
|
@ -125,6 +125,30 @@ generates
|
||||||
Do not open: @elem[#:style "InBox"]{Cat}
|
Do not open: @elem[#:style "InBox"]{Cat}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@index["HTML Tags and Attributes"]{
|
||||||
|
Scribble documents can also embed specific html tags and
|
||||||
|
attributes.} For example, this Scribble document:
|
||||||
|
@codeblock|{
|
||||||
|
#lang scribble/base
|
||||||
|
|
||||||
|
@(require scribble/core
|
||||||
|
scribble/html-properties)
|
||||||
|
|
||||||
|
@(define external-image
|
||||||
|
(elem
|
||||||
|
#:style
|
||||||
|
(style #f
|
||||||
|
(list (alt-tag "img")
|
||||||
|
(attributes
|
||||||
|
'((src . "http://www.racket-lang.org/icon.png")))))))
|
||||||
|
|
||||||
|
@external-image
|
||||||
|
}|
|
||||||
|
|
||||||
|
renders as the the Racket logo at the url
|
||||||
|
@url{http://www.racket-lang.org/logo.png}
|
||||||
|
when producing html.
|
||||||
|
|
||||||
@; ------------------------------------------------------------
|
@; ------------------------------------------------------------
|
||||||
|
|
||||||
@section[#:tag "config-style"]{Configuring Output}
|
@section[#:tag "config-style"]{Configuring Output}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user