annotate docs/basic09/docbook-utils.dsl @ 484:13ca57c5a987

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