5. Scribe Programming Manual -- Container numbering

5. Scribe Programming Manual -- Container numbering

Browsing

Home: Scribe Programming Manual

Previous chapter: Scribe Library
Next chapter: Target format


Container numbering


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


Container numbering can by customized by the mean of user functions. That is, when a Scribe back-end2 is to render the title of a container, such as a a chapters or a section it calls a function that computes a string representing the number of that block. The argument passed to this function is an integer which is the actual number of the container.

*scribe-chapter-numbering*Scribe variable

*scribe-section-numbering*Scribe variable

*scribe-subsection-numbering*Scribe variable

*scribe-subsubsection-numbering*Scribe variable

For intance, setting the value of *scribe-chapter-numbering* as shown above switches the chapter numbering to an an alphabetic numbering instead of a numberical one:

(set! *scribe-chapter-numbering*
      (lambda (x)
         (string (integer->char (+ (char->integer #\A) x -1)) #\))))




2: Not all back-ends support this facility. In particular, the TeX back-end does not.

This
Scribe page is generated by scribeinfo.
Last update Sun Feb 17 11:18:33 2002