annotate docs/stylesheets/docbook-utils.dsl @ 2569:d139f4b0b123

Copied from coco3 bootlists
author boisy
date Sun, 03 Apr 2011 16:12:55 +0000
parents bc28c3bc3769
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1148
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1 <!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
2 <!ENTITY % html "IGNORE">
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
3 <![%html;[
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
4 <!ENTITY % print "IGNORE">
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
5 <!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA dsssl>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
6 ]]>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
7 <!ENTITY % print "INCLUDE">
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
8 <![%print;[
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
9 <!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA dsssl>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
10 ]]>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
11 ]>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
12
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
13 <!--
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
14 ;;#######################################################################
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
15 ;;# #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
16 ;;# The GNOME Documentation Project's #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
17 ;;# Custion DocBook Stylesheet Layer #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
18 ;;# by Dave Mason dcm@redhat.com #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
19 ;;# Based on Norman Walsh's Modular Stylesheets #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
20 ;;# #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
21 ;;# This is intended as a drop-in replacement for #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
22 ;;# the cygnus-both.dsl file in DocBook Tools. #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
23 ;;# Just copy it to the location dbtools created #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
24 ;;# and rename it cygnus-both.dsl #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
25 ;;# #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
26 ;;# This is Version 1.0-4 #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
27 ;;# patched to fix RTF output (#49677) #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
28 ;;# patched to work with docbook-dsssl-1.72 #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
29 ;;# patched for ADDRESS output (#50605) #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
30 ;;# removed comment and remark #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
31 ;;# disabled use-id-as-filename #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
32 ;;# don't define %graphic-default-extension% #
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
33 ;;#######################################################################
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
34 -->
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
35
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
36 <style-sheet>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
37
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
38
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
39 <style-specification id="print" use="docbook">
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
40 <style-specification-body>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
41
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
42 ;;==========================================================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
43 ;; PRINT
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
44 ;;==========================================================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
45
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
46 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
47 ;;General Options
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
48 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
49
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
50 ;;Do you want to print on both sides of the paper?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
51 (define %two-side%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
52 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
53
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
54 ;;Do you want enumerated sections? (E.g, 1.1, 1.1.1, 1.2, etc.)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
55 (define %section-autolabel%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
56 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
57
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
58 ;;Show URL links? If the text of the link and the URL are identical,
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
59 ;;the parenthetical URL is suppressed.
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
60 (define %show-ulinks%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
61 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
62
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
63 ;Make Ulinks footnotes to stop bleeding in the edges - this increases
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
64 ;'jade --> print' time tremendously keep this in mind before
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
65 ;complaining!
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
66 (define %footnote-ulinks%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
67 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
68
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
69 ;;Tex Backend on
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
70 (define tex-backend
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
71 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
72
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
73 ;;Define Line Spacing
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
74 (define %line-spacing-factor% 1.1)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
75
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
76 ;;Define the Paragraph Style
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
77 (define para-style
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
78 (style
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
79 font-size: %bf-size%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
80 font-weight: 'medium
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
81 font-posture: 'upright
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
82 font-family-name: %body-font-family%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
83 line-spacing: (* %bf-size% %line-spacing-factor%)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
84
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
85 (define ($object-titles-after$)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
86 (list (normalize "figure")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
87
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
88 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
89 ;;Book Options
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
90 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
91
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
92
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
93 ;;Do you want a title page for a Book?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
94 (define %generate-book-titlepage%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
95 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
96
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
97 ;;Do you want a separate page for the title?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
98 (define %generate-book-titlepage-on-separate-page%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
99 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
100
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
101 ;;Generate Book TOC?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
102 (define %generate-book-toc%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
103 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
104
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
105 ;;What depth should the TOC generate?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
106 ;;!Only top level of appendixes!
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
107 (define (toc-depth nd)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
108 (if (string=? (gi nd) (normalize "book"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
109 3
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
110 (if (string=? (gi nd) (normalize "appendix"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
111 0
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
112 1)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
113
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
114 ;;Do you want a TOC for the element part?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
115 (define %generate-part-toc%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
116 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
117
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
118 ;;Do you want the part toc on the part titlepage or separate?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
119 (define %generate-part-toc-on-titlepage%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
120 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
121
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
122 ;;Generate Part Title Page?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
123 (define %generate-part-titlepage%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
124 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
125
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
126 ;;Do you want the Part intro on the part title page?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
127 (define %generate-partintro-on-titlepage%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
128 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
129
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
130 ;;What elements should have a LOT?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
131 (define ($generate-book-lot-list$)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
132 (list (normalize "equation")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
133
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
134 ;;Do you want chapters enumerated?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
135 (define %chapter-autolabel%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
136 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
137
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
138 ;;Do you want Chapter's and Appendix's
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
139 ;;to have automatic labels?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
140 (define %chap-app-running-head-autolabel%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
141 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
142
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
143
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
144 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
145 ;;Article Options
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
146 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
147
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
148 ;;Do you want a title page for an Article?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
149 (define %generate-article-titlepage%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
150 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
151
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
152 ;;Generate Article TOC?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
153 (define %generate-article-toc%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
154 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
155
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
156 ;;Do you want a separate page for the title?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
157 (define %generate-article-titlepage-on-separate-page%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
158 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
159
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
160 ;;Do you want the article toc on the titlepage or separate?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
161 (define %generate-article-toc-on-titlepage%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
162 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
163
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
164 ;;Do you want to start new page numbers with each article?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
165 (define %article-page-number-restart%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
166 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
167
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
168 ;;Titlepage Separate?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
169 (define (chunk-skip-first-element-list)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
170 '())
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
171
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
172 ;;Titlepage Not Separate
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
173 ;(define (chunk-skip-first-element-list)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
174 ; (list (normalize "sect1")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
175 ; (normalize "section")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
176
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
177 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
178 ;;Columns
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
179 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
180
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
181 ;;How many columns do you want?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
182 (define %page-n-columns%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
183 1)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
184
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
185 ;;How much space between columns?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
186 (define %page-column-sep%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
187 0.2in)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
188
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
189 ;;How many Columns on the titlepage?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
190 (define %titlepage-n-columns%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
191 1)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
192
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
193 ;;Balance columns?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
194 (define %page-balance-colums%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
195 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
196
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
197 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
198 ;;Fonts
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
199 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
200
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
201 ;;Defines the general size of the text in the document. normal(10),
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
202 ;;presbyopic(12), and large-type(24).
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
203 (define %visual-acuity%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
204 "normal")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
205
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
206 ;;What font would you like for titles?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
207 (define %title-font-family%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
208 "Helvetica")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
209
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
210 ;;What font would you like for the body?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
211 (define %body-font-family%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
212 "Palatino")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
213
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
214 ;;What font would you like for mono-seq?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
215 (define %mono-font-family%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
216 "Courier New")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
217
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
218 ;;If the base fontsize is 10pt, and '%hsize-bump-factor%' is
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
219 ;; 1.2, hsize 1 is 12pt, hsize 2 is 14.4pt, hsize 3 is 17.28pt, etc
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
220 (define %hsize-bump-factor%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
221 1.1)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
222
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
223 ;;What size do you want the body fonts?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
224 (define %bf-size%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
225 (case %visual-acuity%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
226 (("tiny") 8pt)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
227 (("normal") 10pt)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
228 (("presbyopic") 12pt)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
229 (("large-type") 24pt)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
230
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
231 (define-unit em %bf-size%)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
232
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
233 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
234 ;;Margins
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
235 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
236
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
237 (define %left-right-margin% 6pi)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
238
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
239 ;;How much indentation for the body?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
240 (define %body-start-indent%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
241 4pi)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
242
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
243 ;;How big is the left margin? (relative to physical page)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
244 (define %left-margin%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
245 8pi) ;white-paper-column
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
246
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
247 ;;How big is the right margin? (relative to physical page)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
248 (define %right-margin%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
249 8pi) ;white-paper-column
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
250
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
251 ;;How big do you want the margin at the top?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
252 (define %top-margin%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
253 (if (equal? %visual-acuity% "large-type")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
254 7.5pi
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
255 6pi))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
256
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
257 ;;How big do you want the margin at the bottom?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
258 (define %bottom-margin%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
259 (if (equal? %visual-acuity% "large-type")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
260 7.5pi
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
261 5pi))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
262
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
263 ;;Define the text width. (Change the elements in the formula rather
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
264 ;;than the formula itself)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
265 ;(define %text-width% (- %page-width% (* %left-right-margin% 2)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
266 (define %text-width% (- %page-width% (+ %left-margin% %right-margin%)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
267
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
268 ;;Define the body width. (Change the elements in the formula rather
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
269 ;;than the formula itself)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
270 (define %body-width%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
271 (- %text-width% %body-start-indent%))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
272
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
273 ;;Define distance between paragraphs
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
274 (define %para-sep%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
275 (/ %bf-size% 2.0))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
276
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
277 ;;Define distance between block elements (figures, tables, etc.).
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
278 (define %block-sep%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
279 (* %para-sep% 2.0))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
280
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
281 ;;Indent block elements?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
282 (define %block-start-indent%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
283 0pt)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
284 ;0pt
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
285
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
286 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
287 ;;Admon Graphics
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
288 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
289
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
290 ;;Do you want admon graohics on?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
291 (define %admon-graphics%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
292 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
293
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
294 ;;Where are the admon graphics?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
295 (define %admon-graphics-path%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
296 "../images/")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
297
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
298 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
299 ;;Quadding
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
300 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
301
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
302 ;;What quadding do you want by default; start, center, justify, or end?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
303 (define %default-quadding%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
304 'justify)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
305
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
306 ;;What quadding for component titles(Chapter, Appendix, etc)?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
307 (define %component-title-quadding%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
308 'start)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
309
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
310 ;;What quadding for section titles?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
311 (define %section-title-quadding%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
312 'start)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
313
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
314 ;;What quadding for section sub-titles?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
315 (define %section-subtitle-quadding%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
316 'start)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
317
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
318 ;;What quadding for article title?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
319 (define %article-title-quadding%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
320 'center)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
321
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
322 ;;What quadding for article sub-titles?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
323 (define %article-subtitle-quadding%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
324 'center)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
325
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
326 ;;What quadding for division subtitles?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
327 (define %division-subtitle-quadding%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
328 'start)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
329
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
330 ;;What quadding for component subtitles?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
331 (define %component-subtitle-quadding%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
332 'start)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
333
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
334
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
335
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
336
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
337 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
338 ;;Paper Options
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
339 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
340
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
341 ;;What size paper do you need? A4, USletter, USlandscape, or RedHat?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
342 (define %paper-type%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
343 "USletter")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
344
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
345 ;;Now define those paper types' width
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
346 (define %page-width%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
347 (case %paper-type%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
348 (("A4") 210mm)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
349 (("USletter") 8.5in)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
350 (("USlandscape") 11in)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
351
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
352 ;;Now define those paper types' height
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
353 (define %page-height%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
354 (case %paper-type%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
355 (("A4") 297mm)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
356 (("USletter") 11in)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
357 (("USlandscape") 8.5in)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
358
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
359 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
360 ;;Functions
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
361 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
362
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
363 (define (OLSTEP)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
364 (case
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
365 (modulo (length (hierarchical-number-recursive "ORDEREDLIST")) 4)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
366 ((1) 1.2em)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
367 ((2) 1.2em)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
368 ((3) 1.6em)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
369 ((0) 1.4em)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
370
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
371 (define (ILSTEP) 1.0em)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
372
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
373 (define (PROCSTEP ilvl)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
374 (if (> ilvl 1) 1.8em 1.4em))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
375
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
376 (define (PROCWID ilvl)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
377 (if (> ilvl 1) 1.8em 1.4em))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
378
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
379
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
380 (define ($comptitle$)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
381 (make paragraph
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
382 font-family-name: %title-font-family%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
383 font-weight: 'bold
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
384 font-size: (HSIZE 2)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
385 line-spacing: (* (HSIZE 2) %line-spacing-factor%)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
386 space-before: (* (HSIZE 2) %head-before-factor%)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
387 space-after: (* (HSIZE 2) %head-after-factor%)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
388 start-indent: 0pt
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
389 first-line-start-indent: 0pt
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
390 quadding: 'start
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
391 keep-with-next?: #t
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
392 (process-children-trim)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
393
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
394 ;;Callouts are confusing in Postscript... fix them.
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
395 (define %callout-fancy-bug%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
396 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
397
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
398
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
399 ;;By default perils are centered and dropped into a box with a really
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
400 ;;big border - I have simply decreased the border thickness -
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
401 ;;unfortunately it takes all this to do it - sigh.
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
402 (define ($peril$)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
403 (let* ((title (select-elements
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
404 (children (current-node)) (normalize "title")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
405 (has-title (not (node-list-empty? title)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
406 (adm-title (if has-title
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
407 (make sequence
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
408 (with-mode title-sosofo-mode
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
409 (process-node-list (node-list-first title))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
410 (literal
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
411 (gentext-element-name
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
412 (current-node)))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
413 (hs (HSIZE 2)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
414 (if %admon-graphics%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
415 ($graphical-admonition$)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
416 (make display-group
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
417 space-before: %block-sep%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
418 space-after: %block-sep%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
419 font-family-name: %admon-font-family%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
420 font-size: (- %bf-size% 1pt)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
421 font-weight: 'medium
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
422 font-posture: 'upright
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
423 line-spacing: (* (- %bf-size% 1pt) %line-spacing-factor%)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
424 (make box
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
425 display?: #t
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
426 box-type: 'border
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
427 line-thickness: .5pt
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
428 start-indent: (+ (inherited-start-indent) (* 2 (ILSTEP)) 2pt)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
429 end-indent: (inherited-end-indent)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
430 (make paragraph
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
431 space-before: %para-sep%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
432 space-after: %para-sep%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
433 start-indent: 1em
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
434 end-indent: 1em
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
435 font-family-name: %title-font-family%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
436 font-weight: 'bold
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
437 font-size: hs
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
438 line-spacing: (* hs %line-spacing-factor%)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
439 quadding: 'center
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
440 keep-with-next?: #t
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
441 adm-title)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
442 (process-children))))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
443
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
444
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
445 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
446 ;;Non-printing Elements
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
447 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
448 (element TITLEABBREV (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
449 (element SUBTITLE (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
450 (element SETINFO (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
451 (element BOOKINFO (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
452 (element BIBLIOENTRY (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
453 (element BIBLIOMISC (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
454 (element BOOKBIBLIO (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
455 (element SERIESINFO (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
456 (element DOCINFO (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
457 (element ARTHEADER (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
458 ;;(element ADDRESS (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
459
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
460 ;;Show comment element?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
461 (define %show-comments%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
462 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
463
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
464 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
465 ;;Formalpara titles
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
466 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
467
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
468
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
469 ;;Change the way Formal Paragraph titles are displayed. The commented
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
470 ;;out section will run the titles in the paragraphs.
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
471 (element (formalpara title)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
472 ;(make sequence
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
473 ;font-weight: 'bold
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
474 ;($runinhead$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
475 ($lowtitle$ 5 7))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
476
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
477 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
478 ;;Inlines
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
479 ;;======================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
480
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
481 (element application ($mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
482 (element command ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
483 (element filename ($mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
484 (element function ($mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
485 (element guibutton ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
486 (element guiicon ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
487 (element guilabel ($italic-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
488 (element guimenu ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
489 (element guimenuitem ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
490 (element hardware ($bold-mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
491 (element keycap ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
492 (element literal ($mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
493 (element parameter ($italic-mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
494 (element prompt ($mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
495 (element symbol ($charseq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
496 (element emphasis ($italic-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
497
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
498 </style-specification-body>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
499 </style-specification>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
500
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
501
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
502 <!--
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
503 ;;===========================================================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
504 ;; HTML
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
505 ;;===========================================================================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
506 -->
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
507
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
508 <style-specification id="html" use="docbook">
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
509 <style-specification-body>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
510
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
511 ;; this is necessary because right now jadetex does not understand
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
512 ;; symbolic entities, whereas things work well with numeric entities.
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
513 (declare-characteristic preserve-sdata?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
514 "UNREGISTERED::James Clark//Characteristic::preserve-sdata?"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
515 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
516
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
517
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
518 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
519 ;;Header HTML 4.0.1
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
520 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
521
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
522 (define %html-pubid% "-//W3C//DTD HTML 4.01//EN")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
523
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
524 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
525 ;;Common Stuff
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
526 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
527
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
528 ;;Should there be a link to the legalnotice?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
529 (define %generate-legalnotice-link%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
530 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
531
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
532 ;;What graphics extensions allowed?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
533 (define %graphic-extensions%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
534 '("gif" "png" "jpg" "jpeg" "tif" "tiff" "eps" "epsf" ))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
535
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
536 ;;What is the default extension for images?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
537 (define %graphic-default-extension% "png")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
538
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
539 ;;Use element ids as filenames?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
540 (define %use-id-as-filename%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
541 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
542
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
543
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
544 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
545 ;;Book Stuff
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
546 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
547
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
548 ;;Do you want a TOC for Books?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
549 (define %generate-book-toc%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
550 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
551
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
552 ;;What depth should the TOC generate?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
553 ;;!Only top level of appendixes!
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
554 (define (toc-depth nd)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
555 (if (string=? (gi nd) (normalize "book"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
556 3
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
557 (if (string=? (gi nd) (normalize "appendix"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
558 0
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
559 1)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
560
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
561 ;;What elements should have an LOT?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
562 (define ($generate-book-lot-list$)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
563 (list (normalize "equation")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
564
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
565 ;;Do you want a title page for your Book?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
566 (define %generate-book-titlepage%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
567 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
568
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
569 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
570 ;;Part Stuff
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
571 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
572
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
573 ;;Should parts have TOCs?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
574 (define %generate-part-toc%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
575 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
576
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
577 ;;Should part TOCs be on their titlepages?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
578 (define %generate-part-toc-on-titlepage%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
579 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
580
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
581 ;;Do you want a title page for your part?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
582 (define %generate-part-titlepage%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
583 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
584
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
585 ;;Should the Part intro be on the part title page?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
586 (define %generate-partintro-on-titlepage%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
587 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
588
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
589 (define %para-autolabel%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
590 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
591
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
592 ;;========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
593 ;;Chapter Stuff
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
594 ;;=======================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
595
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
596 ;;No TOCs in Chapters
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
597 (define $generate-chapter-toc$
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
598 (lambda ()
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
599 #f))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
600
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
601 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
602 ;;Navigation
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
603 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
604
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
605 ;;Should there be navigation at top?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
606 (define %header-navigation%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
607 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
608
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
609 ;;Should there be navigation at bottom?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
610 (define %footer-navigation%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
611 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
612
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
613 ;;Use tables to create the navigation?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
614 (define %gentext-nav-use-tables%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
615 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
616
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
617 ;;If tables are used for navigation,
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
618 ;;how wide should they be?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
619 (define %gentext-nav-tblwidth%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
620 "100%")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
621
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
622 ;;Add arrows to navigation (comment these
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
623 ;;out if you want admon graphics here)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
624 (define (gentext-en-nav-prev prev)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
625 (make sequence (literal "<<< Previous")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
626
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
627 ;;Add arrows to navigation (comment these
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
628 ;;out if you want admon graphics here)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
629 (define (gentext-en-nav-next next)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
630 (make sequence (literal "Next >>>")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
631
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
632
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
633 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
634 ;;Tables and Lists
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
635 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
636
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
637 ;;Should Variable lists be tables?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
638 (define %always-format-variablelist-as-table%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
639 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
640
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
641 ;;What is the length of the 'Term' in a variablelist?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
642 (define %default-variablelist-termlength%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
643 20)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
644
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
645 ;;When true | If the terms are shorter than
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
646 ;;the termlength above then the variablelist
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
647 ;;will be formatted as a table.
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
648 (define %may-format-variablelist-as-table%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
649 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
650
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
651 ;;This overrides the tgroup definition
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
652 ;;(copied from 1.20, dbtable.dsl).
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
653 ;;It changes the table background color,
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
654 ;;cell spacing and cell padding.
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
655 ;;This is based on gtk-doc additions - thanks!
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
656
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
657 (element tgroup
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
658 (let* ((wrapper (parent (current-node)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
659 (frameattr (attribute-string (normalize "frame") wrapper))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
660 (pgwide (attribute-string (normalize "pgwide") wrapper))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
661 (footnotes (select-elements (descendants (current-node))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
662 (normalize "footnote")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
663 (border (if (equal? frameattr (normalize "none"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
664 '(("BORDER" "0"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
665 '(("BORDER" "1"))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
666 (bgcolor '(("BGCOLOR" "#E0E0E0")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
667 (width (if (equal? pgwide "1")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
668 (list (list "WIDTH" ($table-width$)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
669 '()))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
670 (head (select-elements (children (current-node)) (normalize "thead")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
671 (body (select-elements (children (current-node)) (normalize "tbody")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
672 (feet (select-elements (children (current-node)) (normalize "tfoot"))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
673 (make element gi: "TABLE"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
674 attributes: (append
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
675 border
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
676 width
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
677 bgcolor
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
678 '(("CELLSPACING" "0"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
679 '(("CELLPADDING" "4"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
680 (if %cals-table-class%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
681 (list (list "CLASS" %cals-table-class%))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
682 '()))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
683 (process-node-list head)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
684 (process-node-list body)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
685 (process-node-list feet)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
686 (make-table-endnotes))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
687
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
688 ;;===================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
689 ;; Admon Graphics
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
690 ;;===================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
691
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
692 ;;Should Admon Graphics be used?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
693 (define %admon-graphics%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
694 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
695
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
696 ;;Where are those admon graphics?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
697 (define %admon-graphics-path%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
698 "./stylesheet-images/")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
699
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
700 ;;Given an admonition node, returns the
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
701 ;;name of the graphic that should
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
702 ;;be used for that admonition.
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
703 ;;Define admon graphics usage
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
704 ;;NOTE these will change to pngs
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
705 ;;soon in the GDP when Tigert gets
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
706 ;;the time to make special ones for us!
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
707 (define ($admon-graphic$ #!optional (nd (current-node)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
708 (cond ((equal? (gi nd) (normalize "tip"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
709 (string-append %admon-graphics-path% "tip.gif"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
710 ((equal? (gi nd) (normalize "note"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
711 (string-append %admon-graphics-path% "note.gif"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
712 ((equal? (gi nd) (normalize "important"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
713 (string-append %admon-graphics-path% "important.gif"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
714 ((equal? (gi nd) (normalize "caution"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
715 (string-append %admon-graphics-path% "caution.gif"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
716 ((equal? (gi nd) (normalize "warning"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
717 (string-append %admon-graphics-path% "warning.gif"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
718 (else (error (string-append (gi nd) " is not an admonition.")))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
719
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
720 ;;Given an admonition node, returns
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
721 ;;the width of the graphic that will
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
722 ;;be used for that admonition.
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
723 (define ($admon-graphic-width$ #!optional (nd (current-node)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
724 "25")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
725
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
726 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
727 ;;Labels
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
728 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
729
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
730 ;;Enumerate Chapters?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
731 (define %chapter-autolabel%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
732 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
733
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
734 ;;Enumerate Sections?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
735 (define %section-autolabel%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
736 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
737
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
738 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
739 ;; HTML Attributes
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
740 ;;=========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
741
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
742 ;;What attributes should be hung off
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
743 ;;of 'body'?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
744 (define %body-attr%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
745 (list
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
746 (list "BGCOLOR" "#FFFFFF")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
747 (list "TEXT" "#000000")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
748 (list "LINK" "#0000FF")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
749 (list "VLINK" "#840084")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
750 (list "ALINK" "#0000FF")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
751
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
752 ;;Default extension for filenames?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
753 (define %html-ext%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
754 ".html")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
755
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
756 ;;Use a CSS stylesheet?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
757 ;;Which one? Should work on
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
758 ;;this one soon
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
759 ;(define %stylesheet%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
760 ; "./gnome.css")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
761
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
762 ;;Use it
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
763 ;(define %stylesheet-type%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
764 ;"text/css")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
765
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
766
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
767 ;;========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
768 ;;Title Pages for Books
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
769 ;;=======================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
770
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
771 (define (book-titlepage-recto-elements)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
772 (list (normalize "title")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
773 (normalize "subtitle")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
774 (normalize "corpauthor")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
775 (normalize "authorgroup")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
776 (normalize "author")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
777 (normalize "orgname")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
778 (normalize "graphic")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
779 (normalize "copyright")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
780 (normalize "legalnotice")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
781 (normalize "releaseinfo")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
782 (normalize "publisher")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
783 (normalize "isbn")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
784
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
785 ;;========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
786 ;;Title Pages for Articles
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
787 ;;========================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
788
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
789 ;;Should Articles have a TOC?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
790 (define %generate-article-toc%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
791 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
792
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
793 ;;Which elements should appear
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
794 ;;on title page?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
795 (define (article-titlepage-recto-elements)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
796 (list (normalize "title")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
797 (normalize "subtitle")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
798 (normalize "authorgroup")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
799 (normalize "copyright")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
800 (normalize "legalnotice")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
801 (normalize "abstract")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
802
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
803 ;;How should elements on title page look?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
804 (mode article-titlepage-recto-mode
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
805
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
806 ;;Author name is too big - change it!
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
807 (element author
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
808 (let ((author-name (author-string))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
809 (author-affil (select-elements (children (current-node))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
810 (normalize "affiliation"))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
811 (make sequence
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
812 (make element gi: "H4"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
813 attributes: (list (list "CLASS" (gi)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
814 (make element gi: "A"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
815 attributes: (list (list "NAME" (element-id)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
816 (literal author-name)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
817 (process-node-list author-affil))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
818
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
819 ;;Address?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
820 (element address
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
821 (make sequence
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
822 (make element gi: "DIV"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
823 attributes: (list (list "CLASS" (gi)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
824 (process-children))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
825
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
826 ;;Get rid of spam-producing "mailto" links
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
827 ;;and get rid of email indentation
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
828 (element email
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
829 (make sequence
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
830 (make element gi: "DIV"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
831 attributes: (list (list "CLASS" (gi)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
832 (process-children))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
833
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
834 ;;Point Abstract to custom table function
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
835 ;;(See $dcm-abstract-object$ below. For default
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
836 ;;use $semiformal-object$
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
837 (element abstract
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
838 (make element gi: "DIV"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
839 ($dcm-abstract-object$)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
840
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
841 (element (abstract title) (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
842
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
843 ;;subtitle sizing
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
844 (element subtitle
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
845 (make element gi: "H4"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
846 attributes: (list (list "CLASS" (gi)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
847 (process-children-trim))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
848
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
849 ;;=================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
850 ;; INLINES
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
851 ;;=================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
852
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
853 ;Define my own series of fonts for various elements
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
854 (element application ($mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
855 (element command ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
856 (element filename ($mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
857 (element function ($mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
858 (element guibutton ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
859 (element guiicon ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
860 (element guilabel ($bold-mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
861 (element guimenu ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
862 (element guimenuitem ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
863 (element guisubmenu ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
864 (element hardware ($bold-mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
865 (element keycap ($bold-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
866 (element literal ($mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
867 (element parameter ($italic-mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
868 (element prompt ($mono-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
869 (element symbol ($charseq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
870 (element emphasis ($italic-seq$))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
871
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
872 ;;Show comment element?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
873 (define %show-comments%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
874 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
875
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
876 ;;====================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
877 ;; General Formatting
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
878 ;;====================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
879
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
880 ;;Formal Paras are ugly by default!
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
881 ;;Make the title run in - otherwise
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
882 ;;you should use a sect!
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
883 (element formalpara
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
884 (make element gi: "DIV"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
885 attributes: (list
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
886 (list "CLASS" (gi)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
887 (make element gi: "P"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
888 (process-children))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
889
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
890 ;;This is the old one
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
891 ;(element (formalpara title)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
892 ;($lowtitle$ 5))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
893
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
894 ;;This is the new one
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
895 (element (formalpara title)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
896 (make element gi: "B"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
897 ($runinhead$)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
898
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
899 ;;Make captions come after objects in the list
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
900 (define ($object-titles-after$)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
901 (list (normalize "figure")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
902
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
903
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
904 ;; Handle qanda labelling with Q: A:
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
905 (define (qanda-defaultlabel)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
906 (normalize "qanda"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
907
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
908 ;;From FreeBSD Sheets (Thanks!) Display Q and A in bigger bolder fonts
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
909
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
910 (element question
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
911 (let* ((chlist (children (current-node)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
912 (firstch (node-list-first chlist))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
913 (restch (node-list-rest chlist)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
914 (make element gi: "DIV"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
915 attributes: (list (list "CLASS" (gi)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
916 (make element gi: "P"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
917 (make element gi: "BIG"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
918 (make element gi: "A"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
919 attributes: (list
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
920 (list "NAME" (element-id)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
921 (empty-sosofo))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
922 (make element gi: "B"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
923 (literal (question-answer-label
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
924 (current-node)) " ")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
925 (process-node-list (children firstch)))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
926 (process-node-list restch))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
927
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
928 ;;Literal Elements
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
929
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
930 ;;Indent Literal layouts?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
931 (define %indent-literallayout-lines%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
932 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
933
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
934 ;;Indent Programlistings?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
935 (define %indent-programlisting-lines%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
936 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
937
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
938 ;;Number lines in Programlistings?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
939 (define %number-programlisting-lines%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
940 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
941
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
942 ;;Should verbatim items be 'shaded' with a table?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
943 (define %shade-verbatim%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
944 #t)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
945
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
946 ;;Define shade-verbatim attributes
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
947 (define ($shade-verbatim-attr$)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
948 (list
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
949 (list "BORDER" "0")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
950 (list "BGCOLOR" "#E0E0E0")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
951 (list "WIDTH" ($table-width$))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
952
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
953 ;;===================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
954 ;; Entities
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
955 ;;===================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
956
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
957 ;;Netscape doesn't handle trademark
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
958 ;;entity right at all!! Get rid of it.
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
959 ;;Make a TM in a superscipt font.
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
960 (element trademark
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
961 (make sequence
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
962 (process-children)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
963 (make element gi: "sup"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
964 (literal "TM"))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
965
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
966
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
967 ;;===================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
968 ;; New Definitions
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
969 ;;==================
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
970
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
971 (define ($dcm-abstract-object$)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
972 (make element gi: "TABLE"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
973 attributes: '(("BORDER" "0")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
974 ("BGCOLOR" "#E0E0E0")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
975 ("WIDTH" "50%")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
976 ("CELLSPACING" "0")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
977 ("CELLPADDING" "0")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
978 ("ALIGN" "CENTER"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
979 (make element gi: "TR"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
980 (make element gi: "TD"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
981 attributes: '(("VALIGN" "TOP"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
982 (make element gi: "B"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
983 (literal "Abstract"))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
984 (make element gi: "TR"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
985 (make element gi: "TD"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
986 attributes: '(("VALIGN" "TOP"))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
987 (process-children)))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
988
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
989 ;;Redefine Titlepage Separator on Articles
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
990
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
991 (define (article-titlepage-separator side)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
992 (make empty-element gi: "HR"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
993 attributes: '(("WIDTH" "75%")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
994 ("ALIGN" "CENTER")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
995 ("COLOR" "#000000")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
996 ("SIZE" "1"))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
997
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
998
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
999
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1000
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1001 (define (chunk-element-list)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1002 (list (normalize "preface")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1003 (normalize "chapter")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1004 (normalize "appendix")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1005 (normalize "article")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1006 (normalize "glossary")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1007 (normalize "bibliography")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1008 (normalize "index")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1009 (normalize "colophon")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1010 (normalize "setindex")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1011 (normalize "reference")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1012 (normalize "refentry")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1013 (normalize "part")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1014 (normalize "sect1")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1015 (normalize "section")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1016 (normalize "book") ;; just in case nothing else matches...
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1017 (normalize "set") ;; sets are definitely chunks...
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1018 ))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1019
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1020 ;;Do you want Callouts to be graphics?
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1021 (define %callout-graphics%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1022 #f)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1023
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1024
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1025 ;;Make Callout graphics PNGs
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1026 (define %callout-graphics-path%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1027 "./imagelib/callouts/")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1028
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1029 ;; Redefine $callout-bug$ to support the %callout-graphic-ext%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1030 ;; variable.
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1031 (define ($callout-bug$ conumber)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1032 (let ((number (if conumber (format-number conumber "1") "0")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1033 (if conumber
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1034 (if %callout-graphics%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1035 (if (<= conumber %callout-graphics-number-limit%)
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1036 (make empty-element gi: "IMG"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1037 attributes: (list (list "SRC"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1038 (root-rel-path
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1039 (string-append
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1040 %callout-graphics-path%
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1041 number
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1042 %callout-graphics-ext%)))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1043 (list "HSPACE" "0")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1044 (list "VSPACE" "0")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1045 (list "BORDER" "0")
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1046 (list "ALT"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1047 (string-append
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1048 "(" number ")"))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1049 (make element gi: "B"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1050 (literal "(" (format-number conumber "1") ")")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1051 (make element gi: "B"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1052 (literal "(" (format-number conumber "1") ")")))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1053 (make element gi: "B"
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1054 (literal "(??)")))))
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1055
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1056 </style-specification-body>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1057 </style-specification>
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1058
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1059 <external-specification id="docbook" document="docbook.dsl">
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1060
bc28c3bc3769 Put all stylesheets in one central location
roug
parents:
diff changeset
1061 </style-sheet>