10. Scribe User Manual -- Scribe style files

10. Scribe User Manual -- Scribe style files

Browsing

Home: Scribe User Manual

Previous chapter: Customization
Next chapter: Editing Scribe Programs

Scribe style files

10.1 Style

Chapters

1. Getting Started
2. Syntax
3. Standard Library
4. Hyperlinks and References
5. Index
6. Bibliography
7. Computer programs
8. Graphical User Interfaces
9. Customization
10. Scribe style files
11. Editing Scribe Programs
12. Compiling Scribe programs
13. Compiling Texi documents
14. Using Bibtex databases
15. Functions and Variables

Scribe

Home page:Scribe

Documentation:user
expert
styles

A Scribe style is a customization file that can be loaded before the document is processed. A description of the existing styles can be found in the package documentation.

10.1 Style

(style . styles)Scribe function

This function loads style files. That is, it configures the Scribe compiler according to the specification of the loaded files. The load path of style files is the value of the variable *scribe-style-path*. It can be set by the mean of a Scribe command line option.

Note: the style function must be called before the document call. Otherwise it has no effect.

As an example, here is the global style used to render this document:

;*=====================================================================*/
;*    serrano/prgm/project/scribe/styles/manual.scr                    */
;*    -------------------------------------------------------------    */
;*    Author      :  Manuel Serrano                                    */
;*    Creation    :  Wed Nov 28 10:39:47 2001                          */
;*    Last change :  Thu Apr 11 13:39:52 2002 (serrano)                */
;*    Copyright   :  2001-02 Manuel Serrano                            */
;*    -------------------------------------------------------------    */
;*    The Scribe manuals style                                         */
;*=====================================================================*/

;*---------------------------------------------------------------------*/
;*    Coloring                                                         */
;*---------------------------------------------------------------------*/
(define *prgm-color* "#ffffcc")
(define *html-color* "#ccccff")
(define *example-color* "#ccccff")
(define *display-color* "#ccffcc")
(define *keyword-color* "#00cf00")
(set! *scribe-background* "#ffefd5")
(set! *scribe-foreground* "black")
(set! *scribe-tbackground* "#ffe4c4")
(set! *scribe-tforeground* "#800020")
(set! *scribe-prgm-color* *prgm-color*)

;*---------------------------------------------------------------------*/
;*    Display width                                                    */
;*---------------------------------------------------------------------*/
(define *display-width* .9)

;*---------------------------------------------------------------------*/
;*    Footer                                                           */
;*---------------------------------------------------------------------*/
(if (scribe-format? 'html)
    (set! *scribe-footer* [
,(hrule) ,(font :size -1 [
This page has been generated by ,(ref :url (scribe-url) "Scribe").
,(linebreak)
Last update ,(it (date))])]))

;*---------------------------------------------------------------------*/
;*    Fonts                                                            */
;*---------------------------------------------------------------------*/
(set! *scribe-title-font* "face=\"sans-serif\" size='+10'")
(set! *scribe-author-font* "size='+5'")
(set! *scribe-index-font-size* "+5")

;*---------------------------------------------------------------------*/
;*    HTML Sections                                                    */
;*---------------------------------------------------------------------*/
(if (scribe-format? 'html)
    (begin
      (set! *scribe-html-section-title-start*
            (lambda ()
              (print "<table width=\"100%\">")
              (print "<tr><td bgcolor=\"" *scribe-tbackground* "\">")
              (print "<font face=\"sans-serif\" size=\"+1\"><b>")))
      (set! *scribe-html-section-title-stop*
            (lambda ()
              (print "</b></font></td></tr></table><p>")))))

;*---------------------------------------------------------------------*/
;*    TeX ...                                                          */
;*---------------------------------------------------------------------*/
(if (scribe-format? 'tex)
    (begin
      (set! *scribe-tex-document-class* "book")
      (set! *scribe-tex-packages* (cons "fullpage" *scribe-tex-packages*))))

;*---------------------------------------------------------------------*/
;*    Numbering                                                        */
;*---------------------------------------------------------------------*/
(set! *scribe-chapter-numbering*
      (lambda (x) x))


This page has been generated by Scribe.
Last update Wed Dec 18 09:23:02 2002