Debian Codegraph @

texmf-dist/tex/xmltex/passivetex/fotex.xmt

raw
1 % $Id: //depot/Master/texmf/tex/xmltex/passivetex/fotex.xmt#90 $, $Date: 2002/06/25 $
2 %
3 % PassiveTeX version 1.17
4 %
5 % Copyright 2002 Sebastian Rahtz/Oxford University
6 % <[email protected]>
7 %
8 % Permission is hereby granted, free of charge, to any person obtaining
9 % a copy of this software and any associated documentation files (the
10 % ``Software''), to deal in the Software without restriction, including
11 % without limitation the rights to use, copy, modify, merge, publish,
12 % distribute, sublicense, and/or sell copies of the Software, and to
13 % permit persons to whom the Software is furnished to do so, subject to
14 % the following conditions:
15 %
16 % The above copyright notice and this permission notice shall be included
17 % in all copies or substantial portions of the Software.
18 %
19 % Includes fixes from Tomas Bures <[email protected]>
20 % Yura Zotov <[email protected]>
21 % Anton V. Boyarshinov <[email protected]>
22 \DeclareNamespace{fotex}{http://www.tug.org/fotex}
23 \DeclareNamespace{fo}{http://www.w3.org/1999/XSL/Format}
24 \def\string@autoauto{autoauto}
25 \XMLstring\FirstOnPage<>first-starting-within-page</>
26 \XMLstring\LastOnPage<>last-starting-within-page</>
27 \XMLstring\LINK<>LINK</>
28 \XMLstring\file@urlprefix<>url(</>
29 \XMLstring\file@prefix<>file://</>
30 \XMLstring\file@shortprefix<>file:</>
31 \XMLstringX\prop@width<>proportional-column-width(1)</>
32 \XMLstringX\@staticafter<>xsl-after</>
33 \XMLstringX\@staticbefore<>xsl-before</>
34 \XMLstringX\@staticstart<>xsl-start</>
35 \XMLstring\att@labelend<>label-end()</>
36 \XMLstring\att@bodystart<>body-start()</>
37 \XMLstringX\att@NaN<>NaN</>
38 \XMLstringX\att@all<>all</>
39 \XMLstringX\att@always<>always</>
40 \XMLstringX\att@any<>any</>
41 \XMLstringX\att@auto<>auto</>
42 \XMLstringX\att@autoodd<>auto-odd</>
43 \XMLstringX\att@autoeven<>auto-even</>
44 \XMLstringX\att@endonodd<>end-on-odd</>
45 \XMLstringX\att@endoneven<>end-on-even</>
46 \XMLstringX\att@baseline<>baseline</>
47 \XMLstringX\att@blank<>blank</>
48 \XMLstringX\att@black<>black</>
49 \XMLstringX\att@bottom<>bottom</>
50 \XMLstringX\att@centered<>center</>
51 \XMLstringX\att@false<>false</>
52 \XMLstringX\att@first@starting@within@page<>first-starting-within-page</>
53 \XMLstringX\att@first<>first</>
54 \XMLstringX\att@even<>even</>
55 \XMLstringX\att@odd<>odd</>
56 \XMLstringX\att@lr@tb<>lr-tb</>
57 \XMLstringX\att@maximum<>maximum</>
58 \XMLstringX\att@maximumuniform<>maximum-uniform</>
59 \XMLstringX\att@medium<>medium</>
60 \XMLstringX\att@no<>no</>
61 \XMLstringX\att@no@limit<>no-limit</>
62 \XMLstringX\att@none<>none</>
63 \XMLstringX\att@normal<>normal</>
64 \XMLstringX\att@nowrap<>no-wrap</>
65 \XMLstringX\att@oddpage<>odd-page</>
66 \XMLstringX\att@page<>page</>
67 \XMLstringX\att@page@sequence<>page-sequence</>
68 \XMLstringX\att@pre<>pre</>
69 \XMLstringX\att@preserve<>preserve</>
70 \XMLstringX\att@relative<>relative</>
71 \XMLstringX\att@repeat<>repeat</>
72 \XMLstringX\att@replace<>replace</>
73 \XMLstringX\att@scroll<>scroll</>
74 \XMLstringX\att@scaletofit<>scale-to-fit</>
75 \XMLstringX\att@show<>show</>
76 \XMLstringX\att@smallcaps<>small-caps</>
77 \XMLstringX\att@solid<>solid</>
78 \XMLstringX\att@static<>static</>
79 \XMLstringX\att@sub<>sub</>
80 \XMLstringX\att@super<>super</>
81 \XMLstringX\att@top<>top</>
82 \XMLstringX\att@transparent<>transparent</>
83 \XMLstringX\att@true<>true</>
84 \XMLstringX\att@tiny<>true</>
85 \XMLstringX\att@thin<>thin</>
86 \XMLstringX\att@thick<>thick</>
87 \XMLstringX\att@uniform<>uniform</>
88 \XMLstringX\att@use@font@metrics<>use-font-metrics</>
89 \XMLstringX\att@visible<>visible</>
90 \XMLstringX\att@xsl@any<>xsl-any</>
91 \XMLstringX\att@yes<>yes</>
92 \XMLstringX\leader@pattern@space<>space</>
93 \XMLstringX\leader@pattern@rule<>rule</>
94 \XMLstringX\leader@pattern@dots<>dots</>
95 \XMLstringX\rule@style@dashed<>dashed</>
96 \XMLstringX\rule@style@dotted<>dotted</>
97 \XMLnamespaceattributeX{fo}{media-usage}{\FOmediausage}{}
98 % The "media-usage" property is used to control
99 % how the selected display medium is used to
100 % present the page(s) specified by the stylesheet.
101 \XMLnamespaceattributeX{fo}{text-altitude}{\FOtextaltitude}{}
102 % Specifies the "height" to be used for the ascent
103 % above the dominant baseline
104 \XMLnamespaceattributeX{fo}{text-depth}{\FOtextdepth}{}
105 % Specifies the "depth" to be used for the descent
106 % below the domiant baseline.
107 %auto | absolute | fixed | inherit
108 %\XMLnamespaceattributeX{fo}{absolute-position}{\FOabsoluteposition}{auto}
109 %link | visited | active | hover | focus
110 %\XMLnamespaceattributeX{fo}{active-state}{\FOactivestate}{}
111 %auto | <percentage> | <length> | inherit
112 \XMLnamespaceattributeX{fo}{alignment-adjust}{\FOalignmentadjust}{auto}
113 %yes | no
114 %\XMLnamespaceattributeX{fo}{auto-restore}{\FOautorestore}{\inherit}
115 %<angle> | [[ left-side | far-left | left
116 %| center-left | center | center-right | right | far-right | right-side
117 %] || behind ] | leftwards | rightwards | inherit
118 %\XMLnamespaceattributeX{fo}{azimuth}{\FOazimuth}{\inherit}
119 %[<background-color> ||
120 %<background-image>
121 %|| <background-repeat> || <background-attachment> || <background-position>
122 %| ]]inherit
123 \XMLnamespaceattributeX{fo}{background}{\FObackground}{}
124 %scroll | fixed | inherit
125 %\XMLnamespaceattributeX{fo}{background-attachment}{\FObackgroundattachment}{scroll}
126 %<color> | transparent | inherit
127 \XMLnamespaceattribute{fo}{background-color}{\FObackgroundcolor}{transparent}
128 %<uri> | none | inherit
129 %\XMLnamespaceattributeX{fo}{background-image}{\FObackgroundimage}{none}
130 %[ [<percentage> | <length> ]{1,2} |
131 % [ [top | center | bottom] || [left | center | right] ] ] | inherit
132 %\XMLnamespaceattributeX{fo}{background-position}{\FObackgroundposition}{0\% 0\%}
133 %<percentage> | <length> |
134 %left | center | right | inherit
135 %\XMLnamespaceattributeX{fo}{background-position-horizontal}{\FObackgroundpositionhorizontal}{0\%}
136 %<percentage> | <length> |
137 %top | center | bottom | inherit
138 %\XMLnamespaceattributeX{fo}{background-position-vertical}{\FObackgroundpositionvertical}{0\%}
139 %repeat | repeat-x | repeat-y | no-repeat | inherit
140 %\XMLnamespaceattributeX{fo}{background-repeat}{\FObackgroundrepeat}{repeat}
141 %baseline | before-edge
142 %| text-before-edge | middle | after-edge
143 %| text-after-edge | ideographic | alphabetic | hanging | mathematical
144 %| inherit
145 %\XMLnamespaceattributeX{fo}{baseline-identifier}{\FObaselineidentifier}{}
146 %baseline | sub | super | <percentage> | <length> | inherit
147 \XMLnamespaceattributeX{fo}{baseline-shift}{\FObaselineshift}{baseline}
148 %blank | not-blank | any | inherit
149 \XMLnamespaceattributeX{fo}{blank-or-not-blank}{\FOblankornotblank}{any}
150 %auto | <length> | <percentage> | <length-range> | inherit
151 %\XMLnamespaceattributeX{fo}{block-progression-dimension}{\FOblockprogressiondimension}{auto}
152 %[ <border-width> || <border-style> || <color> ] | inherit
153 \XMLnamespaceattributeX{fo}{border}{\FOborder}{}
154 %<color> | inherit
155 \XMLnamespaceattribute{fo}{border-after-color}{\FOborderaftercolor}{\FOcolor}
156 %<border-style> | inherit
157 \XMLnamespaceattributeX{fo}{border-after-style}{\FOborderafterstyle}{none}
158 %<border-width> | <length-conditional> | inherit
159 \XMLnamespaceattribute{fo}{border-after-width}{\FOborderafterwidth}{medium}
160 %<color> | inherit
161 \XMLnamespaceattribute{fo}{border-before-color}{\FOborderbeforecolor}{\FOcolor}
162 %<border-style> | inherit
163 \XMLnamespaceattributeX{fo}{border-before-style}{\FOborderbeforestyle}{none}
164 %<border-width> | <length-conditional> | inherit
165 \XMLnamespaceattribute{fo}{border-before-width}{\FOborderbeforewidth}{medium}
166 \XMLnamespaceattributeX{fo}{border-collapse}{\FObordercollapse}{\inherit}
167 %<color>{1,4} | transparent | inherit
168 \XMLnamespaceattribute{fo}{border-color}{\FObordercolor}{black}
169 %<color> | inherit
170 \XMLnamespaceattribute{fo}{border-end-color}{\FOborderendcolor}{\FOcolor}
171 %<border-style> | inherit
172 \XMLnamespaceattributeX{fo}{border-end-style}{\FOborderendstyle}{none}
173 %<border-width> | inherit
174 \XMLnamespaceattributeX{fo}{border-end-width}{\FOborderendwidth}{medium}
175 \XMLnamespaceattributeX{fo}{border-separation}{\FOborderseparation}{\inherit}
176 %<length> <length>? | inherit
177 \XMLnamespaceattributeX{fo}{border-spacing}{\FOborderspacing}{\inherit}
178 %<color> | inherit
179 \XMLnamespaceattribute{fo}{border-start-color}{\FOborderstartcolor}{\FOcolor}
180 %<border-style> | inherit
181 \XMLnamespaceattributeX{fo}{border-start-style}{\FOborderstartstyle}{none}
182 %<border-width> | inherit
183 \XMLnamespaceattributeX{fo}{border-start-width}{\FOborderstartwidth}{medium}
184 %<border-style>{1,4} | inherit
185 \XMLnamespaceattributeX{fo}{border-style}{\FOborderstyle}{}
186 %<length> | <percentage> | auto | inherit
187 \XMLnamespaceattributeX{fo}{border-width}{\FOborderwidth}{}
188 \XMLnamespaceattributeX{fo}{border-bottom}{\FOborderbottom}{\LINK}
189 \XMLnamespaceattribute{fo}{border-bottom-color}{\FOborderbottomcolor}{\LINK}
190 \XMLnamespaceattributeX{fo}{border-bottom-style}{\FOborderbottomstyle}{\LINK}
191 \XMLnamespaceattributeX{fo}{border-bottom-width}{\FOborderbottomwidth}{\LINK}
192 \XMLnamespaceattributeX{fo}{border-left}{\FOborderleft}{\LINK}
193 \XMLnamespaceattribute{fo}{border-left-color}{\FOborderleftcolor}{\LINK}
194 \XMLnamespaceattributeX{fo}{border-left-style}{\FOborderleftstyle}{\LINK}
195 \XMLnamespaceattributeX{fo}{border-left-width}{\FOborderleftwidth}{\LINK}
196 \XMLnamespaceattributeX{fo}{border-right}{\FOborderright}{\LINK}
197 \XMLnamespaceattribute{fo}{border-right-color}{\FOborderrightcolor}{\LINK}
198 \XMLnamespaceattributeX{fo}{border-right-style}{\FOborderrightstyle}{\LINK}
199 \XMLnamespaceattributeX{fo}{border-right-width}{\FOborderrightwidth}{\LINK}
200 \XMLnamespaceattributeX{fo}{border-top}{\FObordertop}{\LINK}
201 \XMLnamespaceattribute{fo}{border-top-color}{\FObordertopcolor}{\LINK}
202 \XMLnamespaceattributeX{fo}{border-top-style}{\FObordertopstyle}{\LINK}
203 \XMLnamespaceattributeX{fo}{border-top-width}{\FObordertopwidth}{\LINK}
204
205
206 %<length> | <percentage> | auto | inherit
207 \XMLnamespaceattributeX{fo}{bottom}{\FObottom}{auto}
208 %auto | column | page | even-page | odd-page | inherit
209 \XMLnamespaceattributeX{fo}{break-after}{\FObreakafter}{auto}
210 %auto | column | page | even-page | odd-page | inherit
211 \XMLnamespaceattributeX{fo}{break-before}{\FObreakbefore}{auto}
212 %before | after | start | end | top | bottom | left | right | inherit
213 \XMLnamespaceattributeX{fo}{caption-side}{\FOcaptionside}{\inherit}
214 %<name>
215 \XMLnamespaceattributeX{fo}{case-name}{\FOcasename}{}
216 %<string>
217 \XMLnamespaceattributeX{fo}{case-title}{\FOcasetitle}{}
218 %<character>
219 \XMLnamespaceattribute{fo}{character}{\FOcharacter}{}
220 %start | end | left | right | both | none | inherit
221 \XMLnamespaceattributeX{fo}{clear}{\FOclear}{none}
222 %<shape> | auto | inherit
223 \XMLnamespaceattributeX{fo}{clip}{\FOclip}{auto}
224 %<color> | inherit
225 \XMLnamespaceattribute{fo}{color}{\FOcolor}{\inherit}
226 %<name> | inherit
227 \XMLnamespaceattributeX{fo}{color-profile-name}{\FOcolorprofilename}{}
228 %<number> | inherit
229 \XMLnamespaceattributeX{fo}{column-count}{\FOcolumncount}{1}
230 %<length> | <percentage> | inherit
231 \XMLnamespaceattributeX{fo}{column-gap}{\FOcolumngap}{12.0pt}
232 %<number>
233 \XMLnamespaceattributeX{fo}{column-number}{\FOcolumnnumber}{}
234 %<length>
235 \XMLnamespaceattribute{fo}{column-width}{\FOcolumnwidth}{}
236 %<string> | auto
237 %\XMLnamespaceattributeX{fo}{content-type}{\FOcontenttype}{auto}
238
239 %none | <country> | inherit
240 \XMLnamespaceattributeX{fo}{country}{\FOcountry}{\inherit}
241 %<cue-before> || <cue-after> | inherit
242 %\XMLnamespaceattributeX{fo}{cue}{\FOcue}{}
243 %<uri> | none | inherit
244 %\XMLnamespaceattributeX{fo}{cue-after}{\FOcueafter}{none}
245 %<uri> | none | inherit
246 %\XMLnamespaceattributeX{fo}{cue-before}{\FOcuebefore}{none}
247 %<length>
248 %\XMLnamespaceattributeX{fo}{destination-placement-offset}{\FOdestinationplacementoffset}{\z@}
249 %ltr | rtl | inherit
250 \XMLnamespaceattributeX{fo}{direction}{\FOdirection}{\inherit}
251 %auto | before | center | after | inherit
252 \XMLnamespaceattributeX{fo}{display-align}{\FOdisplayalign}{\inherit}
253 %auto | autosense-script | no-change | reset-size
254 %| ideographic | alphabetic | hanging | mathematical | inherit
255 %\XMLnamespaceattributeX{fo}{dominant-baseline}{\FOdominantbaseline}{auto}
256 %<angle> | below | level | above | higher | lower | inherit
257 %\XMLnamespaceattributeX{fo}{elevation}{\FOelevation}{\inherit}
258 %show | hide | inherit
259 \XMLnamespaceattributeX{fo}{empty-cells}{\FOemptycells}{\inherit}
260 %<length> | inherit
261 \XMLnamespaceattribute{fo}{end-indent}{\FOendindent}{\inherit}
262 %yes | no
263 %\XMLnamespaceattributeX{fo}{ends-row}{\FOendsrow}{no}
264 %<length> | <percentage> | inherit
265 \XMLnamespaceattributeX{fo}{extent}{\FOextent}{0.0pt}
266 %<uri-reference>
267 \XMLnamespaceattributeX{fo}{external-destination}{\FOexternaldestination}{}
268 %before | start | end | left | right | none | inherit
269 \XMLnamespaceattributeX{fo}{float}{\FOfloat}{none}
270 %<name>
271 \XMLnamespaceattributeX{fo}{flow-name}{\FOflowname}{}
272 %[ [ <font-style> || <font-variant>
273 %|| <font-weight> ]? <font-size> [ / <line-height>]? <font-family>
274 %] | caption | icon | menu | message-box | small-caption | status-bar
275 %| inherit
276 \XMLnamespaceattributeX{fo}{font}{\FOfont}{\inherit}
277 %[[ <family-name> | <generic-family> ],]* [<family-name> | <generic-family>] | inherit
278 \XMLnamespaceattributeX{fo}{font-family}{\FOfontfamily}{\inherit}
279 %\XMLnamespaceattributeX{fo}{font-selection-strategy}{\FOselectionstrategy}{auto}
280 %<absolute-size> | <relative-size> | <length> | <percentage> | inherit
281 \XMLnamespaceattribute{fo}{font-size}{\FOfontsize}{\inherit}
282 %<number> | none | inherit
283 \XMLnamespaceattributeX{fo}{font-size-adjust}{\FOfontsizeadjust}{\inherit}
284 %normal | wider | narrower | ultra-condensed
285 % | extra-condensed | condensed | semi-condensed | semi-expanded |
286 % expanded | extra-expanded | ultra-expanded |inherit
287 \XMLnamespaceattributeX{fo}{font-stretch}{\FOfontstretch}{\inherit}
288 %normal | italic | oblique | backslant | inherit
289 \XMLnamespaceattributeX{fo}{font-style}{\FOfontstyle}{\inherit}
290 %normal | small-caps | inherit
291 \XMLnamespaceattributeX{fo}{font-variant}{\FOfontvariant}{\inherit}
292 %normal | bold | bolder | lighter | 100 | 200
293 % | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit
294 \XMLnamespaceattributeX{fo}{font-weight}{\FOfontweight}{\inherit}
295 %auto | even | odd | end-on-even | end-on-odd | no-force | inherit
296 \XMLnamespaceattributeX{fo}{force-page-count}{\FOforcepagecount}{auto}
297 %<string>
298 \XMLnamespaceattributeX{fo}{format}{\FOformat}{\inherit}
299 %<angle> | inherit
300 %\XMLnamespaceattributeX{fo}{glyph-orientation-horizontal}{\FOglyphorientationhorizontal}{\inherit}
301 %auto | <angle> | inherit
302 %\XMLnamespaceattributeX{fo}{glyph-orientation-vertical}{\FOglyphorientationvertical}{\inherit}
303 %<character>
304 \XMLnamespaceattributeX{fo}{grouping-separator}{\FOgroupingseparator}{}
305 %<number>
306 %\XMLnamespaceattributeX{fo}{grouping-size}{\FOgroupingsize}{}
307 %<length> | <percentage> | auto | inherit
308 \XMLnamespaceattributeX{fo}{height}{\FOheight}{auto}
309 %false | true | inherit
310 \XMLnamespaceattributeX{fo}{hyphenate}{\FOhyphenate}{\inherit}
311 %<character> | inherit
312 \XMLnamespaceattributeX{fo}{hyphenation-character}{\FOhyphenationcharacter}{\inherit}
313 %auto | column | page | inherit
314 %\XMLnamespaceattributeX{fo}{hyphenation-keep}{\FOhyphenationkeep}{\inherit}
315 %no-limit | <number> | inherit
316 %\XMLnamespaceattributeX{fo}{hyphenation-ladder-count}{\FOhyphenationladdercount}{\inherit}
317 %<number> | inherit
318 \XMLnamespaceattributeX{fo}{hyphenation-push-character-count}{\FOhyphenationpushcharactercount}{\inherit}
319 %<number> | inherit
320 %\XMLnamespaceattributeX{fo}{hyphenation-remain-character-count}{\FOhyphenationremaincharactercount}{\inherit}
321 % <id>
322 \XMLnamespaceattributeX{fo}{id}{\FOid}{}
323 %yes | no
324 %\XMLnamespaceattributeX{fo}{indicate-destination}{\FOindicatedestination}{no}
325 %auto | auto-odd | auto-even | <number> | inherit
326 \XMLnamespaceattributeX{fo}{initial-page-number}{\FOinitialpagenumber}{auto}
327 %auto | <length> | <percentage> | <length-range> | inherit
328 %\XMLnamespaceattributeX{fo}{inline-progression-dimension}{\FOinlineprogressiondimension}{auto}
329 %null string | <idref>
330 \XMLnamespaceattributeX{fo}{internal-destination}{\FOinternaldestination}{}
331 %<keep> | inherit
332 \XMLnamespaceattributeX{fo}{keep-together}{\FOkeeptogether}{\inherit}
333 \XMLnamespaceattributeX{fo}{keep-together.within-line}{\FOkeeptogetherLine}{\inherit}
334 % since we dont support column keeps, use Page here (not)
335 \XMLnamespaceattributeX{fo}{keep-together.within-column}{\FOkeeptogetherColumn}{\inherit}
336 \XMLnamespaceattributeX{fo}{keep-together.within-page}{\FOkeeptogetherPage}{\inherit}
337 %<keep> | inherit
338 \XMLnamespaceattributeX{fo}{keep-with-next}{\FOkeepwithnext}{auto}
339 \XMLnamespaceattributeX{fo}{keep-with-next.within-line}{\FOkeepwithnextLine}{auto}
340 \XMLnamespaceattributeX{fo}{keep-with-next.within-column}{\FOkeepwithnextColumn}{auto}
341 \XMLnamespaceattributeX{fo}{keep-with-next.within-page}{\FOkeepwithnextPage}{auto}
342 %<keep> | inherit
343 \XMLnamespaceattributeX{fo}{keep-with-previous}{\FOkeepwithprevious}{auto}
344 \XMLnamespaceattributeX{fo}{keep-with-previous.within-line}{\FOkeepwithpreviousLine}{auto}
345 \XMLnamespaceattributeX{fo}{keep-with-previous.within-column}{\FOkeepwithpreviousColumn}{auto}
346 \XMLnamespaceattributeX{fo}{keep-with-previous.within-page}{\FOkeepwithpreviousPage}{auto}
347 %none | <language> | inherit
348 \XMLnamespaceattributeX{fo}{language}{\FOlanguage}{\inherit}
349 %<length> | <percentage> | inherit
350 \XMLnamespaceattributeX{fo}{last-line-end-indent}{\FOlastlineendindent}{\inherit}
351 %none | reference-area | page | inherit
352 \XMLnamespaceattributeX{fo}{leader-alignment}{\FOleaderalignment}{\inherit}
353 %<length-range> | inherit
354 \XMLnamespaceattributeX{fo}{leader-length}{\FOleaderlength}{\inherit}
355 %space | rule | dots | use-content | inherit
356 \XMLnamespaceattributeX{fo}{leader-pattern}{\FOleaderpattern}{\inherit}
357 %use-font-metrics | <length> | inherit
358 \XMLnamespaceattributeX{fo}{leader-pattern-width}{\FOleaderpatternwidth}{\inherit}
359 %<length> | <percentage> | auto | inherit
360 \XMLnamespaceattributeX{fo}{left}{\FOleft}{auto}
361 %normal | <length> | <space> | inherit
362 \XMLnamespaceattributeX{fo}{letter-spacing}{\FOletterspacing}{\inherit}
363 %auto | alphabetic | traditional
364 \XMLnamespaceattributeX{fo}{letter-value}{\FOlettervalue}{auto}
365 %ignore | preserve | treat-as-space | inherit
366 \XMLnamespaceattributeX{fo}{linefeed-treatment}{\FOlinefeedtreatment}{\inherit}
367 %normal | <length> | <number> | <percentage> | <space> | inherit
368 \XMLnamespaceattributeX{fo}{line-height}{\FOlineheight}{\inherit}
369 %consider-shifts | disregard-shifts | inherit
370 \XMLnamespaceattributeX{fo}{line-height-shift-adjustment}{\FOlineheightshiftadjustment}{\inherit}
371 %line-height | font-height | max-height | inherit
372 \XMLnamespaceattributeX{fo}{line-stacking-strategy}{\FOlinestackingstrategy}{\inherit}
373 %<margin-width>{1,4} | inherit
374 \XMLnamespaceattributeX{fo}{margin}{\FOmargin}{}
375 \XMLnamespaceattributeX{fo}{margin-left} {\FOmarginleft} {0pt}
376 \XMLnamespaceattributeX{fo}{margin-right} {\FOmarginright} {0pt}
377 \XMLnamespaceattributeX{fo}{margin-top} {\FOmargintop} {0pt}
378 \XMLnamespaceattributeX{fo}{margin-bottom} {\FOmarginbottom} {0pt}
379 %<name>
380 \XMLnamespaceattributeX{fo}{marker-class-name}{\FOmarkerclassname}{}
381 %<name>
382 \XMLnamespaceattributeX{fo}{master-reference}{\FOmasterreference}{}
383 \XMLnamespaceattributeX{fo}{master-name}{\FOmastername}{}
384 %<length> | <percentage> | none | inherit
385 \XMLnamespaceattributeX{fo}{max-height}{\FOmaxheight}{\z@}
386 %<number> | no-limit | inherit
387 \XMLnamespaceattributeX{fo}{maximum-repeats}{\FOmaximumrepeats}{no-limit}
388 %<length> | <percentage> | none | inherit
389 \XMLnamespaceattributeX{fo}{max-width}{\FOmaxwidth}{none}
390 %<length> | <percentage> | inherit
391 \XMLnamespaceattributeX{fo}{min-height}{\FOminheight}{\z@}
392 %<length> | <percentage> | inherit
393 \XMLnamespaceattributeX{fo}{min-width}{\FOminwidth}{}
394 %<number>
395 \XMLnamespaceattributeX{fo}{number-columns-repeated}{\FOnumbercolumnsrepeated}{1}
396 %<number>
397 \XMLnamespaceattributeX{fo}{number-columns-spanned}{\FOnumbercolumnsspanned}{1}
398 %<number>
399 \XMLnamespaceattributeX{fo}{number-rows-spanned}{\FOnumberrowsspanned}{1}
400 %odd | even | any | inherit
401 \XMLnamespaceattributeX{fo}{odd-or-even}{\FOoddoreven}{any}
402 %<integer> | inherit
403 \XMLnamespaceattributeX{fo}{orphans}{\FOorphans}{\inherit}
404 %visible | hidden | scroll | auto | inherit
405 \XMLnamespaceattributeX{fo}{overflow}{\FOoverflow}{auto}
406 %<padding-width>{1,4} | inherit
407 \XMLnamespaceattributeX{fo}{padding}{\FOpadding}{\z@}
408 %<padding-width> | <length-conditional> | inherit
409 \XMLnamespaceattributeX{fo}{padding-after}{\FOpaddingafter}{\z@}
410 %<padding-width> | <length-conditional> | inherit
411 \XMLnamespaceattributeX{fo}{padding-before}{\FOpaddingbefore}{\z@}
412 %<padding-width> | inherit
413 \XMLnamespaceattributeX{fo}{padding-bottom}{\FOpaddingbottom}{\z@}
414 %<padding-width> | inherit
415 \XMLnamespaceattributeX{fo}{padding-end}{\FOpaddingend}{\z@}
416 %<padding-width> | inherit
417 \XMLnamespaceattributeX{fo}{padding-left}{\FOpaddingleft}{\z@}
418 %<padding-width> | inherit
419 \XMLnamespaceattributeX{fo}{padding-right}{\FOpaddingright}{\z@}
420 %<padding-width> | inherit
421 \XMLnamespaceattributeX{fo}{padding-start}{\FOpaddingstart}{\z@}
422 %<padding-width> | inherit
423 \XMLnamespaceattributeX{fo}{padding-top}{\FOpaddingtop}{\z@}
424 %auto | always | avoid | left | right | inherit
425 \XMLnamespaceattributeX{fo}{page-break-after}{\FOpagebreakafter}{auto}
426 %auto | always | avoid | left | right | inherit
427 \XMLnamespaceattributeX{fo}{page-break-before}{\FOpagebreakbefore}{auto}
428 %auto | indefinite | <length> | inherit
429 \XMLnamespaceattribute{fo}{page-height}{\FOpageheight}{auto}
430 %first | last | rest | any | inherit
431 \XMLnamespaceattributeX{fo}{page-position}{\FOpageposition}{any}
432 %auto | indefinite | <length> | inherit
433 \XMLnamespaceattribute{fo}{page-width}{\FOpagewidth}{auto}
434 %[<time> | <percentage>]{1,2} | inherit
435 %\XMLnamespaceattributeX{fo}{pause}{\FOpause}{}
436 %<time> | <percentage> | inherit
437 %\XMLnamespaceattributeX{fo}{pause-after}{\FOpauseafter}{}
438 %<time> | <percentage> | inherit
439 %\XMLnamespaceattributeX{fo}{pause-before}{\FOpausebefore}{}
440 %<frequency> | x-low | low | medium | high | x-high | inherit
441 %\XMLnamespaceattributeX{fo}{pitch}{\FOpitch}{\inherit}
442 %<number> | inherit
443 %\XMLnamespaceattributeX{fo}{pitch-range}{\FOpitchrange}{\inherit}
444 %<uri> mix? repeat? | auto | none | inherit
445 %\XMLnamespaceattributeX{fo}{play-during}{\FOplayduring}{auto}
446 %static | relative | absolute | fixed | inherit
447 \XMLnamespaceattributeX{fo}{position}{\FOposition}{static}
448 %true | false | inherit
449 \XMLnamespaceattributeX{fo}{precedence}{\FOprecedence}{false}
450 %<length> | inherit
451 \XMLnamespaceattributeX{fo}{provisional-distance-between-starts}{\FOprovisionaldistancebetweenstarts}{\inherit}
452 %<length> | inherit
453 \XMLnamespaceattributeX{fo}{provisional-label-separation}{\FOprovisionallabelseparation}{\inherit}
454 % 0 | 90 | 180 | 270 | -90 | -180 | -270 | inherit
455 \XMLnamespaceattributeX{fo}{reference-orientation}{\FOreferenceorientation}{0}
456 %<idref> | inherit
457 %\XMLnamespaceattributeX{fo}{ref-id}{\FOrefid}{}
458 %xsl-region-body | xsl-region-start | xsl-region-end
459 %| xsl-region-before | xsl-region-after | xsl-before-float-separator
460 %| xsl-footnote-separator | <name>
461 \XMLnamespaceattributeX{fo}{region-name}{\FOregionname}{}
462 %before | baseline | inherit
463 \XMLnamespaceattributeX{fo}{relative-align}{\FOrelativealign}{\inherit}
464 %auto | static | relative | inherit
465 \XMLnamespaceattributeX{fo}{relative-position}{\FOrelativeposition}{static}
466 %auto | perceptual | relative-colorimetric | saturation |
467 % absolute-colorimetric | inherit
468 %\XMLnamespaceattributeX{fo}{rendering-intent}{\FOrenderingintent}{auto}
469 %page | page-sequence | document
470 %\XMLnamespaceattributeX{fo}{retrieve-boundary}{\FOretrieveboundary}{page-sequence}
471 %<name>
472 \XMLnamespaceattributeX{fo}{retrieve-class-name}{\FOretrieveclassname}{}
473 %first-starting-within-page | first-including-carryover |
474 % last-starting-within-page | last-ending-within-page
475 \XMLnamespaceattributeX{fo}{retrieve-position}{\FOretrieveposition}{first-starting-within-page}
476 %<number> | inherit
477 %\XMLnamespaceattributeX{fo}{richness}{\FOrichness}{\inherit}
478 %<length> | <percentage> | auto | inherit
479 \XMLnamespaceattributeX{fo}{right}{\FOright}{auto}
480 %<string> | none | inherit
481 \XMLnamespaceattributeX{fo}{role}{\FOrole}{none}
482 %none | dotted | dashed | solid | double | groove
483 % | ridge | inherit
484 \XMLnamespaceattributeX{fo}{rule-style}{\FOrulestyle}{\inherit}
485 %<length>
486 \XMLnamespaceattributeX{fo}{rule-thickness}{\FOrulethickness}{\inherit}
487 %uniform | non-uniform | inherit
488 \XMLnamespaceattributeX{fo}{scaling}{\FOscaling}{uniform}
489 %auto | integer-pixels | resample-any-method | inherit
490 \XMLnamespaceattributeX{fo}{scaling-method}{\FOscalingmethod}{auto}
491 %true | false | inherit
492 \XMLnamespaceattributeX{fo}{score-spaces}{\FOscorespaces}{\inherit}
493 %none | auto | <script> | inherit
494 \XMLnamespaceattributeX{fo}{script}{\FOscript}{\inherit}
495 %replace | new
496 \XMLnamespaceattributeX{fo}{show-destination}{\FOshowdestination}{replace}
497 %<length>{1,2} | auto | landscape | portrait | inherit
498 \XMLnamespaceattributeX{fo}{size}{\FOsize}{auto}
499 %<uri>+ | none | inherit
500 %\XMLnamespaceattributeX{fo}{source-document}{\FOsourcedocument}{none}
501 %<space> | inherit
502 %\XMLnamespaceattributeX{fo}{space-after}{\FOspaceafter}{\z@}
503 %<space> | inherit
504 %\XMLnamespaceattributeX{fo}{space-before}{\FOspacebefore}{\z@}
505 %<space> | inherit
506 \XMLnamespaceattributeX{fo}{space-end}{\FOspaceend}{\z@}
507 %<space> | inherit
508 \XMLnamespaceattributeX{fo}{space-start}{\FOspacestart}{\z@}
509 %ignore | preserve | inherit
510 \XMLnamespaceattributeX{fo}{space-treatment}{\FOspacetreatment}{\inherit}
511 %none | all | inherit
512 \XMLnamespaceattributeX{fo}{span}{\FOspan}{none}
513 %normal | none | spell-out | inherit
514 %\XMLnamespaceattributeX{fo}{speak}{\FOspeak}{\inherit}
515 %once | always | inherit
516 %\XMLnamespaceattributeX{fo}{speak-header}{\FOspeakheader}{\inherit}
517 %digits | continuous | inherit
518 %\XMLnamespaceattributeX{fo}{speak-numeral}{\FOspeaknumeral}{\inherit}
519 %code | none | inherit
520 %\XMLnamespaceattributeX{fo}{speak-punctuation}{\FOspeakpunctuation}{\inherit}
521 %<number> | x-slow | slow | medium | fast
522 % | x-fast | faster | slower | inherit
523 %\XMLnamespaceattributeX{fo}{speech-rate}{\FOspeechrate}{\inherit}
524 % <uri> | inherit
525 \XMLnamespaceattributeX{fo}{src}{\FOsrc}{}
526 %<length> | inherit
527 \XMLnamespaceattribute{fo}{start-indent}{\FOstartindent}{\inherit}
528 %show | hide
529 \XMLnamespaceattributeX{fo}{starting-state}{\FOstartingstate}{show}
530 %yes | no
531 %\XMLnamespaceattributeX{fo}{starts-row}{\FOstartsrow}{no}
532 %<number> | inherit
533 %\XMLnamespaceattributeX{fo}{stress}{\FOstress}{\inherit}
534 %auto | suppress | retain | inherit
535 \XMLnamespaceattributeX{fo}{suppress-at-line-break}{\FOsuppressatlinebreak}{auto}
536 %xsl-preceding | xsl-following | xsl-any | <name>[ <name>]*
537 \XMLnamespaceattributeX{fo}{switch-to}{\FOswitchto}{xsl-any}
538 %auto | fixed | inherit
539 \XMLnamespaceattributeX{fo}{table-layout}{\FOtablelayout}{auto}
540 %yes | no
541 \XMLnamespaceattributeX{fo}{table-omit-footer-at-break}{\FOtableomitfooteratbreak}{no}
542 %yes | no
543 \XMLnamespaceattributeX{fo}{table-omit-header-at-break}{\FOtableomitheaderatbreak}{no}
544 %start | center | end | justify | inside | outside
545 % | left | right | <string> | inherit
546 \XMLnamespaceattributeX{fo}{text-align}{\FOtextalign}{\inherit}
547 %relative | start | center | end | justify | inside
548 % | outside | left | right | <string> | inherit
549 \XMLnamespaceattributeX{fo}{text-align-last}{\FOtextalignlast}{\inherit}
550 %none | [ [ underline | no-underline] || [ overline | no-overline ]
551 %|| [ line-through | no-line-through ] || [ blink | no-blink ] ]| inherit
552 \XMLnamespaceattributeX{fo}{text-decoration}{\FOtextdecoration}{none}
553 %<length> | <percentage> | inherit
554 \XMLnamespaceattributeX{fo}{text-indent}{\FOtextindent}{\inherit}
555 %none | [<color> || <length> <length> <length>?
556 %,]* [<color> || <length> <length> <length>?] | inherit
557 \XMLnamespaceattributeX{fo}{text-shadow}{\FOtextshadow}{none}
558 %capitalize | uppercase | lowercase | none |
559 \XMLnamespaceattributeX{fo}{text-transform}{\FOtexttransform}{\inherit}
560 %<length> | <percentage> | auto | inherit
561 \XMLnamespaceattributeX{fo}{top}{\FOtop}{auto}
562 %auto | yes | no | inherit
563 \XMLnamespaceattributeX{fo}{treat-as-word-space}{\FOtreataswordspace}{auto}
564 %normal | embed | bidi-override | inherit
565 \XMLnamespaceattributeX{fo}{unicode-bidi}{\FOunicodebidi}{normal}
566 %baseline | middle | sub | super | text-top |
567 %text-bottom | <percentage> | <length> | top | bottom | inherit
568 \XMLnamespaceattribute{fo}{vertical-align}{\FOverticalalign}{auto}
569 %visible | hidden | collapse | inherit
570 %\XMLnamespaceattributeX{fo}{visibility}{\FOvisibility}{visible}
571 %[[<specific-voice> | <generic-voice>
572 %],]* [<specific-voice> | <generic-voice> ] | inherit
573 %\XMLnamespaceattributeX{fo}{voice-family}{\FOvoicefamily}{\inherit}
574 %<number> | <percentage> | silent | x-soft
575 %| soft | medium | loud | x-loud | inherit
576 %\XMLnamespaceattributeX{fo}{volume}{\FOvolume}{\inherit}
577 %normal | pre | nowrap | inherit
578 \XMLnamespaceattributeX{fo}{white-space}{\FOwhitespace}{\inherit}
579 %false | true | inherit
580 \XMLnamespaceattributeX{fo}{white-space-collapse}{\FOwhitespacecollapse}{\inherit}
581 %<integer> | inherit
582 \XMLnamespaceattributeX{fo}{widows}{\FOwidows}{\inherit}
583 %<length> | <percentage> | auto | inherit
584 \XMLnamespaceattributeX{fo}{width}{\FOwidth}{auto}
585 %normal | <length> | <space> | inherit
586 \XMLnamespaceattributeX{fo}{word-spacing}{\FOwordspacing}{\inherit}
587 %no-wrap | wrap | inherit
588 \XMLnamespaceattributeX{fo}{wrap-option}{\FOwrapoption}{\inherit}
589 %lr-tb | rl-tb | tb-rl | lr | rl | tb | inherit
590 \XMLnamespaceattributeX{fo}{writing-mode}{\FOwritingmode}{lr-tb}
591 %<country-language> | inherit
592 %\XMLnamespaceattributeX{fo}{xml:lang}{\FOxmllang}{\inherit}
593 %auto | <integer> | inherit
594 \XMLnamespaceattributeX{fo}{z-index}{\FOzindex}{auto}
595 %-------------------------------
596 \XMLnamespaceattributeX{fotex}{column-align}{\FOcolumnalign}{}
597
598 % Added attribute which controls table-placement.
599 % It has the same syntax as LaTeX (e.g. !tbh)
600 % Since XMLTeX doesn't process well attributes from another namespace,
601 % I must use the workaround
602 % with namespaces.
603 \XMLnamespaceattributeX{fo}{fotex:placement}{\FOkplacement}{}
604 \XMLname{fo:inline-container}{\FOInlineContainer}
605 \XMLname{fo:list-item-label}{\FOListItemLabel}
606 \XMLname{fo:list-item-body}{\FOListItemBody}
607 \XMLname{fo:table-cell}{\FOTableCell}
608 \XMLname{fo:table-row}{\FOTableRow}
609 \def\SpaceAttributes{
610 \XMLattributeX{space-after.optimum}{\FOspaceafteroptimum}{\z@}
611 \XMLattributeX{space-after.maximum}{\FOspaceaftermaximum}{\z@}
612 \XMLattributeX{space-after.minimum}{\FOspaceafterminimum}{\z@}
613 \XMLattributeX{space-before.optimum}{\FOspacebeforeoptimum}{\z@}
614 \XMLattributeX{space-before.maximum}{\FOspacebeforemaximum}{\z@}
615 \XMLattributeX{space-before.minimum}{\FOspacebeforeminimum}{\z@}
616 \XMLattributeX{space-after}{\FOspaceafter}{}
617 \XMLattributeX{space-before}{\FOspacebefore}{}
618 }
619 \gdef\Defaultx@fontfamily{Times-Roman}
620 \gdef\FOheadindent{\z@}
621 \gdef\FOautorestore{no}
622 \gdef\FOazimuth{center}
623 \gdef\FObordercollapse{collapse}
624 \gdef\FOborderseparation{\z@}
625 \gdef\FOborderspacing{\z@}
626 \gdef\FOcaptionside{before}
627 \gdef\FOcolor{}
628 \gdef\FOcountry{none}
629 \gdef\FOdirection{ltr}
630 \gdef\FOdisplayalign{auto}
631 \gdef\FOelevation{level}
632 \gdef\FOemptycells{show}
633 \gdef\FOendindent{\z@}
634 \gdef\FOfont{}
635 \gdef\FOfontfamily{Times-Roman}
636 \gdef\FOfontsizeadjust{none}
637 \gdef\FOfontsize{medium}
638 \gdef\FOfontstretch{normal}
639 \gdef\FOfontstyle{normal}
640 \gdef\FOfontvariant{normal}
641 \gdef\FOfontweight{normal}
642 \gdef\FOformat{1}
643 \gdef\FOglyphorientationhorizontal{0}
644 \gdef\FOglyphorientationvertical{auto}
645 \gdef\FOhyphenate{false}
646 \gdef\FOhyphenationcharacter{-}
647 \gdef\FOhyphenationkeep{none}
648 \gdef\FOhyphenationladdercount{no-limit}
649 \gdef\FOhyphenationpushcharactercount{2}
650 \gdef\FOhyphenationremaincharactercount{2}
651 \gdef\FOlanguage{none}
652 \gdef\FOlastlineendindent{\z@}
653 \gdef\FOleaderalignment{none}
654 \gdef\FOleaderlength{\z@}
655 \gdef\FOleaderpattern{space}
656 \gdef\FOleaderpatternwidth{}
657 \gdef\FOletterspacing{normal}
658 \gdef\FOlinefeedtreatment{treat-as-space}
659 \gdef\FOlineheight{normal}
660 \gdef\FOlineheightshiftadjustment{consider-shifts}
661 \gdef\FOlinestackingstrategy{line-height}
662 \gdef\FOorphans{2}
663 \gdef\FOpagebreakinside{auto}
664 \gdef\FOpitch{medium}
665 \gdef\FOpitchrange{50}
666 \gdef\FOprovisionaldistancebetweenstarts{24.0pt}
667 \gdef\FOprovisionallabelseparation{6.0pt}
668 \gdef\FOrelativealign{before}
669 \gdef\FOrichness{50}
670 \gdef\FOrulestyle{solid}
671 \gdef\FOrulethickness{1.0pt}
672 \gdef\FOscorespaces{true}
673 \gdef\FOscript{auto}
674 \gdef\FOspacetreatment{preserve}
675 % \gdef\FOspeak{normal}
676 % \gdef\FOspeakheader{once}
677 % \gdef\FOspeaknumeral{continuous}
678 % \gdef\FOspeakpunctuation{none}
679 % \gdef\FOspeechrate{medium}
680 \gdef\FOstartindent{\z@}
681 % \gdef\FOstress{50}
682 \gdef\FOtextalign{start}
683 \gdef\FOtextalignlast{relative}
684 \gdef\FOtextindent{\z@}
685 \gdef\FOtexttransform{none}
686 % \gdef\FOvoicefamily{}
687 \gdef\FOvolume{medium}
688 \gdef\FOwhitespace{normal}
689 \gdef\FOwhitespacecollapse{true}
690 \gdef\FOwidows{2}
691 \gdef\FOwordspacing{normal}
692 \gdef\FOwrapoption{wrap}
693 %<margin-width> | inherit
694 \gdef\FOmarginbottom{\z@}
695 %<margin-width> | inherit
696 \gdef\FOmarginleft{\z@}
697 %<margin-width> | inherit
698 \gdef\FOmarginright{\z@}
699 %<margin-width> | inherit
700 \gdef\FOmargintop{}
701
702 \gdef\FOkplacement{}
703
704 \XMLelement{fo:root}
705 {}
706 {\documentclass{article}
707 \usepackage{fotex}
708 \begin{document}
709 \pagestyle{empty}
710 \FOSetHyphenation
711 %\ignorewhitespace
712 }
713 {\end{document}}
714
715
716 \XMLelement{fotex:inlinemath}
717 {}
718 {\(}
719 {\)}
720
721
722 \XMLelement{fotex:equation}
723 {}
724 {\begin{equation}}
725 {\end{equation}}
726
727
728 \XMLelement{fotex:displaymath}
729 {}
730 {\begin{displaymath}}
731 {\end{displaymath}}
732
733 \XMLelement{fotex:eqnarray}
734 {}
735 {\xmlgrab}
736 {\begin{gather*}#1\end{gather*}}
737
738 \XMLelement{fotex:subeqn}
739 {}
740 {\xmlgrab}
741 {\ifx\FOid\@empty
742 \gdef\w@t{#1\nonumber\\}
743 \else
744 % needs the global version
745 \gdef\w@t{#1\label{\temp}\\}
746 \fi
747 \aftergroup\w@t}
748
749 \XMLelement{fotex:bookmark}
750 {
751 \XMLattributeX{fotex-bookmark-level}{\FOTEXbookmarklevel}{0}
752 \XMLattributeX{fotex-bookmark-label}{\FOTEXbookmarklabel}{}
753 }
754 {\xmlgrab}
755 {\protectCS\FOTEXbookmarklabel
756 \let\ignorespaces\@empty
757 \pdfbookmark[\FOTEXbookmarklevel]{#1}{\FOTEXbookmarklabel}}
758
759 \XMLelement{fo:block}
760 {\SpaceAttributes}
761 {%
762 \FOBlockGrabfalse
763 \FOexpandattributes
764 \FOSetHyphenation
765 %\edef\SavedNColumns{\NColumns}
766 \ifx\XML@parent\FOListItemLabel
767 \def\w@t{\FOListBlock}%
768 \def\@whattodonext{\FOEndBlock}%
769 \else
770 \ifFOinOutput
771 \ifx\FObackgroundcolor\att@transparent
772 \ifx\FOborderstyle\att@solid
773 \FOBlockGrabtrue
774 \fi
775 \else
776 \FOBlockGrabtrue
777 \fi
778 \def\w@t{\FOOutputBlock}%
779 \def\@whattodonext{\FOEndOutputBlock}%
780 \else
781 % we care if a block is inside a table cell
782 \ifnum\FOinTable>\z@
783 \def\w@t{\FOBoxedBlock{\CurrentCellWidth}}%
784 \def\@whattodonext{\FOEndBoxedBlock}
785 \else
786 % we care if a block is a second or subsequent child of a list body
787 \ifx\XML@parent\FOListItemBody
788 \global\advance\FOListBlocks by 1%
789 \ifnum\FOListBlocks=1\relax\else\FOListInnerPartrue\fi
790 \else
791 % but also if its nested within a list body block
792 \ifFOListBody
793 \FOListInnerPartrue
794 \fi
795 \fi
796 \ifx\FObackgroundcolor\att@transparent
797 \ifx\FOborderstyle\att@solid
798 \FOBlockGrabtrue
799 \fi
800 \else
801 \FOBlockGrabtrue
802 \fi
803 \def\@whattodonext{\FOEndBlock}
804 \def\w@t{\FONormalBlock}%
805 \fi
806 \fi
807 \fi
808 %\typeout{Block \the\inputlineno, \meaning\w@t, \meaning\@whattodonext}%
809 \w@t
810 \ifx\FOkeeptogether\att@always\samepage\fi
811 \ifx\FOkeeptogetherColumn\att@always\samepage\fi
812 \ifx\FOkeeptogetherPage\att@always\samepage\fi
813 %\usewhitespace\ignorespaces
814 }
815 {\ifx\FOkeeptogether\att@always\samepage\fi
816 \ifx\FOkeeptogetherColumn\att@always\samepage\fi
817 \ifx\FOkeeptogetherPage\att@always\samepage\fi
818 \@whattodonext
819 }
820
821 \XMLelement{fo:character}
822 {}
823 {
824 \ifx\FOverticalalign\att@auto
825 \let\FOverticalalign\FObaselineshift
826 \fi
827 \FO@character{\FOcharacter}}
828 {}
829
830 \XMLelement{fo:external-graphic}
831 {
832 %auto | <length> | <percentage> | inherit
833 \XMLattribute{content-height}{\FOcontentheight}{auto}
834 %auto | <length> | <percentage> | inherit
835 \XMLattribute{content-width}{\FOcontentwidth}{auto}
836 }
837 {
838 {\utfeight@protect@chars\expandafter\FOfiletest\FOsrc\@empty\@empty\@empty\@empty\@empty\@empty\@empty\@}%
839 \ifx\FOwidth\att@auto
840 \ifx\FOheight\att@auto%
841 \relax%
842 \else%
843 \def\FOcontentheight{\FOheight}%
844 \def\FOcontentwidth{auto}%
845 \fi
846 \else
847 \def\FOcontentwidth{\FOwidth}%
848 \ifx\FOheight\att@auto%
849 \def\FOcontentheight{auto}%
850 \else%
851 \def\FOcontentheight{\FOheight}%
852 \fi
853 \fi
854 \ifx\FOcontentwidth\att@scaletofit
855 \setkeys{Gin}{width=\linewidth}%
856 \else
857 \ifx\FOcontentwidth\att@auto\else\FOSetGWidth\fi
858 \fi
859 \ifx\FOcontentheight\att@scaletofit
860 \setkeys{Gin}{height=\textheight}%
861 \else
862 \ifx\FOcontentheight\att@auto\else\FOSetGHeight\fi
863 \fi
864 \def\aligntype{center}
865 \ifthenelse{\equal{\FOtextalign}{right}}{\def\aligntype{flushright}}{}
866 \ifthenelse{\equal{\FOtextalign}{left}}{\def\aligntype{flushleft}}{}
867 \def\Picscaled{\begin{\aligntype}\includegraphics{\FOsrcname}\end{\aligntype}}
868 \ifx\FOscaling\att@uniform\else\setkeys{Gin}{keepaspectratio=false}\fi
869 %\csname startQ@\FOtextalign\endcsname
870 \ifx\FOborderstyle\att@solid\fbox{\Picscaled}\else\Picscaled\fi
871 %\csname endQ@\FOtextalign\endcsname
872 }
873 {}
874
875
876 \XMLelement{fo:block-container}
877 {}
878 {}
879 {}
880
881 \XMLelement{fo:float}
882 {\XMLattributeX{float}{\FOfloat}{float}}
883 {\ifx\FOfloat\att@none
884 \begin{figure}[!htp]
885 \else
886 \begin{figure}
887 \fi
888 \FOlabel}
889 {\end{figure}}
890
891 \XMLelement{fo:flow}
892 {}
893 {\FOSetHyphenation
894 \clearpage
895 \DEBUG{New page, \the\c@page, \PageNumber}%
896 \ifx\PageNumber\att@auto
897 \else
898 \ifx\PageNumber\att@autoeven
899 \ifodd\c@page\hbox{}\newpage\fi
900 \else
901 \ifx\PageNumber\att@autoodd
902 \ifodd\c@page\else\hbox{}\newpage\fi
903 \else
904 \setcounter{page}{\PageNumber}%
905 \fi
906 \fi
907 \fi
908 \ifx\@empty\pendingID\else
909 \@bsphack
910 \protected@write\@mainaux{}%
911 {\string\newlabel{\pendingID}{{}{\expandafter\FOgeneratePage\FOformat\@null}{}{\pendingID}{}}}%
912 \@esphack
913 \hyper@@anchor{\pendingID}{\relax}%
914 \global\let\pendingID\@empty
915 \fi
916
917 \DEBUG{^^JStart page sequence, using layout \CurrentPageMaster, at page \the\c@page}
918
919 \@ifundefined{Atomic:\CurrentPageMaster}
920 {
921 \@ifundefined{First:\CurrentPageMaster}
922 {
923 \ifx\FOinitialpagenumber\att@auto
924 \ifodd\c@page
925 \DEBUG{Master \CurrentPageMaster: no first page, use odd page}
926 \edef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}
927 \else
928 \DEBUG{Master \CurrentPageMaster: no first page, use even page}
929 \@ifundefined{Even:\CurrentPageMaster}
930 {\edef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}}
931 {\edef\PFirst{\csname Even:\CurrentPageMaster\endcsname}}
932 \fi
933 \else
934 \ifx\FOinitialpagenumber\att@autoeven
935 \@ifundefined{Even:\CurrentPageMaster}
936 {\edef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}}
937 {\edef\PFirst{\csname Even:\CurrentPageMaster\endcsname}}
938 \else
939 \ifx\FOinitialpagenumber\att@autoodd
940 \edef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}
941 \else
942 \ifodd\FOinitialpagenumber
943 \edef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}
944 \else
945 \@ifundefined{Even:\CurrentPageMaster}
946 {\edef\PFirst{\csname Odd:\CurrentPageMaster\endcsname}}
947 {\edef\PFirst{\csname Even:\CurrentPageMaster\endcsname}}
948 \fi
949 \fi
950 \fi
951 \fi
952 }
953 {
954 \edef\PFirst{\csname First:\CurrentPageMaster\endcsname}
955 }
956 \@ifundefined{Blank:\CurrentPageMaster}
957 {\edef\PBlank{\csname Odd:\CurrentPageMaster\endcsname}}
958 {\edef\PBlank{\csname Blank:\CurrentPageMaster\endcsname}}
959 \@ifundefined{Even:\CurrentPageMaster}
960 {\edef\PEven{\csname Odd:\CurrentPageMaster\endcsname}}
961 {\edef\PEven{\csname Even:\CurrentPageMaster\endcsname}}
962 \edef\POdd{\csname Odd:\CurrentPageMaster\endcsname}
963 }
964 {
965 \let\PFirst\CurrentPageMaster
966 \let\PBlank\CurrentPageMaster
967 \let\POdd\CurrentPageMaster
968 \let\PEven\CurrentPageMaster
969 }
970 \DEBUG{ first page master is [\PFirst]}
971 \DEBUG{ odd page master is [\POdd]}
972 \DEBUG{ even page master is [\PEven]}
973 \DEBUG{ blank page master is [\PBlank]}
974 \expandafter\Pass\csname\POdd:xsl-region-body\endcsname\\
975 \csname Atomic:\POdd\endcsname
976 \oddsidemargin\MasterLeftMargin
977 \evensidemargin\MasterLeftMargin
978 \advance\evensidemargin by \SpecialOffset
979 \advance\oddsidemargin by \SpecialOffset
980 \@ifundefined{Atomic:\PEven}{\DEBUG{no master for Atomic:\PEven}}
981 {\csname Atomic:\PEven\endcsname
982 \evensidemargin\MasterLeftMargin
983 \advance\evensidemargin by \SpecialOffset
984 }
985 \edef\EvenHeadExtent{\csname\PEven:before-extent\endcsname}
986 \edef\EvenHead{Static:\csname\PEven:before\endcsname}
987 \edef\EvenTailExtent{\csname\PEven:after-extent\endcsname}
988 \edef\EvenTail{Static:\csname\PEven:after\endcsname}
989 \edef\FirstHeadExtent{\csname\PFirst:before-extent\endcsname}
990 \edef\FirstHead{Static:\csname\PFirst:before\endcsname}
991 \edef\FirstTailExtent{\csname\PFirst:after-extent\endcsname}
992 \edef\FirstTail{Static:\csname\PFirst:after\endcsname}
993 \edef\OddHeadExtent{\csname\POdd:before-extent\endcsname}
994 \edef\OddHead{Static:\csname\POdd:before\endcsname}
995 \edef\OddTailExtent{\csname\POdd:after-extent\endcsname}
996 \edef\OddTail{Static:\csname\POdd:after\endcsname}
997 \edef\BlankHeadExtent{\csname\PBlank:before-extent\endcsname}
998 \edef\BlankHead{Static:\csname\PBlank:before\endcsname}
999 \edef\BlankTailExtent{\csname\PBlank:after-extent\endcsname}
1000 \edef\BlankTail{Static:\csname\PBlank:after\endcsname}
1001 \FOSetPage
1002 \ifnum\NColumns>1\begin{multicols}{\NColumns}\fi
1003 % \ifnum\NColumns>1\MulticolPendingtrue
1004 % \begin{multicols}{\NColumns}\fi
1005 }
1006 {
1007 \ifnum\NColumns>1\end{multicols}\fi
1008 \clearpage
1009 \ifx\ForcePage\att@auto
1010 \else
1011 % remember that we'll do a \clearpage next time anyway.
1012 % so leave here on wrong sort of page
1013 \ifx\ForcePage\att@endoneven
1014 \ifodd\c@page\else\BlankPage\newpage\fi
1015 \else
1016 \ifx\ForcePage\att@endonodd
1017 \ifodd\c@page\BlankPage\newpage\fi
1018 \fi
1019 \fi
1020 \fi
1021 }
1022
1023 \XMLelement{fo:footnote-body}
1024 {}
1025 {}
1026 {}
1027
1028
1029 \XMLelement{fo:footnote}
1030 {}
1031 {\xmlgrab}
1032 {\xmltextwochildren\FOplainfootmark\FOplainfoottext#1}
1033
1034 \XMLelement{fo:page-number-citation}
1035 {\XMLattributeX{ref-id}{\FOrefid}{}}
1036 {}
1037 {\fopagecitation}
1038
1039 \XMLelement{fotex:sort}
1040 {}
1041 {\let\fopagecitation\fosortpagecitation
1042 \global\sorttoks{}}
1043 {\global\sortcount-2\let\@elt\focompress@elt
1044 \let\fosep\@empty
1045 \let\foheld\relax
1046 \the\sorttoks
1047 \foheld}
1048
1049 \XMLelement{fo:wrapper}
1050 {}
1051 {\FOSetFont{wrapper}\FOlabel}
1052 {}
1053
1054 \XMLelement{fo:leader}
1055 {}
1056 {
1057 \leavevmode
1058 \ifx\FOleaderpattern\leader@pattern@rule
1059 \ifx\FOrulestyle\rule@style@dashed
1060 \def\w@t{\cleaders\hbox{$\m@th \mkern1.5mu-\mkern1.5mu$}\hfil}%
1061 \else
1062 \ifx\FOrulestyle\rule@style@dotted
1063 \def\w@t{\cleaders\hbox{$\m@th \mkern1.5mu.\mkern1.5mu$}\hfil}%
1064 \else
1065 \ifdim\FOrulethickness>\z@
1066 \def\w@t{\leaders\hrule height \FOrulethickness\hfill}%
1067 \else
1068 \def\w@t{\hfill}%
1069 \fi
1070 \fi
1071 \fi
1072 \else
1073 \ifx\FOleaderpattern\leader@pattern@dots
1074 \def\w@t{\cleaders\hbox{$\m@th \mkern1.5mu.\mkern1.5mu$}\hfill}%
1075 \else % space
1076 \def\w@t{\hfill}%
1077 \fi
1078 \fi
1079 \PercentToDimen{\FOleaderlength}%
1080 \ifdim\@tempdima=\z@\w@t\else\hbox to \@tempdima{\w@t}\fi
1081 }
1082 {}
1083
1084 \catcode`\/\active
1085
1086 \XMLelement{fo:basic-link}
1087 {
1088 \XMLattributeX{target-presentation-context}{\FOtargetpresentationcontext}{}
1089 \XMLattributeX{target-processing-context}{\FOtargetprocessingcontext}{}
1090 \XMLattributeX{target-stylesheet}{\FOtargetstylesheet}{}
1091 }
1092 {\xmlgrab}
1093 {
1094 \ifx\FOverticalalign\att@auto
1095 \let\FOverticalalign\FObaselineshift
1096 \fi
1097 \begingroup
1098 \utfeight@protect@chars\xdef\temp{\FOinternaldestination}%
1099 \endgroup
1100 \let\FOinternaldestination\temp
1101 \begingroup
1102 \utfeight@protect@chars\xdef\temp{\FOexternaldestination}%
1103 \endgroup
1104 \let\FOexternaldestination\temp
1105 \ifx\FOindicatedestination\att@yes
1106 \setkeys{Hyp}{pdfborder={0 0 1}}
1107 \fi
1108 \ifx\FOexternaldestination\@empty
1109 \hyperlink{\FOinternaldestination}{\FO@inlinesequence{#1}}%
1110 \let\FOinternaldestination\@empty
1111 \else
1112 \href{\FOexternaldestination}{#1}
1113 % this breaks any real content in the link text
1114 % \expandafter\@basiclink\relax#1//\@nil#1\@nil\FOexternaldestination\@nil%
1115 \let\FOexternaldestination\@empty
1116 \fi
1117 }
1118 \catcode`\/=12
1119
1120 \XMLelement{fo:inline-container}
1121 {}
1122 {}
1123 {}
1124
1125 \XMLelement{fo:list-block}
1126 {\SpaceAttributes}
1127 {
1128 \ifx\FOstartindent\att@bodystart
1129 \let\FOstartindent\z@
1130 \fi
1131 \ifx\FOendindent\att@labelend
1132 \let\FOendindent\z@
1133 \fi
1134 \FOSetFont{normal}%
1135 \advance\FOinList by 1\relax
1136 \ifnum\FOinList>1\relax\leavevmode\fi
1137 \begin{list}{}{%
1138 \itemindent=\FOstartindent
1139 \leftmargin=\FOprovisionaldistancebetweenstarts
1140 \advance\leftmargin by \FOmarginleft
1141 \rightmargin=\FOmarginright
1142 \labelwidth=\FOprovisionaldistancebetweenstarts
1143 \advance\labelwidth by -\FOprovisionallabelseparation
1144 \expandafter\csname List\FOtextalign\endcsname
1145 \labelsep\FOprovisionallabelseparation
1146 \itemsep\z@
1147 \parsep\z@
1148 \topsep\z@
1149 \parskip\z@
1150 \ifx\@empty\FOspacebefore
1151 \@tempdima\FOspacebeforeoptimum
1152 \advance\@tempdima by -\FOspacebeforeminimum
1153 \@tempdimb\FOspacebeforeoptimum
1154 \advance\@tempdimb by \FOspacebeforemaximum
1155 \topsep\FOspacebeforeoptimum plus \@tempdimb minus \@tempdima
1156 \else
1157 \topsep\FOspacebefore
1158 \fi
1159 }
1160 }
1161 {\end{list}
1162 \advance\FOinList by -1
1163 \par
1164 }
1165
1166 \XMLelement{fo:list-item-body}
1167 {}
1168 {\ifx\FOstartindent\att@bodystart
1169 \let\FOstartindent\z@
1170 \fi
1171 \FOListBodytrue\FOListBlocks0}
1172 {}
1173
1174 \XMLelement{fo:list-item-label}
1175 {}
1176 {\xmlgrab}
1177 {\ifx\FOstartindent\att@bodystart
1178 \let\FOstartindent\z@
1179 \fi
1180 \ifx\FOendindent\att@labelend
1181 \let\FOendindent\z@
1182 \fi
1183 \savebox{\ItemBox}{#1}\item[#1]\FOlabel}
1184
1185 \XMLelement{fo:list-item}
1186 {\SpaceAttributes}
1187 {
1188 \FOSetHyphenation
1189 \ifx\@empty\FOspacebefore
1190 \@tempdima\FOspacebeforeoptimum
1191 \advance\@tempdima by -\FOspacebeforeminimum
1192 \@tempdimb\FOspacebeforeoptimum
1193 \advance\@tempdimb by \FOspacebeforemaximum
1194 \vskip\FOspacebeforeoptimum plus \@tempdimb minus \@tempdima
1195 \else
1196 \vskip\FOspacebefore
1197 \fi
1198 \FOlabel}
1199 {}
1200
1201 \XMLelement{fo:page-number}
1202 {}
1203 {}
1204 {\expandafter\FOgeneratePage\FOformat\@null}
1205
1206
1207 \XMLelement{fo:page-sequence}
1208 {}
1209 {\let\CurrentPageMaster\FOmasterreference
1210 \let\pendingID\FOid
1211 \let\PageNumber\FOinitialpagenumber
1212 \let\ForcePage\FOforcepagecount
1213 \FOSetHyphenation
1214 \LoadLanguage{\FOlanguage}
1215 }
1216 {}
1217
1218 \XMLelement{fo:region-after}
1219 {}
1220 {\ifx\FOregionname\@empty
1221 \def\FOregionname{xsl-region-after}
1222 \fi
1223 \DEBUG{ Link [\FOMaster:after] to \FOregionname}
1224 \begingroup
1225 \utfeight@protect@chars
1226 \expandafter\xdef\csname\FOMaster:after\endcsname{\FOregionname}
1227 \expandafter\xdef\csname\FOMaster:after-extent\endcsname{\FOextent}
1228 \endgroup
1229 }
1230 {}
1231
1232
1233 \XMLelement{fo:region-before}
1234 {}
1235 {\ifx\FOregionname\@empty
1236 \def\FOregionname{xsl-region-before}
1237 \fi
1238 \DEBUG{ Link [\FOMaster:before] to \FOregionname}
1239 \begingroup
1240 \utfeight@protect@chars
1241 \expandafter\xdef\csname\FOMaster:before\endcsname{\FOregionname}
1242 \expandafter\xdef\csname\FOMaster:before-extent\endcsname{\FOextent}
1243 \endgroup
1244 }
1245 {}
1246
1247 \XMLelement{fo:region-body}
1248 {}
1249 {
1250 \ifx\FOmargin\@empty\relax\else
1251 \let\FOmarginright\FOmargin
1252 \let\FOmarginleft\FOmargin
1253 \let\FOmargintop\FOmargin
1254 \let\FOmarginbottom\FOmargin
1255 \fi
1256 \xdef\InnerBottomMargin{\FOmarginbottom}
1257 \xdef\InnerTopMargin{\FOmargintop}
1258 \xdef\InnerLeftMargin{\FOmarginleft}
1259 \xdef\InnerRightMargin{\FOmarginright}
1260 \ifx\FOregionname\@empty
1261 \def\FOregionname{xsl-region-body}
1262 \fi
1263 \DEBUG{ Set up [\FOMaster:\FOregionname] body content: \FOcolumngap|\FOcolumncount|\FOmarginbottom|\FOmargintop|}
1264 \begingroup
1265 \utfeight@protect@chars
1266 \expandafter\xdef\csname\FOMaster:\FOregionname\endcsname{\FOcolumngap|\FOcolumncount|\FOmarginbottom|\FOmargintop|}
1267 \endgroup
1268 }
1269 {}
1270
1271 \XMLelement{fo:static-content}
1272 {}
1273 {\xmlgrab}
1274 {\protectCS\FOflowname
1275 \FOSetStatic{#1}{\FOflowname}}
1276
1277 \XMLelement{fo:table-and-caption}
1278 {}
1279 {
1280 \global\ColSpecs={}\NCols0
1281 \TableWidth\linewidth
1282 \advance\TableWidth by -\tabcolsep
1283 \advance\TableWidth by -\FOmarginleft
1284 \advance\TableWidth by -\FOmarginright
1285 \gdef\TableHeader{}
1286 \NoTableSetup
1287 \ifx\XML@parent\FOInlineContainer
1288 \ifnum\FOreferenceorientation=0
1289 \FOlabel
1290 \else
1291 \begin{sidewaystable}\FOlabel
1292 \fi
1293 \else
1294 \ifnum\FOreferenceorientation=0
1295 % We process FOkplacement atribute to override the placement of the table.
1296 \ifx\FOkplacement\@empty
1297 \begin{table}[!htbp]\FOlabel
1298 \else
1299 \edef\ktable{\noexpand\begin{table}[\FOkplacement]}
1300 \ktable\FOlabel
1301 \fi
1302 \else
1303 \begin{sidewaystable}\FOlabel
1304 \fi
1305 \fi
1306 }
1307 {\ifx\XML@parent\FOInlineContainer
1308 \ifnum\FOreferenceorientation=0
1309 \else
1310 \end{sidewaystable}
1311 \fi
1312 \else
1313 \ifnum\FOreferenceorientation=0
1314 \end{table}
1315 \else
1316 \end{sidewaystable}
1317 \fi
1318 \fi
1319 }
1320
1321 \XMLelement{fo:table-body}
1322 { }
1323 {
1324 \FOFirstCelltrue
1325 \FOinTable1
1326 \expandafter\NoTableStart{\TableHeader}%
1327 }
1328 {
1329 \ifnum\NCols<1
1330 \typeout{Table end of no cols defined}
1331 \fi
1332 \NoTableEnd
1333 }
1334
1335
1336 \XMLelement{fo:table-caption}
1337 {}
1338 {}
1339 {\par}
1340
1341 \XMLelement{fo:table-cell}
1342 {
1343 \XMLattributeX{ends-row}{\FOendsrow}{false}
1344 \XMLattributeX{starts-row}{\FOstartsrow}{false}
1345 }
1346 {\xmlgrab}
1347 {\FOlabel
1348 \FOexpandattributes
1349 \NoTableCell{#1}}
1350
1351
1352 \XMLelement{fo:table-column}
1353 {}
1354 {
1355 \@tempcnta0
1356 \loop\ifnum\FOnumbercolumnsrepeated>\@tempcnta
1357 \advance\@tempcnta by 1
1358 {\NoTableColumn}%
1359 \repeat
1360 }
1361 {}
1362
1363 \XMLelement{fo:table-header}
1364 {}
1365 {\xmlgrab}
1366 {\gdef\TableHeader{#1}}
1367
1368 \XMLelement{fo:table-row}
1369 {}
1370 {\xmlgrab}
1371 {\NoTableRow{#1}}
1372
1373 \XMLelement{fo:table}
1374 {}
1375 {
1376 \global\ColSpecs={}\NCols0
1377 \TableWidth\linewidth
1378 \advance\TableWidth by -\FOmarginleft
1379 \advance\TableWidth by -\FOmarginright
1380 \gdef\TableHeader{}
1381 \NoTableSetup
1382 }
1383 {}
1384
1385 \XMLelement{fo:inline}
1386 {}
1387 {\xmlgrab}
1388 {
1389 %\usewhitespace\ignorespaces
1390 \ifx\FOverticalalign\att@auto
1391 \let\FOverticalalign\FObaselineshift
1392 \fi
1393 \FOlabel
1394 \ifx\FOborderstyle\att@solid
1395 \ifx\FOborderwidth\att@thin\def\FOborderwidth{0.4pt}\fi
1396 \ifx\FOborderwidth\att@medium\def\FOborderwidth{0.8pt}\fi
1397 \ifx\FOborderwidth\att@thick\def\FOborderwidth{1.2pt}\fi
1398 \FOboxedsequence{#1}%
1399 \else
1400 \FO@inlinesequence{#1}%
1401 \fi}
1402
1403 \XMLelement{fo:bidi-override}
1404 {}
1405 {\xmlgrab}
1406 {\typeout{fo:bidi-override NOT IMPLEMENTED}}
1407
1408 \XMLelement{fo:color-profile}
1409 {}
1410 {\xmlgrab}
1411 {\typeout{fo:color-profile NOT IMPLEMENTED}}
1412
1413 \XMLelement{fo:declarations}
1414 {}
1415 {\xmlgrab}
1416 {\typeout{fo:declarations NOT IMPLEMENTED}}
1417
1418 \XMLelement{fo:initial-property-set}
1419 {}
1420 {\xmlgrab}
1421 {\typeout{fo:initial-property-set NOT IMPLEMENTED}}
1422
1423 \XMLelement{fo:instream-foreign-object}
1424 {}
1425 {\xmlgrab}
1426 {\typeout{fo:instream-foreign-object NOT IMPLEMENTED}}
1427
1428 \XMLelement{fo:marker}
1429 {}
1430 {\xmlgrab}
1431 {\toks@{}%
1432 \expandafter\FOaddmarker\FOmarks\relax{}%
1433 \toks@\expandafter{\the\expandafter\toks@\expandafter{\FOmarkerclassname}{#1}}%
1434 \xdef\FOmarks{\the\toks@}%
1435 \mark{\FOmarks}}
1436
1437 \XMLelement{fo:retrieve-marker}
1438 {}
1439 {\xmlgrab}
1440 {\begingroup
1441 \utfeight@protect@chars
1442 \ifx\FOretrieveposition\FirstOnPage
1443 \xdef\FOthismark{\topmark}%
1444 \else
1445 \ifx\FOretrieveposition\LastOnPage
1446 \xdef\FOthismark{\botmark}%
1447 \else
1448 \xdef\FOthismark{\topmark}%
1449 \fi
1450 \fi
1451 \xdef\FOthisretrieveclassname{\FOretrieveclassname}
1452 \endgroup
1453 \expandafter\FOgetmarker\FOthismark\relax\relax}
1454
1455 \XMLelement{fo:multi-case}
1456 {}
1457 {\xmlgrab}
1458 {\typeout{fo:multi-case NOT IMPLEMENTED}}
1459
1460 \XMLelement{fo:multi-properties}
1461 {}
1462 {\xmlgrab}
1463 {\typeout{fo:multi-properties NOT IMPLEMENTED}}
1464
1465 \XMLelement{fo:multi-property-set}
1466 {}
1467 {\xmlgrab}
1468 {\typeout{fo:multi-property-set NOT IMPLEMENTED}}
1469
1470 \XMLelement{fo:multi-switch}
1471 {}
1472 {\xmlgrab}
1473 {\typeout{fo:multi-switch NOT IMPLEMENTED}}
1474
1475 \XMLelement{fo:multi-toggle}
1476 {}
1477 {\xmlgrab}
1478 {\typeout{fo:multi-toggle NOT IMPLEMENTED}}
1479
1480 \XMLelement{fo:region-end}
1481 {}
1482 {\xmlgrab}
1483 {\typeout{fo:region-end NOT IMPLEMENTED}}
1484
1485 \XMLelement{fo:region-start}
1486 {}
1487 {\xmlgrab}
1488 {\typeout{fo:region-start NOT IMPLEMENTED}}
1489
1490 \XMLelement{fo:table-footer}
1491 {}
1492 {\xmlgrab}
1493 {\typeout{fo:table-footer NOT IMPLEMENTED}}
1494
1495
1496 \XMLelement{fo:layout-master-set}
1497 {}
1498 {\DEBUG{Start defining page masters}}
1499 {\DEBUG{Finish defining page masters}}
1500
1501 \XMLelement{fo:page-sequence-master}
1502 {}
1503 {
1504 \DEBUG{Page sequence master: \FOmastername}
1505 \let\Granpa\FOmastername
1506 }
1507 {}
1508
1509 \XMLelement{fo:single-page-master-reference}
1510 {}
1511 {\DEBUG{ (single page in \Granpa: use master \FOmasterreference)}
1512 \begingroup
1513 \utfeight@protect@chars
1514 \expandafter\xdef\csname First:\Granpa\endcsname{\FOmasterreference}
1515 \expandafter\xdef\csname Blank:\Granpa\endcsname{\FOmasterreference}
1516 \expandafter\xdef\csname Odd:\Granpa\endcsname{\FOmasterreference}
1517 \expandafter\xdef\csname Even:\Granpa\endcsname{\FOmasterreference}
1518 \endgroup
1519 }
1520 {}
1521
1522 \XMLelement{fo:repeatable-page-master-reference}
1523 {}
1524 {\DEBUG{ (multiple pages in \Granpa: use master \FOmasterreference)}
1525 \begingroup
1526 \utfeight@protect@chars
1527 \expandafter\xdef\csname Blank:\Granpa\endcsname{\FOmasterreference}
1528 \expandafter\xdef\csname First:\Granpa\endcsname{\FOmasterreference}
1529 \expandafter\xdef\csname Odd:\Granpa\endcsname{\FOmasterreference}
1530 \expandafter\xdef\csname Even:\Granpa\endcsname{\FOmasterreference}
1531 \endgroup
1532 }
1533 {}
1534
1535
1536 \XMLelement{fo:repeatable-page-master-alternatives}
1537 {}
1538 {
1539 \DEBUG{ (complex page layout with alternatives)}
1540 }
1541 {}
1542
1543
1544 \XMLelement{fo:conditional-page-master-reference}
1545 {}
1546 {
1547 \ifx\FOoddoreven\att@even
1548 \DEBUG{ Even page for \Granpa: \FOmasterreference}
1549 \begingroup
1550 \utfeight@protect@chars
1551 \expandafter\xdef\csname Even:\Granpa\endcsname{\FOmasterreference}
1552 \endgroup
1553 \else
1554 \ifx\FOoddoreven\att@odd
1555 \DEBUG{ Odd page for \Granpa: \FOmasterreference}
1556 \begingroup
1557 \utfeight@protect@chars
1558 \expandafter\xdef\csname Odd:\Granpa\endcsname{\FOmasterreference}
1559 \endgroup
1560 \else
1561 \ifx\FOpageposition\att@first
1562 \DEBUG{ First page for \Granpa: \FOmasterreference}
1563 \begingroup
1564 \utfeight@protect@chars
1565 \expandafter\xdef\csname First:\Granpa\endcsname{\FOmasterreference}
1566 \endgroup
1567 \else
1568 \ifx\FOblankornotblank\att@blank
1569 \DEBUG{ Blank page for \Granpa: \FOmasterreference}
1570 \begingroup
1571 \utfeight@protect@chars
1572 \expandafter\xdef\csname Blank:\Granpa\endcsname{\FOmasterreference}
1573 \endgroup
1574 \else
1575 \DEBUG{ Default page for \Granpa: \FOmasterreference}
1576 \begingroup
1577 \utfeight@protect@chars
1578 \expandafter\xdef\csname Odd:\Granpa\endcsname{\FOmasterreference}
1579 \endgroup
1580 \fi
1581 \fi
1582 \fi
1583 \fi
1584 }
1585 {}
1586
1587
1588
1589 \XMLelement{fo:simple-page-master}
1590 {}
1591 {\let\FOMaster\FOmastername
1592 \ifx\FOmargin\@empty\relax\else
1593 \let\FOmarginright\FOmargin
1594 \let\FOmarginleft\FOmargin
1595 \let\FOmargintop\FOmargin
1596 \let\FOmarginbottom\FOmargin
1597 \fi
1598 \ifx\FOpagewidth\att@auto\edef\FOpagewidth{\paperwidth}\fi
1599 \ifx\FOpageheight\att@auto\edef\FOpageheight{\paperheight}\fi
1600 \expandafter\xdef\csname\FOMaster:after\endcsname{DummyRegion}
1601 \expandafter\xdef\csname\FOMaster:before\endcsname{DummyRegion}
1602 \expandafter\xdef\csname\FOMaster:before-extent\endcsname{\FOextent}
1603 \expandafter\xdef\csname\FOMaster:after-extent\endcsname{\FOextent}
1604 }
1605 {
1606 \ifdim\InnerTopMargin>\FOmargintop\def\FOmargintop{\InnerTopMargin}\fi
1607 \ifdim\InnerBottomMargin>\FOmarginbottom\def\FOmarginbottom{\InnerBottomMargin}\fi
1608 \ifdim\InnerRightMargin>\FOmarginright\def\FOmarginright{\InnerRightMargin}\fi
1609 \ifdim\InnerLeftMargin>\FOmarginleft\def\FOmarginleft{\InnerLeftMargin}\fi
1610 \DEBUG{Define page master \FOmargin, \FOMaster, \FOmarginright/\FOmarginleft}
1611 \begingroup
1612 \utfeight@protect@chars
1613 \expandafter\xdef\csname Atomic:\FOMaster\endcsname{
1614 \MasterTopMargin\FOmargintop
1615 \MasterBottomMargin\FOmarginbottom
1616 \MasterRightMargin\FOmarginright
1617 \MasterLeftMargin\FOmarginleft
1618 \paperwidth\FOpagewidth
1619 \paperheight\FOpageheight
1620 }
1621 \endgroup
1622 }
1623 \endinput
1624
1625 %%% white space hacking to try at some point
1626 \ignorewhitespace
1627 in the code for fo:root
1628 and
1629 \usewhitespace\ignorespaces
1630 (to turn on white space, except for any white space at the start of the
1631 element) at the end of any elements that take character data.
1632
1633 definitions something like'
1634 \def\ignorewhitespace{
1635 \UnicodeCharacter{13}{ \ignorespaces}
1636 \UnicodeCharacter{32}{ \ignorespaces}
1637 \UnicodeCharacter{9}{ \ignorespaces}
1638 }
1639 \def\usewhitespace{
1640 \UnicodeCharacter{13}{}
1641 \UnicodeCharacter{32}{}
1642 \UnicodeCharacter{9}{}
1643 }
1644