proper fix for the latex problem (blockquote was used unnecessarily)

svn: r11936
This commit is contained in:
Eli Barzilay 2008-10-05 02:23:21 +00:00
parent 76172dd0f3
commit 0d6a9d73dc
2 changed files with 9 additions and 12 deletions

View File

@ -304,9 +304,7 @@
null)
(define/override (render-blockquote t part ri)
(let* ([kind (or (blockquote-style t) "quote")]
;; FIXME temporary hack to avoid a \begin{blockquote}
[kind (if (eq? 'blockquote kind) "quote" kind)])
(let ([kind (or (blockquote-style t) "quote")])
(printf "\n\n\\begin{~a}\n" kind)
(parameterize ([current-table-mode (list "blockquote" t)])
(for ([e (blockquote-paragraphs t)]) (render-block e part ri #f)))

View File

@ -240,16 +240,15 @@ for the creation of scenes, too.
@; -----------------------------------------------------------------------------
@(define (table* . stuff)
;; (list paragraph paragraph) *-> Table
;; (list paragraph paragraph) *-> Table
(define (flow* x) (make-flow (list x)))
(make-blockquote 'blockquote
(list
(make-table (make-with-attributes 'boxed
'((cellspacing . "6")))
;list
(map (lambda (x) (map flow* x)) stuff)
#;(map flow* (map car stuff))
#;(map flow* (map cadr stuff))))))
(make-blockquote #f
(list
(make-table (make-with-attributes 'boxed '((cellspacing . "6")))
;; list
(map (lambda (x) (map flow* x)) stuff)
#;(map flow* (map car stuff))
#;(map flow* (map cadr stuff))))))
@; -----------------------------------------------------------------------------
@section[#:tag "example"]{A First Example}