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 "@DKPREFIX@/html/docbook.dsl" CDATA dsssl>
\r
7 <!ENTITY % print "INCLUDE">
\r
9 <!ENTITY docbook.dsl SYSTEM "@DKPREFIX@/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 %indent-screen-lines%
\r
33 ;; Indent lines in a 'Screen'?
\r
36 (define %callout-fancy-bug%
\r
37 ;; Use fancy callout bugs?
\r
40 (define %chap-app-running-heads%
\r
41 ;; Generate running headers and footers on chapter-level elements?
\r
44 (define %chap-app-running-head-autolabel%
\r
45 ;; Put chapter labels in running heads?
\r
48 ;; this is necessary because right now jadetex does not understand
\r
49 ;; symbolic entities, whereas things work well with numeric entities.
\r
50 (declare-characteristic preserve-sdata?
\r
51 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
\r
54 ;; put the legal notice in a separate file
\r
55 (define %generate-legalnotice-link%
\r
58 ;; use graphics in admonitions, and have their path be "stylesheet-images"
\r
59 ;; NO: they do not yet look very good
\r
60 (define %admon-graphics-path%
\r
61 "./stylesheet-images/")
\r
63 (define %admon-graphics%
\r
66 (define %funcsynopsis-decoration%
\r
67 ;; make funcsynopsis look pretty
\r
70 ;;(define %shade-verbatim%
\r
73 (define %section-autolabel% #t)
\r
74 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
\r
76 ;; HB changed TOC depth to 3 levels.
\r
77 (define (toc-depth nd)
\r
80 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
\r
82 (define %body-attr%
\r
83 ;; REFENTRY body-attr
\r
84 ;; PURP What attributes should be hung off of BODY?
\r
86 ;; A list of the the BODY attributes that should be generated.
\r
87 ;; The format is a list of lists, each interior list contains the
\r
88 ;; name and value of a BODY attribute.
\r
93 (list "BGCOLOR" "#EEEEEE")
\r
94 (list "TEXT" "#000000")
\r
95 (list "LINK" "#0000FF")
\r
96 (list "VLINK" "#840084")
\r
97 (list "ALINK" "#0000FF")))
\r
99 (define %stylesheet%
\r
100 ;; REFENTRY stylesheet
\r
101 ;; PURP Name of the stylesheet to use
\r
103 ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to
\r
104 ;; suppress the stylesheet LINK.
\r
110 (define %stylesheet-type%
\r
111 ;; REFENTRY stylesheet-type
\r
112 ;; PURP The type of the stylesheet to use
\r
114 ;; The type of the stylesheet to place in the HTML LINK TAG.
\r
120 (define %css-liststyle-alist%
\r
121 ;; REFENTRY css-liststyle-alist
\r
122 ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS
\r
124 ;; If '%css-decoration%' is turned on then the list-style-type property of
\r
125 ;; list items will be set to reflect the list item style selected in the
\r
126 ;; DocBook instance. This associative list maps the style type names used
\r
127 ;; in your instance to the appropriate CSS names. If no mapping exists,
\r
128 ;; the name from the instance will be used.
\r
132 '(("bullet" "disc")
\r
135 (define %css-decoration%
\r
136 ;; REFENTRY css-decoration
\r
137 ;; PURP Enable CSS decoration of elements
\r
139 ;; If '%css-decoration%' is turned on then HTML elements produced by the
\r
140 ;; stylesheet may be decorated with STYLE attributes. For example, the
\r
141 ;; LI tags produced for list items may include a fragment of CSS in the
\r
142 ;; STYLE attribute which sets the CSS property "list-style-type".
\r
150 (define %generate-part-toc%
\r
153 (define %generate-article-toc%
\r
154 ;; Should a Table of Contents be produced for Articles?
\r
155 ;; If true, a Table of Contents will be generated for each 'Article'.
\r
158 (define %generate-part-toc-on-titlepage%
\r
159 ;; Should the Part TOC appear on the Part title page?
\r
162 ;;Do you want a separate page for the title?
\r
163 (define %generate-article-titlepage-on-separate-page%
\r
166 ;;Do you want the article toc on the titlepage or separate?
\r
167 (define %generate-article-toc-on-titlepage%
\r
170 ;;Titlepage Separate?
\r
171 ;; This is the one that makes TOC only on first page!! hal.
\r
172 (define (chunk-skip-first-element-list)
\r
175 (define %body-start-indent%
\r
176 ;; Default indent of body text
\r
179 (define %para-indent-firstpara%
\r
180 ;; First line start-indent for the first paragraph
\r
185 (define %para-indent%
\r
186 ;; First line start-indent for paragraphs (other than the first)
\r
189 (define %block-start-indent%
\r
190 ;; Extra start-indent for block-elements
\r
193 ;;Define distance between paragraphs
\r
194 (define %para-sep%
\r
197 ;; with swa2 no effects
\r
201 ;;Define distance between block elements (figures, tables, etc.).
\r
202 (define %block-sep%
\r
203 (* %para-sep% 1.0))
\r
204 ;; (* %para-sep% 2.0))
\r
206 (define %hyphenation%
\r
207 ;; Allow automatic hyphenation?
\r
210 (define %left-margin% 5pi)
\r
211 (define %right-margin% 5pi)
\r
212 (define %top-margin% 5pi)
\r
213 (define %bottom-margin% 5pi)
\r
214 (define %footer-margin% 2pi)
\r
215 (define %header-margin% 2pi)
\r
217 (define %line-spacing-factor% 1.3)
\r
218 ;; Factor used to calculate leading
\r
219 ;; The leading is calculated by multiplying the current font size by the
\r
220 ;; '%line-spacing-factor%'. For example, if the font size is 10pt and
\r
221 ;; the '%line-spacing-factor%' is 1.1, then the text will be
\r
222 ;; printed "10-on-11".
\r
224 (define %head-before-factor%
\r
225 ;; Factor used to calculate space above a title
\r
226 ;; The space before a title is calculated by multiplying the font size
\r
227 ;; used in the title by the '%head-before-factor%'.
\r
231 (define %head-after-factor%
\r
232 ;; Factor used to calculate space below a title
\r
233 ;; The space after a title is calculated by multiplying the font size used
\r
234 ;; in the title by the '%head-after-factor%'.
\r
237 (define %input-whitespace-treatment% 'collapse)
\r
239 (define ($generate-article-lot-list$)
\r
240 ;; Which Lists of Titles should be produced for Articles?
\r
244 </style-specification-body>
\r
245 </style-specification>
\r
249 ;; ===================================================
\r
250 ;; customize the html stylesheet; borrowed from Cygnus
\r
251 ;; at http://sourceware.cygnus.com/ (cygnus-both.dsl)
\r
252 ;; ===================================================
\r
255 <style-specification id="html" use="docbook">
\r
256 <style-specification-body>
\r
258 ;; this is necessary because right now jadetex does not understand
\r
259 ;; symbolic entities, whereas things work well with numeric entities.
\r
260 (declare-characteristic preserve-sdata?
\r
261 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
\r
264 ;; put the legal notice in a separate file
\r
265 (define %generate-legalnotice-link%
\r
268 ;; use graphics in admonitions, and have their path be "stylesheet-images"
\r
269 ;; NO: they do not yet look very good
\r
270 (define %admon-graphics-path%
\r
271 "./stylesheet-images/")
\r
273 (define %admon-graphics%
\r
276 (define %funcsynopsis-decoration%
\r
277 ;; make funcsynopsis look pretty
\r
283 (define %generate-article-toc%
\r
284 ;; Should a Table of Contents be produced for Articles?
\r
285 ;; If true, a Table of Contents will be generated for each 'Article'.
\r
288 ;; HB added next three statements 05/03/02.
\r
289 ;;Do you want a separate page for the title?
\r
290 (define %generate-article-titlepage-on-separate-page%
\r
293 ;;Do you want the article toc on the titlepage or separate?
\r
294 (define %generate-article-toc-on-titlepage%
\r
297 ;;Titlepage Separate?
\r
298 ;; This is the one that makes TOC only on first page!! hal.
\r
299 (define (chunk-skip-first-element-list)
\r
302 (define %root-filename%
\r
303 ;; The filename of the root HTML document (e.g, "index").
\r
306 (define %generate-part-toc%
\r
309 (define %shade-verbatim%
\r
312 (define %use-id-as-filename%
\r
313 ;; Use ID attributes as name for component HTML files?
\r
316 (define %graphic-default-extension%
\r
319 (define %section-autolabel% #t)
\r
320 ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)
\r
322 ;; HB changed TOC depth to 3 levels.
\r
323 (define (toc-depth nd)
\r
326 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
\r
328 (define %body-attr%
\r
329 ;; REFENTRY body-attr
\r
330 ;; PURP What attributes should be hung off of BODY?
\r
332 ;; A list of the the BODY attributes that should be generated.
\r
333 ;; The format is a list of lists, each interior list contains the
\r
334 ;; name and value of a BODY attribute.
\r
339 (list "BGCOLOR" "#EEEEEE")
\r
340 (list "TEXT" "#000000")
\r
341 (list "LINK" "#0000FF")
\r
342 (list "VLINK" "#840084")
\r
343 (list "ALINK" "#0000FF")))
\r
345 (define %stylesheet%
\r
346 ;; REFENTRY stylesheet
\r
347 ;; PURP Name of the stylesheet to use
\r
349 ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to
\r
350 ;; suppress the stylesheet LINK.
\r
356 (define %stylesheet-type%
\r
357 ;; REFENTRY stylesheet-type
\r
358 ;; PURP The type of the stylesheet to use
\r
360 ;; The type of the stylesheet to place in the HTML LINK TAG.
\r
366 (define %css-liststyle-alist%
\r
367 ;; REFENTRY css-liststyle-alist
\r
368 ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS
\r
370 ;; If '%css-decoration%' is turned on then the list-style-type property of
\r
371 ;; list items will be set to reflect the list item style selected in the
\r
372 ;; DocBook instance. This associative list maps the style type names used
\r
373 ;; in your instance to the appropriate CSS names. If no mapping exists,
\r
374 ;; the name from the instance will be used.
\r
378 '(("bullet" "disc")
\r
381 (define %css-decoration%
\r
382 ;; REFENTRY css-decoration
\r
383 ;; PURP Enable CSS decoration of elements
\r
385 ;; If '%css-decoration%' is turned on then HTML elements produced by the
\r
386 ;; stylesheet may be decorated with STYLE attributes. For example, the
\r
387 ;; LI tags produced for list items may include a fragment of CSS in the
\r
388 ;; STYLE attribute which sets the CSS property "list-style-type".
\r
394 ;; HB added 2008-01-19
\r
395 (define %html-header-tags%
\r
396 '(("META" ("HTTP-EQUIV" "Content-Type") ("CONTENT" "text/html;
\r
397 charset=ISO-8859-1"))))
\r
399 </style-specification-body>
\r
400 </style-specification>
\r
403 <style-specification id="html-notoc" use="html">
\r
404 <style-specification-body>
\r
406 ;; ===================================================
\r
407 ;; Vairant without TOC for the Homepage --oes 24/05/02
\r
408 ;; ===================================================
\r
410 (define %generate-article-toc%
\r
411 ;; Should a Table of Contents be produced for Articles?
\r
412 ;; If true, a Table of Contents will be generated for each 'Article'.
\r
415 </style-specification-body>
\r
416 </style-specification>
\r
418 <external-specification id="docbook" document="docbook.dsl">
\r