1 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
\r
2 <!ENTITY % html "IGNORE">
\r
4 <!ENTITY % print "IGNORE">
\r
5 <!ENTITY docbook.dsl SYSTEM "/usr/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl" CDATA dsssl>
\r
7 <!ENTITY % print "INCLUDE">
\r
9 <!ENTITY docbook.dsl SYSTEM "/usr/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl" CDATA dsssl>
\r
15 ;; borrowed from the LDP stylesheet, with modifications, HB.
\r
16 ;; Added support for css 03/20/02, and other mods.
\r
22 <style-specification id="print" use="docbook">
\r
23 <style-specification-body>
\r
25 ;; ==============================
\r
26 ;; customize the print stylesheet
\r
27 ;; ==============================
\r
29 ;; see http://docbook.sourceforge.net/projects/dsssl/doc/print.html
\r
32 (define %generate-part-toc-on-titlepage%
\r
33 ;; Should the Part TOC appear on the Part title page?
\r
36 (define %generate-article-toc-on-titlepage%
\r
37 ;; Should the Article TOC appear on the Article title page?
\r
40 (define %indent-screen-lines%
\r
41 ;; Indent lines in a 'Screen'?
\r
44 (define %callout-fancy-bug%
\r
45 ;; Use fancy callout bugs?
\r
48 (define %chap-app-running-heads%
\r
49 ;; Generate running headers and footers on chapter-level elements?
\r
52 (define %chap-app-running-head-autolabel%
\r
53 ;; Put chapter labels in running heads?
\r
56 ;; this is necessary because right now jadetex does not understand
\r
57 ;; symbolic entities, whereas things work well with numeric entities.
\r
58 (declare-characteristic preserve-sdata?
\r
59 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
\r
62 ;; put the legal notice in a separate file
\r
63 (define %generate-legalnotice-link%
\r
66 ;; use graphics in admonitions, and have their path be "stylesheet-images"
\r
67 ;; NO: they do not yet look very good
\r
68 (define %admon-graphics-path%
\r
69 "./stylesheet-images/")
\r
71 (define %admon-graphics%
\r
74 (define %funcsynopsis-decoration%
\r
75 ;; make funcsynopsis look pretty
\r
78 (define %generate-article-toc%
\r
79 ;; Should a Table of Contents be produced for Articles?
\r
80 ;; If true, a Table of Contents will be generated for each 'Article'.
\r
83 (define %generate-part-toc%
\r
86 ;;(define %shade-verbatim%
\r
89 (define %section-autolabel% #t)
\r
90 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
\r
92 ;; HB changed TOC depth to 3 levels.
\r
93 (define (toc-depth nd)
\r
96 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
\r
98 (define %body-attr%
\r
99 ;; REFENTRY body-attr
\r
100 ;; PURP What attributes should be hung off of BODY?
\r
102 ;; A list of the the BODY attributes that should be generated.
\r
103 ;; The format is a list of lists, each interior list contains the
\r
104 ;; name and value of a BODY attribute.
\r
109 (list "BGCOLOR" "#EEEEEE")
\r
110 (list "TEXT" "#000000")
\r
111 (list "LINK" "#0000FF")
\r
112 (list "VLINK" "#840084")
\r
113 (list "ALINK" "#0000FF")))
\r
115 (define %stylesheet%
\r
116 ;; REFENTRY stylesheet
\r
117 ;; PURP Name of the stylesheet to use
\r
119 ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to
\r
120 ;; suppress the stylesheet LINK.
\r
126 (define %stylesheet-type%
\r
127 ;; REFENTRY stylesheet-type
\r
128 ;; PURP The type of the stylesheet to use
\r
130 ;; The type of the stylesheet to place in the HTML LINK TAG.
\r
136 (define %css-liststyle-alist%
\r
137 ;; REFENTRY css-liststyle-alist
\r
138 ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS
\r
140 ;; If '%css-decoration%' is turned on then the list-style-type property of
\r
141 ;; list items will be set to reflect the list item style selected in the
\r
142 ;; DocBook instance. This associative list maps the style type names used
\r
143 ;; in your instance to the appropriate CSS names. If no mapping exists,
\r
144 ;; the name from the instance will be used.
\r
148 '(("bullet" "disc")
\r
151 (define %css-decoration%
\r
152 ;; REFENTRY css-decoration
\r
153 ;; PURP Enable CSS decoration of elements
\r
155 ;; If '%css-decoration%' is turned on then HTML elements produced by the
\r
156 ;; stylesheet may be decorated with STYLE attributes. For example, the
\r
157 ;; LI tags produced for list items may include a fragment of CSS in the
\r
158 ;; STYLE attribute which sets the CSS property "list-style-type".
\r
166 ;; This seems to have no affect
\r
167 (define %generate-article-titlepage-on-separate-page% #t)
\r
169 (define %body-start-indent%
\r
170 ;; Default indent of body text
\r
173 (define %para-indent-firstpara%
\r
174 ;; First line start-indent for the first paragraph
\r
179 (define %para-indent%
\r
180 ;; First line start-indent for paragraphs (other than the first)
\r
183 (define %block-start-indent%
\r
184 ;; Extra start-indent for block-elements
\r
187 ;;Define distance between paragraphs
\r
188 (define %para-sep%
\r
191 ;; with swa2 no effects
\r
195 ;;Define distance between block elements (figures, tables, etc.).
\r
196 (define %block-sep%
\r
197 (* %para-sep% 1.0))
\r
198 ;; (* %para-sep% 2.0))
\r
200 (define %hyphenation%
\r
201 ;; Allow automatic hyphenation?
\r
204 (define %left-margin% 5pi)
\r
205 (define %right-margin% 5pi)
\r
206 (define %top-margin% 5pi)
\r
207 (define %bottom-margin% 5pi)
\r
208 (define %footer-margin% 2pi)
\r
209 (define %header-margin% 2pi)
\r
211 (define %line-spacing-factor% 1.3)
\r
212 ;; Factor used to calculate leading
\r
213 ;; The leading is calculated by multiplying the current font size by the
\r
214 ;; '%line-spacing-factor%'. For example, if the font size is 10pt and
\r
215 ;; the '%line-spacing-factor%' is 1.1, then the text will be
\r
216 ;; printed "10-on-11".
\r
218 (define %head-before-factor%
\r
219 ;; Factor used to calculate space above a title
\r
220 ;; The space before a title is calculated by multiplying the font size
\r
221 ;; used in the title by the '%head-before-factor%'.
\r
225 (define %head-after-factor%
\r
226 ;; Factor used to calculate space below a title
\r
227 ;; The space after a title is calculated by multiplying the font size used
\r
228 ;; in the title by the '%head-after-factor%'.
\r
231 (define %input-whitespace-treatment% 'collapse)
\r
233 (define ($generate-article-lot-list$)
\r
234 ;; Which Lists of Titles should be produced for Articles?
\r
238 </style-specification-body>
\r
239 </style-specification>
\r
243 ;; ===================================================
\r
244 ;; customize the html stylesheet; borrowed from Cygnus
\r
245 ;; at http://sourceware.cygnus.com/ (cygnus-both.dsl)
\r
246 ;; ===================================================
\r
249 <style-specification id="html" use="docbook">
\r
250 <style-specification-body>
\r
252 ;; this is necessary because right now jadetex does not understand
\r
253 ;; symbolic entities, whereas things work well with numeric entities.
\r
254 (declare-characteristic preserve-sdata?
\r
255 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
\r
258 ;; put the legal notice in a separate file
\r
259 (define %generate-legalnotice-link%
\r
262 ;; use graphics in admonitions, and have their path be "stylesheet-images"
\r
263 ;; NO: they do not yet look very good
\r
264 (define %admon-graphics-path%
\r
265 "./stylesheet-images/")
\r
267 (define %admon-graphics%
\r
270 (define %funcsynopsis-decoration%
\r
271 ;; make funcsynopsis look pretty
\r
277 (define %generate-article-toc%
\r
278 ;; Should a Table of Contents be produced for Articles?
\r
279 ;; If true, a Table of Contents will be generated for each 'Article'.
\r
282 (define %root-filename%
\r
283 ;; The filename of the root HTML document (e.g, "index").
\r
286 (define %generate-part-toc%
\r
289 (define %shade-verbatim%
\r
292 (define %use-id-as-filename%
\r
293 ;; Use ID attributes as name for component HTML files?
\r
296 (define %graphic-default-extension%
\r
299 (define %section-autolabel% #t)
\r
300 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
\r
302 ;; HB changed TOC depth to 3 levels.
\r
303 (define (toc-depth nd)
\r
306 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
\r
308 (define %body-attr%
\r
309 ;; REFENTRY body-attr
\r
310 ;; PURP What attributes should be hung off of BODY?
\r
312 ;; A list of the the BODY attributes that should be generated.
\r
313 ;; The format is a list of lists, each interior list contains the
\r
314 ;; name and value of a BODY attribute.
\r
319 (list "BGCOLOR" "#EEEEEE")
\r
320 (list "TEXT" "#000000")
\r
321 (list "LINK" "#0000FF")
\r
322 (list "VLINK" "#840084")
\r
323 (list "ALINK" "#0000FF")))
\r
325 (define %stylesheet%
\r
326 ;; REFENTRY stylesheet
\r
327 ;; PURP Name of the stylesheet to use
\r
329 ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to
\r
330 ;; suppress the stylesheet LINK.
\r
336 (define %stylesheet-type%
\r
337 ;; REFENTRY stylesheet-type
\r
338 ;; PURP The type of the stylesheet to use
\r
340 ;; The type of the stylesheet to place in the HTML LINK TAG.
\r
346 (define %css-liststyle-alist%
\r
347 ;; REFENTRY css-liststyle-alist
\r
348 ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS
\r
350 ;; If '%css-decoration%' is turned on then the list-style-type property of
\r
351 ;; list items will be set to reflect the list item style selected in the
\r
352 ;; DocBook instance. This associative list maps the style type names used
\r
353 ;; in your instance to the appropriate CSS names. If no mapping exists,
\r
354 ;; the name from the instance will be used.
\r
358 '(("bullet" "disc")
\r
361 (define %css-decoration%
\r
362 ;; REFENTRY css-decoration
\r
363 ;; PURP Enable CSS decoration of elements
\r
365 ;; If '%css-decoration%' is turned on then HTML elements produced by the
\r
366 ;; stylesheet may be decorated with STYLE attributes. For example, the
\r
367 ;; LI tags produced for list items may include a fragment of CSS in the
\r
368 ;; STYLE attribute which sets the CSS property "list-style-type".
\r
375 </style-specification-body>
\r
376 </style-specification>
\r
378 <external-specification id="docbook" document="docbook.dsl">
\r