diff options
author | Ludovic Courtes | 2006-03-19 20:08:40 +0000 |
---|---|---|
committer | Ludovic Courtes | 2006-03-19 20:08:40 +0000 |
commit | d43ab320c8c711aef6417d33a33d0b3d2058f690 (patch) | |
tree | 7b86cb9f15836f8193a398891a13a9455918e385 /doc/user/slide.skb | |
parent | 8335269810c4de308aa5b8bfd9c1d8300fd280e1 (diff) | |
download | skribilo-d43ab320c8c711aef6417d33a33d0b3d2058f690.tar.gz skribilo-d43ab320c8c711aef6417d33a33d0b3d2058f690.tar.lz skribilo-d43ab320c8c711aef6417d33a33d0b3d2058f690.zip |
Various documentation fixes + completed the doc automake stuff.
* doc/user/Makefile.am (%.html): Added `-P ../img'.
(%.lout): Likewise.
(SUBDIRS): New.
* doc/user/char.skb (Some characters): Use the Lout-specific example for
`!' when relevant.
* doc/user/figure.skb (The figure markup): Avoid using `example-produce'.
* doc/user/slide.skb (dummy-slide-set-output): New.
(dummy-slide-output): New.
(dummy-slide-vspace-output): New.
(dummy-slide-embed-output): New.
(Example of Skribilo Slides): Use a processor, as in `document.skb', in
order to use the dummy output functions.
git-archimport-id: lcourtes@laas.fr--2005-mobile/skribilo--devel--1.2--patch-50
Diffstat (limited to 'doc/user/slide.skb')
-rw-r--r-- | doc/user/slide.skb | 59 |
1 files changed, 54 insertions, 5 deletions
diff --git a/doc/user/slide.skb b/doc/user/slide.skb index aff8ab5..ec2186a 100644 --- a/doc/user/slide.skb +++ b/doc/user/slide.skb @@ -11,9 +11,44 @@ (skribe-load "slide.skr") ;*---------------------------------------------------------------------*/ +;* dummy-slide-set-output ... */ +;*---------------------------------------------------------------------*/ +(define dummy-slide-set-output + (lambda (n e) + (let* ((a (markup-option n :author)) + (t (markup-option n :title)) + (b (markup-body n)) + (ta (table (tr (map (lambda (n) + (td :valign 'top :align 'center n)) + (if (list? a) a (list a))))))) + (skribe-eval (center (bold t)) e) + (skribe-eval (center ta) e) + (output b e)))) + +(define dummy-slide-output + (lambda (n e) + (let* ((t (markup-option n :title)) + (b (markup-body n))) + (skribe-eval (bold t) e) + (output b e)))) + +(define dummy-slide-vspace-output + (lambda (n e) + (skribe-eval (linebreak) e) + (skribe-eval (center (tt "[vspace]")) e) + (skribe-eval (linebreak) e))) + +(define dummy-slide-embed-output + (lambda (n e) + (skribe-eval (linebreak) e) + (skribe-eval (tt (or (markup-option n :alt) + (markup-option n :command))) + e))) + +;*---------------------------------------------------------------------*/ ;* Computer programs */ ;*---------------------------------------------------------------------*/ -(chapter :title "Slide Package" +(chapter :title "Slide Package" (p [ This chapter describes the facilities Skribe offers authoring slides. @@ -105,11 +140,25 @@ output format does not support embedded application.])) "html4"))) ;; Show the example and its result (example-produce - (example :legend "Example of Skribe slides" + (example :legend "Example of Skribilo slides" (prgm :file "src/slides.skb")) - (disp (include "src/slides.skb"))) + (disp + (processor :combinator + (lambda (e1 e2) + (let ((e (copy-engine 'document-engine e2))) + (markup-writer 'document e + :options '(:title :author :ending) + :action dummy-slide-set-output) + (markup-writer 'slide e + :options '(:title :ident + :number :toc :vspace) + :action dummy-slide-output) + (markup-writer 'slide-vspace + :action dummy-slide-vspace-output) + (markup-writer 'slide-embed + :action dummy-slide-embed-output) + e)) + (include "src/slides.skb")))) ;; Show only the example (i.e. don't produce a document in a document) (example :legend "Example of Skribe slides" (prgm :file "src/slides.skb"))))) - - |