annotate docs/nitros9guide/docbook-utils-a4.dsl @ 603:e9578f62b346

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