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

Style
List of style files


Chapters

Getting Started
Syntax
Standard Library
Hyperlinks and References
Index
Bibliography
Computer programs
Graphical User Interfaces
Customization
Scribe style files
Editing Scribe Programs
Compiling Scribe programs
Compiling Texi documents
Using Bibtex databases
Functions and Variables


Scribe

Home page:Scribe

Documentation:user
expert


A Scribe style is a customization file that can be loaded before the document is processed.

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 :  Mon Dec 17 21:05:26 2001 (serrano)                */
;*    Copyright   :  2001 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 ,(ref :url (scribe-url) "Scribe") page is
generated by ,(code [scribeinfo]).
,(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))


10.2 List of style files

Here is a partial list of existing Scribe style files:



This
Scribe page is generated by scribeinfo.
Last update Sun Feb 17 13:07:15 2002