1 <!-- This file defines the DocBook-utils Style Sheet for DocBook
2 Eric Bischoff <eric@caldera.de>
5 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
6 <!ENTITY % html "IGNORE">
8 <!ENTITY % print "IGNORE">
9 <!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA dsssl>
11 <!ENTITY % print "INCLUDE">
13 <!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA dsssl>
19 <STYLE-SPECIFICATION ID="UTILS" USE="DOCBOOK">
20 <STYLE-SPECIFICATION-BODY>
21 ;; ===================================================================
23 ;; (Generic currently means: both print and html)
25 (define %chapter-autolabel% #t)
26 (define %section-autolabel% #t)
27 (define (toc-depth nd) 3)
29 </STYLE-SPECIFICATION-BODY>
30 </STYLE-SPECIFICATION>
32 <STYLE-SPECIFICATION ID="PRINT" USE="UTILS">
33 <STYLE-SPECIFICATION-BODY>
34 ;; ===================================================================
36 ;; Call: jade -d docbook-utils.dsl#print
39 ;; (define %paper-type% "A4") ;; use A4 paper - comment this out if needed
41 ; === Media objects ===
42 (define preferred-mediaobject-extensions ;; this magic allows to use different graphical
43 (list "eps")) ;; formats for printing and putting online
44 (define acceptable-mediaobject-extensions
46 (define preferred-mediaobject-notations
48 (define acceptable-mediaobject-notations
49 (list "linespecific"))
52 (define %head-after-factor% 0.2) ;; not much whitespace after orderedlist head
53 (define ($paragraph$) ;; more whitespace after paragraph than before
55 first-line-start-indent: (if (is-first-para)
56 %para-indent-firstpara%
58 space-before: (* %para-sep% 4)
59 space-after: (/ %para-sep% 4)
60 quadding: %default-quadding%
61 hyphenate?: %hyphenation%
62 language: (dsssl-language-code)
65 </STYLE-SPECIFICATION-BODY>
66 </STYLE-SPECIFICATION>
68 <STYLE-SPECIFICATION ID="HTML" USE="UTILS">
69 <STYLE-SPECIFICATION-BODY>
70 ;; ===================================================================
72 ;; Call: jade -d docbook-utils.dsl#html
75 (define %root-filename% "index") ;; name for the root html file
76 (define %html-ext% ".html") ;; default extension for html output files
77 (define %html-prefix% "") ;; prefix for all filenames generated (except root)
78 (define %use-id-as-filename% #t) ;; uses ID value, if present, as filename
79 ;; otherwise a code is used to indicate level
80 ;; of chunk, and general element number
81 ;; (nth element in the document)
82 (define use-output-dir #f) ;; output in separate directory?
83 (define %output-dir% "HTML") ;; if output in directory, it's called HTML
85 ; === HTML settings ===
86 (define %html-pubid% "-//W3C//DTD HTML 4.01 Transitional//EN") ;; Nearly true :-(
88 (define %stylesheet% "style.css")
89 (define %stylesheet-type% "text/css")
91 ; === Media objects ===
92 (define preferred-mediaobject-extensions ;; this magic allows to use different graphical
93 (list "png" "jpg" "jpeg")) ;; formats for printing and putting online
94 (define acceptable-mediaobject-extensions
95 (list "bmp" "gif" "eps" "epsf" "avi" "mpg" "mpeg" "qt"))
96 (define preferred-mediaobject-notations
97 (list "PNG" "JPG" "JPEG"))
98 (define acceptable-mediaobject-notations
99 (list "EPS" "BMP" "GIF" "linespecific"))
101 (define %admon-graphics% #t) ;; use symbols for Caution|Important|Note|Tip|Warning
104 (define %generate-book-titlepage% #t)
105 (define %generate-book-toc% #t)
106 (define ($generate-chapter-toc$) #f) ;; never generate a chapter TOC in books
108 ; === Articles only ===
109 (define %generate-article-titlepage% #t)
110 (define %generate-article-toc% #t) ;; make TOC
112 </STYLE-SPECIFICATION-BODY>
113 </STYLE-SPECIFICATION>
115 <EXTERNAL-SPECIFICATION ID="DOCBOOK" DOCUMENT="docbook.dsl">