6. Scribe Programming Manual -- Target format

6. Scribe Programming Manual -- Target format

Browsing

Home: Scribe Programming Manual

Previous chapter: Container numbering
Next chapter: Programming Back-ends


Target format


Chapters

Defining new functions
Fontification
Common Classes
Scribe Library
Container numbering
Target format
Programming Back-ends
The HTML back end
Bibliography
Embedding Scribe into Bigloo
Scribe Apache module
Classes, Functions and Variables
Bibliography


Scribe

Home page:Scribe

Documentation:user
expert


Customization can be based on the target format a Scribe document is compiled to. For instance, one specific customization can be used for HTML and another one for TeX.

(scribe-format? ::symbol)Scribe function

Returns #t if the current format is symbol. Otherwise, returns #f.

For instance, one may select the proper way to numberize chapters accordingly to the target format (see 5. Container numbering):

(cond
   ((scribe-format? 'html) (set! *scribe-chapter-numbering* ...))
   ((scribe-format? 'man) (set! *scribe-chapter-numbering* ...))
   ((scribe-format? 'info) (set! *scribe-chapter-numbering* ...))
   (else ...))


This
Scribe page is generated by scribeinfo.
Last update Fri May 10 20:19:17 2002