fill in some guide sections

svn: r9871

original commit: 2b48cb0a4dbd81c20daa343c0b2b94657da506eb
This commit is contained in:
Matthew Flatt 2008-05-16 21:23:53 +00:00
parent 65865c81bd
commit bb2b77d874
3 changed files with 23 additions and 9 deletions

View File

@ -144,10 +144,14 @@
(loop (extract s cdr car) (loop (extract s cdr car)
(list (syntax->datum (datum->syntax #f (extract s cdr cdr car)))))] (list (syntax->datum (datum->syntax #f (extract s cdr cdr car)))))]
[else [else
(let ([r (with-handlers ([exn:fail? (lambda (e) (let ([r (with-handlers ([(lambda (x)
(list (exn-message e) (not (exn:break? x)))
(get-output ev) (lambda (e)
(get-error-output ev)))]) (list (if (exn? e)
(exn-message e)
(format "uncaught exception: ~s" e))
(get-output ev)
(get-error-output ev)))])
(list (let ([v (do-plain-eval ev s #t)]) (list (let ([v (do-plain-eval ev s #t)])
(make-reader-graph (copy-value v (make-hasheq)))) (make-reader-graph (copy-value v (make-hasheq))))
(get-output ev) (get-output ev)

View File

@ -2042,6 +2042,7 @@
(define (bib-entry #:key key (define (bib-entry #:key key
#:title title #:title title
#:is-book? [is-book? #f]
#:author [author #f] #:author [author #f]
#:location [location #f] #:location [location #f]
#:date [date #f] #:date [date #f]
@ -2055,12 +2056,19 @@
(append (decode-content (list author)) (append (decode-content (list author))
(list ", ")) (list ", "))
null) null)
(list 'ldquo) (if is-book?
(decode-content (list title)) null
(list 'ldquo))
(if is-book?
(list (italic title))
(decode-content (list title)))
(list (if location (list (if location
"," ","
".") "."))
'rdquo)
(if is-book?
null
(list 'rdquo))
(if location (if location
(cons " " (cons " "
(append (append

View File

@ -928,6 +928,7 @@ order as given}
@defproc[(bib-entry [#:key key string?] @defproc[(bib-entry [#:key key string?]
[#:title title any/c] [#:title title any/c]
[#:is-book? is-book? any/c #f]
[#:author author any/c] [#:author author any/c]
[#:location location any/c] [#:location location any/c]
[#:date date any/c] [#:date date any/c]
@ -941,7 +942,8 @@ the entry:
@itemize{ @itemize{
@item{@scheme[title] is the title of the cited work. It will be @item{@scheme[title] is the title of the cited work. It will be
surrounded by quotes in typeset form.} surrounded by quotes in typeset form if @scheme[is-book?] is
@scheme[#f], otherwise it is typeset via @scheme[italic].}
@item{@scheme[author] lists the authors. Use names in their usual @item{@scheme[author] lists the authors. Use names in their usual
order (as opposed to ``last, first''), and separate multiple order (as opposed to ``last, first''), and separate multiple