Added style variant without TOC for the homepage
[privoxy.git] / doc / source / ldp.dsl.in
1 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [\r
2 <!ENTITY % html "IGNORE">\r
3 <![%html;[\r
4 <!ENTITY % print "IGNORE">\r
5 <!ENTITY docbook.dsl SYSTEM "@DKPREFIX@/html/docbook.dsl" CDATA dsssl>\r
6 ]]>\r
7 <!ENTITY % print "INCLUDE">\r
8 <![%print;[\r
9 <!ENTITY docbook.dsl SYSTEM "@DKPREFIX@/print/docbook.dsl" CDATA dsssl>\r
10 ]]>\r
11 ]>\r
12 \r
13 <!--\r
14 \r
15 ;; borrowed from the LDP stylesheet, with modifications, HB.\r
16 ;; Added support for css 03/20/02, and other mods.\r
17 \r
18 -->\r
19 \r
20 <style-sheet>\r
21 \r
22 <style-specification id="print" use="docbook">\r
23 <style-specification-body> \r
24 \r
25 ;; ==============================\r
26 ;; customize the print stylesheet\r
27 ;; ==============================\r
28 ;;\r
29 ;; see http://docbook.sourceforge.net/projects/dsssl/doc/print.html\r
30 ;;\r
31 \r
32 (define %indent-screen-lines%\r
33   ;; Indent lines in a 'Screen'?\r
34   #t)\r
35 \r
36 (define %callout-fancy-bug% \r
37   ;; Use fancy callout bugs?\r
38   #t)\r
39 \r
40 (define %chap-app-running-heads% \r
41   ;; Generate running headers and footers on chapter-level elements?\r
42   #t)\r
43 \r
44 (define %chap-app-running-head-autolabel% \r
45   ;; Put chapter labels in running heads?\r
46   #t)\r
47 \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
52   #f)\r
53 \r
54 ;; put the legal notice in a separate file\r
55 (define %generate-legalnotice-link%\r
56   #t)\r
57 \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
62 \r
63 (define %admon-graphics%\r
64   #f)\r
65 \r
66 (define %funcsynopsis-decoration%\r
67   ;; make funcsynopsis look pretty\r
68   #t)\r
69 \r
70 ;;(define %shade-verbatim%\r
71 ;;  #t)\r
72 \r
73 (define %section-autolabel% #t)\r
74   ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)\r
75   \r
76 ;; HB changed TOC depth to 3 levels.\r
77 (define (toc-depth nd)\r
78   3)\r
79 \r
80 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
81 \r
82 (define %body-attr% \r
83   ;; REFENTRY body-attr\r
84   ;; PURP What attributes should be hung off of BODY?\r
85   ;; DESC\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
89   ;; /DESC\r
90   ;; AUTHOR N/A\r
91   ;; /REFENTRY\r
92   (list\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
98 \r
99 (define %stylesheet%\r
100   ;; REFENTRY stylesheet\r
101   ;; PURP Name of the stylesheet to use\r
102   ;; DESC\r
103   ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to\r
104   ;; suppress the stylesheet LINK.\r
105   ;; /DESC\r
106   ;; AUTHOR N/A\r
107   ;; /REFENTRY\r
108   "../p_doc.css")\r
109 \r
110 (define %stylesheet-type%\r
111   ;; REFENTRY stylesheet-type\r
112   ;; PURP The type of the stylesheet to use\r
113   ;; DESC\r
114   ;; The type of the stylesheet to place in the HTML LINK TAG.\r
115   ;; /DESC\r
116   ;; AUTHOR N/A\r
117   ;; /REFENTRY\r
118   "text/css")\r
119 \r
120 (define %css-liststyle-alist%\r
121   ;; REFENTRY css-liststyle-alist\r
122   ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS\r
123   ;; DESC\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
129   ;; /DESC\r
130   ;; AUTHOR N/A\r
131   ;; /REFENTRY\r
132   '(("bullet" "disc")\r
133     ("box" "square")))\r
134 \r
135 (define %css-decoration%\r
136   ;; REFENTRY css-decoration\r
137   ;; PURP Enable CSS decoration of elements\r
138   ;; DESC\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
143   ;; /DESC\r
144   ;; AUTHOR N/A\r
145   ;; /REFENTRY\r
146   #t)\r
147 \r
148 ;; swa1\r
149 \r
150 (define %generate-part-toc%\r
151   #f)\r
152 \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
156   #t)\r
157 \r
158 (define %generate-part-toc-on-titlepage%\r
159   ;; Should the Part TOC appear on the Part title page?\r
160   #f)\r
161 \r
162 ;;Do you want a separate page for the title?\r
163 (define %generate-article-titlepage-on-separate-page%\r
164  #t)\r
165 \r
166 ;;Do you want the article toc on the titlepage or separate?\r
167 (define %generate-article-toc-on-titlepage%\r
168  #f)\r
169 \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
173  '())\r
174 \r
175 (define %body-start-indent%\r
176   ;; Default indent of body text\r
177   2pi)\r
178 \r
179 (define %para-indent-firstpara%\r
180   ;; First line start-indent for the first paragraph\r
181   0pt)\r
182 \r
183 ;; swa2\r
184 \r
185 (define %para-indent%\r
186   ;; First line start-indent for paragraphs (other than the first)\r
187   0pt)\r
188 \r
189 (define %block-start-indent%\r
190   ;; Extra start-indent for block-elements\r
191   2pt)\r
192 \r
193 ;;Define distance between paragraphs\r
194 (define %para-sep% \r
195  (/ %bf-size% 2.0))\r
196 \r
197 ;; with swa2 no effects\r
198 \r
199 ;; swa3\r
200 \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
205 \r
206 (define %hyphenation%\r
207   ;; Allow automatic hyphenation?\r
208   #t)\r
209 \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
216 \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
223 \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
228 ;;  0.75)\r
229   0.5)\r
230 \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
235   0.5)\r
236 \r
237 (define %input-whitespace-treatment% 'collapse)\r
238 \r
239 (define ($generate-article-lot-list$)\r
240   ;; Which Lists of Titles should be produced for Articles?\r
241   (list ))\r
242 \r
243 \r
244 </style-specification-body>\r
245 </style-specification>\r
246 \r
247 \r
248 <!--\r
249 ;; ===================================================\r
250 ;; customize the html stylesheet; borrowed from Cygnus\r
251 ;; at http://sourceware.cygnus.com/ (cygnus-both.dsl)\r
252 ;; ===================================================\r
253 -->\r
254 \r
255 <style-specification id="html" use="docbook">\r
256 <style-specification-body> \r
257 \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
262   #f)\r
263 \r
264 ;; put the legal notice in a separate file\r
265 (define %generate-legalnotice-link%\r
266   #t)\r
267 \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
272 \r
273 (define %admon-graphics%\r
274   #f)\r
275 \r
276 (define %funcsynopsis-decoration%\r
277   ;; make funcsynopsis look pretty\r
278   #t)\r
279 \r
280 (define %html-ext%\r
281   ".html")\r
282 \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
286   #t)\r
287 \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
291  #t)\r
292 \r
293 ;;Do you want the article toc on the titlepage or separate?\r
294 (define %generate-article-toc-on-titlepage%\r
295  #t)\r
296 \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
300  '())\r
301 \r
302 (define %root-filename%\r
303   ;; The filename of the root HTML document (e.g, "index").\r
304   "index")\r
305 \r
306 (define %generate-part-toc%\r
307   #t)\r
308 \r
309 (define %shade-verbatim%\r
310   #t)\r
311 \r
312 (define %use-id-as-filename%\r
313   ;; Use ID attributes as name for component HTML files?\r
314   #t)\r
315 \r
316 (define %graphic-default-extension% \r
317   "gif")\r
318 \r
319 (define %section-autolabel% #t)\r
320   ;; For enumerated sections (1.1, 1.1.1, 1.2, etc.)\r
321   \r
322 ;; HB changed TOC depth to 3 levels.\r
323 (define (toc-depth nd)\r
324   3)\r
325 \r
326 ;; HB added 03/20/02, see dbparam.dsl ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
327 \r
328 (define %body-attr% \r
329   ;; REFENTRY body-attr\r
330   ;; PURP What attributes should be hung off of BODY?\r
331   ;; DESC\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
335   ;; /DESC\r
336   ;; AUTHOR N/A\r
337   ;; /REFENTRY\r
338   (list\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
344 \r
345 (define %stylesheet%\r
346   ;; REFENTRY stylesheet\r
347   ;; PURP Name of the stylesheet to use\r
348   ;; DESC\r
349   ;; The name of the stylesheet to place in the HTML LINK TAG, or '#f' to\r
350   ;; suppress the stylesheet LINK.\r
351   ;; /DESC\r
352   ;; AUTHOR N/A\r
353   ;; /REFENTRY\r
354   "../p_doc.css")\r
355 \r
356 (define %stylesheet-type%\r
357   ;; REFENTRY stylesheet-type\r
358   ;; PURP The type of the stylesheet to use\r
359   ;; DESC\r
360   ;; The type of the stylesheet to place in the HTML LINK TAG.\r
361   ;; /DESC\r
362   ;; AUTHOR N/A\r
363   ;; /REFENTRY\r
364   "text/css")\r
365 \r
366 (define %css-liststyle-alist%\r
367   ;; REFENTRY css-liststyle-alist\r
368   ;; PURP Map DocBook OVERRIDE and MARK attributes to CSS\r
369   ;; DESC\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
375   ;; /DESC\r
376   ;; AUTHOR N/A\r
377   ;; /REFENTRY\r
378   '(("bullet" "disc")\r
379     ("box" "square")))\r
380 \r
381 (define %css-decoration%\r
382   ;; REFENTRY css-decoration\r
383   ;; PURP Enable CSS decoration of elements\r
384   ;; DESC\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
389   ;; /DESC\r
390   ;; AUTHOR N/A\r
391   ;; /REFENTRY\r
392   #t)\r
393 \r
394 \r
395 </style-specification-body>\r
396 </style-specification>\r
397 \r
398 \r
399 <style-specification id="html-notoc" use="html">\r
400 <style-specification-body> \r
401 \r
402 ;; ===================================================\r
403 ;; Vairant without TOC for the Homepage --oes 24/05/02\r
404 ;; ===================================================\r
405 \r
406 (define %generate-article-toc% \r
407   ;; Should a Table of Contents be produced for Articles?\r
408   ;; If true, a Table of Contents will be generated for each 'Article'.\r
409   #f)\r
410 \r
411 </style-specification-body>\r
412 </style-specification>\r
413 \r
414 <external-specification id="docbook" document="docbook.dsl">\r
415 \r
416 </style-sheet>\r