1 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
2 <!ENTITY % html "IGNORE">
4 <!ENTITY % print "IGNORE">
5 <!ENTITY docbook.dsl SYSTEM "@DKPREFIX@/html/docbook.dsl" CDATA dsssl>
7 <!ENTITY % print "INCLUDE">
9 <!ENTITY docbook.dsl SYSTEM "@DKPREFIX@/print/docbook.dsl" CDATA dsssl>
15 ;; borrowed from the LDP stylesheet, with modifications, HB.
16 ;; Added support for css 03/20/02, and other mods.
22 <style-specification id="print" use="docbook">
23 <style-specification-body>
25 ;; ==============================
26 ;; customize the print stylesheet
27 ;; ==============================
29 ;; see http://docbook.sourceforge.net/projects/dsssl/doc/print.html
32 (define %indent-screen-lines%
33 ;; Indent lines in a 'Screen'?
34 ;; "#f" or string to be used as the indent on 'screen'
37 (define %callout-fancy-bug%
38 ;; Use fancy callout bugs?
41 (define %chap-app-running-heads%
42 ;; Generate running headers and footers on chapter-level elements?
45 (define %chap-app-running-head-autolabel%
46 ;; Put chapter labels in running heads?
49 ;; this is necessary because right now jadetex does not understand
50 ;; symbolic entities, whereas things work well with numeric entities.
51 (declare-characteristic preserve-sdata?
52 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
55 ;; put the legal notice in a separate file
56 (define %generate-legalnotice-link%
59 ;; use graphics in admonitions, and have their path be "stylesheet-images"
60 ;; NO: they do not yet look very good
61 (define %admon-graphics-path%
62 "./stylesheet-images/")
64 (define %admon-graphics%
67 (define %funcsynopsis-decoration%
68 ;; make funcsynopsis look pretty
71 ;;(define %shade-verbatim%
74 (define %section-autolabel% #t)
75 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
77 ;; HB changed TOC depth to 3 levels.
78 (define (toc-depth nd)
81 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
85 ;; PURP What attributes should be hung off of BODY?
87 ;; A list of the BODY attributes that should be generated.
88 ;; The format is a list of lists, each interior list contains the
89 ;; name and value of a BODY attribute.
94 (list "BGCOLOR" "#EEEEEE")
95 (list "TEXT" "#000000")
96 (list "LINK" "#0000FF")
97 (list "VLINK" "#840084")
98 (list "ALINK" "#0000FF")))
101 ;; REFENTRY stylesheet
102 ;; PURP Name of the stylesheet to use
104 ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to
105 ;; suppress the stylesheet LINK.
111 (define %stylesheet-type%
112 ;; REFENTRY stylesheet-type
113 ;; PURP The type of the stylesheet to use
115 ;; The type of the stylesheet to place in the HTML LINK TAG.
121 (define %css-liststyle-alist%
122 ;; REFENTRY css-liststyle-alist
123 ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS
125 ;; If '%css-decoration%' is turned on then the list-style-type property of
126 ;; list items will be set to reflect the list item style selected in the
127 ;; DocBook instance. This associative list maps the style type names used
128 ;; in your instance to the appropriate CSS names. If no mapping exists,
129 ;; the name from the instance will be used.
136 (define %css-decoration%
137 ;; REFENTRY css-decoration
138 ;; PURP Enable CSS decoration of elements
140 ;; If '%css-decoration%' is turned on then HTML elements produced by the
141 ;; stylesheet may be decorated with STYLE attributes. For example, the
142 ;; LI tags produced for list items may include a fragment of CSS in the
143 ;; STYLE attribute which sets the CSS property "list-style-type".
151 (define %generate-part-toc%
154 (define %generate-article-toc%
155 ;; Should a Table of Contents be produced for Articles?
156 ;; If true, a Table of Contents will be generated for each 'Article'.
159 (define %generate-part-toc-on-titlepage%
160 ;; Should the Part TOC appear on the Part title page?
163 ;;Do you want a separate page for the title?
164 (define %generate-article-titlepage-on-separate-page%
167 ;;Do you want the article toc on the titlepage or separate?
168 (define %generate-article-toc-on-titlepage%
171 ;;Titlepage Separate?
172 ;; This is the one that makes TOC only on first page!! hal.
173 (define (chunk-skip-first-element-list)
176 (define %body-start-indent%
177 ;; Default indent of body text
180 (define %para-indent-firstpara%
181 ;; First line start-indent for the first paragraph
186 (define %para-indent%
187 ;; First line start-indent for paragraphs (other than the first)
190 (define %block-start-indent%
191 ;; Extra start-indent for block-elements
194 ;;Define distance between paragraphs
198 ;; with swa2 no effects
202 ;;Define distance between block elements (figures, tables, etc.).
205 ;; (* %para-sep% 2.0))
207 (define %hyphenation%
208 ;; Allow automatic hyphenation?
211 (define %left-margin% 5pi)
212 (define %right-margin% 5pi)
213 (define %top-margin% 5pi)
214 (define %bottom-margin% 5pi)
215 (define %footer-margin% 2pi)
216 (define %header-margin% 2pi)
218 (define %line-spacing-factor% 1.3)
219 ;; Factor used to calculate leading
220 ;; The leading is calculated by multiplying the current font size by the
221 ;; '%line-spacing-factor%'. For example, if the font size is 10pt and
222 ;; the '%line-spacing-factor%' is 1.1, then the text will be
223 ;; printed "10-on-11".
225 (define %head-before-factor%
226 ;; Factor used to calculate space above a title
227 ;; The space before a title is calculated by multiplying the font size
228 ;; used in the title by the '%head-before-factor%'.
232 (define %head-after-factor%
233 ;; Factor used to calculate space below a title
234 ;; The space after a title is calculated by multiplying the font size used
235 ;; in the title by the '%head-after-factor%'.
238 (define %input-whitespace-treatment% 'collapse)
240 (define ($generate-article-lot-list$)
241 ;; Which Lists of Titles should be produced for Articles?
245 </style-specification-body>
246 </style-specification>
250 ;; ===================================================
251 ;; customize the html stylesheet; borrowed from Cygnus
252 ;; at http://sourceware.cygnus.com/ (cygnus-both.dsl)
253 ;; ===================================================
256 <style-specification id="html" use="docbook">
257 <style-specification-body>
259 ;; this is the 'html' portion of the stylesheet so we want to keep the
260 ;; ampersand-code strings and let the browser convert them to characters
261 (declare-characteristic preserve-sdata?
262 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
265 ;; put the legal notice in a separate file
266 (define %generate-legalnotice-link%
269 ;; use graphics in admonitions, and have their path be "stylesheet-images"
270 ;; NO: they do not yet look very good
271 (define %admon-graphics-path%
272 "./stylesheet-images/")
274 (define %admon-graphics%
277 (define %funcsynopsis-decoration%
278 ;; make funcsynopsis look pretty
284 (define %generate-article-toc%
285 ;; Should a Table of Contents be produced for Articles?
286 ;; If true, a Table of Contents will be generated for each 'Article'.
289 ;; HB added next three statements 05/03/02.
290 ;;Do you want a separate page for the title?
291 (define %generate-article-titlepage-on-separate-page%
294 ;;Do you want the article toc on the titlepage or separate?
295 (define %generate-article-toc-on-titlepage%
298 ;;Titlepage Separate?
299 ;; This is the one that makes TOC only on first page!! hal.
300 (define (chunk-skip-first-element-list)
303 (define %root-filename%
304 ;; The filename of the root HTML document (e.g, "index").
307 (define %generate-part-toc%
310 (define %shade-verbatim%
313 (define %use-id-as-filename%
314 ;; Use ID attributes as name for component HTML files?
317 (define %graphic-default-extension%
320 (define %section-autolabel% #t)
321 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
323 ;; HB changed TOC depth to 3 levels.
324 (define (toc-depth nd)
327 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
330 ;; REFENTRY body-attr
331 ;; PURP What attributes should be hung off of BODY?
333 ;; A list of the the BODY attributes that should be generated.
334 ;; The format is a list of lists, each interior list contains the
335 ;; name and value of a BODY attribute.
340 (list "BGCOLOR" "#EEEEEE")
341 (list "TEXT" "#000000")
342 (list "LINK" "#0000FF")
343 (list "VLINK" "#840084")
344 (list "ALINK" "#0000FF")))
347 ;; REFENTRY stylesheet
348 ;; PURP Name of the stylesheet to use
350 ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to
351 ;; suppress the stylesheet LINK.
357 (define %stylesheet-type%
358 ;; REFENTRY stylesheet-type
359 ;; PURP The type of the stylesheet to use
361 ;; The type of the stylesheet to place in the HTML LINK TAG.
367 (define %css-liststyle-alist%
368 ;; REFENTRY css-liststyle-alist
369 ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS
371 ;; If '%css-decoration%' is turned on then the list-style-type property of
372 ;; list items will be set to reflect the list item style selected in the
373 ;; DocBook instance. This associative list maps the style type names used
374 ;; in your instance to the appropriate CSS names. If no mapping exists,
375 ;; the name from the instance will be used.
382 (define %css-decoration%
383 ;; REFENTRY css-decoration
384 ;; PURP Enable CSS decoration of elements
386 ;; If '%css-decoration%' is turned on then HTML elements produced by the
387 ;; stylesheet may be decorated with STYLE attributes. For example, the
388 ;; LI tags produced for list items may include a fragment of CSS in the
389 ;; STYLE attribute which sets the CSS property "list-style-type".
395 ;; HB added 2008-01-19
396 (define %html-header-tags%
397 '(("META" ("HTTP-EQUIV" "Content-Type") ("CONTENT" "text/html;
398 charset=ISO-8859-1"))))
400 </style-specification-body>
401 </style-specification>
404 <style-specification id="html-notoc" use="html">
405 <style-specification-body>
407 ;; ===================================================
408 ;; Vairant without TOC for the Homepage --oes 24/05/02
409 ;; ===================================================
411 (define %generate-article-toc%
412 ;; Should a Table of Contents be produced for Articles?
413 ;; If true, a Table of Contents will be generated for each 'Article'.
416 </style-specification-body>
417 </style-specification>
419 <external-specification id="docbook" document="docbook.dsl">