Debian Codegraph @

texmf-dist/source/generic/tex4ht/tex4ht-ooffice.tex

raw
1 % $Id: tex4ht-ooffice.tex 1692 2025-06-05 15:58:08Z michal_h21 $
2 % compile 3 times: latex tex4ht-ooffice
3 % htlatex tex4ht-ooffice "xhtml,4,sections+"
4 %
5 % Copyright 2009-2025 TeX Users Group
6 % Copyright 2001-2009 Eitan M. Gurari
7 % Released under LPPL 1.3c+.
8 % See tex4ht-cpright.tex for license text.
9
10
11 %%%%%%%%%%%%%%%%%% load style files %%%%%%%%%%%%%%%%%%%%%%%%%%
12
13 \ifx \HTML\UnDef
14 \def\HTML{ooffice,ooffice-mml}
15 \def\PREAMBLE{%
16 \usepackage{url}%
17 \usepackage{hyperref}%
18 }
19 \def\OPTIONS{html,sections+,3}%
20 \def\CONFIG{\jobname}
21 \def\MAKETITLE{\author{Eitan M. Gurari,
22 James Naughton, and Maarten Wisse}}
23 \def\next{\input mktex4ht.4ht \endinput}
24 \expandafter\next
25 \fi
26
27
28 \input{common}
29 \input{tex4ht-cpright}
30
31 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
32 \chapter{The Code}
33 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
34
35 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
36 \section{The Root}
37 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
38
39 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
40 \subsection{Imported Configurations}
41 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
42
43
44 \<configure ooffice tex4ht\><<<
45 \if:latex |<Hinclude latex|>
46 \else |<Hinclude plain|> \fi
47 >>>
48
49
50 \<configure ooffice plain\><<<
51 |<Hinclude plain lib|>
52 |<Hinclude plain + latex lib|>
53 |<plain accents|>
54 |<plain page dimensions|>
55 |<plain aligned lines|>
56 >>>
57
58 \<configure ooffice latex\><<<
59 |<Hinclude latex lib|>
60 |<Hinclude plain + latex lib|>
61 >>>
62
63 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
64 \subsection{Common Code Fragments}
65 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
66
67 \<par del\><<<
68 !*?: >>>
69
70 \<tag of Tag\><<<
71 cw:>>>
72
73 \<tail\><<<
74 tail>>>
75
76 \<addr for Tag and Ref of Sec\><<<
77 \xdef\:cursec{|<section html addr|>}%
78 >>>
79
80 \<utilities\><<<
81 \newif\ifHCond
82 \def\:gobbleM#1->{}
83 >>>
84
85
86 \<try env inline par\><<<
87 \par\ShowPar
88 >>>
89
90 \<try inline par\><<<
91 \ShowPar\par{\HCondtrue\noindent}%
92 >>>
93
94
95
96 %%%%%%%%%%%%%%%%%%%%%%
97 \subsection{Copyright}
98 %%%%%%%%%%%%%%%%%%%%%%
99
100 \<ooffice\><<<
101 % ooffice.4ht (|version), generated from |jobname.tex
102 |<copy right notice|> >>>
103
104 \<ooffice-math\><<<
105 % ooffice-math.4ht (|version), generated from |jobname.tex
106 |<copy right notice|> >>>
107
108
109 \<ooffice-mml\><<<
110 % ooffice-mml.4ht (|version), generated from |jobname.tex
111 |<copy right notice|> >>>
112
113
114 \<copy right notice\><<<
115 % Copyright 2009-2025 TeX Users Group
116 % Copyright |CopyYear.2001. Maarten Wisse, James Naughton, Eitan M. Gurari
117 |<TeX4ht copywrite|>
118 >>>
119
120 \<configure ooffice tex4ht\><<<
121 |<utilities|>
122 >>>
123
124
125
126
127 %%%%%%%%%%%%%%%%%%%%%%
128 \section{The XML Files}
129 %%%%%%%%%%%%%%%%%%%%%%
130
131 %%%%%%%%%%%%%%%%%%%%%%
132 \subsection{content.xml (= jobname.xml)}
133 %%%%%%%%%%%%%%%%%%%%%%
134
135 \<configure ooffice-mml tex4ht\><<<
136 \Configure{math-xmlns}
137 {
138 xmlns="http://www.w3.org/1998/Math/MathML"\Hnewline
139 xmlns:xlink="http://www.w3.org/1999/xlink"
140 }
141 >>>
142
143 \<configure ooffice-mml Preamble\><<<
144 \Configure{mathml}{}
145 >>>
146
147 \<configure ooffice Preamble\><<<
148 \Configure{ext}{4oo}
149 \Configure{PROLOG}{VERSION,DOCTYPE}
150 |<od definitions|>
151 \def\oo:dtd:ver{2.0}
152 >>>
153
154 The DOCTYPE can actually make the ODT file invalid. Just insert xtpipes instruction.
155
156 \<configure ooffice tex4ht\><<<
157 \Configure{VERSION}{\HCode{|<VERSION|>}}
158 \:CheckOption{-xtpipes} \if:Option
159 \Configure{DOCTYPE}{}
160 \else
161 \Configure{DOCTYPE}{\HCode{<?xtpipes file="oo-text.4xt" ?>\Hnewline}}
162 \fi
163 >>>
164
165 \<configure ooffice tex4ht\><<<
166 |<oo2 tex4ht|>
167 >>>
168
169 \<oo2 tex4ht\><<<
170 {\Configure{Needs}{File: \jobname.odt}\Needs{}}
171 \Configure{HTML}
172 {\HCode{<office:document-content \Hnewline
173 |<xml name spaces 2.0|>%
174 office:version="1.0"
175 >\Hnewline
176 <office:automatic-styles>
177 <?tex4ht-lg file="\jobname.lg" ?>
178 \expandafter\ifx\csname a:automatic-styles\endcsname\relax \else
179 \csname a:automatic-styles\endcsname
180 \fi \Hnewline
181 }
182 % include temp file with styles declared by commands in the document
183 \InputIfFileExists{|<automatic styles file|>}{}{}%
184 |<oo declare automatic styles file|>%
185 \HCode{</office:automatic-styles>
186 }}
187 {\EndP\HCode{</office:document-content>}\Configure{newpage}{}}
188 \NewConfigure{automatic-styles}[1]{%
189 \expandafter\concat:config\csname a:automatic-styles\endcsname{#1}}
190 \expandafter\let\csname a:automatic-styles\endcsname\relax
191 |<oo automatic styles file|>
192 |<oo2 automatic styles|>
193 >>>
194
195 We need a mechanism for writting to the automatic styles contained in content.xml.
196 Styles that should be placed here are styles used for particular elements, for example
197 colors of particular tables rows.
198
199 Automatic styles are written before the document contents is processed, so my solution is to
200 open a temp file, where commands can write style changes. This file will be then included in
201 the next pass at the correct place in the XML file.
202
203 \<automatic styles file\><<<
204 \jobname.4as>>>
205
206 \<oo declare automatic styles file\><<<
207 \newwrite\:automaticstylesfile
208 \immediate\openout\:automaticstylesfile=|<automatic styles file|>
209 >>>
210
211 We can declare some helper commands for writing to the automatic styles file.
212
213 \<oo automatic styles file\><<<
214 % write arbitrary code to the automatic styles file
215 \def\OOautomaticstyles#1{\immediate\write\:automaticstylesfile{#1}}
216 % write XML code
217 \def\OOautomaticstylesxml#1{\OOautomaticstyles{\string\HCode{#1\Hnewline}}}
218 >>>
219
220
221
222
223 \<configure ooffice tex4ht\><<<
224 \Configure{HEAD}{}{}
225 >>>
226
227
228
229 \<oo2 tex4ht\><<<
230 \Configure{BODY}
231 {\HCode{<office:body><office:text>}\par\ShowPar}
232 {\IgnorePar\EndP
233 \HCode{</office:text></office:body>\Hnewline}}
234 >>>
235
236
237
238 \<xml name spaces 1.0\><<<
239 xmlns:chart="http://openoffice.org/2000/chart" \Hnewline
240 xmlns:dr3d="http://openoffice.org/2000/dr3d" \Hnewline
241 xmlns:draw="http://openoffice.org/2000/drawing" \Hnewline
242 xmlns:form="http://openoffice.org/2000/form" \Hnewline
243 xmlns:number="http://openoffice.org/2000/datastyle" \Hnewline
244 xmlns:office="http://openoffice.org/2000/office" \Hnewline
245 xmlns:script="http://openoffice.org/2000/script" \Hnewline
246 xmlns:style="http://openoffice.org/2000/style" \Hnewline
247 xmlns:table="http://openoffice.org/2000/table" \Hnewline
248 xmlns:text="http://openoffice.org/2000/text" \Hnewline
249 xmlns:fo="http://www.w3.org/1999/XSL/Format" \Hnewline
250 xmlns:math="http://www.w3.org/1998/Math/MathML" \Hnewline
251 xmlns:svg="http://www.w3.org/2000/svg" \Hnewline
252 xmlns:xlink="http://www.w3.org/1999/xlink" \Hnewline
253 >>>
254
255
256 \<xml name spaces 2.0\><<<
257 xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" \Hnewline
258 xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" \Hnewline
259 xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" \Hnewline
260 xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" \Hnewline
261 xmlns:fo="http://www.w3.org/1999/XSL/Format" \Hnewline
262 xmlns:xlink="http://www.w3.org/1999/xlink" \Hnewline
263 xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" \Hnewline
264 xmlns:dc="http://purl.org/dc/elements/1.1/" \Hnewline
265 xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" \Hnewline
266 xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"\Hnewline
267 xmlns:svg="http://www.w3.org/2000/svg" \Hnewline
268 xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" \Hnewline
269 xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" \Hnewline
270 xmlns:math="http://www.w3.org/1998/Math/MathML" \Hnewline
271 xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" \Hnewline
272 xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" \Hnewline
273 xmlns:ooo="http://openoffice.org/2004/office" \Hnewline
274 xmlns:ooow="http://openoffice.org/2004/writer" \Hnewline
275 xmlns:oooc="http://openoffice.org/2004/calc" \Hnewline
276 xmlns:dom="http://www.w3.org/2001/xml-events" \Hnewline
277 xmlns:xforms="http://www.w3.org/2002/xforms" \Hnewline
278 xmlns:xsd="http://www.w3.org/2001/XMLSchema" \Hnewline
279 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \Hnewline
280 xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0" \Hnewline
281 xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0"\Hnewline
282 xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"\Hnewline
283 >>>
284
285
286 \<xml styles name spaces 2.0\><<<
287 xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0"\Hnewline
288 xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" \Hnewline
289 xmlns:dc="http://purl.org/dc/elements/1.1/" \Hnewline
290 xmlns:dom="http://www.w3.org/2001/xml-events" \Hnewline
291 xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" \Hnewline
292 xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" \Hnewline
293 xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"\Hnewline
294 xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" \Hnewline
295 xmlns:math="http://www.w3.org/1998/Math/MathML" \Hnewline
296 xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" \Hnewline
297 xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" \Hnewline
298 xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"\Hnewline
299 xmlns:ooo="http://openoffice.org/2004/office" \Hnewline
300 xmlns:oooc="http://openoffice.org/2004/calc" \Hnewline
301 xmlns:ooow="http://openoffice.org/2004/writer" \Hnewline
302 xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"\Hnewline
303 xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" \Hnewline
304 xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0"\Hnewline
305 xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" \Hnewline
306 xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"\Hnewline
307 xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" \Hnewline
308 xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"\Hnewline
309 xmlns:xlink="http://www.w3.org/1999/xlink"\Hnewline
310 >>>
311
312 \<VERSION\><<<
313 <?xml version="1.0" encoding="UTF-8"?>\Hnewline
314 >>>
315
316 \<DOCTYPE\><<<
317 >>>
318
319
320 \<dtd lang\><<<
321 \expandafter
322 \ifx \csname a:dtd-lang\endcsname\relax EN\else
323 \csname a:dtd-lang\endcsname
324 \fi
325 >>>
326
327
328 \<configure ooffice Preamble\><<<
329 \let\Css=\:gobble
330 >>>
331
332 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
333 \subsection{styles.xml (jobname-styles.xml)}
334 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
335
336
337
338 The contents.xml file can contain only styles that are known ahead of
339 time, before starting the processing of the content.
340
341 The styles.xml file allows us
342
343 \begin{enumerate}
344 \item To collect styles as we go along the body of the document, and
345 \item Introduce default built in styles that user may override
346 \end{enumerate}
347
348
349
350 The content.xml must get the style information at the start of the
351 compilation, before the body is processed.
352
353
354
355 \verb+\OOstyles+ immediatey sends it content to the styles.xml
356 file. In the case of \verb+\ConfigureOO+, the last assignment to the
357 hook is sent to the file upon reaching the end of the source.
358
359
360 \<utilities\><<<
361 \let\:OOstyles=\empty
362 \def\OOstyles#1{\xdef\:OOstyles{\:OOstyles #1}}
363 \OOstyles{|<oo2 styles.xml|>}
364 >>>
365
366 \<switch to main body OOstlyles\><<<
367 \def\OOstyles##1{%
368 \ht:special{t4ht>|<styles file name|>}%
369 \ht:special{t4ht=##1}%
370 \ht:special{t4ht*>}%
371 }
372 \OOstyles{\:OOstyles}
373 \ht:special{t4ht*>|<styles file name|>}%
374 \let\:OOstyles=\:UnDef
375 >>>
376
377 \<styles file name\><<<
378 \jobname-styles.4oy>>>
379
380
381
382
383
384
385 \<oo2 styles at /@BODY\><<<
386 \OOstyles{%
387 \oo:style
388 </office:styles>\Hnewline
389 <office:automatic-styles>
390 |<styles.xml: automatic-styles|>\Hnewline
391 </office:automatic-styles>
392 <office:master-styles>\Hnewline
393 |<styles.xml: master-styles|>\Hnewline
394 </office:master-styles>\Hnewline
395 </office:document-styles>\Hnewline
396 }%
397 >>>
398
399
400
401
402
403 \<oo2 styles.xml\><<<
404 |<VERSION|>%
405 <office:document-styles \Hnewline
406 |<xml styles name spaces 2.0|>\Hnewline
407 office:version="1.0">\Hnewline
408 <office:font-face-decls>
409 |<oo2 fonts|>%
410 </office:font-face-decls>
411 <office:styles>\Hnewline
412 >>>
413
414
415
416
417
418 [\HPage{dirty trick for fonts}
419 \begin{verbatim}
420 \OOstyles{%
421 </office:styles>
422 <office:font-face-decls>
423 <style:font-face
424 style:name="Palatino Linotype"
425 svg:font-family="&apos;Palatino Linotype&apos;"
426 style:font-family-generic="roman"
427 style:font-pitch="variable"/>
428 </office:font-face-decls>
429 <office:styles>
430 <style:style style:name="grmn-1000" style:family="text">
431 <style:text-properties style:font-name="Palatino Linotype"/>
432 </style:style>
433 }
434 \end{verbatim}
435
436 \EndHPage{}]
437
438 \<utilities\><<<
439 \let\oo:style=\empty
440 \def\NewConfigureOO#1{%
441 \expandafter\ifx \csname c:#1:oo:style:\endcsname\relax
442 \append:def\oo:style{\csname a:#1:oo:style\endcsname}%
443 \:CheckOption{info}\if:Option
444 \Log:Note{\string\NewConfigureOO{#1}}%
445 \fi
446 \fi
447 \NewConfigure{#1:oo:style}{1}}
448 \def\ConfigureOO#1#2{%
449 \edef\:temp{\noexpand\Configure{#1:oo:style}{#2}}\:temp
450 \:CheckOption{info-oo}\if:Option
451 \Log:Note{\string\ConfigureOO{#1}{%
452 \expandafter\expandafter\expandafter\:gobbleM
453 \expandafter\meaning\csname a:#1:oo:style\endcsname
454 }}
455 \fi
456 }
457 >>>
458
459 \<utilities\><<<
460 \:CheckOption{info}\if:Option
461 \Log:Note{For tracing of oo configurations,
462 use the `info-oo' option}%
463 \fi
464 >>>
465
466 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
467 \subsection{helper commands for easier style setting}
468 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
469
470
471 Styles for \verb|\paragraph| like configurations
472
473 Define paragraph style
474
475 \<utilities\><<<
476 \def\:ParagraphStyle#1{%
477 \NewConfigureOO{#1}%
478 \ConfigureOO{#1}{%
479 <style:style style:name="#1"
480 style:family="paragraph"
481 style:parent-style-name="Text-body"
482 style:class="text">\Hnewline
483 <style:paragraph-properties fo:margin-top="0.5cm" />
484 </style:style>
485 }
486 }
487 >>>
488
489 Configure paragraph command (first argument). The paragraph title will be set
490 in the character style passed as the second argument.
491
492
493 \<utilities\><<<
494 \def\:DefineParagraph#1#2{%
495 \Configure{#1}
496 {\ifvmode\IgnorePar\fi\EndP \HCode{<!--start of #1 -->}}
497 {\ifvmode\IgnorePar\fi\EndP \HCode{<!--start of #1 -->}}
498 {\bgroup\HTML:PAR{#1-p}{#1-p}\ifvmode\IgnorePar\fi\EndP\par\ShowPar\HCode{<text:span text:style-name="#2" >}}
499 {\HCode{</text:span><text:s/><text:s/>\Hnewline}\egroup\IgnorePar}
500 \:ParagraphStyle{#1-p}
501 }
502 >>>
503
504 Usage:
505
506 \begin{verbatim}
507 \:DefineParagraph{paragraph}{paragraph-h}
508 \:BoldStyle{paragraph-h}
509 \end{verbatim}
510
511 Commands for basic character styles:
512
513 \<utilities\><<<
514 \def\:BoldStyle#1{%
515 \NewConfigureOO{#1}
516 \ConfigureOO{#1}{
517 <style:style style:name="#1" style:family="text">\Hnewline
518 <style:text-properties fo:font-style="normal"
519 fo:font-weight="bold"/>\Hnewline
520 </style:style>\Hnewline
521 }}
522
523 \def\:ItalicStyle#1{%
524 \NewConfigureOO{#1}
525 \ConfigureOO{#1}{
526 <style:style style:name="#1" style:family="text">\Hnewline
527 <style:text-properties fo:font-style="italic"
528 fo:font-weight="normal"/>\Hnewline
529 </style:style>\Hnewline
530 }}
531
532 >>>
533
534
535
536
537 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
538 \subsection{settings.xml for Math Formulas}
539 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
540
541
542
543
544
545
546
547
548
549 \<oo2 settings.xml\><<<
550 \ht:special{t4ht>|<settings file name|>}%
551 \ht:special{t4ht=|<VERSION|>}%
552 \ht:special{t4ht=|<settings DOCTYPE|>}%
553 \ht:special{t4ht=|<oo2 start mathml settings|>}%
554 \ht:special{t4ht=|<close mathml settings|>}%
555 \ht:special{t4ht*>}%
556 \ht:special{t4ht<|<settings file name|>}%
557 >>>
558
559
560
561
562
563
564 \<settings file name\><<<
565 \jobname-settings.4os>>>
566
567 \<settings DOCTYPE\><<<
568 >>>
569
570
571
572
573 \<oo2 start mathml settings\><<<
574 <office:document-settings \Hnewline
575 xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" \Hnewline
576 xmlns:xlink="http://www.w3.org/1999/xlink" \Hnewline
577 xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" \Hnewline
578 office:version="1.0"> \Hnewline
579 >>>
580
581 % <office:settings> \Hnewline
582
583
584 %</office:settings>
585
586 \<close mathml settings\><<<
587 </office:document-settings>\Hnewline
588 >>>
589
590
591
592
593
594 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
595 \subsection{manifest.xml}
596 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
597
598
599 \<utilities\><<<
600 \let\media:type\relax
601 \let\:OOmanifest=\empty
602 \def\OOmanifest#1{\edef\:OOmanifest{\:OOmanifest #1}}
603 \OOmanifest{|<oo2 manifest.xml|>}
604 \def\media:type{application/vnd.oasis.opendocument.text}
605 >>>
606
607 \<switch to main body OOmanifest\><<<
608 \def\OOmanifest##1{%
609 \ht:special{t4ht>|<manifest file name|>}%
610 \ht:special{t4ht=##1}%
611 \ht:special{t4ht*>}%
612 }
613 \OOmanifest{\:OOmanifest}
614 \ht:special{t4ht*>|<manifest file name|>}%
615 \let\:OOmanifest=\:UnDef
616 >>>
617
618
619 \<manifest file name\><<<
620 \jobname-manifest.4of>>>
621
622
623
624
625
626 \<oo2 manifest.xml\><<<
627 |<VERSION|>%
628 <manifest:manifest
629 xmlns:manifest =
630 "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0">\Hnewline
631 <manifest:file-entry
632 manifest:media-type="\media:type"
633 manifest:full-path="/"/>
634 |<shared manifest|>%
635 >>>
636
637
638 \<manifest at /@BODY\><<<
639 \OOmanifest{</manifest:manifest>\Hnewline}%
640 >>>
641
642
643 \<math obj manifest\><<<
644 <manifest:file-entry
645 manifest:media-type="text/xml"
646 manifest:full-path="|<math obj name|>/content.xml"/>\Hnewline
647 <manifest:file-entry
648 manifest:media-type="text/xml"
649 manifest:full-path="|<math obj name|>/settings.xml"/>\Hnewline
650 <manifest:file-entry
651 manifest:media-type="application/vnd.oasis.opendocument.formula"
652 manifest:full-path="|<math obj name|>/"/>
653 >>>
654
655 \<graphics obj manifest\><<<
656 <manifest:file-entry
657 manifest:full-path="Pictures/\PictureFile" manifest:media-type="\get:image:mime:type\filename@ext"/>\Hnewline
658 >>>
659
660 \<shared manifest\><<<
661 <manifest:file-entry
662 manifest:media-type=""
663 manifest:full-path="Pictures/"/>\Hnewline
664 <manifest:file-entry
665 manifest:media-type="text/xml"
666 manifest:full-path="content.xml"/>\Hnewline
667 <manifest:file-entry
668 manifest:media-type="text/xml"
669 manifest:full-path="styles.xml"/>\Hnewline
670 <manifest:file-entry
671 manifest:media-type="text/xml"
672 manifest:full-path="meta.xml"/>\Hnewline
673 <manifest:file-entry
674 manifest:media-type="text/xml"
675 manifest:full-path="settings.xml"/>\Hnewline
676 >>>
677
678
679
680
681
682 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
683 \subsection{meta.xml}
684 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
685
686
687
688
689 \<oo2 meta.xml\><<<
690 \ht:special{t4ht>|<meta file name|>}%
691 \ht:special{t4ht=|<VERSION|>}%
692 \ht:special{t4ht=|<oo2 start meta|>}%
693 \ht:special{t4ht=\a:META}%
694 \ht:special{t4ht=|<close meta|>}%
695 \ht:special{t4ht*>}%
696 \ht:special{t4ht<|<meta file name|>}%
697 >>>
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713 \<meta file name\><<<
714 \jobname-meta.4ot>>>
715
716
717
718
719
720 \<oo2 start meta\><<<
721 <office:document-meta \Hnewline
722 xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"\Hnewline
723 xmlns:xlink="http://www.w3.org/1999/xlink"\Hnewline
724 xmlns:dc="http://purl.org/dc/elements/1.1/"\Hnewline
725 xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"\Hnewline
726 xmlns:ooo="http://openoffice.org/2004/office"\Hnewline
727 office:version="1.0">\Hnewline
728 <office:meta>\Hnewline
729 >>>
730
731 \<close meta\><<<
732 </office:meta></office:document-meta>\Hnewline
733 >>>
734
735
736
737
738
739
740 \<oo2 tex4ht\><<<
741 \Configure{META}
742 {<meta:initial-creator>|<creator/generator|>\Hnewline
743 </meta:initial-creator>\Hnewline}
744 \Configure{META}
745 {<meta:generator>|<creator/generator|>\Hnewline
746 </meta:generator>\Hnewline}
747 \:CheckOption{timestamp}\if:Option
748 \Configure{META}
749 {<meta:creation-date>\:today</meta:creation-date>\Hnewline}
750 \Configure{META}
751 {<dc:date>\:today</dc:date>\Hnewline}
752 \else
753 \Log:Note{To print a timestamp, use the command line option timestamp}
754 \fi
755 >>>
756
757
758
759
760
761 \<creator/generator\><<<
762 TeX4ht from \jobname.tex,
763 options: \expandafter\:gobbleM\meaning\Preamble\Hnewline
764 (http://www.cse.ohio-state.edu/\string
765 ~gurari/TeX4ht/)
766 >>>
767
768
769 \<utilities\><<<
770 \tmp:cnt=\time \divide\tmp:cnt by 60
771 \edef\:temp{\the\tmp:cnt}
772 \multiply\tmp:cnt by -60 \advance\tmp:cnt by \time
773 \edef\:today{\the\year -\ifnum \month<10 0\fi
774 \the\month -\ifnum \day<10 0\fi\the\day
775 T\ifnum \:temp<10 0\fi \:temp
776 :\ifnum \tmp:cnt<10 0\fi\the\tmp:cnt :00}
777 >>>
778
779 \<utilities\><<<
780 \NewConfigure{META}[1]{\concat:config\a:META{#1}}
781 \let\a:META\relax
782 >>>
783
784
785
786
787
788
789 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
790 \subsection{MathML}
791 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
792
793
794
795
796
797
798
799
800 \<oo2 inline mathml object\><<<
801 <draw:frame
802 draw:style-name="mml-inline"
803 draw:name="mobj-\math:obj"\Hnewline
804 text:anchor-type="as-char"
805 draw:z-index="0"
806 >%
807 <draw:object\Hnewline
808 xlink:href="./|<math obj name|>"\Hnewline
809 xlink:type="simple"
810 xlink:show="embed"
811 xlink:actuate="onLoad"
812 />%
813 </draw:frame>%
814 >>>
815
816
817 \<oo2 display mathml object\><<<
818 <draw:frame
819 draw:style-name="mml-display"
820 draw:name="mobj-\math:obj"\Hnewline
821 \ifTab\else text:anchor-type="paragraph" \fi
822 draw:z-index="0"
823 >%
824 <draw:object\Hnewline
825 xlink:href="./|<math obj name|>"\Hnewline
826 xlink:type="simple"
827 xlink:show="embed"
828 xlink:actuate="onLoad"
829 />%
830 </draw:frame>%
831 >>>
832
833
834
835
836
837
838 \<configure ooffice-mml latex\><<<
839 |<oo2 mml latex|>
840 >>>
841
842
843
844 \<oo2 mml latex\><<<
845 \OOstyles{\Hnewline
846 <style:style style:name="mml-inline"
847 style:family="graphic"
848 style:parent-style-name="Formula"
849 >\Hnewline
850 <style:graphic-properties
851 style:vertical-pos="middle"
852 style:vertical-rel="text"/>\Hnewline
853 </style:style>\Hnewline}
854 >>>
855
856
857
858 \<oo2 mml latex\><<<
859 \OOstyles{\Hnewline
860 <style:style style:name="mml-display"
861 style:family="graphic"
862 style:parent-style-name="Formula">
863 <style:graphic-properties
864 style:wrap="none"
865 % style:vertical-pos="center"
866 % style:vertical-rel="paragraph-content"
867 style:horizontal-pos="center"
868 style:horizontal-rel="paragraph-content"
869 fo:background-color="transparent"
870 style:background-transparency="100\prcnt:ch"
871 fo:margin-left="5\prcnt:ch"
872 >
873 </style:graphic-properties>
874 </style:style>\Hnewline
875 }
876 >>>
877
878
879
880 \<configure ooffice-mml latex\><<<
881 \OOstyles{\Hnewline
882 <style:style style:name="Formula"
883 style:family="graphic">
884 <style:graphic-properties
885 text:anchor-type="as-char"
886 svg:y="0in"
887 fo:margin-left="0.1mm"
888 fo:margin-right="0.1mm"
889 style:vertical-pos="middle"
890 style:vertical-rel="text"
891 />
892 </style:style>\Hnewline
893 }
894 >>>
895
896
897
898
899
900
901 \<utilities\><<<
902 \newif\ifCenteredFrame
903 >>>
904
905
906 \<oo2 start math obj\><<<
907 \gHAdvance\math:obj by 1
908 \NextFile{|<math obj name|>.4om}%
909 \bgroup
910 \HCode{\ifCenteredFrame
911 |<oo2 display mathml object|>\else
912 |<oo2 inline mathml object|>\fi
913 }%
914 \OOmanifest{|<math obj manifest|>}%
915 |<config mathml object file|>%
916 |<sv dvimath par|>\IgnorePar
917 \HPage{}%
918 >>>
919
920
921
922
923 \<end math obj\><<<
924 \EndHPage{}|<recall dvimath par|>\egroup
925 >>>
926
927
928
929 \<configure ooffice-mml tex4ht\><<<
930 |<oo2 mml tex4ht|>
931 >>>
932
933
934
935
936
937 \<oo2 mml tex4ht\><<<
938 \HAssign\math:obj=0
939 \Configure{DviMath}
940 {\a:DviMathML \mathmltrue
941 \ifOption{mml-fonts}{}{|%\mml:htfsym|%\NoFonts}%
942 \HCode{|<input line num|>}\IgnoreRule
943 |<oo2 start math obj|>\Tg<\a:mathml math\Hnewline
944 \csname a:math-xmlns\endcsname \Hnewline
945 >\a:math
946 }
947 {\Tg</\a:mathml math>%
948 |<end math obj|>\EndIgnoreRule
949 \ifOption{mml-fonts}{}{|%\ext:htfsym|%\EndNoFonts}%
950 \mathmlfalse \b:DviMathML }
951 >>>
952
953
954
955 \<config mathml object file\><<<
956 \ht:special{t4ht@(}% For some strange reason, spurious space is produced
957 % for inline math. We use TeX4ht specials to remove it.
958 \Configure{DOCTYPE}{\HCode{<!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">}}%
959 |<oo math xtpipes|>%
960 \Configure{HTML}{}{\noindent}%
961 \Configure{BODY}{}{}%
962 \ht:special{t4ht@)}%
963 >>>
964
965
966 \<oo math xtpipes\><<<
967 \:CheckOption{-xtpipes} \if:Option
968 \Log:Note{Use the `-xtpipes' command line option to
969 avoid xtpipes post processing}
970 \else
971 \Configure{DOCTYPE}{%%
972 \HCode{|<tex4ht math note|>}%
973 }%
974 \fi
975 >>>
976
977 \<tex4ht math note\><<<
978 <!DOCTYPE math PUBLIC "-//W3C//DTD MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/mathml2.dtd">\Hnewline
979 <?xtpipes file="oo-math.4xt" ?>\Hnewline
980 <!-- |<math obj name|>\space
981 by TeX4ht from \jobname.tex line \the\inputlineno\space
982 |version\Hnewline
983 (http://www.cse.ohio-state.edu/\string ~gurari/TeX4ht/)
984 -->\Hnewline
985 >>>
986
987
988
989
990
991 \<recall dvimath par\><<<
992 \sv:ignore
993 >>>
994
995 \<sv dvimath par\><<<
996 \edef\sv:ignore{\if:nopar
997 \noexpand\IgnorePar\else \noexpand\ShowPar\fi}%
998 >>>
999
1000
1001 \<math obj name\><<<
1002 \jobname-m\math:obj
1003 >>>
1004
1005
1006 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1007 \subsection{Graphics}
1008 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1009
1010
1011
1012
1013
1014 \<configure ooffice graphics\><<<
1015 \Configure{graphics}
1016 {\bgroup
1017 \let\E:IMG=\e:IMG \let\e:IMG=\empty
1018 \Picture+{}}
1019 {\EndPicture
1020 \E:IMG\HCode{<!--tex4ht:graphics
1021 \Hnewline name="\PictureFile" src="\Gin@base\Gin@ext"
1022 svg:width="\the\Gin@req@width"
1023 svg:height="\the\Gin@req@height"
1024 \Hnewline -->}%
1025 \egroup}
1026 >>>
1027
1028 \<\><<<
1029 \:CheckOption{graphics-dim} \if:Option
1030 |<graphics quality|>
1031 \Configure{graphics}
1032 {\bgroup
1033 \let\E:IMG=\e:IMG \let\e:IMG=\empty
1034 \Picture+{}}
1035 {\EndPicture \ifx\noBoundingBox\UnDefined
1036 |<pixels graphics width/height|>\fi
1037 \E:IMG\HCode{<!--tex4ht:graphics
1038 \Hnewline name="\PictureFile" src="\Gin@base\Gin@ext"
1039 \Hnewline -->}%
1040 \egroup}
1041 \else
1042
1043 \fi
1044 >>>
1045
1046
1047
1048
1049 \<pixels graphics width/height\><<<
1050 \ifx \gr:density\empty
1051 \HCode{
1052 width="\the\Gin@req@width"
1053 height="\the\Gin@req@height"
1054 }%
1055 \else
1056 \bgroup
1057 \divide\Gin@req@width by 72
1058 \multiply\Gin@req@width by \gr:density \relax
1059 \divide\Gin@req@height by 72
1060 \multiply\Gin@req@height by \gr:density \relax
1061 \HCode{
1062 width="\expandafter\int:pt\the\Gin@req@width|<par del|>"
1063 height="\expandafter\int:pt\the\Gin@req@height|<par del|>"
1064 }%
1065 \egroup
1066 \fi
1067 >>>
1068
1069
1070 \<graphics quality\><<<
1071 \def\:temp#1graphics-#2,#3|<par del|>{\def\gr:density{#2}}
1072 \expandafter\:temp\Preamble,graphics-,|<par del|>
1073 \ifx \gr:density\empty
1074 \Log:Note{if included graphics are
1075 of degraded quality, try the command line option
1076 `graphics-num'. The `num' should provide
1077 the density of pixels in the bitmaps (e.g., 110).
1078 }
1079 \else
1080 \def\int:pt#1.#2|<par del|>{#1}
1081 \fi
1082 >>>
1083
1084
1085 All images should be saved in one directory (`Pictures' by default),
1086 regardless of the original path structure. We must save image names and
1087 original paths to be able to copy pictures to correct location.
1088
1089 Sometimes, we may get double slashes, so we need extra tests to handle
1090 this case.
1091
1092 \<configure ooffice graphics\><<<
1093 \def\getImgFileParser#1/{%
1094 \edef\:tmpa{#1}%
1095 \ifx\:tmpa\:null%
1096 \let\next\relax%
1097 \else%
1098 \ifx\relax#1\relax\else%
1099 \do{#1}%
1100 \fi%
1101 \let\next\getImgFileParser%
1102 \fi\next%
1103 }
1104 \newcommand\getImgFile[2]{%
1105 \def\do##1{\def\imgBaseName{##1#2}\def\imgBase{##1}}%
1106 \def\imgFullName{#1#2}%
1107 \def\:null{xxx}%
1108 \getImgFileParser#1/\:null/%
1109 }
1110
1111 \Configure{graphics*}
1112 {gif}
1113 {|<save image name|>\Picture[IMG]{{\imgBase.gif} |<graphics dimensions|> }}
1114 \Configure{graphics*}
1115 {png}
1116 {|<save image name|>\Picture[IMG]{{\imgBase.png} |<graphics dimensions|> }}
1117 \Configure{graphics*}
1118 {jpg}
1119 {|<save image name|>\Picture[IMG]{{\imgBase.jpg} |<graphics dimensions|> }}
1120 \Configure{graphics*}
1121 {jpeg}
1122 {|<save image name|>\Picture[IMG]{{\imgBase.jpeg} |<graphics dimensions|> }}
1123 \Configure{graphics*}
1124 {svg}
1125 {|<save image name|>\Picture[IMG]{{\imgBase.svg} |<graphics dimensions|> }}
1126
1127
1128 |<graphics default extensions|>
1129
1130 \NewConfigure{Ghostscript}{1}
1131 \Configure{Ghostscript}{rungs}
1132
1133 \NewConfigure{EpsConvert}{1}
1134 \Configure{EpsConvert}{"\a:Ghostscript\space -dSAFER -dBATCH -dNOPAUSE -dEPSCrop -r120 -sDEVICE=pngalpha -sOutputFile="\[email protected]" "\[email protected]" "}
1135
1136 \Configure{graphics*}
1137 {eps}
1138 {\openin15={\csname Gin@base\endcsname\PictExt}\relax%
1139 \ifeof15%
1140 \Needs{\a:EpsConvert}%
1141 \fi%
1142 \closein15%
1143 \def\Gin@ext{\PictExt}% fix to get correct extension for the generated png file
1144 \expandafter\getImgFile\expandafter{\Gin@base}{\PictExt}
1145 \Picture[IMG]{{\imgBase\PictExt} |<graphics dimensions|>}}
1146
1147 \NewConfigure{PdfConvert}{2}
1148 \Configure{PdfConvert}{png}{"\a:Ghostscript\space -q -dNOPAUSE -dusecropbox -dBATCH -sDEVICE=pngalpha -r300 \ifx\Gin@page\@empty\else -dFirstPage="\Gin@page" -dLastPage="\Gin@page"\fi\space -sOutputFile="\Gin@base-\Gin@page.\a:PdfConvert" "\[email protected]""}
1149
1150 \Configure{graphics*}
1151 {pdf}
1152 {\ifdefined\Gin@page\else\def\Gin@page{1}\fi%
1153 \edef\svg:filename{\Gin@base-\Gin@page.\a:PdfConvert}%
1154 % test for existence of the converted file
1155 \openin15={\svg:filename}\relax
1156 \ifeof15
1157 \Needs{\b:PdfConvert}%
1158 \fi
1159 \closein15
1160 \def\Gin@ext{.\a:PdfConvert}% fix to get correct extension for the generated png file
1161 \expandafter\getImgFile\expandafter{\Gin@base-\Gin@page}{\a:PdfConvert}%
1162 \edef\Gin@base{\Gin@base-\Gin@page}% the generated file contains page number
1163 \Picture[IMG]{{\imgBase.\a:PdfConvert} |<graphics dimensions|>}}
1164 >>>
1165
1166 \<\><<<
1167 \Configure{graphics*}
1168 {eps}
1169 {|<save image name|>\Picture[IMG]{{\imgBase.eps} |<graphics dimensions|> }}
1170 >>>
1171
1172
1173
1174 \<save image name\><<<
1175 \expandafter\getImgFile\expandafter{\Gin@base}{\Gin@ext}
1176 >>>
1177
1178
1179
1180 \<graphics dimensions\><<<
1181 \if:boundingbox{svg:width="\the\Gin@req@width" svg:height="\the\Gin@req@height"}{}
1182 >>>
1183
1184 Enable supported image extensions out of the box.
1185
1186 \<graphics default extensions\><<<
1187 \DeclareGraphicsExtensions{.png,.jpg,.eps,.pdf,.svg}
1188 >>>
1189
1190 \<configure ooffice tex4ht\><<<
1191 \def\svg:width{0.0pt}\def\svg:height{0.0pt}
1192 \def\def:image:mime:type#1#2{\expandafter\def\csname image:mime#1\endcsname{#2}}
1193 \def\get:image:mime:type#1{\csname image:mime#1\endcsname}
1194 \def:image:mime:type{.png}{image/png}
1195 \def:image:mime:type{.jpg}{image/jpeg}
1196 \def:image:mime:type{.jpeg}{image/jpeg}
1197 \def:image:mime:type{.gif}{image/gif}
1198 \def:image:mime:type{.svg}{image/svg+xml}
1199 \def\svg:width{0.0pt}\def\svg:height{0.0pt}
1200 % this is defined in graphicx.4ht, but we should it define here too, for cases
1201 % when graphicx is not used
1202 \NewConfigure{GraphicsAlt}{1}
1203 \Configure{IMG}
1204 {|<insert shadowing fig file|>%
1205 \ht:special{t4ht=<draw:frame
1206 draw:name="\PictureFile"
1207 text:anchor-type="as-char" % "paragraph"
1208 % insert image dimension only if they really exist
1209 \ifx\noBoundingBox\UnDefined
1210 \ifx\Gin@req@width\undefined\else
1211 \ifdim\Gin@req@width>0pt
1212 \string svg:width="\the\Gin@req@width"
1213 svg:height="\the\Gin@req@height"
1214 \fi\fi\fi
1215 draw:z-index="0"
1216 >%
1217 <draw:image\Hnewline
1218 xlink:href="Pictures/}}
1219 {\ht:special{t4ht=" \Hnewline
1220 xlink:type="simple"
1221 xlink:show="embed"
1222 xlink:actuate="onLoad"
1223 /><!--draw:name="}}
1224 {" }
1225 {\ht:special{t4ht=" }}
1226 {%
1227 \ifx\a:GraphicsAlt\relax%
1228 \Configure{GraphicsAlt}{ALT}%
1229 \fi%
1230 \ht:special{t4ht=--><svg:title>\a:GraphicsAlt</svg:title></draw:frame>}%
1231 }
1232 >>>
1233
1234 \<configure ooffice pst-jtree\><<<
1235 \Configure{jtree}
1236 {\bgroup
1237 \Configure{IMG}
1238 {|<insert shadowing fig file|>%
1239 \ht:special{t4ht=<draw:frame
1240 draw:name="|<graphics base name|>"
1241 text:anchor-type="as-char"
1242 draw:style-name="jtree"
1243 draw:z-index="0"
1244 >%
1245 <draw:image\Hnewline
1246 xlink:href="Pictures/}}
1247 {\ht:special{t4ht=" \Hnewline
1248 xlink:type="simple"
1249 xlink:show="embed"
1250 xlink:actuate="onLoad"
1251 /><!--draw:name="}}
1252 {" }
1253 {\ht:special{t4ht=" }}
1254 {\ht:special{t4ht=--></draw:frame>}}%
1255 }
1256 {\egroup
1257 }
1258 >>>
1259
1260
1261 \<configure ooffice pst-jtree\><<<
1262 \OOstyles{\Hnewline
1263 <style:style style:name="jtree"
1264 style:family="graphic"
1265 style:parent-style-name="Graphics">
1266 <style:graphic-properties
1267 style:vertical-pos="bottom"
1268 style:vertical-rel="baseline"
1269 style:mirror="none"
1270 fo:margin-left="0.01em"
1271 fo:margin-right="0.01em"
1272 fo:margin-top="0.01em"
1273 fo:margin-bottom="0.01em"
1274 />
1275 </style:style>
1276 }
1277 >>>
1278
1279
1280 % we need to support both images inserted by \includegraphics,
1281 % and pictures created using \Picture*{}.
1282
1283 \<insert shadowing fig file\><<<
1284 % parse the image extension, will be used later
1285 \expandafter\filename@parse\expandafter{\PictureFile}%
1286 \ifx\Gin@base\@undefined
1287 \let\graphics:filename\PictureFile
1288 \else
1289 \def\graphics:filename{\Gin@base\Gin@ext}
1290 \fi
1291 % \ht:special{t4ht>\PictureFile.4og}%
1292 \ht:special{t4ht>\graphics:filename.4og}%
1293 \ht:special{t4ht*>}%
1294 % \ht:special{t4ht<\PictureFile.4og}%
1295 \ht:special{t4ht<\graphics:filename.4og}%
1296 \OOmanifest{|<graphics obj manifest|>}%
1297 >>>
1298
1299
1300 \<graphics file name\><<<
1301 \PictureFile>>>
1302
1303 \<graphics base name\><<<
1304 \imgBaseName>>>
1305
1306 \<graphics full name\><<<
1307 \imgFullName>>>
1308
1309 \<configure ooffice tex4ht\><<<
1310 \Configure{PictureAlt*+[]}
1311 {\ht:special{t4ht>\jobname .tmp}}
1312 {\ht:special{t4ht<\jobname .tmp}}
1313 \Configure{PictureAlt*+}
1314 {\let\sv:HtmlPar=\HtmlPar \let\HtmlPar=\empty
1315 |<postscript for /Picture|>%
1316 |<tex halign and cr/crcr|>%
1317 \NoFonts\csname PauseMathClass\endcsname \SUBOff \SUPOff
1318 \let\HCode=\:gobble |%\offinterlineskip|%
1319 \let\EndPicture=\empty
1320 \ht:special{t4ht>\jobname 1.tmp}%
1321 }
1322 {\ht:special{t4ht<\jobname 1.tmp}%
1323 \let\HCode=\:HCode
1324 \let\EndPicture=\:UnDef \let\HtmlPar=\sv:HtmlPar \SUBOn \SUPOn
1325 \csname EndPauseMathClass\endcsname \EndNoFonts
1326 |<tex4ht halign and cr/crcr|>%
1327 |<delay postscript|>}
1328 >>>
1329
1330
1331
1332 Was \verb+\SUBOff \SUPOff+. Any problems?
1333
1334 \<postscript for /Picture\><<<
1335 \def\PsCode##1{{\ht:special{\PsCodeSpecial##1}}}%
1336 >>>
1337
1338 \<tex halign and cr/crcr\><<<
1339 \iffalse{\fi
1340 \let\sv:halign=\halign
1341 \let\sv:cr=\cr
1342 \let\sv:crcr=\crcr
1343 \iffalse}\fi
1344 \RecallTeXcr \let\halign =\TeXhalign
1345 >>>
1346
1347 \<tex4ht halign and cr/crcr\><<<
1348 \iffalse{\fi
1349 \let\halign=\sv:halign
1350 \let\cr=\sv:cr
1351 \let\crcr=\sv:crcr
1352 \iffalse}\fi
1353 >>>
1354
1355 \<delay postscript\><<<
1356 \let\PsCode=\relax
1357 >>>
1358
1359
1360 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1361 \subsection{Last File}
1362 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1363
1364 A utility file for letting the openoffice script at tex4ht.env know
1365 when the files are ready for zipping.
1366
1367 \<insert last file\><<<
1368 \ht:special{t4ht>\jobname .4od}%
1369 \ht:special{t4ht*>}%
1370 \ht:special{t4ht<\jobname .4od}%
1371 >>>
1372
1373
1374 \<configure ooffice tex4ht\><<<
1375 \:CheckOption{.gif} \if:Option
1376 \Configure{Picture}{.gif}
1377 \fi
1378 \:CheckOption{.wmf} \if:Option
1379 \Configure{Picture}{.wmf}
1380 \fi
1381 \:CheckOption{.svg} \if:Option
1382 \Configure{Picture}{.svg}
1383 \fi
1384 \:CheckOption{info}\if:Option
1385 \Log:Note{to request a format for dvi pictures,
1386 use the desired command line option from:
1387 `.gif', `.svg', `.wmf'}
1388 \fi
1389 >>>
1390
1391
1392
1393
1394
1395 %%%%%%%%%%%%%%%%%%%%%%
1396 \subsection{Shared}
1397 %%%%%%%%%%%%%%%%%%%%%%
1398
1399
1400
1401
1402 \<oo2 tex4ht\><<<
1403 \Configure{Preamble}
1404 {}
1405 {|<oo2 settings.xml|>% |%before mathml|%
1406 |<switch to main body OOstlyles|>%
1407 |<switch to main body OOmanifest|>%
1408 |<oo2 meta.xml|>%
1409 }
1410 >>>
1411
1412
1413
1414
1415 \<oo2 tex4ht\><<<
1416 \Configure{@/BODY}
1417 {\relax
1418 \ifnum \FileNumber=1
1419 |<oo2 styles at /@BODY|>%
1420 |<manifest at /@BODY|>%
1421 |<insert last file|>%
1422 \fi
1423 }
1424 >>>
1425
1426
1427
1428
1429
1430
1431
1432 \<configure ooffice tex4ht\><<<
1433 \Configure{CutAtTITLE+}{}
1434 \Configure{HPageTITLE+}{}
1435 \Configure{TITLE}{}{}
1436 \Configure{TITLE+}{}{}
1437 >>>
1438
1439
1440
1441 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1442 \section{Title Page}
1443 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
1444
1445 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1446 \subsection{LaTeX}
1447 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
1448
1449
1450 \<ooffice title page\><<<
1451 \Configure{maketitle}
1452 {\HCode{<!--begin maketitle-->}}
1453 {\HCode{<!--end maketitle-->}\par}
1454 {\ifvmode \IgnorePar\fi \EndP
1455 \HCode{<text:p text:style-name="Title|<cond rtl class|>"
1456 >}}
1457 {\HCode{</text:p>}}
1458 >>>
1459
1460
1461 \<ooffice title page\><<<
1462 \Configure{thanks author date and}
1463 {\ifvmode \IgnorePar\fi \EndP
1464 \HCode{<text:p text:style-name="Text-body|<cond rtl class|>"
1465 >}}
1466 {\HCode{</text:p>}}
1467 {\ifvmode \IgnorePar\fi \EndP
1468 \HCode{<text:p text:style-name="author|<cond rtl class|>"
1469 >}}
1470 {\HCode{</text:p>}}
1471 {\ifvmode \IgnorePar\fi \EndP
1472 \HCode{<text:p text:style-name="date|<cond rtl class|>"
1473 >}}
1474 {\HCode{</text:p>}}
1475 {}
1476 {}% {\HCode{<text:line-break/>}}
1477 >>>
1478
1479
1480 \<footnote thank\><<<
1481 \Configure{thank}
1482 {\setbox\tmp:bx=\hbox\bgroup}
1483 {\egroup}
1484 {\NoFonts \leavevmode \bgroup \protect\Configure{$}{}{}{}%
1485 \hbox{\HCode{<\text:footnote\Hnewline\text:note:class
1486 text:id="}|<thank id|>%
1487 \HCode{"><\text:footnote-citation>}}%
1488 }
1489 {\egroup \EndNoFonts
1490 \HCode{</\text:footnote-citation><\text:footnote-body>
1491 <text:p\Hnewline text:style-name="Footnote" ><text:s/>}}
1492 {\HCode{</text:p></\text:footnote-body></\text:footnote>}}
1493 >>>
1494
1495
1496
1497
1498
1499
1500 \<oo2 tex4ht\><<<
1501 \def\text:footnote{text:note}
1502 \:CheckOption{endnotes}\if:Option
1503 \def\text:note:class{text:note-class="endnote" }
1504 \else
1505 \def\text:note:class{text:note-class="footnote" }
1506 \Log:Note{for end notes instead of footnotes,
1507 use the command line option `endnotes'}
1508 \fi
1509 >>>
1510
1511
1512
1513
1514 \<ooffice title page\><<<
1515 \NewConfigureOO{title}
1516 \ConfigureOO{title}{%
1517 <style:style style:name="Title"
1518 style:family="paragraph"
1519 style:parent-style-name="Heading"
1520 style:next-style-name="author"
1521 style:class="chapter">\Hnewline
1522 <style:paragraph-properties fo:margin-top="0.42cm"
1523 fo:margin-bottom="0.51cm"
1524 fo:font-size="20pt"
1525 fo:font-weight="normal"
1526 style:font-size-asian="18pt"
1527 style:font-weight-asian="bold"
1528 style:font-size-complex="18pt"
1529 style:font-weight-complex="bold"
1530 fo:text-align="center"
1531 style:justify-single-word="false"/>
1532 </style:style> \Hnewline |<Title rtl|> }
1533 >>>
1534
1535
1536 \<ooffice title page\><<<
1537 \NewConfigureOO{author}
1538 \ConfigureOO{author}{%
1539 <style:style style:name="author"
1540 style:family="paragraph"
1541 style:parent-style-name="Text-body"
1542 style:next-style-name="date">\Hnewline
1543 <style:paragraph-properties fo:margin-top="0cm"
1544 fo:margin-bottom="0.199cm"
1545 fo:font-size="14pt"
1546 fo:text-align="center"
1547 style:justify-single-word="false"/>
1548 </style:style>\Hnewline |<author rtl|>}
1549 >>>
1550
1551 \<ooffice title page\><<<
1552 \NewConfigureOO{date}
1553 \ConfigureOO{date}{%
1554 <style:style style:name="date"
1555 style:family="paragraph"
1556 style:parent-style-name="Text-body"
1557 style:next-style-name="Text-body">\Hnewline
1558 <style:paragraph-properties fo:margin-top="0cm"
1559 fo:margin-bottom="0.199cm"
1560 fo:font-size="14pt"
1561 fo:text-align="center"
1562 style:justify-single-word="false"/>
1563 </style:style>\Hnewline |<date rtl|>}
1564 >>>
1565
1566 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1567 \subsection{Scr}
1568 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
1569
1570
1571
1572 \<configure ooffice scrbook\><<<
1573 |<scr title page|>
1574 >>>
1575
1576
1577 \<configure ooffice scrreprt\><<<
1578 |<scr title page|>
1579 >>>
1580
1581
1582 \<scr title page\><<<
1583 \ConfigureEnv{titlepage}
1584 {\bgroup
1585 \ifvmode \IgnorePar\fi \EndP
1586 % \HCode{<div class="titlepage">}%
1587 \Configure{tabular}{}{}{}{}{}{}%
1588 \ConfigureEnv{tabular}{}{}{}{}{}{}%
1589 \ConfigureEnv{center}{}{}{}{}}
1590 {\ifvmode \IgnorePar\fi \EndP
1591 % \HCode{</div>}%
1592 \egroup}
1593 {} {}
1594 \Configure{dedication}
1595 {\ifvmode \IgnorePar\fi\EndP
1596 \HCode{<text:p text:style-name="Text-body" >}}
1597 {\ifvmode \IgnorePar\fi\EndP \HCode{</text:p>}}
1598 >>>
1599
1600 Koma classes have subtitle command and option.
1601
1602 \<scr subtitle\><<<
1603 \Configure{subtitle}{\ifvmode\IgnorePar\fi\EndP\HCode{<text:p text:style-name="Subtitle|<cond rtl class|>">}}{\HCode{</text:p>}}
1604
1605 \NewConfigureOO{subtitle}
1606 \ConfigureOO{subtitle}{%
1607 <style:style style:name="Subtitle"
1608 style:family="paragraph"
1609 style:parent-style-name="Heading"
1610 style:next-style-name="author"
1611 style:class="chapter">\Hnewline
1612 <style:paragraph-properties fo:margin-top="0.42cm"
1613 fo:margin-bottom="0.51cm"
1614 fo:font-size="20pt"
1615 fo:font-weight="normal"
1616 style:font-size-asian="18pt"
1617 style:font-weight-asian="bold"
1618 style:font-size-complex="18pt"
1619 style:font-weight-complex="bold"
1620 fo:text-align="center"
1621 style:justify-single-word="false"/>
1622 </style:style> \Hnewline <style:style style:name="Subtitle-rtl"
1623 style:family="paragraph"
1624 style:parent-style-name="Heading-rtl"
1625 style:next-style-name="author-rtl"
1626 style:class="chapter">\Hnewline
1627 <style:paragraph-properties fo:margin-top="0.42cm"
1628 fo:margin-bottom="0.51cm"
1629 fo:font-size="20pt"
1630 fo:font-weight="normal"
1631 style:font-size-asian="18pt"
1632 style:font-weight-asian="bold"
1633 style:font-size-complex="18pt"
1634 style:font-weight-complex="bold"
1635 fo:text-align="center"
1636 style:justify-single-word="false"
1637 style:writing-mode="rl-tb" />
1638 </style:style> \Hnewline
1639 }
1640 >>>
1641
1642 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1643 \section{Abstract}
1644 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
1645
1646 \subsection{Scr}
1647
1648 The paragraph styles are already defined in ooffice title page
1649 section, which is included by scrartcle and scrreprt before this
1650 code.
1651
1652 Koma classess don't contain mandatory abstract title, so we must
1653 change the configuration slightly. We modify directly the
1654 \verb|\abstractname| command to print XML tags.
1655
1656 \<scr abstract\><<<
1657 \ConfigureEnv{abstract}
1658 {\IgnorePar\EndP \bgroup
1659 \Configure{HtmlPar}
1660 {\EndP \HCode{<text:p
1661 text:style-name="abstract|<cond rtl class|>">}}
1662 {\EndP \HCode{<text:p
1663 text:style-name="abstract|<cond rtl class|>">}}
1664 {\HCode{</text:p>}}
1665 {\HCode{</text:p>}}%
1666 \par \ShowPar
1667 }
1668 {\ifvmode \IgnorePar\fi \EndP \egroup \ShowPar\par \IgnoreIndent }
1669 {
1670 \pend:def\abstractname{\ifvmode \IgnorePar\fi\EndP\HCode{<text:p text:style-name="abstract-title">}}
1671 \append:def\abstractname{\HCode{</text:p>}}
1672 }
1673 {}
1674 >>>
1675
1676 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1677 \subsection{LaTeX}
1678 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
1679
1680 \<ooffice title page\><<<
1681 \ConfigureEnv{abstract}
1682 {\IgnorePar\EndP \bgroup
1683 \Configure{HtmlPar}
1684 {\EndP \HCode{<text:p
1685 text:style-name="abstract|<cond rtl class|>">}}
1686 {\EndP \HCode{<text:p
1687 text:style-name="abstract|<cond rtl class|>">}}
1688 {\HCode{</text:p>}}
1689 {\HCode{</text:p>}}%
1690 \par \ShowPar
1691 }
1692 {\ifvmode \IgnorePar\fi \EndP \egroup \ShowPar\par \IgnoreIndent }
1693 {\ifvmode \IgnorePar\fi\EndP
1694 \HCode{<text:p text:style-name="abstract-title" >}%
1695 }
1696 {\HCode{</text:p>}}
1697 >>>
1698
1699
1700 \<ooffice title page\><<<
1701 \NewConfigureOO{abstract}
1702 \ConfigureOO{abstract}{\Hnewline
1703 <style:style style:name="abstract"
1704 style:family="paragraph"
1705 style:parent-style-name="Text-body"
1706 style:next-style-name="Text-body">\Hnewline
1707 <style:paragraph-properties fo:margin-left="3cm"
1708 fo:margin-right="3cm"
1709 fo:margin-top="0cm"
1710 fo:margin-bottom="0.199cm"
1711 fo:font-size="10pt"
1712 fo:text-indent="0cm"
1713 style:auto-text-indent="false"/>\Hnewline
1714 </style:style>\Hnewline |<abstract rtl|> }
1715 >>>
1716
1717 \<ooffice title page\><<<
1718 \NewConfigureOO{abstract-title}
1719 \ConfigureOO{abstract-title}{\Hnewline
1720 <style:style style:name="abstract-title"
1721 style:family="paragraph"
1722 style:parent-style-name="abstract"
1723 style:next-style-name="abstract">\Hnewline
1724 <style:paragraph-properties fo:margin-top="0.499cm"
1725 fo:margin-bottom="0cm"
1726 fo:font-weight="bold"
1727 fo:text-align="center"
1728 style:justify-single-word="false"/>\Hnewline
1729 </style:style>\Hnewline
1730 }
1731 >>>
1732
1733
1734
1735
1736 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
1737 \section{List Environments}
1738 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
1739
1740
1741 %%%%%%%%%%%%%
1742 \subsection{LaTeX}
1743 %%%%%%%%%%%%%
1744
1745 \begin{description}
1746 \item[Itemized Lists]
1747
1748
1749
1750 \<configure ooffice latex\><<<
1751 \ConfigureList{itemize}%
1752 {\EndP\HCode{|<input line num|><\text:unorderedlist
1753 text:style-name="Itemize|<cond rtl class|>"
1754 >\Hnewline}\def\end@Item{}\bgroup
1755 \Configure{HtmlPar}
1756 {\EndP\HCode{<text:p
1757 text:style-name="Inside-itemize|<cond rtl class|>"
1758 >}}
1759 {\EndP\HCode{<text:p
1760 text:style-name="Inside-itemize|<cond rtl class|>"
1761 >}}
1762 {\HCode{</text:p>\Hnewline}}
1763 {\HCode{</text:p>\Hnewline}}%
1764 \gHAdvance\BegEnd:D by 1
1765 }
1766 {\gHAdvance\BegEnd:D by -1
1767 \EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
1768 </\text:unorderedlist>\Hnewline}\ShowPar}
1769 {\EndP\end@Item\DeleteMark}
1770 {\HCode{<text:list-item>}\par\ShowPar
1771 \def\end@Item{\HCode{</text:list-item>\Hnewline}}}
1772 >>>
1773
1774
1775
1776
1777
1778
1779
1780 \<configure ooffice latex\><<<
1781 \NewConfigureOO{itemize}
1782 \ConfigureOO{itemize}
1783 {|<shared oo+ itemize style|>%
1784 |<oo2+ itemize style|>%
1785 |<oo2+ itemize style rtl|>}
1786 >>>
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801 \<oo2+ itemize style\><<<
1802 <text:list-style style:name="Itemize" >
1803 <text:list-level-style-bullet
1804 text:level="1"
1805 text:style-name="Bullet-Symbols"
1806 text:bullet-char="\string&\:sharp x2022;" >\Hnewline
1807 <style:list-level-properties
1808 text:space-before="0.15in"
1809 text:min-label-width="0.2in"
1810 text:min-label-distance="0.05in" />\Hnewline
1811 </text:list-level-style-bullet>
1812 <text:list-level-style-bullet
1813 text:level="2"
1814 text:style-name="Bullet-Symbols"
1815 text:bullet-char="-" >\Hnewline
1816 <style:list-level-properties
1817 text:space-before="0.35in"
1818 text:min-label-width="0.2in"
1819 text:min-label-distance="0.05in"
1820 />\Hnewline
1821 </text:list-level-style-bullet>
1822 <text:list-level-style-bullet
1823 text:level="3"
1824 text:style-name="Bullet-Symbols"
1825 text:bullet-char="\string&\:sharp x204E;" >\Hnewline
1826 <style:list-level-properties
1827 text:space-before="0.55in"
1828 text:min-label-width="0.2in"
1829 text:min-label-distance="0.05in"/>\Hnewline
1830 </text:list-level-style-bullet>
1831 <text:list-level-style-bullet
1832 text:level="4"
1833 text:style-name="Bullet-Symbols"
1834 text:bullet-char="\string&\:sharp x00B7;" >\Hnewline
1835 <style:list-level-properties
1836 text:space-before="0.75in"
1837 text:min-label-width="0.2in"
1838 text:min-label-distance="0.05in"/>\Hnewline
1839 </text:list-level-style-bullet>
1840 </text:list-style>
1841 >>>
1842
1843
1844
1845
1846 \<shared oo+ itemize style\><<<
1847 <style:style style:name="Inside-itemize"
1848 style:family="paragraph"
1849 style:parent-style-name="Standard"
1850 style:list-style-name="Itemize">\Hnewline
1851 <style:paragraph-properties
1852 fo:margin-left="0in"
1853 fo:margin-right="0in"
1854 fo:margin-top="0in"
1855 fo:margin-bottom="0.15in"
1856 fo:text-indent="0in"
1857 style:auto-text-indent="false"/>
1858 </style:style>
1859 >>>
1860
1861
1862 \item[Enumerated Lists]
1863
1864
1865 \<configure ooffice latex\><<<
1866 \NewConfigureOO{enumerate}
1867 \:CheckOption{enumerate+} \if:Option
1868 |<oo-description for enumerate|>
1869 \else
1870 |<oo-enumerate for enumerate|>
1871 |<description-based enumerate list note|>
1872 \fi
1873 >>>
1874
1875 \<description-based enumerate list note\><<<
1876 \Log:Note{for enumerated list elements with valued data,
1877 use the command line option `enumerate+'}
1878 >>>
1879
1880
1881 \<oo-enumerate for enumerate\><<<
1882 \ConfigureList{enumerate}%
1883 {\EndP\HCode{<\text:orderedlist
1884 text:style-name="Enumerate|<cond rtl class|>"
1885 >\Hnewline}\def\end@Item{}\bgroup
1886 \Configure{HtmlPar}
1887 {\EndP\HCode{<text:p
1888 text:style-name="Inside-enumerate|<cond rtl class|>"
1889 >}}
1890 {\EndP\HCode{<text:p
1891 text:style-name="Inside-enumerate|<cond rtl class|>"
1892 >}}
1893 {\HCode{</text:p>\Hnewline}} {\HCode{</text:p>\Hnewline}}
1894 \gHAdvance\BegEnd:D by 1%
1895 }
1896 {\gHAdvance\BegEnd:D by -1\EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
1897 </\text:orderedlist>\Hnewline}\ShowPar}
1898 {\EndP\end@Item\DeleteMark}
1899 {\HCode{<text:list-item>}\par\ShowPar
1900 \def\end@Item{\HCode{</text:list-item>\Hnewline}}}
1901 >>>
1902
1903
1904
1905
1906 \<shared oo+ enumerate style\><<<
1907 <style:style style:name="Inside-enumerate"
1908 style:family="paragraph"
1909 style:parent-style-name="Text-body"
1910 style:list-style-name="Enumerate">\Hnewline
1911 <style:paragraph-properties
1912 fo:margin-left="0in"
1913 fo:margin-right="0in"
1914 fo:margin-top="0in"
1915 fo:margin-bottom="0.15in"
1916 fo:text-indent="0in"
1917 style:auto-text-indent="false"/>
1918 </style:style>
1919 >>>
1920
1921
1922
1923
1924
1925 \<oo-enumerate for enumerate\><<<
1926 \ConfigureOO{enumerate}%
1927 {|<shared oo+ enumerate style|>%
1928 |<oo2+ enumerate style|>%
1929 |<shared oo+ enumerate style rtl|>%
1930 |<oo2+ enumerate style rtl|>}
1931 >>>
1932
1933
1934 \<configure ooffice latex\><<<
1935 \NewConfigure{enumerate:1}{3}
1936 \NewConfigure{enumerate:2}{3}
1937 \NewConfigure{enumerate:3}{3}
1938 \NewConfigure{enumerate:4}{3}
1939 \Configure{enumerate:1}{1}{}{.}
1940 \Configure{enumerate:2}{a}{(}{)}
1941 \Configure{enumerate:3}{i}{}{.}
1942 \Configure{enumerate:4}{A}{}{.}
1943 >>>
1944
1945
1946
1947
1948
1949 \<oo2+ enumerate style\><<<
1950 <text:list-style style:name="Enumerate">\Hnewline
1951 <text:list-level-style-number
1952 text:level="1"
1953 text:style-name="Numbering-Symbols"
1954 style:num-prefix="\csname b:enumerate:1\endcsname"
1955 style:num-suffix="\csname c:enumerate:1\endcsname"
1956 style:num-format="\csname a:enumerate:1\endcsname"
1957 >\Hnewline
1958 <style:list-level-properties
1959 text:min-label-width="0.2in"
1960 text:space-before="0.15in"
1961 text:min-label-distance="0.05in"/>\Hnewline
1962 </text:list-level-style-number>\Hnewline
1963 <text:list-level-style-number
1964 text:level="2"
1965 text:style-name="Numbering-Symbols"
1966 style:num-prefix="\csname b:enumerate:2\endcsname"
1967 style:num-suffix="\csname c:enumerate:2\endcsname"
1968 style:num-format="\csname a:enumerate:2\endcsname"
1969 >\Hnewline
1970 <style:list-level-properties
1971 text:min-label-width="0.2in"
1972 text:space-before="0.35in"
1973 text:min-label-distance="0.05in"/>\Hnewline
1974 </text:list-level-style-number>\Hnewline
1975 <text:list-level-style-number
1976 text:level="3"
1977 text:style-name="Numbering-Symbols"
1978 style:num-prefix="\csname b:enumerate:3\endcsname"
1979 style:num-suffix="\csname c:enumerate:3\endcsname"
1980 style:num-format="\csname a:enumerate:3\endcsname"
1981 >\Hnewline
1982 <style:list-level-properties
1983 text:min-label-width="0.2in"
1984 text:space-before="0.6in"
1985 text:min-label-distance="0.05in"/>\Hnewline
1986 </text:list-level-style-number>\Hnewline
1987 <text:list-level-style-number
1988 text:level="4"
1989 text:style-name="Numbering-Symbols"
1990 style:num-prefix="\csname b:enumerate:4\endcsname"
1991 style:num-suffix="\csname c:enumerate:4\endcsname"
1992 style:num-format="\csname a:enumerate:4\endcsname"
1993 >\Hnewline
1994 <style:list-level-properties
1995 text:min-label-width="0.2in"
1996 text:space-before="0.8in"
1997 text:min-label-distance="0.05in"/>\Hnewline
1998 </text:list-level-style-number>\Hnewline
1999 </text:list-style>\Hnewline
2000 >>>
2001
2002
2003 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2004 \item[Description Lists]
2005 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2006
2007
2008 \<configure ooffice latex\><<<
2009 \:CheckOption{description-inline}\if:Option
2010 |<oo-description-inline|>
2011 \else
2012 \Log:Note{for description lists where header is in the same paragraph as
2013 description, use the `description-inline' command option}
2014 |<oo-default-description|>
2015 \fi
2016 >>>
2017
2018
2019
2020 \<oo-default-description\><<<
2021 \let\end:itm=\empty
2022 \ConfigureList{description}%
2023 {\EndP
2024 \bgroup
2025 \HCode{<text:list
2026 text:style-name="description\if@rl-rtl\fi"
2027 text:name="description"\Hnewline>}%
2028 \PushMacro\end:itm
2029 \global\let\end:itm=\empty
2030 \HTML:PAR{dd|<cond rtl class|>}{dd|<cond rtl class|>}%
2031 \gHAdvance\BegEnd:D by 1
2032 }
2033 {\gHAdvance\BegEnd:D by -1
2034 \PopMacro\end:itm \global\let\end:itm \end:itm
2035 \EndP
2036 \HCode{<!--/dd-->}%
2037 \HCode{</text:list-item>}
2038 \HCode{</text:list>}%
2039 \egroup
2040 \ShowPar}
2041 {\end:itm
2042 \global\def\end:itm{\EndP
2043 \HCode{<!--/dd-->}%
2044 \HCode{</text:list-item>}%
2045 }%
2046 \HCode{<text:list-item>%
2047 <text:p text:style-name="dt|<cond rtl class|>"\Hnewline >%
2048 }%
2049 }
2050 {\EndP
2051 \HCode{</text:p>}%
2052 \HCode{<!--dd\Hnewline class="description"-->}%
2053 \par
2054 }
2055 >>>
2056
2057
2058
2059 \<oo-description-inline\><<<
2060 \let\end:itm=\empty
2061 \ConfigureList{description}%
2062 {\EndP
2063 \bgroup
2064 \HCode{<text:list
2065 text:style-name="description\if@rl-rtl\fi"
2066 text:name="description"\Hnewline>}%
2067 \PushMacro\end:itm
2068 \global\let\end:itm=\empty
2069 \HTML:PAR{description-inline|<cond rtl class|>}{description-inline|<cond rtl class|>}%
2070 \gHAdvance\BegEnd:D by 1
2071 }
2072 {\gHAdvance\BegEnd:D by -1
2073 \PopMacro\end:itm \global\let\end:itm \end:itm
2074 \EndP
2075 \HCode{<!--/dd-->}%
2076 \HCode{</text:list-item>}
2077 \HCode{</text:list>}%
2078 \egroup
2079 \ShowPar}
2080 {\end:itm
2081 \global\def\end:itm{\EndP
2082 \HCode{<!--/dd-->}%
2083 \HCode{</text:list-item>}%
2084 }%
2085 \HCode{<text:list-item>}\par\ShowPar%
2086 }
2087 {}
2088 >>>
2089
2090
2091
2092
2093 \<configure ooffice enumerate\><<<
2094 |<oo-description for enumerate|>
2095 >>>
2096
2097 \<oo-description for enumerate\><<<
2098 \ConfigureList{enumerate}%
2099 {\EndP\HCode{<\text:orderedlist
2100 text:style-name="Enumerate|<cond rtl class|>"
2101 >\Hnewline}\def\end@Item{}\bgroup
2102 \Configure{HtmlPar}
2103 {\EndP\HCode{<text:p
2104 text:style-name="Inside-enumerate|<cond rtl class|>"
2105 >}}
2106 {\EndP\HCode{<text:p
2107 text:style-name="Inside-enumerate|<cond rtl class|>"
2108 >}}
2109 {\HCode{</text:p>\Hnewline}} {\HCode{</text:p>\Hnewline}}
2110 \gHAdvance\BegEnd:D by 1%
2111 }
2112 {\gHAdvance\BegEnd:D by -1%
2113 \EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
2114 </\text:orderedlist>\Hnewline}\ShowPar}
2115 {\EndP\end@Item \let\sv:DeleteMark\DeleteMark
2116 \let\DeleteMark\DeleteMark: \DeleteMark}
2117 {\HCode{<text:list-item>}%
2118 \par\ShowPar
2119 \HCode{<text:span
2120 text:style-name="enum-label">}\AnchorLabel
2121 \box\tmp:bx
2122 \let\DeleteMark\sv:DeleteMark
2123 \HCode{</text:span><text:s/>}%
2124 \def\end@Item{\HCode{</text:list-item>\Hnewline}}}
2125 \def\DeleteMark:#1\@labels{\hfill\break
2126 \setbox\tmp:bx\vbox{\box\@labels}}
2127 >>>
2128
2129
2130
2131 \<oo-description for enumerate\><<<
2132 \ConfigureOO{enumerate}%
2133 {|<shared oo+ enumerate style|>%
2134 |<enumerate.sty style|>}
2135 >>>
2136
2137
2138
2139 \<enumerate.sty style\><<<
2140 <text:list-style style:name="Enumerate">\Hnewline
2141 <text:list-level-style-number
2142 text:level="1"
2143 text:style-name="Numbering-Symbols"
2144 style:num-prefix=""
2145 style:num-suffix=""
2146 style:num-format=""
2147 >\Hnewline
2148 <style:list-level-properties
2149 text:min-label-width="0.2in"
2150 text:space-before="0.15in"
2151 text:min-label-distance="0.05in"/>\Hnewline
2152 </text:list-level-style-number>\Hnewline
2153 <text:list-level-style-number
2154 text:level="2"
2155 text:style-name="Numbering-Symbols"
2156 style:num-prefix=""
2157 style:num-suffix=""
2158 style:num-format=""
2159 >\Hnewline
2160 <style:list-level-properties
2161 text:min-label-width="0.2in"
2162 text:space-before="0.35in"
2163 text:min-label-distance="0.05in"/>\Hnewline
2164 </text:list-level-style-number>\Hnewline
2165 <text:list-level-style-number
2166 text:level="3"
2167 text:style-name="Numbering-Symbols"
2168 style:num-prefix=""
2169 style:num-suffix=""
2170 style:num-format=""
2171 >\Hnewline
2172 <style:list-level-properties
2173 text:min-label-width="0.2in"
2174 text:space-before="0.6in"
2175 text:min-label-distance="0.05in"/>\Hnewline
2176 </text:list-level-style-number>\Hnewline
2177 <text:list-level-style-number
2178 text:level="4"
2179 text:style-name="Numbering-Symbols"
2180 style:num-prefix=""
2181 style:num-suffix=""
2182 style:num-format=""
2183 >\Hnewline
2184 <style:list-level-properties
2185 text:min-label-width="0.2in"
2186 text:space-before="0.8in"
2187 text:min-label-distance="0.05in"/>\Hnewline
2188 </text:list-level-style-number>\Hnewline
2189 </text:list-style>\Hnewline
2190 >>>
2191
2192
2193
2194
2195
2196
2197 \<configure ooffice latex\><<<
2198 \NewConfigureOO{description}
2199 \ConfigureOO{description}{|<oo2+ description style|>}
2200 >>>
2201
2202
2203
2204
2205
2206
2207
2208
2209 \<oo2+ description style\><<<
2210 <text:list-style style:name="description" >
2211 <text:list-level-style-bullet
2212 text:level="1"
2213 text:style-name="Source-Text"
2214 text:bullet-char=" " >\Hnewline
2215 <style:list-level-properties
2216 text:space-before="0in"
2217 text:min-label-width="0in"
2218 text:min-label-distance="0in" />\Hnewline
2219 </text:list-level-style-bullet>
2220 <text:list-level-style-bullet
2221 text:level="2"
2222 text:style-name="Source-Text"
2223 text:bullet-char=" " >\Hnewline
2224 <style:list-level-properties
2225 text:space-before="0.2in"
2226 text:min-label-width="0.2in"
2227 text:min-label-distance="0.05in"
2228 />\Hnewline
2229 </text:list-level-style-bullet>
2230 <text:list-level-style-bullet
2231 text:level="3"
2232 text:style-name="Source-Text"
2233 text:bullet-char=" " >\Hnewline
2234 <style:list-level-properties
2235 text:space-before="0.4in"
2236 text:min-label-width="0.2in"
2237 text:min-label-distance="0.05in"/>\Hnewline
2238 </text:list-level-style-bullet>
2239 <text:list-level-style-bullet
2240 text:level="4"
2241 text:style-name="Source-Text"
2242 text:bullet-char=" " >\Hnewline
2243 <style:list-level-properties
2244 text:space-before="0.6in"
2245 text:min-label-width="0.2in"
2246 text:min-label-distance="0.05in"/>\Hnewline
2247 </text:list-level-style-bullet>
2248 </text:list-style>
2249 >>>
2250
2251
2252
2253
2254
2255
2256 \<oo2+ description style\><<<
2257 <style:style
2258 style:name="dd"
2259 style:family="paragraph"
2260 style:parent-style-name="Standard">
2261 <style:paragraph-properties
2262 fo:margin-left="0.35in"
2263 fo:margin-right="0in"
2264 fo:margin-top="0cm"
2265 fo:margin-bottom="0.2cm"
2266 fo:text-indent="0in"
2267 style:auto-text-indent="false"/>
2268 </style:style>
2269 <style:style
2270 style:name="dt"
2271 style:family="paragraph"
2272 style:parent-style-name="">
2273 <style:paragraph-properties
2274 fo:margin-left="0.1in"
2275 fo:margin-right="0in"
2276 fo:text-indent="0in"
2277 style:auto-text-indent="false"/>
2278 <style:text-properties
2279 fo:font-weight="bold"
2280 />
2281 </style:style>
2282 <style:style
2283 style:name="description-inline"
2284 style:family="paragraph"
2285 style:parent-style-name="">
2286 <style:paragraph-properties
2287 fo:margin-left="0.35in"
2288 fo:margin-right="0in"
2289 fo:text-indent="-0.35in"
2290 style:auto-text-indent="false"/>
2291 </style:style>
2292 >>>
2293
2294
2295
2296
2297
2298 \end{description}
2299
2300
2301 %%%%%%%%%%%%%
2302 \subsection{List}
2303 %%%%%%%%%%%%%
2304
2305
2306 \<configure ooffice latex\><<<
2307 \let\end:itm=\empty
2308 \ConfigureList{list}%
2309 {\EndP\HCode{<text:list
2310 text:style-name="list|<cond rtl class|>"
2311 text:name="list"\Hnewline>}%
2312 \PushMacro\end:itm
2313 \global\let\end:itm=\empty
2314 \SaveHtmlPar \HTML:PAR{dd}{dd}%
2315 }
2316 {\PopMacro\end:itm \global\let\end:itm \end:itm
2317 \EndP
2318 \RecallHtmlPar
2319 \HCode{</text:list-item></text:list>}\ShowPar}
2320 {\end:itm \global\def\end:itm{\EndP\HCode{</text:list-item>}}%
2321 \HCode{<text:list-item><text:p
2322 text:style-name="dt|<cond rtl class|>"\Hnewline >}\bgroup \bf}
2323 {\egroup\HCode{</text:p>}\par\ShowPar}
2324 >>>
2325
2326
2327
2328 \<configure ooffice latex\><<<
2329 \NewConfigureOO{list}
2330 \ConfigureOO{list}{|<oo2+ list style|>}
2331 >>>
2332
2333
2334
2335
2336 \<oo2+ list style\><<<
2337 <text:list-style style:name="list" >
2338 <text:list-level-style-bullet
2339 text:level="1"
2340 text:style-name="Source-Text"
2341 text:bullet-char=" " >\Hnewline
2342 <style:list-level-properties
2343 text:space-before="0in"
2344 text:min-label-width="0in"
2345 text:min-label-distance="0in" />\Hnewline
2346 </text:list-level-style-bullet>
2347 <text:list-level-style-bullet
2348 text:level="2"
2349 text:style-name="Source-Text"
2350 text:bullet-char=" " >\Hnewline
2351 <style:list-level-properties
2352 text:space-before="0.2in"
2353 text:min-label-width="0.2in"
2354 text:min-label-distance="0.05in"
2355 />\Hnewline
2356 </text:list-level-style-bullet>
2357 <text:list-level-style-bullet
2358 text:level="3"
2359 text:style-name="Source-Text"
2360 text:bullet-char=" " >\Hnewline
2361 <style:list-level-properties
2362 text:space-before="0.4in"
2363 text:min-label-width="0.2in"
2364 text:min-label-distance="0.05in"/>\Hnewline
2365 </text:list-level-style-bullet>
2366 <text:list-level-style-bullet
2367 text:level="4"
2368 text:style-name="Source-Text"
2369 text:bullet-char=" " >\Hnewline
2370 <style:list-level-properties
2371 text:space-before="0.6in"
2372 text:min-label-width="0.2in"
2373 text:min-label-distance="0.05in"/>\Hnewline
2374 </text:list-level-style-bullet>
2375 </text:list-style>
2376 >>>
2377
2378
2379 \<oo2+ list style\><<<
2380 <style:style
2381 style:name="dd"
2382 style:family="paragraph"
2383 style:parent-style-name="Standard">
2384 <style:paragraph-properties
2385 fo:margin-left="0.35in"
2386 fo:margin-right="0in"
2387 fo:margin-top="0cm"
2388 fo:margin-bottom="0.2cm"
2389 fo:text-indent="0in"
2390 style:auto-text-indent="false"/>
2391 </style:style>
2392 <style:style
2393 style:name="dt"
2394 style:family="paragraph"
2395 style:parent-style-name="">
2396 <style:paragraph-properties
2397 fo:margin-left="0.1in"
2398 fo:margin-right="0in"
2399 fo:text-indent="0in"
2400 style:auto-text-indent="false"/>
2401 <style:text-properties
2402 fo:font-weight="bold"
2403 />
2404 </style:style>
2405 >>>
2406
2407
2408
2409 %%%%%%%%%%%%%
2410 \subsection{Apa}
2411 %%%%%%%%%%%%%
2412
2413 \<configure ooffice apacite\><<<
2414 \Configure{bibcite}{\def\ { }}
2415 >>>
2416
2417
2418 \<configure ooffice apa\><<<
2419 \Configure{maketitle}
2420 {\HCode{<!--begin maketitle-->}|<apa maketitle|>}
2421 {\HCode{<!--end maketitle-->}\par}
2422 {\ifvmode \IgnorePar\fi \EndP
2423 \HCode{<text:p text:style-name="Title|<cond rtl class|>"
2424 >}}
2425 {\HCode{</text:p>}}
2426 \Configure{affil}
2427 {\ifvmode \IgnorePar\fi \EndP
2428 \HCode{<text:p text:style-name="affiliation\if@rl
2429 -rtl\fi"
2430 >}}
2431 {\HCode{</text:p>}}
2432 \Configure{abstract}
2433 {\Hclearpage \IgnorePar\EndP \bgroup
2434 \Configure{HtmlPar}
2435 {\EndP \HCode{<text:p
2436 text:style-name="abstract\if@rl-rtl\fi"
2437 >}}
2438 {\EndP \HCode{<text:p
2439 text:style-name="abstract\if@rl-rtl\fi"
2440 >}}
2441 {\HCode{</text:p>}}
2442 {\HCode{</text:p>}}%
2443 \ht:everypar{\HtmlPar}\par \ShowPar
2444 }
2445 {\ifvmode \IgnorePar\fi \EndP
2446 \egroup \Hclearpage \ShowPar\par \IgnoreIndent }
2447 >>>
2448
2449
2450 \<apa maketitle\><<<
2451 \Configure{centercr}
2452 {\ht:everypar{\ht:everypar{\HtmlPar}}}%
2453 {\ht:everypar{\ht:everypar{\HtmlPar}}}%
2454 >>>
2455
2456
2457
2458
2459
2460
2461
2462 \<configure ooffice apa\><<<
2463 \ConfigureOO{itemize}
2464 {|<apa itemize style|>|<apa itemize style rtl|>}
2465 \ConfigureList{APAenumerate}%
2466 {\EndP\HCode{<\text:orderedlist
2467 text:style-name="Enumerate|<cond rtl class|>"
2468 >\Hnewline}\def\end@Item{}\bgroup
2469 \Configure{HtmlPar}
2470 {\EndP\HCode{<text:p text:style-name="Inside-enumerate|<cond rtl class|>"
2471 >}}
2472 {\EndP\HCode{<text:p text:style-name="Inside-enumerate|<cond rtl class|>"
2473 >}}
2474 {\HCode{</text:p>\Hnewline}} {\HCode{</text:p>\Hnewline}}}
2475 {\EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
2476 </\text:orderedlist>\Hnewline}\ShowPar}
2477 {\EndP\end@Item\DeleteMark}
2478 {\HCode{<text:list-item>}\par\ShowPar
2479 \def\end@Item{\HCode{</text:list-item>\Hnewline}}}
2480 \ConfigureList{APAitemize}%
2481 {\EndP\HCode{<\text:unorderedlist
2482 text:style-name="Itemize|<cond rtl class|>"
2483 >\Hnewline}\def\end@Item{}\bgroup
2484 \Configure{HtmlPar}
2485 {\EndP\HCode{<text:p text:style-name="Inside-itemize|<cond rtl class|>"
2486 >}}
2487 {\EndP\HCode{<text:p text:style-name="Inside-itemize|<cond rtl class|>"
2488 >}}
2489 {\HCode{</text:p>\Hnewline}} {\HCode{</text:p>\Hnewline}}}
2490 {\EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
2491 </\text:unorderedlist>\Hnewline}\ShowPar}
2492 {\EndP\end@Item\DeleteMark}
2493 {\HCode{<text:list-item>}\par\ShowPar
2494 \def\end@Item{\HCode{</text:list-item>\Hnewline}}}
2495 >>>
2496
2497
2498
2499
2500 \<apa itemize style\><<<
2501 <text:list-style style:name="Itemize">\Hnewline
2502 <text:list-level-style-bullet
2503 \list:text:level="1"
2504 text:style-name="Bullet-Symbols"
2505 text:bullet-char="\string&\:sharp x2022;" >\Hnewline
2506 <style:text-properties
2507 text:space-before="0.15in"
2508 text:min-label-distance="0.05in"/>\Hnewline
2509 </text:list-level-style-bullet>\Hnewline
2510 <text:list-level-style-bullet
2511 \list:text:level="2"
2512 text:bullet-char="\string&\:sharp x2022;" >\Hnewline
2513 <style:text-properties
2514 text:space-before="0.35in"
2515 text:min-label-distance="0.05in" />\Hnewline
2516 </text:list-level-style-bullet>\Hnewline
2517 <text:list-level-style-bullet
2518 \list:text:level="3"
2519 text:bullet-char="\string&\:sharp x2022;" >\Hnewline
2520 <style:text-properties
2521 text:space-before="0.55in"
2522 text:min-label-distance="0.05in" />\Hnewline
2523 </text:list-level-style-bullet>\Hnewline
2524 <text:list-level-style-bullet
2525 \list:text:level="4"
2526 text:bullet-char="\string&\:sharp x2022;" >\Hnewline
2527 <style:text-properties
2528 text:space-before="0.75in"
2529 text:min-label-distance="0.05in" />\Hnewline
2530 </text:list-level-style-bullet>\Hnewline
2531 </text:list-style>\Hnewline
2532 >>>
2533
2534
2535 \<apa itemize style\><<<
2536 <style:style style:name="Inside-itemize"
2537 style:family="paragraph"
2538 style:parent-style-name="Text-body"
2539 style:list-style-name="Itemize"/>\Hnewline
2540 >>>
2541
2542
2543
2544 \<configure ooffice apa\><<<
2545 |<oo2 apa|>
2546 >>>
2547
2548
2549
2550
2551 \<oo2 apa\><<<
2552 \ConfigureOO{enumerate}%
2553 {|<shared apa enumerate style|>%
2554 |<oo2 apa enumerate style|>%
2555 |<oo2 apa enumerate style rtl|>}
2556 >>>
2557
2558
2559
2560
2561
2562 \<oo2 apa enumerate style\><<<
2563 <text:list-style style:name="Enumerate">\Hnewline
2564 <text:list-level-style-number
2565 text:level="1"
2566 style:num-prefix=""
2567 style:num-suffix="." >\Hnewline
2568 <style:list-level-properties
2569 text:space-before="0.15in"
2570 style:num-format="1"
2571 text:min-label-distance="0.05in"/>\Hnewline
2572 </text:list-level-style-number>\Hnewline
2573 <text:list-level-style-number
2574 text:level="2"
2575 style:num-prefix=""
2576 style:num-suffix="." >\Hnewline
2577 <style:list-level-properties
2578 text:space-before="0.35in"
2579 style:num-format="1"
2580 text:min-label-distance="0.05in"/>\Hnewline
2581 </text:list-level-style-number>\Hnewline
2582 <text:list-level-style-number
2583 text:level="3"
2584 style:num-prefix=""
2585 style:num-suffix="." >\Hnewline
2586 <style:list-level-properties
2587 text:space-before="0.6in"
2588 style:num-format="1"
2589 text:min-label-distance="0.05in"/>\Hnewline
2590 </text:list-level-style-number>\Hnewline
2591 <text:list-level-style-number
2592 text:level="4"
2593 style:num-prefix=""
2594 style:num-suffix="." >\Hnewline
2595 <style:list-level-properties
2596 text:space-before="0.8in"
2597 style:num-format="1"
2598 text:min-label-distance="0.05in"/>\Hnewline
2599 </text:list-level-style-number>\Hnewline
2600 </text:list-style>\Hnewline
2601 >>>
2602
2603 \<shared apa enumerate style\><<<
2604 <style:style style:name="Inside-enumerate"
2605 style:family="paragraph"
2606 style:parent-style-name="Text-body"
2607 style:list-style-name="Enumerate"/>\Hnewline
2608 >>>
2609
2610
2611 %%%%%%%%%%%%%
2612 \subsection{Paralist}
2613 %%%%%%%%%%%%%
2614
2615 \<configure ooffice paralist\><<<
2616 \ConfigureList{compactenum}%
2617 {\EndP \end:itm
2618 \SaveHtmlPar \HCode{<text:list
2619 text:style-name="compactenum|<cond rtl class|>"
2620 text:name="compactenum"\Hnewline>}%
2621 \PushMacro\end:Itm
2622 \global\let\end:itm=\empty
2623 \global\let\end:Itm=\empty
2624 \Configure{HtmlPar}
2625 {\end:itm\gdef\end:itm{\HCode{</text:p>\Hnewline}}%
2626 \HCode{<text:p
2627 text:style-name="dd|<cond rtl class|>" >}}
2628 {\end:itm\gdef\end:itm{\HCode{</text:p>\Hnewline}}%
2629 \HCode{<text:p
2630 text:style-name="dd|<cond rtl class|>" >}}
2631 {}{}%
2632 }
2633 {\end:itm \end:Itm \global\let\end:itm=\empty
2634 \PopMacro\end:Itm \global\let\end:Itm\end:Itm
2635 \HCode{</text:list>}\RecallHtmlPar \ShowPar}
2636 {\end:itm \end:Itm \gdef\end:Itm{\HCode{</text:list-item>}}%
2637 \gdef\end:itm{\HCode{</text:p>}}\HCode{<text:list-item><text:p
2638 text:style-name="dt|<cond rtl class|>"\Hnewline >}\bgroup \bf}
2639 {\egroup \end:itm \gdef\end:itm{\HCode{</text:p>}}%
2640 \HCode{<text:p\Hnewline
2641 text:style-name="dd|<cond rtl class|>"\Hnewline
2642 >}}
2643 \NewConfigureOO{compactenum}
2644 \ConfigureOO{compactenum}{|<compactenum style|>}
2645 >>>
2646
2647
2648 \<compactenum style\><<<
2649 <text:list-style style:name="compactenum" >
2650 <text:list-level-style-bullet
2651 text:level="1"
2652 text:style-name="Source-Text"
2653 text:bullet-char=" " >\Hnewline
2654 <style:list-level-properties
2655 text:space-before="0in"
2656 text:min-label-width="0in"
2657 text:min-label-distance="0in" />\Hnewline
2658 </text:list-level-style-bullet>
2659 <text:list-level-style-bullet
2660 text:level="2"
2661 text:style-name="Source-Text"
2662 text:bullet-char=" " >\Hnewline
2663 <style:list-level-properties
2664 text:space-before="0.2in"
2665 text:min-label-width="0.2in"
2666 text:min-label-distance="0.05in"
2667 />\Hnewline
2668 </text:list-level-style-bullet>
2669 <text:list-level-style-bullet
2670 text:level="3"
2671 text:style-name="Source-Text"
2672 text:bullet-char=" " >\Hnewline
2673 <style:list-level-properties
2674 text:space-before="0.4in"
2675 text:min-label-width="0.2in"
2676 text:min-label-distance="0.05in"/>\Hnewline
2677 </text:list-level-style-bullet>
2678 <text:list-level-style-bullet
2679 text:level="4"
2680 text:style-name="Source-Text"
2681 text:bullet-char=" " >\Hnewline
2682 <style:list-level-properties
2683 text:space-before="0.6in"
2684 text:min-label-width="0.2in"
2685 text:min-label-distance="0.05in"/>\Hnewline
2686 </text:list-level-style-bullet>
2687 </text:list-style>
2688 >>>
2689
2690 \<configure ooffice paralist\><<<
2691 \ConfigureList{compactitem}%
2692 {\EndP\HCode{|<input line num|><\text:unorderedlist
2693 text:style-name="compactitem|<cond rtl class|>"
2694 >\Hnewline}\def\end@Item{}\bgroup
2695 \Configure{HtmlPar}
2696 {\EndP\HCode{<text:p
2697 text:style-name="Inside-compactitem|<cond rtl class|>"
2698 >}}
2699 {\EndP\HCode{<text:p
2700 text:style-name="Inside-compactitem|<cond rtl class|>"
2701 >}}
2702 {\HCode{</text:p>\Hnewline}}
2703 {\HCode{</text:p>\Hnewline}}%
2704 \gHAdvance\BegEnd:D by 1
2705 }
2706 {\gHAdvance\BegEnd:D by -1
2707 \EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
2708 </\text:unorderedlist>\Hnewline}\ShowPar}
2709 {\EndP\end@Item\DeleteMark}
2710 {\HCode{<text:list-item>}\par\ShowPar
2711 \def\end@Item{\HCode{</text:list-item>\Hnewline}}}
2712 \NewConfigureOO{compactitem}
2713 \ConfigureOO{compactitem}
2714 {|<shared oo+ compactitem style|>%
2715 |<oo2+ compactitem style|>%
2716 |<oo2+ compactitem style rtl|>}
2717 >>>
2718
2719
2720
2721 \<oo2+ compactitem style\><<<
2722 <text:list-style style:name="compactitem" >
2723 <text:list-level-style-bullet
2724 text:level="1"
2725 text:style-name="Bullet-Symbols"
2726 text:bullet-char="\string&\:sharp x2022;" >\Hnewline
2727 <style:list-level-properties
2728 text:space-before="0.15in"
2729 text:min-label-width="0.2in"
2730 text:min-label-distance="0.05in" />\Hnewline
2731 </text:list-level-style-bullet>
2732 <text:list-level-style-bullet
2733 text:level="2"
2734 text:style-name="Bullet-Symbols"
2735 text:bullet-char="-" >\Hnewline
2736 <style:list-level-properties
2737 text:space-before="0.35in"
2738 text:min-label-width="0.2in"
2739 text:min-label-distance="0.05in"
2740 />\Hnewline
2741 </text:list-level-style-bullet>
2742 <text:list-level-style-bullet
2743 text:level="3"
2744 text:style-name="Bullet-Symbols"
2745 text:bullet-char="\string&\:sharp x204E;" >\Hnewline
2746 <style:list-level-properties
2747 text:space-before="0.55in"
2748 text:min-label-width="0.2in"
2749 text:min-label-distance="0.05in"/>\Hnewline
2750 </text:list-level-style-bullet>
2751 <text:list-level-style-bullet
2752 text:level="4"
2753 text:style-name="Bullet-Symbols"
2754 text:bullet-char="\string&\:sharp x00B7;" >\Hnewline
2755 <style:list-level-properties
2756 text:space-before="0.75in"
2757 text:min-label-width="0.2in"
2758 text:min-label-distance="0.05in"/>\Hnewline
2759 </text:list-level-style-bullet>
2760 </text:list-style>
2761 >>>
2762
2763
2764
2765
2766 \<shared oo+ compactitem style\><<<
2767 <style:style style:name="Inside-compactitem"
2768 style:family="paragraph"
2769 style:parent-style-name="Standard"
2770 style:list-style-name="compactitem">\Hnewline
2771 <style:paragraph-properties
2772 fo:margin-left="0in"
2773 fo:margin-right="0in"
2774 fo:margin-top="0in"
2775 fo:margin-bottom="0.15in"
2776 fo:text-indent="0in"
2777 style:auto-text-indent="false"/>
2778 </style:style>
2779 >>>
2780
2781 \<configure ooffice paralist\><<<
2782 \ConfigureList{compactdesc}%
2783 {\EndP \end:itm
2784 \SaveHtmlPar \HCode{<text:list
2785 text:style-name="compactdesc|<cond rtl class|>"
2786 text:name="compactdesc"\Hnewline>}%
2787 \PushMacro\end:Itm
2788 \global\let\end:itm=\empty
2789 \global\let\end:Itm=\empty
2790 \Configure{HtmlPar}
2791 {\end:itm\gdef\end:itm{\HCode{</text:p>\Hnewline}}%
2792 \HCode{<text:p
2793 text:style-name="dd|<cond rtl class|>" >}}
2794 {\end:itm\gdef\end:itm{\HCode{</text:p>\Hnewline}}%
2795 \HCode{<text:p
2796 text:style-name="dd|<cond rtl class|>" >}}
2797 {}{}%
2798 }
2799 {\end:itm \end:Itm \global\let\end:itm=\empty
2800 \PopMacro\end:Itm \global\let\end:Itm\end:Itm
2801 \HCode{</text:list>}\RecallHtmlPar \ShowPar}
2802 {\end:itm \end:Itm \gdef\end:Itm{\HCode{</text:list-item>}}%
2803 \gdef\end:itm{\HCode{</text:p>}}\HCode{<text:list-item><text:p
2804 text:style-name="dt|<cond rtl class|>"\Hnewline >}\bgroup \bf}
2805 {\egroup \end:itm \gdef\end:itm{\HCode{</text:p>}}%
2806 \HCode{<text:p\Hnewline
2807 text:style-name="dd|<cond rtl class|>"\Hnewline
2808 >}}
2809 \NewConfigureOO{compactdesc}
2810 \ConfigureOO{compactdesc}{|<compactdesc style|>}
2811 >>>
2812
2813
2814 \<compactdesc style\><<<
2815 <text:list-style style:name="compactdesc" >
2816 <text:list-level-style-bullet
2817 text:level="1"
2818 text:style-name="Source-Text"
2819 text:bullet-char=" " >\Hnewline
2820 <style:list-level-properties
2821 text:space-before="0in"
2822 text:min-label-width="0in"
2823 text:min-label-distance="0in" />\Hnewline
2824 </text:list-level-style-bullet>
2825 <text:list-level-style-bullet
2826 text:level="2"
2827 text:style-name="Source-Text"
2828 text:bullet-char=" " >\Hnewline
2829 <style:list-level-properties
2830 text:space-before="0.2in"
2831 text:min-label-width="0.2in"
2832 text:min-label-distance="0.05in"
2833 />\Hnewline
2834 </text:list-level-style-bullet>
2835 <text:list-level-style-bullet
2836 text:level="3"
2837 text:style-name="Source-Text"
2838 text:bullet-char=" " >\Hnewline
2839 <style:list-level-properties
2840 text:space-before="0.4in"
2841 text:min-label-width="0.2in"
2842 text:min-label-distance="0.05in"/>\Hnewline
2843 </text:list-level-style-bullet>
2844 <text:list-level-style-bullet
2845 text:level="4"
2846 text:style-name="Source-Text"
2847 text:bullet-char=" " >\Hnewline
2848 <style:list-level-properties
2849 text:space-before="0.6in"
2850 text:min-label-width="0.2in"
2851 text:min-label-distance="0.05in"/>\Hnewline
2852 </text:list-level-style-bullet>
2853 </text:list-style>
2854 >>>
2855
2856 \<configure ooffice paralist\><<<
2857 \ConfigureList{asparaitem}%
2858 {\EndP|<boxed env|>\HCode{<!--asparaitem-->}\ShowPar\ShowIndent}
2859 {\EndP|<end boxed env|>\ShowPar}
2860 {\par\ShowPar{\parindent=10pt\leavevmode}}
2861 {}
2862 \ConfigureList{asparaenum}%
2863 {\EndP|<boxed env|>\HCode{<!--asparaenum-->}\ShowPar\ShowIndent}
2864 {\EndP|<end boxed env|>\ShowPar}
2865 {\par\ShowPar{\parindent=10pt\leavevmode}}
2866 {}
2867 \ConfigureList{asparadesc}%
2868 {\EndP|<boxed env|>\HCode{<!--asparadesc-->}\ShowPar\ShowIndent}
2869 {\EndP|<end boxed env|>\ShowPar}
2870 {\par\ShowPar{\parindent=10pt\leavevmode}}
2871 {}
2872 >>>
2873
2874
2875 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2876 \section{Bibliography}
2877 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
2878
2879 %%%%%%%%%%%%%
2880 \subsection{Background}
2881 %%%%%%%%%%%%%
2882
2883 \begin{verbatim}
2884
2885 <text:bibliography
2886 text:style-name="Sect1"
2887 text:name="Bibliography1">
2888 <text:bibliography-source>
2889
2890 <text:index-title-template
2891 text:style-name="Bibliography_20_Heading">Bibliography
2892 </text:index-title-template>
2893
2894 <text:bibliography-entry-template
2895 text:bibliography-type="article"
2896 text:style-name="Bibliography_20_1">
2897 <text:index-entry-bibliography
2898 text:bibliography-data-field="identifier"/>
2899 <text:index-entry-span>: </text:index-entry-span>
2900 <text:index-entry-bibliography
2901 text:bibliography-data-field="author"/>
2902 <text:index-entry-span>, </text:index-entry-span>
2903 <text:index-entry-bibliography
2904 text:bibliography-data-field="title"/>
2905 <text:index-entry-span>, </text:index-entry-span>
2906 <text:index-entry-bibliography
2907 text:bibliography-data-field="year"/>
2908 </text:bibliography-entry-template>
2909
2910 <text:bibliography-entry-template
2911 text:bibliography-type="book"
2912 text:style-name="Bibliography_20_1">
2913 <text:index-entry-bibliography
2914 text:bibliography-data-field="identifier"/>
2915 <text:index-entry-span>: </text:index-entry-span>
2916 <text:index-entry-bibliography
2917 text:bibliography-data-field="author"/>
2918 <text:index-entry-span>, </text:index-entry-span>
2919 <text:index-entry-bibliography
2920 text:bibliography-data-field="title"/>
2921 <text:index-entry-span>, </text:index-entry-span>
2922 <text:index-entry-bibliography text:bibliography-data-field="year"/>
2923 </text:bibliography-entry-template>
2924
2925 </text:bibliography-source>
2926 <text:index-body>
2927 <text:index-title
2928 text:style-name="Sect2"
2929 text:name="Bibliography1_Head">
2930 <text:p
2931 text:style-name="Bibliography_20_Heading">Bibliography</text:p>
2932 </text:index-title>
2933 <text:p text:style-name="P1">1: author, title, year</text:p>
2934 <text:p text:style-name="P1">2: auth, my title, </text:p>
2935 </text:index-body>
2936 </text:bibliography>
2937 \end{verbatim}
2938
2939
2940 %%%%%%%%%%%%%%%%%%%
2941 \subsection{cite}
2942 %%%%%%%%%%%%%%%%%%%
2943
2944 This version of Cite produces links, but not speciall bibliography
2945 field in the ODT file. I don't know if it is important, I think
2946 functional link is better.
2947
2948 \<configure ooffice latex\><<<
2949 \Configure{cite}
2950 {}
2951 {}
2952 {\Link} {\EndLink}
2953 \let\lat:cite\@cite
2954 \def\@cite#1#2{{#1\if@tempswa , #2\fi}}
2955 >>>
2956
2957 This version of cite is post-processed by Xtpipes, which
2958 removes links from citation to the bibliography, and
2959 introduce extra square brackets. I don't understand why.
2960
2961 \<\><<<
2962 \Configure{cite}
2963 {\HCode{<text:bibliography-mark
2964 text:bibliography-type="custom1">}}
2965 {\HCode{</text:bibliography-mark>}}
2966 {\Link} {\EndLink}
2967 \let\lat:cite\@cite
2968 \def\@cite#1#2{{#1\if@tempswa , #2\fi}}
2969 >>>
2970
2971 \<\><<<
2972 \Configure{cite}
2973 {\HCode{<text:bibliography-mark text:identifier="}\bgroup
2974 \def\:nbsp{ }\NoFonts
2975 \setbox0=\hbox\bgroup
2976 }
2977 {\egroup
2978 \copy0
2979 \EndNoFonts
2980 \HCode{"\Hnewline text:bibliography-type="custom1"
2981 >}[\box0]\HCode{</text:bibliography-mark>}\egroup
2982 }
2983 % {}{}
2984 {\Link}{\EndLink}
2985 \let\lat:cite\@cite
2986 \def\@cite#1#2{{#1\if@tempswa , #2\fi}}
2987 >>>
2988
2989 % {\HCode{<!--cite-->}} {\HCode{<!--/cite-->}}
2990 % {\Link} {\EndLink}
2991
2992
2993
2994 \<configure ooffice apacite\><<<
2995 \Configure{cite}
2996 {\HCode{<!--cite-->}\bgroup
2997 \def\:nbsp{ }\NoFonts
2998 }
2999 {\EndNoFonts\egroup \HCode{<!--/cite-->}}
3000 {}{}
3001 \let\@cite\lat:cite
3002 >>>
3003
3004
3005
3006
3007
3008
3009 \begin{verbatim}
3010 <text:bibliography-mark
3011 text:identifier="shortname"
3012 text:bibliography-type="article"
3013 text:address="address"
3014 text:annote="annotation"
3015 text:author="author"
3016 text:booktitle="book title"
3017 text:chapter="chapter"
3018 text:edition="edition"
3019 text:editor="editor"
3020 text:howpublished="publication type"
3021 text:institution="institution"
3022 text:journal="journal"
3023 text:month="month"
3024 text:note="note"
3025 text:number="number"
3026 text:organizations="organization"
3027 text:pages="pages"
3028 text:publisher="publisher"
3029 text:school="university"
3030 text:series="series"
3031 text:title="title"
3032 text:report-type="report type"
3033 text:volume="volume"
3034 text:year="year"
3035 text:url="url"
3036 text:isbn="isbn 1234567890">
3037 [1]
3038 </text:bibliography-mark>
3039 \end{verbatim}
3040
3041
3042
3043 %%%%%%%%%%%%%%%%%%%
3044 \subsection{Items}
3045 %%%%%%%%%%%%%%%%%%%
3046
3047 How the problem in the following post can be resolved?
3048
3049 \url{http://www.mail-archive.com/[email protected]/msg00840.html}
3050
3051
3052 \<ooffice bib with bibname\><<<
3053 \def\ref:name{\bibname}
3054 |<ooffice bib|>
3055 >>>
3056
3057
3058 \<ooffice bib with refname\><<<
3059 \def\ref:name{\refname}
3060 |<ooffice bib|>
3061 >>>
3062
3063
3064
3065 \<ooffice bib\><<<
3066 \HAssign\bib:N=0
3067 \:CheckOption{bib-}\if:Option
3068 \ConfigureList{thebibliography}%
3069 {\IgnorePar\EndP \gHAdvance\bib:N by 1
3070 \let\en:bib=\empty
3071 }
3072 {\en:bib}
3073 {\en:bib\def\en:bib{\HCode{</text:p>}}\HCode
3074 {<text:p text:style-name="p-bibitem" >}}
3075 {}
3076 \else
3077 \Log:Note{for a degraded bibliography friendlier for conversion to .doc,
3078 use the command line option `bib-'}
3079 \ConfigureList{thebibliography}%
3080 {\IgnorePar\EndP \gHAdvance\bib:N by 1
3081 \HCode{<text:bibliography text:name="bib-\bib:N" >
3082 <text:bibliography-source>\Hnewline
3083 |<bibliography source|>\Hnewline
3084 </text:bibliography-source>\Hnewline
3085 <text:index-body>\Hnewline
3086 }\let\en:bib=\empty
3087 }
3088 {\en:bib\HCode{</text:index-body></text:bibliography>}}
3089 {\en:bib\def\en:bib{\HCode{</text:p>}}\HCode
3090 {<text:p text:style-name="p-bibitem" >}}
3091 {}
3092 \fi
3093 \Configure{bibitem}{\Link}{\EndLink\space }
3094 >>>
3095
3096
3097 \<ooffice bib\><<<
3098 \NewConfigureOO{p-bibitem}
3099 \ConfigureOO{p-bibitem}{%
3100 <style:style style:name="p-bibitem"\Hnewline
3101 style:family="paragraph" \Hnewline
3102 style:parent-style-name="Standard">\Hnewline
3103 <style:paragraph-properties fo:margin-left="1cm"\Hnewline
3104 fo:text-indent="-1cm"\Hnewline
3105 fo:margin-right="0cm" \Hnewline
3106 style:auto-text-indent="false">\Hnewline
3107 <style:tab-stops/>\Hnewline
3108 </style:paragraph-properties >\Hnewline
3109 </style:style>\Hnewline
3110 }
3111 >>>
3112
3113
3114 \<bibliography source\><<<
3115 <text:index-title-template>}\NoFonts\ref:name\EndNoFonts\HCode{%
3116 </text:index-title-template>\Hnewline
3117 %
3118 <text:bibliography-entry-template\Hnewline
3119 text:bibliography-type="custom1"
3120 text:style-name="Bibliography11" >\Hnewline
3121 %
3122 <text:index-entry-bibliography
3123 text:bibliography-data-field="identifier" />\Hnewline
3124 %
3125 <text:index-entry-span>: </text:index-entry-span>\Hnewline
3126 <text:index-entry-bibliography
3127 text:bibliography-data-field="author" />\Hnewline
3128 <text:index-entry-span>, </text:index-entry-span>\Hnewline
3129 %
3130 <text:index-entry-bibliography
3131 text:bibliography-data-field="title" />\Hnewline
3132 <text:index-entry-span>, </text:index-entry-span>\Hnewline
3133 %
3134 <text:index-entry-bibliography
3135 text:bibliography-data-field="year" />\Hnewline
3136 </text:bibliography-entry-template>\Hnewline
3137 >>>
3138
3139
3140
3141 %%%%%%%%%%%%%%%%%%%
3142 \subsection{jurabib}
3143 %%%%%%%%%%%%%%%%%%%
3144
3145
3146
3147
3148 \<configure ooffice jurabib\><<<
3149 \HAssign\jbancorDepth=0
3150 \Configure{jblink}
3151 {\HAdvance\jbancorDepth by 1 \Link}
3152 {\EndLink \HAdvance\jbancorDepth by -1 }
3153 \Configure{jbanchor}
3154 {\bgroup
3155 \ifnum \jbancorDepth=0
3156 \Configure{Link}{text:a}{xlink:href=}%
3157 {office:name=}{}%
3158 \else
3159 \Configure{Link}{text:span}{}{text:style-name=}{}%
3160 \def\NOHREF:##1{}%
3161 \fi
3162 \Link}
3163 {\EndLink \egroup}
3164 >>>
3165
3166 Nested anchors are broken
3167 See html4 comment regarding \verb+\Configure{jbanchor}{\Link}{\EndLink}+
3168
3169 %%%%%%%%%%%%%
3170 \subsection{biblatex}
3171 %%%%%%%%%%%%%
3172
3173 \<configure ooffice biblatex\><<<
3174 \Configure{thebibliography}%
3175 {\ifvmode \IgnorePar\fi \EndP
3176 \EndP\HCode{<text:list text:style-name="printthebibliography"
3177 text:name="printthebibliography"\Hnewline>}%
3178 \PushMacro\end:itm
3179 \global\let\end:itm=\empty}
3180 {\ifvmode \IgnorePar\fi \EndP
3181 \PopMacro\end:itm \global\let\end:itm \end:itm
3182 \EndP\HCode{</text:p></text:list-item></text:list>}\ShowPar}
3183 {\ifvmode \IgnorePar\fi \EndP
3184 \end:itm \global\def\end:itm{\EndP\HCode{</text:p></text:list-item>}}%
3185 \HCode{<text:list-item><text:p
3186 text:style-name="printthebibliography-dt"\Hnewline>}\bgroup \bf}
3187 {\ifvmode \IgnorePar\fi \EndP
3188 \egroup\HCode{</text:p><text:p
3189 text:style-name="printthebibliography-dd"\Hnewline>}\par\ShowPar}
3190 >>>
3191
3192 \<configure ooffice biblatex\><<<
3193 \Configure{bibinit}{\IgnorePar}
3194 >>>
3195
3196
3197
3198 \<configure ooffice biblatex\><<<
3199 \Configure{printshorthands}
3200 {\ifvmode \IgnorePar\fi \EndP
3201 \HCode{<text:list
3202 text:style-name="printshorthands"
3203 text:name="printshorthands"\Hnewline
3204 ><text:list-item><text:p
3205 text:style-name="printshorthands-dt"\Hnewline>}%
3206 }
3207 {\ifvmode \IgnorePar\fi \EndP
3208 \HCode{</text:list-item></text:list>}}
3209 {\ifvmode \IgnorePar\fi \EndP
3210 \HCode{</text:list-item><text:list-item><text:p
3211 text:style-name="printshorthands-dt"\Hnewline>}}
3212 {\HCode{</text:p><text:p text:style-name="printshorthands-dd">}%
3213 \Next:EndP{\HCode{</text:p>}}%
3214 }
3215 \Configure{@shorthands}
3216 {\Configure{printfield-annotation}
3217 {\HTML:PAR{printshorthands-dd}{printshorthands-dd}}
3218 {}%
3219 }
3220 >>>
3221
3222 \<configure ooffice biblatex\><<<
3223 \Configure{biblatex-style}{authortitle}{}
3224 \Configure{biblatex-style}{authortitle-comp}{}
3225 \Configure{biblatex-style}{authortitle-tcomp}{}
3226 \Configure{biblatex-style}{authortitle-icomp}{}
3227 \Configure{biblatex-style}{authortitle-ibid}{}
3228 \Configure{biblatex-style}{authoryear}{}
3229 \Configure{biblatex-style}{authoryear-ibid}{}
3230 \Configure{biblatex-style}{authoryear-comp}{}
3231 \Configure{biblatex-style}{verbose}{}
3232 \Configure{biblatex-style}{verbose-ibid}{}
3233 \Configure{biblatex-style}{verbose-note}{}
3234 \Configure{biblatex-style}{alphabetic-verb}{}
3235 \Configure{biblatex-style}{alphabetic}{}
3236 \Configure{biblatex-style}{numeric}{}
3237 \Configure{biblatex-style}{numeric-verb}{}
3238 \Configure{biblatex-style}{numeric-comp}{}
3239 \Configure{biblatex-style}{draft}{}
3240 \Configure{biblatex-style}{reading}{}
3241 \Configure{biblatex-style}{verbose-trad1}{}
3242 \Configure{biblatex-style}{verbose-trad2}{}
3243 >>>
3244
3245
3246
3247 \<configure ooffice latex\><<<
3248 \NewConfigureOO{printshorthands}
3249 \ConfigureOO{printshorthands}{|<printshorthands style|>}
3250 >>>
3251
3252
3253
3254 \<printshorthands style\><<<
3255 <text:list-style style:name="printshorthands" >
3256 <text:list-level-style-bullet
3257 text:level="1"
3258 text:style-name="Source-Text"
3259 text:bullet-char=" " >\Hnewline
3260 <style:list-level-properties
3261 text:space-before="0in"
3262 text:min-label-width="0in"
3263 text:min-label-distance="0in" />\Hnewline
3264 </text:list-level-style-bullet>
3265 </text:list-style>
3266 <style:style
3267 style:name="printshorthands-dd"
3268 style:family="paragraph"
3269 style:parent-style-name="Standard">
3270 <style:paragraph-properties
3271 fo:margin-left="0.35in"
3272 fo:margin-right="0in"
3273 fo:margin-top="0cm"
3274 fo:margin-bottom="0.2cm"
3275 fo:text-indent="0in"
3276 style:auto-text-indent="false"/>
3277 </style:style>
3278 <style:style
3279 style:name="printshorthands-dt"
3280 style:family="paragraph"
3281 style:parent-style-name="">
3282 <style:paragraph-properties
3283 fo:margin-left="0.1in"
3284 fo:margin-right="0in"
3285 fo:text-indent="0in"
3286 style:auto-text-indent="false"/>
3287 </style:style>
3288 >>>
3289
3290
3291
3292
3293
3294
3295
3296
3297 \<configure ooffice latex\><<<
3298 \NewConfigureOO{printthebibliography}
3299 \ConfigureOO{printthebibliography}{|<printthebibliography style|>}
3300 >>>
3301
3302
3303
3304 \<printthebibliography style\><<<
3305 <text:list-style style:name="printthebibliography" >
3306 <text:list-level-style-bullet
3307 text:level="1"
3308 text:style-name="Source-Text"
3309 text:bullet-char=" " >\Hnewline
3310 <style:list-level-properties
3311 text:space-before="0in"
3312 text:min-label-width="0in"
3313 text:min-label-distance="0in" />\Hnewline
3314 </text:list-level-style-bullet>
3315 </text:list-style>
3316 <style:style
3317 style:name="printthebibliography-dd"
3318 style:family="paragraph"
3319 style:parent-style-name="Standard">
3320 <style:paragraph-properties
3321 fo:margin-left="0.35in"
3322 fo:margin-right="0in"
3323 fo:margin-top="0cm"
3324 fo:margin-bottom="0.2cm"
3325 fo:text-indent="-0.35in"
3326 style:auto-text-indent="false"/>
3327 </style:style>
3328 <style:style
3329 style:name="printthebibliography-dt"
3330 style:family="paragraph"
3331 style:parent-style-name="">
3332 <style:paragraph-properties
3333 fo:margin-top="0cm"
3334 fo:margin-bottom="0cm"
3335 style:auto-text-indent="false"/>
3336 </style:style>
3337 >>>
3338
3339
3340
3341
3342
3343
3344 %%%%%%%%%%%%%
3345 \subsection{footnote-dw}
3346 %%%%%%%%%%%%%
3347
3348 \<configure ooffice footnote-dw\><<<
3349 >>>
3350
3351 % There used to be the following redefinition:
3352 % \protected\long\def\mkfootnotecite#1{#1}
3353 % I don't know what was the reasoning, but
3354 % footnote citing works well with the current
3355 % Biblatex and TeX4ht, so I think we can remove it.
3356
3357
3358
3359
3360 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3361 \section{List-Based Environments}
3362 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
3363
3364
3365
3366 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3367 \subsection{Quotes}
3368 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
3369
3370
3371 \<ooffice begin-end env\><<<
3372 \ConfigureEnv{quote}
3373 {|<begin env section|>}
3374 {|<end env section|>\par\noindent}
3375 {\EndP \ifvmode \IgnorePar\fi
3376 \bgroup |<HtmlPar at quote|>%
3377 }
3378 {\IgnorePar\EndP \egroup \ShowPar \ShowIndent}
3379 >>>
3380
3381
3382 \<HtmlPar at quote\><<<
3383 \Configure{HtmlPar}
3384 {\EndP \HCode{|<input line num|>%
3385 <text:p text:style-name="quote|<cond rtl class|>"
3386 >}}
3387 {\EndP \HCode{|<input line num|>%
3388 <text:p text:style-name="quote|<cond rtl class|>"
3389 >}}
3390 {\HCode{</text:p>}}
3391 {\HCode{</text:p>}}%
3392 >>>
3393
3394 \<configure ooffice latex\><<<
3395 \NewConfigureOO{quote}
3396 \ConfigureOO{quote}{\Hnewline
3397 <style:style style:name="quote"
3398 style:family="paragraph"
3399 style:parent-style-name="Text-body"
3400 style:next-style-name="Text-body">\Hnewline
3401 <style:paragraph-properties fo:margin-left="1cm"
3402 fo:margin-right="1cm"
3403 fo:margin-top="0.199cm"
3404 fo:margin-bottom="0.199cm"
3405 fo:text-indent="0cm"
3406 style:auto-text-indent="false"/>\Hnewline
3407 </style:style>
3408 \Hnewline |<quote rtl|>}
3409 >>>
3410
3411
3412 \<configure ooffice csquotes\><<<
3413 \Configure{displayquote}{\EndP%
3414 \bgroup \Configure{HtmlPar}%
3415 {\EndP \HCode{<text:p text:style-name="quote\if@rl-rtl\fi">}}%
3416 {\EndP \HCode{<text:p text:style-name="quote\if@rl-rtl\fi">}}%
3417 {\HCode{</text:p>}}%
3418 {\HCode{</text:p>}}%
3419 }{}{}{\egroup\noindent}
3420 >>>
3421
3422
3423
3424 %%%%%%%%%%%%%
3425 \subsection{Environment Envelop}
3426 %%%%%%%%%%%%%
3427
3428
3429
3430 \<configure ooffice latex\><<<
3431 \HAssign\BegEnd:N=0
3432 \HAssign\BegEnd:D=0
3433 >>>
3434
3435 We use ODT sections for various environements,
3436 especially for changed text alignment.
3437
3438 These sections are not rendered in some contexts,
3439 for example in enumerate items. So we need
3440 to have a mechanism to disable them.
3441
3442 I don't even think that these sections are usefull
3443 at all, as the text alignment in these environments
3444 seems to work regardless of the section use.
3445
3446 We will print section tags only when BedEnd:X is
3447 zero. The following commands increase and decrease
3448 this counter. This should handle nesting.
3449
3450 \<configure ooffice latex\><<<
3451 \HAssign\BegEnd:X=0
3452 \def\:DisableSections{\gHAdvance\BegEnd:X by 1}
3453 \def\:EnableSections{\gHAdvance\BegEnd:X by -1}
3454 >>>
3455
3456 We also provide an option to dispable sections
3457 completelly.
3458
3459
3460 \<configure ooffice latex\><<<
3461 \:CheckOption{NoSections}\if:Option
3462 \HAssign\BegEnd:X=9999% use some really high number
3463 \else
3464 \Log:Note{To disable use of sections for text
3465 alignment environemnts, use the "NoSections"
3466 option}
3467 \fi
3468 >>>
3469
3470
3471 \<begin env section\><<<
3472 \ifvmode \IgnorePar\fi \EndP
3473 \ifnum\BegEnd:X=0%
3474 \ifnum \BegEnd:D=0
3475 |<sectioned env|>%
3476 \else
3477 |<boxed env|>%
3478 \fi
3479 \gHAdvance\BegEnd:D by 1
3480 \fi
3481 >>>
3482
3483 \<end env section\><<<
3484 \gHAdvance\BegEnd:D by -1
3485 \ifvmode \IgnorePar\fi\EndP
3486 \ifnum\BegEnd:X=0%
3487 \ifnum \BegEnd:D=0
3488 |<end sectioned env|>%
3489 \else
3490 |<end boxed env|>%
3491 \fi
3492 \else\par%
3493 \fi
3494 >>>
3495
3496
3497
3498
3499 \<sectioned env\><<<
3500 \gHAdvance\BegEnd:N by 1
3501 \HCode{<text:section
3502 text:style-name="begin-end-env"
3503 text:name="begin-end-env-\BegEnd:N"
3504 >%
3505 <text:p text:style-name="begin-env-p" ></text:p>}%
3506 >>>
3507
3508 \<end sectioned env\><<<
3509 \HCode{<text:p text:style-name="end-env-p" ></text:p></text:section>}%
3510 >>>
3511
3512
3513 \<boxed env\><<<
3514 \gHAdvance\BegEnd:N by 1
3515 \hbox{\HCode{<text:p><draw:frame
3516 draw:name="begin-end-env-\BegEnd:N"
3517 draw:style-name="env-frame"
3518 text:anchor-type="as-char"
3519 % fo:min-width="0.14in"
3520 svg:width="90\prcnt:ch"
3521 draw:z-index="0"
3522 >
3523 <draw:text-box
3524 % fo:min-height="0.14in"
3525 >}}%
3526 >>>
3527
3528
3529 \<end boxed env\><<<
3530 \hbox{\HCode{</draw:text-box>
3531 </draw:frame></text:p> }}%
3532 >>>
3533
3534
3535
3536
3537
3538 \<configure ooffice latex\><<<
3539 \NewConfigureOO{begin-end-env}
3540 \ConfigureOO{begin-end-env}{\Hnewline
3541 <style:style style:name="begin-env-p" style:family="paragraph">\Hnewline
3542 <style:paragraph-properties fo:margin-top="2mm"
3543 fo:margin-bottom="0mm"
3544 fo:line-height="0.1mm" />\Hnewline
3545 </style:style>\Hnewline
3546 <style:style style:name="end-env-p" style:family="paragraph">\Hnewline
3547 <style:paragraph-properties fo:margin-bottom="2mm"
3548 fo:margin-top="0mm"
3549 fo:line-height="0.1mm" />\Hnewline
3550 </style:style>\Hnewline
3551 }
3552 >>>
3553
3554 The indirect use of paragraphs is due to OpenOffice not recognizing
3555 vertical spaces around sections.
3556
3557 \begin{verbatim}
3558 <style:style style:name="begin-end-env"
3559 style:family="section">\Hnewline
3560 <style:text-properties fo:margin-top="0.4cm"
3561 fo:margin-bottom="0.4cm" />\Hnewline
3562 </style:style>\Hnewline
3563 \end{verbatim}
3564
3565
3566 \<configure ooffice latex\><<<
3567 \NewConfigureOO{env-frame}
3568 \ConfigureOO{env-frame}{\Hnewline
3569 <style:style
3570 style:name="env-frame"
3571 style:family="graphic"
3572 >\Hnewline
3573 <style:graphic-properties
3574 style:vertical-pos="top"
3575 style:vertical-rel="baseline"
3576 style:horizontal-pos="from-left"
3577 style:horizontal-rel="paragraph-content"
3578 fo:padding="0in"
3579 fo:border="none"
3580 style:shadow="none"
3581 />\Hnewline
3582 </style:style>\Hnewline
3583 }
3584 >>>
3585
3586
3587
3588 \<\><<<
3589 style:parent-style-name="EnvFrame"
3590
3591
3592 <style:style
3593 style:name="EnvFrame"
3594 style:family="graphic"
3595 >\Hnewline
3596 <style:graphic-properties
3597 text:anchor-type="paragraph"
3598 % style:wrap="parallel"
3599 % style:number-wrapped-paragraphs="no-limit"
3600 style:wrap-contour="false"
3601 style:vertical-pos="top"
3602 style:vertical-rel="paragraph-content"
3603 style:horizontal-pos="center"
3604 style:horizontal-rel="paragraph-content"
3605 fo:padding="0in"
3606 fo:border="0.0in"/> \Hnewline
3607 </style:style> \Hnewline
3608
3609 >>>
3610
3611
3612
3613 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3614 \subsection{Quotations}
3615 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
3616
3617 \<ooffice begin-end env\><<<
3618 \ConfigureEnv{quotation}
3619 {|<begin env section|>}
3620 {|<end env section|>\par\ShowPar \noindent}
3621 {\IgnorePar\EndP \bgroup |<HtmlPar for quatation|>}
3622 {\EndP\IgnorePar \egroup \ShowPar }
3623 >>>
3624
3625 \<HtmlPar for quatation\><<<
3626 \Configure{HtmlPar}
3627 {\EndP \HCode{<text:p text:style-name="quotation|<cond rtl class|>"
3628 >}}
3629 {\EndP \HCode{<text:p text:style-name="quotation|<cond rtl class|>"
3630 >}}
3631 {\HCode{</text:p>}}
3632 {\HCode{</text:p>}}%
3633 >>>
3634
3635 \<ooffice begin-end env\><<<
3636 \NewConfigureOO{quotation}
3637 \ConfigureOO{quotation}
3638 {\Hnewline
3639 <style:style style:name="quotation"
3640 style:family="paragraph"
3641 style:parent-style-name="Standard">\Hnewline
3642 <style:paragraph-properties
3643 fo:margin-left="1cm"
3644 fo:margin-right="1cm"
3645 fo:margin-top="0cm"
3646 fo:margin-bottom="0cm"
3647 fo:text-indent="0.499cm"
3648 style:auto-text-indent="true"/>\Hnewline
3649 </style:style>\Hnewline |<quotation rtl|>%
3650 }
3651 >>>
3652
3653
3654
3655
3656 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3657 \subsection{flush right and left}
3658 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
3659
3660
3661
3662
3663 \<ooffice begin-end env\><<<
3664 \ConfigureEnv{flushright}
3665 {|<begin env section|>\HCode{<!--begin flushright-->}}
3666 {|<end env section|>%
3667 \HCode{<!--end flushright-->}|<try env inline par|>}
3668 {} {}
3669 \ConfigureList{flushright}
3670 {}{}{|<HtmlPar at flushright|>\par}{}
3671 >>>
3672
3673
3674 \<HtmlPar at flushright\><<<
3675 \Configure{HtmlPar}
3676 {\EndP \HCode{<text:p text:style-name="flushright" >}}
3677 {\EndP \HCode{<text:p text:style-name="flushright" >}}
3678 {\HCode{</text:p>}}
3679 {\HCode{</text:p>}}%
3680 >>>
3681
3682
3683
3684 \<ooffice begin-end env\><<<
3685 \NewConfigureOO{flushright}
3686 \ConfigureOO{flushright}
3687 {\Hnewline
3688 <style:style style:name="flushright"
3689 style:family="paragraph"
3690 style:parent-style-name="Text-body"
3691 style:next-style-name="Text-body"
3692 style:master-page-name="">
3693 <style:paragraph-properties fo:margin-top="0.199cm"
3694 fo:margin-bottom="0.199cm"
3695 fo:text-align="end"
3696 style:justify-single-word="false"
3697 style:page-number="0"/>
3698 </style:style>\Hnewline
3699 }
3700 >>>
3701
3702
3703
3704
3705 \<ooffice begin-end env\><<<
3706 \ConfigureEnv{flushleft}
3707 {|<begin env section|>\HCode{<!--begin flushleft-->}}
3708 {|<end env section|>%
3709 \HCode{<!--end flushleft-->}\par\ShowPar}
3710 {} {}
3711 \ConfigureList{flushleft}
3712 {}{}{|<HtmlPar at flushleft|>\par}{}
3713 >>>
3714
3715
3716 \<HtmlPar at flushleft\><<<
3717 \Configure{HtmlPar}
3718 {\EndP \HCode{<text:p text:style-name="flushleft" >}}
3719 {\EndP \HCode{<text:p text:style-name="flushleft" >}}
3720 {\HCode{</text:p>}}
3721 {\HCode{</text:p>}}%
3722 >>>
3723
3724
3725
3726 \<ooffice begin-end env\><<<
3727 \NewConfigureOO{flushleft}
3728 \ConfigureOO{flushleft}
3729 {\Hnewline
3730 <style:style style:name="flushleft"
3731 style:family="paragraph"
3732 style:parent-style-name="Text-body"
3733 style:next-style-name="Text-body">
3734 <style:paragraph-properties fo:margin-top="0.199cm"
3735 fo:margin-bottom="0.199cm"
3736 fo:text-align="start"
3737 style:justify-single-word="false"/>
3738 </style:style>
3739 \Hnewline}
3740 >>>
3741
3742
3743
3744
3745 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3746 \subsection{center}
3747 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
3748
3749
3750 \<ooffice begin-end env\><<<
3751 \ConfigureEnv{center}
3752 {|<begin env section|>\HCode{<!--begin center-->}}
3753 {|<end env section|>%
3754 \HCode{<!--end center-->}\par|<try env inline par|>}
3755 {} {}
3756 \ConfigureList{center}
3757 {}{}{|<HtmlPar at center|>\par}{}
3758 >>>
3759
3760 The \verb=\par= at the end of \verb=\ConfigureEnv{center}=
3761 is required for cases like the following one.
3762
3763 \begin{verbatim}
3764 \documentclass[titlepage]{article}
3765 \begin{document}
3766 \begin{abstract}
3767 file. (see below)
3768
3769 file. (see below)
3770
3771 file. (see below)
3772 \end{abstract}
3773 \end{document}
3774 \end{verbatim}
3775
3776 \<HtmlPar at center\><<<
3777 \Configure{HtmlPar}
3778 {\EndP \HCode{<text:p text:style-name="center" >}}
3779 {\EndP \HCode{<text:p text:style-name="center" >}}
3780 {\HCode{</text:p>}}
3781 {\HCode{</text:p>}}%
3782 >>>
3783
3784 \<ooffice begin-end env\><<<
3785 \NewConfigureOO{center}
3786 \ConfigureOO{center}
3787 {\Hnewline
3788 <style:style style:name="center"
3789 style:family="paragraph"
3790 style:parent-style-name="Text-body"
3791 style:next-style-name="Text-body">
3792 <style:paragraph-properties fo:margin-top="0.199cm"
3793 fo:margin-bottom="0.199cm"
3794 fo:text-align="center"
3795 style:justify-single-word="false">
3796 <style:tab-stops/>
3797 </style:paragraph-properties >
3798 </style:style>\Hnewline
3799 }
3800 >>>
3801
3802
3803 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3804 \subsection{centerline}
3805 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
3806
3807
3808 \<ooffice begin-end env\><<<
3809 |<aligned lines|>
3810 >>>
3811
3812 \<plain aligned lines\><<<
3813 |<aligned lines|>
3814 >>>
3815
3816
3817 \<aligned lines\><<<
3818 \Configure{centerline}
3819 {\EndP \ifvmode \IgnorePar \fi
3820 \HCode{<text:p text:style-name="FirstCenterPar" >}}
3821 {\HCode{</text:p>}|<try inline par|>}
3822
3823 \Configure{leftline}
3824 {\EndP \ifvmode \IgnorePar \fi
3825 \HCode{<text:p text:style-name="FirstLeftPar" >}}
3826 {\HCode{</text:p>}|<try inline par|>}
3827
3828 \Configure{rightline}
3829 {\EndP \ifvmode \IgnorePar \fi
3830 \HCode{<text:p text:style-name="FirstRightPar" >}}
3831 {\HCode{</text:p>}|<try inline par|>}
3832 >>>
3833
3834
3835 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3836 \section{Sections}
3837 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3838
3839
3840
3841
3842 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3843 \subsection{Shared}
3844 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3845
3846
3847 THe following protects section titles from side effects, and also is
3848 introduced for protecting writeups to tables of contents.
3849
3850
3851
3852 \<configure ooffice latex\><<<
3853 \Configure{NoSection}
3854 {\let\sv:index\index \let\sv:label\label
3855 \let\sv:newline\newline \def\newline{ }%
3856 \let\sv:setfontsize\@setfontsize \let\@setfontsize\:gobbleIII
3857 \let\index\@gobble \let\label\@gobble
3858 \let\sva:rEfLiNK\a:rEfLiNK
3859 \let\svb:rEfLiNK\b:rEfLiNK
3860 \let\svc:rEfLiNK\c:rEfLiNK
3861 \expandafter\let\expandafter\svC:rEfLiNK\c:rEfLiNK
3862 \Configure{ref}{}{}{}% \let\sv:ref\ref \let\ref\@gobble
3863 }
3864 {\let\index\sv:index \let\label\sv:label
3865 \let\a:rEfLiNK\sva:rEfLiNK
3866 \let\b:rEfLiNK\svb:rEfLiNK
3867 \let\c:rEfLiNK\svc:rEfLiNK
3868 \expandafter\let\c:rEfLiNK\svC:rEfLiNK % \let\ref\sv:ref
3869 \let\newline\sv:newline \let\@setfontsize\sv:setfontsize
3870 }
3871
3872 >>>
3873
3874
3875
3876
3877 \<configure ooffice latex\><<<
3878 \Configure{InsertTitle}{\let\label\lb:l
3879 \let\ref\o:ref \Configure{ref}{}{}{}}
3880 \Configure{AfterTitle}{\let\index\:index
3881 \let\ref\:ref \let\label\lb:l }
3882 >>>
3883
3884
3885 The labels are needed for labels \HPage{nested}
3886 \begin{verbatim}
3887 \documentclass{article}
3888 \begin{document}
3889 \section{Introduction}
3890
3891 AAA \ref{1111}
3892
3893 \section{BBB\label{1111}}
3894
3895 \end{document}
3896 \end{verbatim}
3897 \EndHPage{}
3898 within titles.
3899
3900 \<basic ooffice sections\><<<
3901 \ifx \part\:UnDef\else
3902 \Configure{part}
3903 {\IgnorePar\EndP \HCode{<!--start part-->}}
3904 {\IgnorePar\EndP \HCode{<!--end part-->}}
3905 {\HCode{<text:p text:style-name="part" >
3906 <text:span text:style-name="part">}\TitleMark\space
3907 \HCode{</text:span>}%
3908 \HCode{<text:line-break/>}}
3909 {\HCode{</text:p>\Hnewline}\par\ShowPar\IgnoreIndent}
3910 \ConfigureMark{part}{\partname\space\thepart}
3911 \NewConfigureOO{part}
3912 \ConfigureOO{part}{\Hnewline
3913 <style:style style:name="part"
3914 style:family="paragraph"
3915 style:parent-style-name="Heading|<cond rtl class|>"
3916 style:next-style-name="Text-body"
3917 style:list-style-name="part">\Hnewline
3918 <style:paragraph-properties fo:margin-top="0.52cm"
3919 fo:margin-bottom="0.21cm"
3920 fo:font-size="18pt"/>\Hnewline
3921 </style:style>\Hnewline
3922 }
3923 \fi
3924 >>>
3925
3926
3927
3928
3929 \<od definitions\><<<
3930 \def\list:text:level{text:level}
3931 \def\text:outlinelevel{text:outline-level}
3932 \def\style:tableproperties{style:table-properties }
3933 \def\style:sectionproperties{style:section-properties }
3934 \def\text:orderedlist{text:list }
3935 \def\text:unorderedlist{text:list }
3936 >>>
3937
3938
3939 \<ooffice chapters\><<<
3940 \Configure{chapter}
3941 {\IgnorePar\EndP \HCode{<!--start of chapter-->|<new page|>}}
3942 {\IgnorePar\EndP \HCode{<!--end of chapter-->}}
3943 {\HCode{<text:h
3944 text:style-name="\csname a:Heading-1|<cond rtl class|>\endcsname"
3945 \text:outlinelevel="1" ><text:span
3946 text:style-name="chapter" >}\TitleMark\space
3947 \HCode{</text:span>}%
3948 \HCode{<text:line-break/>}\IgnoreIndent}
3949 {\HCode{</text:h>\Hnewline}\par\ShowPar}
3950 \Configure{likechapter}
3951 {\IgnorePar\EndP \HCode{<!--start of chapter*-->|<new page|>}}
3952 {\IgnorePar\EndP \HCode{<!--end of chapter*-->}}
3953 {\HCode{<text:h
3954 text:style-name="\csname a:Heading-1|<cond rtl class|>\endcsname"
3955 \text:outlinelevel="1" >}\IgnoreIndent}
3956 {\HCode{</text:h>\Hnewline}\par\ShowPar}
3957 >>>
3958
3959 \<report chapters\><<<
3960 \ConfigureMark{chapter}
3961 {\chaptername \ \thechapter}
3962 >>>
3963
3964 \<book chapters\><<<
3965 \ConfigureMark{chapter}
3966 {\if@mainmatter \chaptername \ \thechapter\fi}
3967 >>>
3968
3969
3970
3971 \<book chapters\><<<
3972 \ConfigureMark{appendix}
3973 {\if@mainmatter \appendixname \ \thechapter\fi}
3974 \Configure{appendix}
3975 {\IgnorePar\EndP \HCode{<!--start of appendix-->|<new page|>}}
3976 {\IgnorePar\EndP \HCode{<!--end of appendix-->}}
3977 {\HCode{<text:h text:style-name="\csname a:Heading-1|<cond rtl class|>\endcsname"
3978 \text:outlinelevel="1" ><text:span
3979 text:style-name="chapter" >}\TitleMark\space
3980 \HCode{</text:span>}%
3981 \HCode{<text:line-break/>}\IgnoreIndent}
3982 {\HCode{</text:h>\Hnewline}\par\ShowPar}
3983 >>>
3984
3985
3986
3987
3988
3989
3990 \<basic ooffice sections\><<<
3991 \ConfigureMark{section}
3992 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
3993 \else \@seccntformat{section}\fi }
3994 \Configure{section}
3995 {\IgnorePar\EndP \HCode{<!--start of section-->}}
3996 {\IgnorePar\EndP \HCode{<!--end of section-->}}
3997 {\HCode{<text:h
3998 text:style-name="\csname a:Heading-2|<cond rtl class|>\endcsname"
3999 \text:outlinelevel="2" ><text:span
4000 text:style-name="section" >}\TitleMark\space
4001 \HCode{</text:span>}\IgnoreIndent}
4002 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4003 >>>
4004
4005
4006
4007 \<basic ooffice sections\><<<
4008 \ConfigureMark{subsection}
4009 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4010 \else \@seccntformat{subsection}\fi }
4011 \Configure{subsection}
4012 {\IgnorePar\EndP \HCode{<!--start of subsection-->}}
4013 {\IgnorePar\EndP \HCode{<!--end of subsection-->}}
4014 {\HCode{<text:h
4015 text:style-name="\csname a:Heading-3|<cond rtl class|>\endcsname"
4016 \text:outlinelevel="3" ><text:span
4017 text:style-name="subsection" >}\TitleMark\space
4018 \HCode{</text:span>}\IgnoreIndent}
4019 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4020 >>>
4021
4022
4023 \<basic ooffice sections\><<<
4024 \ConfigureMark{subsubsection}
4025 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4026 \else \@seccntformat{subsubsection}\fi }
4027 \Configure{subsubsection}
4028 {\IgnorePar\EndP \HCode{<!--start of subsubsection-->}}
4029 {\IgnorePar\EndP \HCode{<!--end of subsubsection-->}}
4030 {\HCode{<text:h
4031 text:style-name="\csname a:Heading-4|<cond rtl class|>\endcsname"
4032 \text:outlinelevel="4" ><text:span
4033 text:style-name="subsubsection" >}\TitleMark\space
4034 \HCode{</text:span>}\IgnoreIndent}
4035 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4036 >>>
4037
4038
4039 \<basic ooffice sections\><<<
4040 \Configure{likesection}
4041 {\IgnorePar\EndP \HCode{<!--start of section*-->}}
4042 {\IgnorePar\EndP \HCode{<!--end of section*-->}}
4043 {\HCode{<text:h
4044 text:style-name="\csname a:Heading-2|<cond rtl class|>\endcsname"
4045 \text:outlinelevel="2" >}\IgnoreIndent}
4046 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4047 \Configure{likesubsection}
4048 {\IgnorePar\EndP \HCode{<!--start of subsection*-->}}
4049 {\IgnorePar\EndP \HCode{<!--end of subsection*-->}}
4050 {\HCode{<text:h
4051 text:style-name="\csname a:Heading-3|<cond rtl class|>\endcsname"
4052 \text:outlinelevel="3" >}\IgnoreIndent}
4053 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4054 \Configure{likesubsubsection}
4055 {\IgnorePar\EndP \HCode{<!--start of subsection*-->}}
4056 {\IgnorePar\EndP \HCode{<!--end of subsection*-->}}
4057 {\HCode{<text:h
4058 text:style-name="\csname a:Heading-4|<cond rtl class|>\endcsname"
4059 \text:outlinelevel="4" >}\IgnoreIndent}
4060 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4061 >>>
4062
4063
4064 Paragraph configurations
4065
4066 \<basic ooffice sections\><<<
4067 \:DefineParagraph{paragraph}{paragraph-h}
4068 \:DefineParagraph{likeparagraph}{paragraph-h}
4069 \:DefineParagraph{subparagraph}{subparagraph-h}
4070 \:DefineParagraph{likesubparagraph}{subparagraph-h}
4071
4072
4073 \:BoldStyle{paragraph-h}
4074 \:BoldStyle{subparagraph-h}
4075 >>>
4076
4077
4078 \<basic ooffice sectionsNO\><<<
4079 \Configure{paragraph}
4080 {\IgnorePar\EndP \HCode{<!--start of paragraph-->}}
4081 {\IgnorePar\EndP \HCode{<!--end of paragraph-->}}
4082 {\HCode{<text:h
4083 text:style-name="\csname a:Heading-5|<cond rtl class|>\endcsname"
4084 \text:outlinelevel="5" >}}
4085 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4086 \Configure{subparagraph}
4087 {\IgnorePar\EndP \HCode{<!--start of subparagraph-->}}
4088 {\IgnorePar\EndP \HCode{<!--end of subparagraph-->}}
4089 {\HCode{<text:h
4090 text:style-name="\csname a:Heading-6|<cond rtl class|>\endcsname"
4091 \text:outlinelevel="6" >}}
4092 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4093 >>>
4094
4095
4096
4097
4098 \<configure ooffice tex4ht\><<<
4099 \Configure{TocAt}{}{}
4100 \Configure{TocAt*}{}{}
4101 >>>
4102
4103
4104 A configuration `\verb!\Configure{Heading-1}{Heading 1}!'
4105 will provide the default setting of OpenOffice. It might be
4106 a more desirable for translations into MS Word.
4107
4108 \<basic ooffice section styles\><<<
4109 \NewConfigure{Heading-1}{1}
4110 \Configure{Heading-1}{Heading-1}
4111 \NewConfigureOO{Heading-1}
4112 \ConfigureOO{Heading-1}{\Hnewline
4113 <style:style style:name="Heading-1"
4114 style:family="paragraph"
4115 style:parent-style-name="Heading"
4116 style:next-style-name="Text-body"
4117 style:class="text">\Hnewline
4118 <style:paragraph-properties fo:font-size="17.2999992370605pt"
4119 fo:font-weight="bold"
4120 style:font-size-asian="115\prcnt:ch"
4121 style:font-weight-asian="bold"
4122 style:font-size-complex="115\prcnt:ch"
4123 style:font-weight-complex="bold"
4124 fo:margin-top="40pt"
4125 fo:margin-bottom="25pt"
4126 />
4127 </style:style>
4128 \Hnewline |<Heading 1 rtl|> }
4129 >>>
4130
4131
4132
4133
4134 \<basic ooffice section styles\><<<
4135 \NewConfigure{Heading-2}{1}
4136 \Configure{Heading-2}{Heading-2}
4137 \NewConfigureOO{Heading-2}
4138 \ConfigureOO{Heading-2}{\Hnewline
4139 <style:style style:name="Heading-2"
4140 style:family="paragraph"
4141 style:parent-style-name="Heading"
4142 style:next-style-name="Text-body"
4143 style:class="text">\Hnewline
4144 <style:paragraph-properties fo:font-size="14.3999996185303pt"
4145 style:font-size-complex="14pt"
4146 style:font-style-complex="italic"
4147 style:font-weight-complex="bold"
4148 fo:margin-top="12pt"
4149 fo:margin-bottom="9pt"
4150 />
4151 </style:style>
4152 \Hnewline |<Heading 2 rtl|> }
4153 >>>
4154
4155
4156
4157
4158 \<basic ooffice section styles\><<<
4159 \NewConfigure{Heading-3}{1}
4160 \Configure{Heading-3}{Heading-3}
4161 \NewConfigureOO{Heading-3}
4162 \ConfigureOO{Heading-3}{\Hnewline
4163 <style:style style:name="Heading-3"
4164 style:family="paragraph"
4165 style:parent-style-name="Heading"
4166 style:next-style-name="Text-body"
4167 style:class="text">\Hnewline
4168 <style:paragraph-properties fo:font-size="12pt"
4169 fo:font-weight="bold"
4170 style:font-size-asian="14pt"
4171 style:font-weight-asian="bold"
4172 style:font-size-complex="14pt"
4173 style:font-weight-complex="bold"/>
4174 </style:style>
4175 \Hnewline |<Heading 3 rtl|>}
4176 >>>
4177
4178
4179
4180 \<basic ooffice section styles\><<<
4181 \NewConfigure{Heading-4}{1}
4182 \Configure{Heading-4}{Heading-4}
4183 \NewConfigureOO{Heading-4}
4184 \ConfigureOO{Heading-4}{\Hnewline
4185 <style:style style:name="Heading-4"
4186 style:family="paragraph"
4187 style:parent-style-name="Heading"
4188 style:next-style-name="Text-body"
4189 style:class="text">\Hnewline
4190 <style:paragraph-properties fo:font-size="12pt"
4191 fo:font-weight="bold"
4192 fo:margin-top="0.42cm"
4193 fo:margin-bottom="0cm"
4194 style:font-size-complex="85\prcnt:ch"
4195 style:font-style-complex="italic"
4196 style:font-weight-complex="bold"
4197 />
4198 </style:style>
4199 \Hnewline |<Heading 4 rtl|>}
4200 >>>
4201
4202
4203
4204 \<basic ooffice section styles\><<<
4205 \NewConfigure{Heading-5}{1}
4206 \Configure{Heading-5}{Heading-5}
4207 \NewConfigureOO{Heading-5}
4208 \ConfigureOO{Heading-5}{\Hnewline
4209 <style:style style:name="Heading-5"
4210 style:family="paragraph"
4211 style:parent-style-name="Heading"
4212 style:next-style-name="Text-body"
4213 style:class="text">\Hnewline
4214 <style:paragraph-properties fo:margin-left="0cm"
4215 fo:margin-right="0cm"
4216 fo:margin-top="0.42cm"
4217 fo:margin-bottom="0cm"
4218 fo:font-size="12pt"
4219 fo:font-style="italic"
4220 fo:font-weight="normal"
4221 style:font-size-complex="85\prcnt:ch"
4222 style:font-weight-complex="bold"
4223 fo:text-indent="0cm"
4224 style:auto-text-indent="false"/>
4225 </style:style>
4226 \Hnewline |<Heading 5 rtl|>}
4227 >>>
4228
4229
4230 \<basic ooffice section styles\><<<
4231 \NewConfigure{Heading-6}{1}
4232 \Configure{Heading-6}{Heading-6}
4233 \NewConfigureOO{Heading-6}
4234 \ConfigureOO{Heading-6}{\Hnewline
4235 <style:style style:name="Heading-6"
4236 style:family="paragraph"
4237 style:parent-style-name="Heading"
4238 style:next-style-name="Text-body"
4239 style:class="text">\Hnewline
4240 <style:paragraph-properties fo:font-size="75\prcnt:ch"
4241 fo:font-weight="bold"
4242 style:font-size-asian="75\prcnt:ch"
4243 style:font-weight-asian="bold"
4244 style:font-size-complex="75\prcnt:ch"
4245 style:font-weight-complex="bold"/>
4246 </style:style>
4247 \Hnewline |<Heading 6 rtl|>}
4248 >>>
4249
4250 \<basic ooffice section styles\><<<
4251 \NewConfigure{Heading-7}{1}
4252 \Configure{Heading-7}{Heading-7}
4253 \NewConfigureOO{Heading-7}
4254 \ConfigureOO{Heading-7}{\Hnewline
4255 <style:style style:name="Heading-7"
4256 style:family="paragraph"
4257 style:parent-style-name="Heading"
4258 style:next-style-name="Text-body"
4259 style:class="text">\Hnewline
4260 <style:paragraph-properties fo:font-size="75\prcnt:ch"
4261 fo:font-weight="bold"
4262 style:font-size-asian="75\prcnt:ch"
4263 style:font-weight-asian="bold"
4264 style:font-size-complex="75\prcnt:ch"
4265 style:font-weight-complex="bold"/>
4266 </style:style>
4267 \Hnewline |<Heading 7 rtl|>}
4268 >>>
4269
4270 \<basic ooffice section styles\><<<
4271 \NewConfigure{Heading-8}{1}
4272 \Configure{Heading-8}{Heading-8}
4273 \NewConfigureOO{Heading-8}
4274 \ConfigureOO{Heading-8}{\Hnewline
4275 <style:style style:name="Heading-8"
4276 style:family="paragraph"
4277 style:parent-style-name="Heading"
4278 style:next-style-name="Text-body"
4279 style:class="text">\Hnewline
4280 <style:paragraph-properties fo:font-size="75\prcnt:ch"
4281 fo:font-weight="bold"
4282 style:font-size-asian="75\prcnt:ch"
4283 style:font-weight-asian="bold"
4284 style:font-size-complex="75\prcnt:ch"
4285 style:font-weight-complex="bold"/>
4286 </style:style>
4287 \Hnewline |<Heading 8 rtl|>}
4288 >>>
4289
4290
4291 \<basic ooffice section styles\><<<
4292 \NewConfigure{Heading-9}{1}
4293 \Configure{Heading-9}{Heading-9}
4294 \NewConfigureOO{Heading-9}
4295 \ConfigureOO{Heading-9}{\Hnewline
4296 <style:style style:name="Heading-9"
4297 style:family="paragraph"
4298 style:parent-style-name="Heading"
4299 style:next-style-name="Text-body"
4300 style:class="text">\Hnewline
4301 <style:paragraph-properties fo:font-size="75\prcnt:ch"
4302 fo:font-weight="bold"
4303 style:font-size-asian="75\prcnt:ch"
4304 style:font-weight-asian="bold"
4305 style:font-size-complex="75\prcnt:ch"
4306 style:font-weight-complex="bold"/>
4307 </style:style>
4308 \Hnewline |<Heading 9 rtl|>}
4309 >>>
4310
4311
4312 \<basic ooffice section styles\><<<
4313 \NewConfigure{Heading-10}{1}
4314 \Configure{Heading-10}{Heading-10}
4315 \NewConfigureOO{Heading-10}
4316 \ConfigureOO{Heading-10}{\Hnewline
4317 <style:style style:name="Heading-10"
4318 style:family="paragraph"
4319 style:parent-style-name="Heading"
4320 style:next-style-name="Text-body"
4321 style:class="text">\Hnewline
4322 <style:paragraph-properties fo:font-size="75\prcnt:ch"
4323 fo:font-weight="bold"
4324 style:font-size-asian="75\prcnt:ch"
4325 style:font-weight-asian="bold"
4326 style:font-size-complex="75\prcnt:ch"
4327 style:font-weight-complex="bold"/>
4328 </style:style>
4329 \Hnewline |<Heading 10 rtl|>}
4330 >>>
4331
4332
4333 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4334 \subsection{Scr}
4335 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4336
4337 \<configure ooffice scrbook\><<<
4338 \ConfigureMark{chapter}
4339 {\if@mainmatter \thechapter.~~\fi}
4340 >>>
4341
4342
4343 \<configure ooffice scrreprt\><<<
4344 \ConfigureMark{chapter}{\thechapter~~}
4345 >>>
4346
4347 \<scr ooffice chapters\><<<
4348 \Configure{chapter}
4349 {\IgnorePar\EndP \HCode{<!--start of chapter-->|<new page|>}}
4350 {\IgnorePar\EndP \HCode{<!--end of chapter-->}}
4351 {\HCode{<text:h text:style-name="\csname a:Heading-1\endcsname"
4352 \text:outlinelevel="1" ><text:span
4353 text:style-name="chapter">}\TitleMark\space
4354 \HCode{</text:span>}\IgnoreIndent}
4355 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4356 \Configure{likechapter}
4357 {\IgnorePar\EndP \HCode{<!--start of chapter*-->|<new page|>}}
4358 {\IgnorePar\EndP \HCode{<!--end of chapter*-->}}
4359 {\HCode{<text:h text:style-name="\csname a:Heading-1\endcsname"
4360 \text:outlinelevel="1" >}\IgnoreIndent}
4361 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4362 \Configure{addchap}
4363 {\IgnorePar\EndP \HCode{<!--start of addchap-->|<new page|>}}
4364 {\IgnorePar\EndP \HCode{<!--end of addchap-->}}
4365 {\HCode{<text:h text:style-name="\csname a:Heading-1\endcsname"
4366 \text:outlinelevel="1" >}\IgnoreIndent}
4367 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4368 >>>
4369
4370
4371 \<basic scr ooffice sections\><<<
4372 \ConfigureMark{section}
4373 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4374 \else \thesection\space\fi }
4375 \Configure{section}
4376 {\IgnorePar\EndP \HCode{<!--start of section-->}}
4377 {\IgnorePar\EndP \HCode{<!--end of section-->}}
4378 {\HCode{<text:h text:style-name="\csname a:Heading-2\endcsname"
4379 \text:outlinelevel="2" ><text:span
4380 text:style-name="section">}\TitleMark\space
4381 \HCode{</text:span>}\IgnoreIndent}
4382 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4383 >>>
4384
4385
4386
4387 \<basic scr ooffice sections\><<<
4388 \ConfigureMark{subsection}
4389 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4390 \else \thesubsection\space\fi }
4391 \Configure{subsection}
4392 {\IgnorePar\EndP \HCode{<!--start of subsection-->}}
4393 {\IgnorePar\EndP \HCode{<!--end of subsection-->}}
4394 {\HCode{<text:h text:style-name="\csname a:Heading-3\endcsname"
4395 \text:outlinelevel="3" ><text:span
4396 text:style-name="subsection" >}\TitleMark\space
4397 \HCode{</text:span>}\IgnoreIndent}
4398 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4399 >>>
4400
4401
4402 \<basic scr ooffice sections\><<<
4403 \Configure{likesection}
4404 {\IgnorePar\EndP \HCode{<!--start of section*-->}}
4405 {\IgnorePar\EndP \HCode{<!--end of section*-->}}
4406 {\HCode{<text:h text:style-name="\csname a:Heading-2\endcsname"
4407 \text:outlinelevel="2" >}\IgnoreIndent}
4408 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4409 \Configure{likesubsection}
4410 {\IgnorePar\EndP \HCode{<!--start of subsection*-->}}
4411 {\IgnorePar\EndP \HCode{<!--end of subsection*-->}}
4412 {\HCode{<text:h text:style-name="\csname a:Heading-3\endcsname"
4413 \text:outlinelevel="3" >}\IgnoreIndent}
4414 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4415 \Configure{likesubsubsection}
4416 {\IgnorePar\EndP \HCode{<!--start of subsubsection*-->}}
4417 {\IgnorePar\EndP \HCode{<!--end of subsubsection*-->}}
4418 {\HCode{<text:h text:style-name="\csname a:Heading-4\endcsname"
4419 \text:outlinelevel="4" >}\IgnoreIndent}
4420 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4421 >>>
4422
4423
4424
4425 \<basic scr ooffice sections\><<<
4426 \ConfigureMark{subsubsection}
4427 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4428 \else \@seccntformat{subsubsection}\fi }
4429 \Configure{subsubsection}
4430 {\IgnorePar\EndP \HCode{<!--start of subsubsection-->}}
4431 {\IgnorePar\EndP \HCode{<!--end of subsubsection-->}}
4432 {\HCode{<text:h
4433 text:style-name="\csname a:Heading-4|<cond rtl class|>\endcsname"
4434 \text:outlinelevel="4" ><text:span
4435 text:style-name="subsubsection" >}\TitleMark\space
4436 \HCode{</text:span>}\IgnoreIndent}
4437 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4438
4439
4440 % use the new mechanism for paragraph handling
4441 \:DefineParagraph{paragraph}{paragraph-h}
4442 \:DefineParagraph{likeparagraph}{paragraph-h}
4443 \:DefineParagraph{subparagraph}{subparagraph-h}
4444 \:DefineParagraph{likesubparagraph}{subparagraph-h}
4445
4446
4447 \:BoldStyle{paragraph-h}
4448 \:BoldStyle{subparagraph-h}
4449
4450 >>>
4451
4452
4453
4454 \<scrbook end units\><<<
4455 \Configure{endlikeparagraph}
4456 {paragraph,subsubsection,likesubsubsection,subsection,%
4457 likesubsection,section,%
4458 likesection,chapter,likechapter,addchap,appendix,part,likepart}
4459 \Configure{endsubparagraph}
4460 {likesubparagraph,likeparagraph,subsubsection,likesubsubsection,%
4461 subsection,likesubsection,section,%
4462 likesection,chapter,likechapter,addchap,appendix,part,likepart}
4463 \Configure{endlikesubparagraph}
4464 {subparagraph,likeparagraph,subsubsection,likesubsubsection,%
4465 subsection,likesubsection,section,%
4466 likesection,chapter,likechapter,addchap,appendix,part,likepart}
4467 \Configure{endsection}
4468 {likesection,chapter,likechapter,addchap,appendix,part,likepart}
4469 \Configure{endlikesection}
4470 {section,chapter,likechapter,addchap,appendix,part,likepart}
4471 \Configure{endsubsection}
4472 {likesubsection,section,likesection,chapter,%
4473 likechapter,addchap,appendix,part,likepart}
4474 \Configure{endlikesubsection}
4475 {subsection,section,likesection,chapter,%
4476 likechapter,addchap,appendix,part,likepart}
4477 \Configure{endsubsubsection}
4478 {likesubsubsection,subsection,likesubsection,section,%
4479 likesection,chapter,likechapter,addchap,appendix,part,likepart}
4480 \Configure{endlikesubsubsection}
4481 {subsubsection,subsection,likesubsection,section,%
4482 likesection,chapter,likechapter,addchap,appendix,part,likepart}
4483 \Configure{endparagraph}
4484 {likeparagraph,subsubsection,likesubsubsection,subsection,%
4485 likesubsection,section,%
4486 likesection,chapter,likechapter,addchap,appendix,part,likepart}
4487 >>>
4488
4489
4490 %%%%%%%%%%%%%
4491 \subsection{alphanum}
4492 %%%%%%%%%%%%%
4493
4494 \<configure ooffice alphanum\><<<
4495 \bgroup
4496 \let\ifx=\relax
4497 \let\:temp=\relax
4498 \let\:tempa=\expandafter
4499 \let\expandafter=\relax
4500 \let\:TableOfContents=\relax
4501 \let\else=\relax
4502 \let\if=\relax
4503 \let\fi=\relax
4504 \def\Auto:ent#1{\noexpand\Auto:ent{#1,toclvla,liketoclvla,toclvlb,%
4505 liketoclvlb,toclvlc,liketoclvlc,toclvld,liketoclvld,toclvle,%
4506 liketoclvle,toclvlf,liketoclvlf,toclvlg,liketoclvlg,toclvlh,%
4507 liketoclvlh,toclvli,liketoclvli,toclvlj,%
4508 liketoclvlj,toclvlk,liketoclvlk,toclvll,liketoclvll}}
4509 \edef\:TOC{\def\noexpand\:TOC{\:TOC}}
4510 \:tempa
4511 \egroup \:TOC
4512 >>>
4513
4514
4515 \<configure ooffice alphanum\><<<
4516 \ConfigureToc{chapter}
4517 {\HCode{<text:p text:style-name="P1" ><text:span
4518 text:style-name="toc-mark" >}}
4519 { \HCode{</text:span>}}
4520 {}
4521 {\HCode{</text:p>}}
4522 >>>
4523
4524 \<configure ooffice alphanum\><<<
4525 \def\:tempc#1#2#3#4{%
4526 \ConfigureMark{toclvl#1}
4527 {\HCode{<text:span
4528 text:style-name="toclvl#1" >}\csname thelvl#1\endcsname
4529 \HCode{</text:span><text:s/>}}%
4530 \Configure{toclvl#1}
4531 {}{}
4532 {\ifvmode \IgnorePar\fi \EndP\IgnorePar
4533 \HCode{<text:h
4534 text:style-name="\csname a:Heading-#4\endcsname"
4535 \text:outlinelevel="#4"
4536 >}\TitleMark\space\HtmlParOff}
4537 {\HCode{</text:h>}\HtmlParOn \ShowPar\IgnoreIndent \par}%
4538 \ConfigurToc{toclvl#1}
4539 {\HCode{<text:p text:style-name="P#4"><text:span
4540 text:style-name="toc-mark">}%
4541 |<alphanum toc spaces|>%
4542 \def\:temp{\J@INumberRoot{#2}{\tmp:cnt}}%
4543 \afterassignment\:temp \tmp:cnt}
4544 {#3\HCode{</text:span><text:s/>}}
4545 {}
4546 {\HCode{</text:p>}}%
4547 \ConfigureToc{liketoclvl#1}
4548 {\HCode{<text:p text:style-name="P#4" ><text:span
4549 text:style-name="toc-mark" >}%
4550 |<alphanum toc spaces|>%
4551 \def\:temp{\J@INumberRoot{#2}{\tmp:cnt}}%
4552 \afterassignment\:temp \tmp:cnt}
4553 {#3\HCode{</text:span><text:s/>}}
4554 {}
4555 {\HCode{</text:p>}}%
4556 }
4557 \:tempc a1{.}{3}
4558 \:tempc b2{.}{4}
4559 \:tempc c3{.}{5}
4560 \:tempc d4{)}{5}
4561 \:tempc e5{)}{5}
4562 \:tempc f6{)}{5}
4563 \:tempc g7{)}{5}
4564 \:tempc h8{)}{5}
4565 \:tempc i9{)}{5}
4566 \:tempc j{10}{)}{5}
4567 \:tempc k{11}{)}{5}
4568 \:tempc l{12}{)}{5}
4569 >>>
4570
4571 \<alphanum toc spaces\><<<
4572 \tmp:cnt=0 \loop \advance\tmp:cnt by 1
4573 \ifnum \tmp:cnt<#2 ~~\repeat
4574 >>>
4575
4576
4577 %%%%%%%%%%%%%
4578 \subsection{amsart}
4579 %%%%%%%%%%%%%
4580
4581
4582
4583
4584
4585
4586 \<basic ams ooffice sections\><<<
4587 \ConfigureMark{section}
4588 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4589 \else \@seccntformat{section}\fi }
4590 \Configure{section}
4591 {\IgnorePar\EndP \HCode{<!--start of section-->}}
4592 {\IgnorePar\EndP \HCode{<!--end of section-->}}
4593 {\HCode{<text:h
4594 text:style-name="\csname a:Heading-2|<cond rtl class|>\endcsname"
4595 \text:outlinelevel="2" ><text:span
4596 text:style-name="section" >}\TitleMark\space
4597 \HCode{</text:span>}\IgnoreIndent}
4598 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4599 >>>
4600
4601 \<basic ams ooffice sections\><<<
4602 \ConfigureMark{subsection}
4603 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4604 \else \@seccntformat{subsection}\fi }
4605 \Configure{subsection}
4606 {\IgnorePar\EndP \HCode{<!--start of subsection-->}}
4607 {\IgnorePar\EndP \HCode{<!--end of subsection-->}}
4608 {\HCode{<text:h
4609 text:style-name="\csname a:Heading-3|<cond rtl class|>\endcsname"
4610 \text:outlinelevel="3" ><text:span
4611 text:style-name="subsection" >}\TitleMark\space
4612 \HCode{</text:span>}\IgnoreIndent}
4613 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4614 >>>
4615
4616
4617 \<basic ams ooffice sections\><<<
4618 \ConfigureMark{subsubsection}
4619 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4620 \else \@seccntformat{subsubsection}\fi }
4621 \Configure{subsubsection}
4622 {\IgnorePar\EndP \HCode{<!--start of subsubsection-->}}
4623 {\IgnorePar\EndP \HCode{<!--end of subsubsection-->}}
4624 {\HCode{<text:h
4625 text:style-name="\csname a:Heading-4|<cond rtl class|>\endcsname"
4626 \text:outlinelevel="4" ><text:span
4627 text:style-name="subsubsection" >}\TitleMark\space
4628 \HCode{</text:span>}\IgnoreIndent}
4629 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4630 >>>
4631
4632 \<basic ams ooffice sections\><<<
4633 \Configure{paragraph}
4634 {\IgnorePar\EndP \HCode{<!--start of paragraph-->}}
4635 {\IgnorePar\EndP \HCode{<!--end of paragraph-->}}
4636 {\HCode{<text:h
4637 text:style-name="\csname a:Heading-5|<cond rtl class|>\endcsname"
4638 \text:outlinelevel="5" >}}
4639 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4640 \Configure{subparagraph}
4641 {\IgnorePar\EndP \HCode{<!--start of subparagraph-->}}
4642 {\IgnorePar\EndP \HCode{<!--end of subparagraph-->}}
4643 {\HCode{<text:h
4644 text:style-name="\csname a:Heading-6|<cond rtl class|>\endcsname"
4645 \text:outlinelevel="6" >}}
4646 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4647 >>>
4648
4649 \<jurabook sections\><<<
4650 \ConfigureMark{subthreesection}
4651 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4652 \else \@seccntformat{subthreesection}\fi }
4653 \Configure{subthreesection}
4654 {\IgnorePar\EndP \HCode{<!--start of subthreesection-->}}
4655 {\IgnorePar\EndP \HCode{<!--end of subthreesection-->}}
4656 {\HCode{<text:h
4657 text:style-name="\csname a:Heading-4|<cond rtl class|>\endcsname"
4658 \text:outlinelevel="4" ><text:span
4659 text:style-name="subthreesection" >}\TitleMark\space
4660 \HCode{</text:span>}\IgnoreIndent}
4661 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4662 \ConfigureMark{subfoursection}
4663 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4664 \else \@seccntformat{subfoursection}\fi }
4665 \Configure{subfoursection}
4666 {\IgnorePar\EndP \HCode{<!--start of subfoursection-->}}
4667 {\IgnorePar\EndP \HCode{<!--end of subfoursection-->}}
4668 {\HCode{<text:h
4669 text:style-name="\csname a:Heading-4|<cond rtl class|>\endcsname"
4670 \text:outlinelevel="4" ><text:span
4671 text:style-name="subfoursection" >}\TitleMark\space
4672 \HCode{</text:span>}\IgnoreIndent}
4673 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4674 \ConfigureMark{subfivesection}
4675 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4676 \else \@seccntformat{subfivesection}\fi }
4677 \Configure{subfivesection}
4678 {\IgnorePar\EndP \HCode{<!--start of subfivesection-->}}
4679 {\IgnorePar\EndP \HCode{<!--end of subfivesection-->}}
4680 {\HCode{<text:h
4681 text:style-name="\csname a:Heading-4|<cond rtl class|>\endcsname"
4682 \text:outlinelevel="4" ><text:span
4683 text:style-name="subfivesection" >}\TitleMark\space
4684 \HCode{</text:span>}\IgnoreIndent}
4685 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4686 \ConfigureMark{subsixsection}
4687 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4688 \else \@seccntformat{subsixsection}\fi }
4689 \Configure{subsixsection}
4690 {\IgnorePar\EndP \HCode{<!--start of subsixsection-->}}
4691 {\IgnorePar\EndP \HCode{<!--end of subsixsection-->}}
4692 {\HCode{<text:h
4693 text:style-name="\csname a:Heading-4|<cond rtl class|>\endcsname"
4694 \text:outlinelevel="4" ><text:span
4695 text:style-name="subsixsection" >}\TitleMark\space
4696 \HCode{</text:span>}\IgnoreIndent}
4697 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4698 \ConfigureMark{subsevensection}
4699 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4700 \else \@seccntformat{subsevensection}\fi }
4701 \Configure{subsevensection}
4702 {\IgnorePar\EndP \HCode{<!--start of subsevensection-->}}
4703 {\IgnorePar\EndP \HCode{<!--end of subsevensection-->}}
4704 {\HCode{<text:h
4705 text:style-name="\csname a:Heading-4|<cond rtl class|>\endcsname"
4706 \text:outlinelevel="4" ><text:span
4707 text:style-name="subsevensection" >}\TitleMark\space
4708 \HCode{</text:span>}\IgnoreIndent}
4709 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4710 \ConfigureMark{subeightsection}
4711 {\ifnum \c:secnumdepth>\c@secnumdepth \expandafter\:gobble
4712 \else \@seccntformat{subeightsection}\fi }
4713 \Configure{subeightsection}
4714 {\IgnorePar\EndP \HCode{<!--start of subeightsection-->}}
4715 {\IgnorePar\EndP \HCode{<!--end of subeightsection-->}}
4716 {\HCode{<text:h
4717 text:style-name="\csname a:Heading-4|<cond rtl class|>\endcsname"
4718 \text:outlinelevel="4" ><text:span
4719 text:style-name="subeightsection" >}\TitleMark\space
4720 \HCode{</text:span>}\IgnoreIndent}
4721 {\HCode{</text:h>\Hnewline}\par\ShowPar}
4722 >>>
4723
4724
4725
4726
4727 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4728 \section{Tables Of Contents}
4729 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4730
4731
4732
4733
4734 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4735 \subsection{Entries}
4736 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4737
4738
4739 \<non chap tocs\><<<
4740 \ConfigureToc{part}
4741 {\HCode{<text:p text:style-name="P1" ><text:span
4742 text:style-name="toc-mark" >}}
4743 { \HCode{</text:span>}}
4744 {}
4745 {\HCode{</text:p>}}
4746 \ConfigureToc{likepart}
4747 {\HCode{<text:p text:style-name="P1" ><text:span
4748 text:style-name="toc-mark" >}}
4749 { \HCode{</text:span>}}
4750 {}
4751 {\HCode{</text:p>}}
4752 \ConfigureToc{section}
4753 {\HCode{<text:p text:style-name="P1" ><text:span
4754 text:style-name="toc-mark" >}}
4755 { \HCode{</text:span>}}
4756 {}
4757 {\HCode{</text:p>}}
4758 \ConfigureToc{likesection}
4759 {\HCode{<text:p text:style-name="P1" ><text:span
4760 text:style-name="toc-mark" >}}
4761 { \HCode{</text:span>}}
4762 {}
4763 {\HCode{</text:p>}}
4764 \ConfigureToc{subsection}
4765 {\HCode{<text:p text:style-name="P2" ><text:span
4766 text:style-name="toc-mark" >}}
4767 { \HCode{</text:span>}}
4768 {}
4769 {\HCode{</text:p>}}
4770 \ConfigureToc{likesubsection}
4771 {\HCode{<text:p text:style-name="P2" ><text:span
4772 text:style-name="toc-mark" >}}
4773 { \HCode{</text:span>}}
4774 {}
4775 {\HCode{</text:p>}}
4776 \ConfigureToc{subsubsection}
4777 {\HCode{<text:p text:style-name="P3" ><text:span
4778 text:style-name="toc-mark" >}}
4779 { \HCode{</text:span>}}
4780 {}
4781 {\HCode{</text:p>}}
4782 \ConfigureToc{likesubsubsection}
4783 {\HCode{<text:p text:style-name="P3" ><text:span
4784 text:style-name="toc-mark" >}}
4785 { \HCode{</text:span>}}
4786 {}
4787 {\HCode{</text:p>}}
4788 >>>
4789
4790
4791
4792
4793 \<chap tocs\><<<
4794 \ConfigureToc{chapter}
4795 {\HCode{<text:p text:style-name="P1" ><text:span
4796 text:style-name="toc-mark" >}%
4797 \ifx \chaptername\:UnDef\else \chaptername~\fi}
4798 { \HCode{</text:span>}}
4799 {}
4800 {\HCode{</text:p>}}
4801 \ConfigureToc{likechapter}
4802 {\HCode{<text:p text:style-name="P1" ><text:span
4803 text:style-name="toc-mark" >}}
4804 { \HCode{</text:span>}}
4805 {}
4806 {\HCode{</text:p>}}
4807 \ConfigureToc{appendix}
4808 {\HCode{<text:p text:style-name="P1" ><text:span
4809 text:style-name="toc-mark" >}}
4810 { \HCode{</text:span>}}
4811 {}
4812 {\HCode{</text:p>}}
4813 >>>
4814
4815
4816
4817 \<chap tocs\><<<
4818 \ConfigureToc{part}
4819 {\HCode{<text:p text:style-name="P1" ><text:span
4820 text:style-name="toc-mark" >}}
4821 { \HCode{</text:span>}}
4822 {}
4823 {\HCode{</text:p>}}
4824 \ConfigureToc{likepart}
4825 {\HCode{<text:p text:style-name="P1" ><text:span
4826 text:style-name="toc-mark" >}}
4827 { \HCode{</text:span>}}
4828 {}
4829 {\HCode{</text:p>}}
4830 \ConfigureToc{section}
4831 {\HCode{<text:p text:style-name="P2" ><text:span
4832 text:style-name="toc-mark" >}}
4833 { \HCode{</text:span>}}
4834 {}
4835 {\HCode{</text:p>}}
4836 \ConfigureToc{likesection}
4837 {\HCode{<text:p text:style-name="P2"><text:span
4838 text:style-name="toc-mark" >}}
4839 { \HCode{</text:span>}}
4840 {}
4841 {\HCode{</text:p>}}
4842 \ConfigureToc{subsection}
4843 {\HCode{<text:p text:style-name="P3" ><text:span
4844 text:style-name="toc-mark" >}}
4845 { \HCode{</text:span>}}
4846 {}
4847 {\HCode{</text:p>}}
4848 \ConfigureToc{likesubsection}
4849 {\HCode{<text:p text:style-name="P3" ><text:span
4850 text:style-name="toc-mark" >}}
4851 { \HCode{</text:span>}}
4852 {}
4853 {\HCode{</text:p>}}
4854 \ConfigureToc{subsubsection}
4855 {\HCode{<text:p text:style-name="P4" ><text:span
4856 text:style-name="toc-mark" >}}
4857 { \HCode{</text:span>}}
4858 {}
4859 {\HCode{</text:p>}}
4860 \ConfigureToc{likesubsubsection}
4861 {\HCode{<text:p text:style-name="P4" ><text:span
4862 text:style-name="toc-mark" >}}
4863 { \HCode{</text:span>}}
4864 {}
4865 {\HCode{</text:p>}}
4866 >>>
4867
4868 \verb+<text:tab-stop/>+
4869
4870
4871 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4872 \subsection{Content.xml Styles}
4873 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4874
4875 Why we need the following in content.xml instead of styles.xml
4876
4877 \<automatic style 1\><<<
4878 \Hnewline
4879 <style:style style:name="P1"
4880 style:family="paragraph"
4881 style:parent-style-name="Contents-1">\Hnewline
4882 <style:paragraph-properties >\Hnewline
4883 <style:tab-stops>\Hnewline
4884 <style:tab-stop style:position="16.999cm"
4885 style:type="right"
4886 style:leader-char="."/>\Hnewline
4887 </style:tab-stops>\Hnewline
4888 </style:paragraph-properties >\Hnewline
4889 </style:style>
4890 \Hnewline
4891 >>>
4892
4893
4894 \<automatic style 2\><<<
4895 \Hnewline
4896 <style:style style:name="P2"
4897 style:family="paragraph"
4898 style:parent-style-name="Contents-2">\Hnewline
4899 <style:paragraph-properties >\Hnewline
4900 <style:tab-stops>\Hnewline
4901 <style:tab-stop style:position="16.999cm"
4902 style:type="right"
4903 style:leader-char="."/>\Hnewline
4904 </style:tab-stops>\Hnewline
4905 </style:paragraph-properties >\Hnewline
4906 </style:style>
4907 \Hnewline
4908 >>>
4909
4910
4911 \<automatic style 3\><<<
4912 \Hnewline
4913 <style:style style:name="P3"
4914 style:family="paragraph"
4915 style:parent-style-name="Contents-3">\Hnewline
4916 <style:paragraph-properties >\Hnewline
4917 <style:tab-stops>\Hnewline
4918 <style:tab-stop style:position="16.999cm"
4919 style:type="right"
4920 style:leader-char="."/>\Hnewline
4921 </style:tab-stops>\Hnewline
4922 </style:paragraph-properties >\Hnewline
4923 </style:style>\Hnewline
4924 \Hnewline
4925 >>>
4926
4927
4928 \<automatic style 4\><<<
4929 \Hnewline
4930 <style:style style:name="P4"
4931 style:family="paragraph"
4932 style:parent-style-name="Contents-4">\Hnewline
4933 <style:paragraph-properties >\Hnewline
4934 <style:tab-stops>\Hnewline
4935 <style:tab-stop style:position="16.999cm"
4936 style:type="right"
4937 style:leader-char="."/>\Hnewline
4938 </style:tab-stops>\Hnewline
4939 </style:paragraph-properties >\Hnewline
4940 </style:style>
4941 \Hnewline
4942 >>>
4943
4944
4945 \<automatic style 5\><<<
4946 \Hnewline
4947 <style:style style:name="P5"
4948 style:family="paragraph"
4949 style:parent-style-name="Contents-5">\Hnewline
4950 <style:paragraph-properties >\Hnewline
4951 <style:tab-stops>\Hnewline
4952 <style:tab-stop style:position="16.999cm"
4953 style:type="right"
4954 style:leader-char="."/>\Hnewline
4955 </style:tab-stops>\Hnewline
4956 </style:paragraph-properties >\Hnewline
4957 </style:style> \Hnewline
4958 >>>
4959
4960
4961 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4962 \subsection{Style.xml Styles}
4963 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4964
4965
4966
4967 \<content style 1\><<<
4968 \NewConfigureOO{Contents 1}
4969 \ConfigureOO{Contents 1}{\Hnewline
4970 <style:style style:name="Contents-1"
4971 style:family="paragraph"
4972 style:parent-style-name="Index"
4973 style:class="index">\Hnewline
4974 <style:paragraph-properties fo:margin-left="0cm"
4975 fo:margin-right="0cm"
4976 fo:margin-top="0cm"
4977 fo:margin-bottom="0.101cm"
4978 fo:font-weight="bold"
4979 fo:text-indent="0cm"
4980 style:auto-text-indent="false">\Hnewline
4981 <style:tab-stops>\Hnewline
4982 <style:tab-stop style:position="16.999cm"
4983 style:type="right"
4984 style:leader-char="."/>\Hnewline
4985 </style:tab-stops>\Hnewline
4986 </style:paragraph-properties >\Hnewline
4987 </style:style>\Hnewline
4988 }
4989 >>>
4990
4991
4992
4993
4994
4995
4996
4997 \<content style 2\><<<
4998 \NewConfigureOO{Contents 2}
4999 \ConfigureOO{Contents 2}{\Hnewline
5000 <style:style style:name="Contents-2"
5001 style:family="paragraph"
5002 style:parent-style-name="Index"
5003 style:class="index">
5004 <style:paragraph-properties fo:margin-left="0.499cm"
5005 fo:margin-right="0cm"
5006 fo:text-indent="0cm"
5007 style:auto-text-indent="false">
5008 <style:tab-stops>
5009 <style:tab-stop style:position="16.499cm"
5010 style:type="right"
5011 style:leader-char="."/>
5012 </style:tab-stops>
5013 </style:paragraph-properties >
5014 </style:style>
5015 \Hnewline}
5016 >>>
5017
5018
5019
5020 \<content style 3\><<<
5021 \NewConfigureOO{Contents 3}
5022 \ConfigureOO{Contents 3}{\Hnewline
5023 <style:style style:name="Contents-3"
5024 style:family="paragraph"
5025 style:parent-style-name="Index"
5026 style:class="index">
5027 <style:paragraph-properties fo:margin-left="0.998cm"
5028 fo:margin-right="0cm"
5029 fo:text-indent="0cm"
5030 style:auto-text-indent="false">
5031 <style:tab-stops>
5032 <style:tab-stop style:position="16cm"
5033 style:type="right"
5034 style:leader-char="."/>
5035 </style:tab-stops>
5036 </style:paragraph-properties >
5037 </style:style>
5038 \Hnewline}
5039 >>>
5040
5041
5042
5043 \<content style 4\><<<
5044 \NewConfigureOO{Contents 4}
5045 \ConfigureOO{Contents 4}{\Hnewline
5046 <style:style style:name="Contents-4"
5047 style:family="paragraph"
5048 style:parent-style-name="Index"
5049 style:class="index">\Hnewline
5050 <style:paragraph-properties fo:margin-left="1.498cm"
5051 fo:margin-right="0cm"
5052 fo:text-indent="0cm"
5053 style:auto-text-indent="false">\Hnewline
5054 <style:tab-stops>
5055 <style:tab-stop style:position="15.501cm"
5056 style:type="right"
5057 style:leader-char="."/>\Hnewline
5058 </style:tab-stops>\Hnewline
5059 </style:paragraph-properties >\Hnewline
5060 </style:style>
5061 \Hnewline}
5062 >>>
5063
5064
5065
5066 \<content style 5\><<<
5067 \NewConfigureOO{Contents 5}
5068 \ConfigureOO{Contents 5}{\Hnewline
5069 <style:style style:name="Contents-5"
5070 style:family="paragraph"
5071 style:parent-style-name="Index"
5072 style:class="index">\Hnewline
5073 <style:paragraph-properties fo:margin-left="1.997cm"
5074 fo:margin-right="0cm"
5075 fo:text-indent="0cm"
5076 style:auto-text-indent="false">\Hnewline
5077 <style:tab-stops>\Hnewline
5078 <style:tab-stop style:position="15.002cm"
5079 style:type="right"
5080 style:leader-char="."/>\Hnewline
5081 </style:tab-stops>\Hnewline
5082 </style:paragraph-properties >\Hnewline
5083 </style:style>
5084 \Hnewline}
5085 >>>
5086
5087 %%%%%%%%%%%%%
5088 \subsection{Toc Style Outline}
5089 %%%%%%%%%%%%%
5090
5091
5092
5093
5094
5095
5096 \<oo2 tex4ht\><<<
5097 \def\index:entry:chapter{text:index-entry-chapter}
5098 >>>
5099
5100
5101
5102 \<toc template 1\><<<
5103 <text:table-of-content-entry-template
5104 text:outline-level="1"
5105 text:style-name="Contents-1" >\Hnewline
5106 <\index:entry:chapter />\Hnewline
5107 <text:index-entry-text/>\Hnewline
5108 <text:index-entry-tab-stop
5109 style:type="right"
5110 style:leader-char="." />\Hnewline
5111 <text:index-entry-page-number/>\Hnewline
5112 </text:table-of-content-entry-template>\Hnewline
5113 >>>
5114
5115 \<toc template 2\><<<
5116 <text:table-of-content-entry-template
5117 text:outline-level="2"
5118 text:style-name="Contents-2" >\Hnewline
5119 <\index:entry:chapter />\Hnewline
5120 <text:index-entry-text/>\Hnewline
5121 <text:index-entry-tab-stop
5122 style:type="right"
5123 style:leader-char="."/>\Hnewline
5124 <text:index-entry-page-number/>\Hnewline
5125 </text:table-of-content-entry-template>\Hnewline
5126 >>>
5127
5128
5129 \<toc template 3\><<<
5130 <text:table-of-content-entry-template
5131 text:outline-level="3"
5132 text:style-name="Contents-3" >\Hnewline
5133 <\index:entry:chapter />\Hnewline
5134 <text:index-entry-text/>\Hnewline
5135 <text:index-entry-tab-stop
5136 style:type="right"
5137 style:leader-char="."/>\Hnewline
5138 <text:index-entry-page-number/>\Hnewline
5139 </text:table-of-content-entry-template>\Hnewline
5140 >>>
5141
5142
5143 \<toc template 4\><<<
5144 <text:table-of-content-entry-template
5145 text:outline-level="4"
5146 text:style-name="Contents-4" >\Hnewline
5147 <\index:entry:chapter />\Hnewline
5148 <text:index-entry-text/>\Hnewline
5149 <text:index-entry-tab-stop
5150 style:type="right"
5151 style:leader-char="."/>\Hnewline
5152 <text:index-entry-page-number/>\Hnewline
5153 </text:table-of-content-entry-template>\Hnewline
5154 >>>
5155
5156 \<toc template 5\><<<
5157 <text:table-of-content-entry-template
5158 text:outline-level="5"
5159 text:style-name="Contents-5" >\Hnewline
5160 <\index:entry:chapter />\Hnewline
5161 <text:index-entry-text/>\Hnewline
5162 <text:index-entry-tab-stop
5163 style:type="right"
5164 style:leader-char="."/>\Hnewline
5165 <text:index-entry-page-number/>\Hnewline
5166 </text:table-of-content-entry-template>\Hnewline
5167 >>>
5168
5169 \<toc template 6\><<<
5170 <text:table-of-content-entry-template
5171 text:outline-level="6"
5172 text:style-name="Contents-6" >\Hnewline
5173 <\index:entry:chapter />\Hnewline
5174 <text:index-entry-text/>\Hnewline
5175 <text:index-entry-tab-stop
5176 style:type="right"
5177 style:leader-char="."/>\Hnewline
5178 <text:index-entry-page-number/>\Hnewline
5179 </text:table-of-content-entry-template>\Hnewline
5180 >>>
5181
5182 \<toc template 7\><<<
5183 <text:table-of-content-entry-template
5184 text:outline-level="7"
5185 text:style-name="Contents-7" >\Hnewline
5186 <\index:entry:chapter />\Hnewline
5187 <text:index-entry-text/>\Hnewline
5188 <text:index-entry-tab-stop
5189 style:type="right"
5190 style:leader-char="."/>\Hnewline
5191 <text:index-entry-page-number/>\Hnewline
5192 </text:table-of-content-entry-template>\Hnewline
5193 >>>
5194
5195 \<toc template 8\><<<
5196 <text:table-of-content-entry-template
5197 text:outline-level="8"
5198 text:style-name="Contents-8" >\Hnewline
5199 <\index:entry:chapter />\Hnewline
5200 <text:index-entry-text/>\Hnewline
5201 <text:index-entry-tab-stop
5202 style:type="right"
5203 style:leader-char="."/>\Hnewline
5204 <text:index-entry-page-number/>\Hnewline
5205 </text:table-of-content-entry-template>\Hnewline
5206 >>>
5207
5208 \<toc template 9\><<<
5209 <text:table-of-content-entry-template
5210 text:outline-level="9"
5211 text:style-name="Contents-9" >\Hnewline
5212 <\index:entry:chapter />\Hnewline
5213 <text:index-entry-text/>\Hnewline
5214 <text:index-entry-tab-stop
5215 style:type="right"
5216 style:leader-char="."/>\Hnewline
5217 <text:index-entry-page-number/>\Hnewline
5218 </text:table-of-content-entry-template>\Hnewline
5219 >>>
5220
5221 \<toc template 10\><<<
5222 <text:table-of-content-entry-template
5223 text:outline-level="10"
5224 text:style-name="Contents-10" >\Hnewline
5225 <\index:entry:chapter />\Hnewline
5226 <text:index-entry-text/>\Hnewline
5227 <text:index-entry-tab-stop
5228 style:type="right"
5229 style:leader-char="."/>\Hnewline
5230 <text:index-entry-page-number/>\Hnewline
5231 </text:table-of-content-entry-template>\Hnewline
5232 >>>
5233
5234
5235
5236 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5237 \subsection{SCR Entries}
5238 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5239
5240
5241 \<scr chap tocs\><<<
5242 \ConfigureToc{chapter}
5243 {\HCode{<text:p text:style-name="chapterToc" ><text:span
5244 text:style-name="toc-mark" >}}
5245 { \HCode{</text:span>}}
5246 {}
5247 {\HCode{</text:p>}}
5248 \ConfigureToc{addchap}
5249 {}
5250 {\HCode{<text:p text:style-name="addchapToc" >}}
5251 {}
5252 {\HCode{</text:p>}}
5253 >>>
5254
5255
5256
5257
5258 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5259 \subsection{Links}
5260 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5261
5262 \<configure ooffice tex4ht\><<<
5263 \:CheckOption{TocLink}\if:Option
5264 \Configure{TocLink}{\Link{#2}{#3}#4\ifvmode\IgnorePar\fi\EndLink}
5265 \else
5266 \Log:Note{to request links from the tables of contents,
5267 use the command line option from `TocLink'}
5268 \Configure{TocLink}{\Link{#2}{#3}\EndLink#4\ifvmode\IgnorePar\fi}
5269 \fi
5270 \Configure{toTocLink}{\Link}{\EndLink}
5271 >>>
5272
5273 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5274 \subsection{Envelop}
5275 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5276
5277 \<configure ooffice latex\><<<
5278 \Configure{tableofcontents}
5279 {\IgnorePar\EndP\HCode{|<start toc|>}\IgnorePar}
5280 {}
5281 {\IgnorePar\EndP\HCode{|<end toc|>}\ShowPar}
5282 {\HCode{\Hnewline}} {}
5283 >>>
5284
5285 \<start toc\><<<
5286 <text:table-of-content
5287 text:name="toc"
5288 text:style-name="Sect1"
5289 text:protected="true" >\Hnewline
5290 <text:table-of-content-source
5291 text:outline-level="|<outline level|>" >\Hnewline
5292 |<toc outline|>%
5293 </text:table-of-content-source>\Hnewline
5294 <text:index-body>\Hnewline
5295 \ifx\contentsname\empty \else
5296 \ifx\contentsname\:UnDef \else
5297 <text:index-title text:style-name="Sect2" text:name="contents"
5298 >
5299 <text:p text:style-name="Contents-Heading"
5300 >\contentsname</text:p>
5301 </text:index-title>
5302 \fi \fi
5303 >>>
5304
5305 \<configure ooffice latex\><<<
5306 \NewConfigureOO{Sect1}
5307 \ConfigureOO{Sect1}{\Hnewline
5308 <style:style style:name="Sect1"
5309 style:family="section">
5310 <\style:sectionproperties>
5311 <style:columns fo:column-count="1"
5312 fo:column-gap="0cm">
5313 <style:column fo:margin-top="0.5cm"
5314 fo:margin-left="0cm"
5315 fo:margin-right="0cm"
5316 />
5317 </style:columns>
5318 </\style:sectionproperties>
5319 </style:style>
5320 \Hnewline }
5321 >>>
5322
5323 \<configure ooffice latex\><<<
5324 \NewConfigureOO{Sect2}
5325 \ConfigureOO{Sect2}{\Hnewline
5326 <style:style style:name="Sect2"
5327 style:family="section">
5328 <\style:sectionproperties>
5329 <style:columns fo:column-count="0" fo:column-gap="0cm"/>
5330 </\style:sectionproperties>
5331 </style:style>
5332 \Hnewline }
5333 >>>
5334
5335 \<configure ooffice latex\><<<
5336 \NewConfigureOO{Contents Heading}
5337 \ConfigureOO{Contents Heading}{\Hnewline
5338 <style:style style:name="Contents-Heading"
5339 style:family="paragraph"
5340 style:parent-style-name="Heading"
5341 style:class="index">
5342 <style:paragraph-properties
5343 fo:margin-top="0.5cm"
5344 fo:margin-bottom="0.2cm"
5345 fo:margin-left="0cm"
5346 fo:margin-right="0cm"
5347 fo:font-size="16pt"
5348 fo:font-weight="bold"
5349 style:font-size-asian="16pt"
5350 style:font-weight-asian="bold"
5351 style:font-size-complex="16pt"
5352 style:font-weight-complex="bold"
5353 fo:text-indent="0cm"
5354 style:auto-text-indent="false"
5355 text:number-lines="false"
5356 text:line-number="0"
5357 />
5358 </style:style>
5359 \Hnewline }
5360 >>>
5361
5362 \<configure ooffice article\><<<
5363 \def\tableofcontents{\:tableofcontents}
5364 >>>
5365
5366 \<configure ooffice book\><<<
5367 \def\tableofcontents{\:tableofcontents}
5368 >>>
5369
5370
5371 \<configure ooffice report\><<<
5372 \def\tableofcontents{\:tableofcontents}
5373 >>>
5374
5375
5376 \<configure ooffice amsart\><<<
5377 \def\tableofcontents{\:tableofcontents}
5378 >>>
5379
5380 \<configure ooffice amsproc\><<<
5381 \def\tableofcontents{\:tableofcontents}
5382 >>>
5383
5384 \<configure ooffice nwart\><<<
5385 \def\tableofcontents{\:tableofcontents}
5386 >>>
5387
5388 \<configure ooffice nwrep\><<<
5389 \def\tableofcontents{\:tableofcontents}
5390 >>>
5391
5392 \<configure ooffice nwbk\><<<
5393 \def\tableofcontents{\:tableofcontents}
5394 >>>
5395
5396
5397
5398
5399 \<outline level\><<<
5400 6>>>
5401
5402
5403 \<end toc\><<<
5404 </text:index-body>\Hnewline
5405 </text:table-of-content>%
5406 \Hnewline
5407 >>>
5408
5409
5410
5411 \<toc outline\><<<
5412 <text:index-title-template
5413 text:style-name="Contents-Heading" >\contentsname
5414 </text:index-title-template>\Hnewline
5415 |<toc template 1|>%
5416 |<toc template 2|>%
5417 |<toc template 3|>%
5418 |<toc template 4|>%
5419 |<toc template 5|>%
5420 |<toc template 6|>%
5421 |<toc template 7|>%
5422 |<toc template 8|>%
5423 |<toc template 9|>%
5424 |<toc template 10|>%
5425 >>>
5426
5427
5428 \<automatic styles\><<<
5429 |<automatic style 1|>%
5430 |<automatic style 2|>%
5431 |<automatic style 3|>%
5432 |<automatic style 4|>%
5433 |<automatic style 5|>%
5434 |<automatic style 6|>%
5435 |<automatic style 7|>%
5436 |<automatic style 8|>%
5437 >>>
5438
5439 \<content styles\><<<
5440 |<content style 1|>%
5441 |<content style 2|>%
5442 |<content style 3|>%
5443 |<content style 4|>%
5444 |<content style 5|>%
5445 |<content style 6|>%
5446 |<content style 7|>%
5447 |<content style 8|>%
5448 >>>
5449
5450 \<jurabook tocs\><<<
5451 \ConfigureToc{subthreesection}
5452 {\HCode{<text:p text:style-name="P3" ><text:span
5453 text:style-name="toc-mark" >}}
5454 { \HCode{</text:span>}}
5455 {}
5456 {\HCode{</text:p>}}
5457
5458 \ConfigureToc{subfoursection}
5459 {\HCode{<text:p text:style-name="P3" ><text:span
5460 text:style-name="toc-mark" >}}
5461 { \HCode{</text:span>}}
5462 {}
5463 {\HCode{</text:p>}}
5464 \ConfigureToc{subfivesection}
5465 {\HCode{<text:p text:style-name="P3" ><text:span
5466 text:style-name="toc-mark" >}}
5467 { \HCode{</text:span>}}
5468 {}
5469 {\HCode{</text:p>}}
5470 \ConfigureToc{subsixsection}
5471 {\HCode{<text:p text:style-name="P3" ><text:span
5472 text:style-name="toc-mark" >}}
5473 { \HCode{</text:span>}}
5474 {}
5475 {\HCode{</text:p>}}
5476 \ConfigureToc{subsevensection}
5477 {\HCode{<text:p text:style-name="P3" ><text:span
5478 text:style-name="toc-mark" >}}
5479 { \HCode{</text:span>}}
5480 {}
5481 {\HCode{</text:p>}}
5482 \ConfigureToc{subeightsection}
5483 {\HCode{<text:p text:style-name="P3" ><text:span
5484 text:style-name="toc-mark" >}}
5485 { \HCode{</text:span>}}
5486 {}
5487 {\HCode{</text:p>}}
5488 >>>
5489
5490
5491 %%%%%%%%%%%%%
5492 \subsection{Tables of Figures}
5493 %%%%%%%%%%%%%
5494
5495
5496 \<config lists of figures and tables\><<<
5497 \Configure{listoffigures}
5498 {\let\contentsname\listfigurename \let\listfigurename\empty}
5499 {}
5500 \Configure{listoftables}
5501 {\let\contentsname\listtablename \let\listtablename\empty}
5502 {}
5503 \ConfigureToc{lof}
5504 {\HCode{<text:p><text:span text:style-name="toc-mark"
5505 >}}{\ }{}%
5506 {\HCode{</text:span></text:p>}}
5507 \ConfigureToc{lot}
5508 {\HCode{<text:p><text:span text:style-name="toc-mark"
5509 >}}{\ }{}%
5510 {\HCode{</text:span></text:p>}}
5511 >>>
5512
5513
5514
5515 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5516 \section{Tabular}
5517 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5518
5519
5520 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5521 \subsection{Examples}
5522 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5523
5524
5525 General Format:
5526
5527 \begin{verbatim}
5528 <table:table table:name="..." table:style-name="tbl">
5529 <table:table-column table:style-name="..."/>... <table:table-column/>
5530 <table:table-row table:name="...">
5531 <table:table-cell> <text:p>...</text:p> </table:table-cell>
5532 ....
5533 </table:table-row>
5534 .....
5535 </table:table>
5536 \end{verbatim}
5537
5538 May include subtables
5539
5540 \begin{verbatim}
5541 <table:sub-table>
5542 .......
5543 </table:sub-table>
5544 \end{verbatim}
5545
5546
5547
5548 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5549 \subsection{The External Envelope}
5550 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5551
5552 \<configure ooffice latex\><<<
5553 |<latex tabular|>
5554 >>>
5555
5556 \<latex tabular\><<<
5557 \ConfigureEnv{tabular}
5558 {|<configure tabular noalign|>%
5559 \IgnorePar|<inline comment|>\EndP
5560 |<save cols info|>%
5561 \ifnum \BegEnd:D>0
5562 |<boxed env|>%
5563 \fi
5564 \gHAdvance\BegEnd:D by 1
5565 \bgroup |<Text-Body HtmlPar|>%
5566 }
5567 {\egroup
5568 \gHAdvance\BegEnd:D by -1
5569 \ifnum \BegEnd:D>0
5570 |<end boxed env|>%
5571 \fi
5572 |<recall cols info|>\ShowPar
5573 |<configure clear noalign|>%
5574 |<try env inline par|>%
5575 }{}{}
5576 >>>
5577
5578
5579 \<configure ooffice tabularx\><<<
5580 \ConfigureEnv{tabularx}
5581 {|<configure tabular noalign|>%
5582 \IgnorePar|<inline comment|>\EndP
5583 |<save cols info|>%
5584 }
5585 {|<recall cols info|>\ShowPar
5586 |<configure clear noalign|>%
5587 |<try env inline par|>%
5588 }{}{}
5589 >>>
5590
5591
5592
5593
5594
5595 \<latex tabular\><<<
5596 \Configure{tabular}
5597 {\ifvmode \IgnorePar\fi \EndP \halignTB{tabular}%
5598 |<list the grouping of columns|>%
5599 }
5600 {|<insert Clr|>\HCode{</table:table>}}
5601 {|<cond trail row|>%
5602 \HCode{<table:table-row \Hnewline
5603 |<trail row|>%
5604 table:style-name="TBL-\TableNo-\HRow-}%
5605 |<row attributes|>\HCode{">}}
5606 {\HCode{</table:table-row>}|<end cond trail row|>%
5607 }
5608 {\HCode{<table:table-cell \Hnewline}%
5609 |<multispan cell|>%
5610 \HCode{ table:style-name="TBL-\TableNo-\HRow-\HCol">}%
5611 |<start par at cell|>|<save table num|>}
5612 {|<end array par box|>|<recall table num|>%
5613 |<end par at cell|>\HCode{</table:table-cell>}}
5614 >>>
5615
5616
5617 \<cond trail row\><<<
5618 \ifTag{vis-\TableNo-\HRow}%
5619 {\special{t4ht@[}\gdef\end:box{\special{t4ht@]}}}%
5620 {\global\let\end:box\empty}%
5621 >>>
5622
5623 \<end cond trail row\><<<
5624 \end:box
5625 >>>
5626
5627 \<trail row\><<<
5628 \ifTag{vis-\TableNo-\HRow}{table:visibility="collapse" }{}
5629 >>>
5630
5631 \<latex tabular\><<<
5632 \Configure{endtabular} {\Tag{vis-\TableNo-\HRow}{}}
5633 >>>
5634
5635
5636
5637
5638 \<latex tabular\><<<
5639 \def\:MT{\ifmathml \a:mathml m\else table:\fi}
5640 \Configure{halignTB}
5641 {\HCode{<\:MT table }}
5642 {\HCode{>}}
5643 >>>
5644
5645
5646
5647
5648 \<configure tabular noalign\><<<
5649 \Configure{noalign}%
5650 {\f:tabular\d:tabular \HCode{<tr><td colspan="\ar:cnt">}}
5651 {\HCode{</td></tr>}\pend:def\TableNo{0}\c:tabular\e:tabular}%
5652 >>>
5653
5654
5655 \<configure clear noalign\><<<
5656 \Configure{noalign}{}{}%
5657 >>>
5658
5659
5660 \<latex tabular\><<<
5661 \Configure{halignTB<>}{tabular}{\HCode{\Hnewline
5662 table:style-name="tabular"
5663 }<>\HAlign}
5664 >>>
5665
5666
5667 For some reason, the following doesn't have effect at the office tyles
5668 section
5669
5670
5671 \<automatic styles\><<<
5672 <style:style style:name="tabular"
5673 style:family="table">\Hnewline
5674 <style:table-properties style:rel-width="76\prcnt:ch"
5675 fo:margin-left="1cm"
5676 fo:margin-right="1cm"
5677 table:align="margins"/>\Hnewline
5678 </style:style>\Hnewline
5679 >>>
5680
5681
5682 \<inline comment\><<<
5683 \ifvmode\else\HCode{<!--tex4ht:inline-->}\fi
5684 >>>
5685
5686
5687
5688 \<latex tabular\><<<
5689 \HAssign\Next:TableNo=0
5690 \global\let\TableNo=\Next:TableNo
5691 >>>
5692
5693 \<increase table num\><<<
5694 \gHAdvance\Next:TableNo by 1
5695 \global\let\TableNo=\Next:TableNo
5696 >>>
5697
5698
5699 \<save table num\><<<
5700 \PushStack\Table:Stck\TableNo
5701 >>>
5702
5703 \<recall table num\><<<
5704 \PopStack\Table:Stck\TableNo
5705 >>>
5706
5707
5708
5709 \<Text-Body HtmlPar\><<<
5710 \Configure{HtmlPar}
5711 {\EndP \HCode{<text:p text:style-name="Text-body|<cond rtl class|>"
5712 >}}
5713 {\EndP \HCode{<text:p text:style-name="Text-body|<cond rtl class|>"
5714 >}}
5715 {\HCode{</text:p>}}
5716 {\HCode{</text:p>}}
5717 >>>
5718
5719
5720
5721
5722
5723 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5724 \subsection{Description of Columns}
5725 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5726
5727
5728
5729 The variable
5730 \verb+\NewGroup+ is introduced to record the index of entry in current
5731 group.
5732
5733
5734 \<configure ooffice-mml latex\><<<
5735 |<visit start of pattern|>
5736 \Configure{VBorder}
5737 {\HAssign\NewGroup = 0
5738 |<increase table num|>%
5739 |<visit start of pattern|>%
5740 }
5741 {|<visit a v-bar entry|>\HAssign\NewGroup = 0 }
5742 {\Advance:\NewGroup by 1
5743 |<visit a non-@ entry|>%
5744 }
5745 {|<visit a @ entry|>}
5746 >>>
5747
5748
5749
5750 \<configure ooffice-mml array\><<<
5751 |<visit start of pattern|>
5752 \Configure{VBorder}
5753 {\HAssign\NewGroup = 0
5754 |<increase table num|>%
5755 |<visit start of pattern|>%
5756 }
5757 {|<visit a v-bar entry|>\HAssign\NewGroup = 0 }
5758 {\Advance:\NewGroup by 1
5759 |<visit a non-@ entry|>%
5760 }
5761 {|<visit a @ entry|>}
5762 >>>
5763
5764
5765
5766
5767 \<configure ooffice-mml latexNO\><<<
5768 \let\VBorder=\empty \let\AllColMargins=\empty
5769 \Configure{VBorder}
5770 {\let\VBorder=\empty \let\AllColMargins=\empty
5771 \global\let\GROUPS=\empty \HAssign\NewGroup = 0
5772 \gHAdvance\Next:TableNo by 1 \global\let\TableNo=\Next:TableNo
5773 |<init vborder??|>%
5774 }
5775 {|<vborder solid??|>%
5776 \xdef\VBorder{\VBorder\ifnum \NewGroup> 0 </colgroup>\fi}
5777 \HAssign\NewGroup = 0 \gdef\GROUPS{rules="groups"}}
5778 {\Advance:\NewGroup by 1
5779 |<record cur vborder??|>%
5780 \ifnum \NewGroup=1 \xdef\VBorder{\VBorder<colgroup
5781 id="TBL-\TableNo-\ar:cnt g">}\fi
5782 \xdef\VBorder{\VBorder<col\Hnewline id="TBL-\TableNo
5783 -\ar:cnt"\xml:empty>}\xdef\AllColMargins{\AllColMargins1}}
5784 {\xdef\AllColMargins{\AllColMargins 0}}
5785 >>>
5786
5787
5788 \<insert ClrNO\><<<
5789 \expandafter\tmp:toks\expandafter{\Clr}%
5790 \HCode{<!--\the\tmp:toks-->}%
5791 >>>
5792
5793 The above doesn't work, for instance on `\verb+|r||r@{--}l|p{1.25in}|+'
5794 due to thge extra \verb+--+..
5795
5796
5797
5798
5799
5800 \<configuring @()\><<<
5801 \Configure{@{}}{}
5802 >>>
5803
5804
5805 \<row attributes\><<<
5806 \halignTR
5807 >>>
5808
5809 \<latex tabular\><<<
5810 \Configure{halignTR}
5811 {}
5812 \Configure{halignTBL}
5813 % {t}{\HCode{valign-top}}
5814 % {b}{\HCode{valign-baseline}}
5815 % {c}{\HCode{valign-middle}}
5816 {}
5817 >>>
5818
5819
5820
5821 I am not sure what the following code wants to achieve. It doesn't
5822 start a <text:p> element if the token returned from halignTD is empty.
5823 It was empty in the case of "p" table preamble token, but this
5824 led to issues with multirows.
5825 See \Link[https://tex.stackexchange.com/q/707918/2891]{}{}this example\EndLink.
5826
5827 \<start par at cell\><<<
5828 |<extract cell attributes|>\if !\Aligh:Wrap!\let\not:Pcell=\:gobble
5829 \else \let\not:Pcell\empty \fi
5830 \not:Pcell{\HCode{<text:p
5831 \Hnewline text:style-name="}|<style at cell|>\HCode{"
5832 >}}%
5833 |<start array par box|>%
5834 >>>
5835
5836
5837
5838 \<style at cell\><<<
5839 \cell:sty
5840 >>>
5841
5842
5843 \<latex tabular\><<<
5844 \def\cell:sty{\NoFonts
5845 |<extract cell margins info|>%
5846 |<extract cell h-border info|>%
5847 |<extract cell attributes|>%
5848 |<cell style name|>%
5849 |<cell style properties|>%
5850 \EndNoFonts}
5851 >>>
5852
5853
5854
5855 \<cell style name\><<<
5856 sty-\LR:VBars\Left:Marg\Right:Marg\Aligh:Wrap
5857 >>>
5858
5859
5860
5861 \<end par at cell\><<<
5862 \csname not:Pcell\endcsname{\HCode{</text:p>}}%
5863 >>>
5864
5865
5866
5867 \<multispan cell\><<<
5868 \ifnum \HMultispan>1
5869 \HCode{table:number-columns-spanned="\HMultispan"\Hnewline}%
5870 \bgroup
5871 \def\:temp{\ifnum \HMultispan>1
5872 \HAdvance\HMultispan by -1
5873 \HCode{<table:covered-table-cell/>}%
5874 \expandafter\:temp
5875 \fi}%
5876 \egroup
5877 \fi
5878 >>>
5879
5880
5881
5882
5883 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5884 \subsection{Cell Style Properties}
5885 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5886
5887 \<extract cell attributes\><<<
5888 \edef\Aligh:Wrap{\halignTD}%
5889 >>>
5890
5891
5892 \<configure ooffice tex4ht\><<<
5893 \Configure{halignTD} {}{}
5894 {<}{L} %{\HCode{align-left nowrap}}
5895 {-}{C} %{\HCode{align-center nowrap}}
5896 {>}{R} %{\HCode{align-right nowrap}}
5897 {^}{T} %{\HCode{valign-top nowrap}}
5898 {=}{N} %{\HCode{valign-baseline nowrap}}
5899 {||}{M} %{\HCode{valign-middle nowrap}}
5900 {_}{B} %{\HCode{valign-bottom nowrap}}
5901 {p}{L} % this used to be empty, but it could lead to XML errors - https://tex.stackexchange.com/q/707918/2891
5902 {m}{m} %{\HCode{valign-middle align-left}}
5903 {b}{n} %{\HCode{valign-baseline align-left}}
5904 {}
5905 >>>
5906
5907
5908
5909
5910
5911 \<configure ooffice-mml tex4ht\><<<
5912 \Configure{halignTD} {}{}
5913 {<}{\ifmathml \HCode{ columnalign="left"}\else
5914 L\fi}
5915 {-}{\ifmathml \HCode{ columnalign="center"}\else
5916 C\fi}
5917 {>}{\ifmathml \HCode{ columnalign="right"}\else
5918 R\fi}
5919 {^}{\ifmathml \HCode{ rowalign="top"}\else
5920 T\fi}
5921 {=}{\ifmathml \HCode{ rowalign="baseline"}\else
5922 N\fi}
5923 {||}{\ifmathml \HCode{ rowalign="center"}\else
5924 M\fi}
5925 {_}{\ifmathml \HCode{ rowalign="bottom"}\else
5926 B\fi}
5927 {p}{\ifmathml \HCode{ columnalign="left"}\else
5928 L\fi} % this used to be empty, but it could lead to XML errors - https://tex.stackexchange.com/q/707918/2891
5929 {m}{\ifmathml\else m\fi} %{\HCode{valign-middle align-left}}
5930 {b}{\ifmathml\else n\fi} %{\HCode{valign-baseline align-left}}
5931 {}
5932 >>>
5933
5934
5935
5936 \<cell style properties\><<<
5937 \xdef\cell:style:name{|<cell style name|>}%
5938 \expandafter\ifx \csname\cell:style:name\endcsname \relax
5939 \global\expandafter\let\csname\cell:style:name\endcsname=\def
5940 \OOstyles{%
5941 <style:style
5942 style:name="\cell:style:name"
5943 style:family="paragraph"
5944 style:parent-style-name="Standard">\Hnewline
5945 <style:paragraph-properties
5946 }%
5947 |<cell h-margins property|>%
5948 |<cell alignment properties|>%
5949 |<cell LR borders property|>%
5950 \OOstyles{%
5951 style:justify-single-word="false"/>\Hnewline
5952 </style:style>\Hnewline
5953 }%
5954 \fi
5955 >>>
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5967 \subsection{Cell Alignments}
5968 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5969
5970
5971 \<cell alignment properties\><<<
5972 \def\:temp{L}\ifx \Aligh:Wrap\:temp
5973 \OOstyles{%
5974 fo:wrap-option="no-wrap"
5975 fo:text-align="start"
5976 }%
5977 \fi
5978 \def\:temp{C}\ifx \Aligh:Wrap\:temp
5979 \OOstyles{%
5980 fo:wrap-option="no-wrap"
5981 fo:text-align="center"
5982 }%
5983 \fi
5984 \def\:temp{R}\ifx \Aligh:Wrap\:temp
5985 \OOstyles{%
5986 fo:wrap-option="no-wrap"
5987 fo:text-align="end"
5988 }%
5989 \fi
5990 \ifx \Aligh:Wrap\empty
5991 \OOstyles{%
5992 fo:text-align="start"
5993 }%
5994 \fi
5995 >>>
5996
5997
5998 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
5999 \subsection{Groups of Columns}
6000 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6001
6002
6003 A group consists of a non-empty pattern \verb+|...|+.
6004
6005 \<list the grouping of columns\><<<
6006 \putVBorder
6007 >>>
6008
6009
6010 When \verb'\putVBorder' is called, in \verb'\:VBorder'
6011 we have a sequence of the form
6012 \verb'<COLGROUP><COL ...">...</COLGROUP>...' with the last
6013 tag possibly missing.
6014
6015 \<latex tabular\><<<
6016 \let\remove:eog=\relax
6017 \def\putVBorder{\expandafter\put:VBorder\:VBorder<</>>|<par del|>}
6018 \def\put:VBorder#1<</#2>>#3|<par del|>{%
6019 \def\:temp{#2}\ifx\:temp\empty
6020 \def\remove:eog<</##1>>{}%
6021 \HCode{\:VBorder}%
6022 \let\remove:eog=\relax
6023 |<insert last end of group, if missing|>%
6024 \else \def\:temp{\put:VBorder#3|<par del|>}\expandafter\:temp\fi
6025 }
6026 >>>
6027
6028
6029 \<visit start of pattern\><<<
6030 \let\:VBorder=\empty
6031 >>>
6032
6033 \<visit a non-@ entry\><<<
6034 \ifnum \NewGroup=1 |<start a group of cols|>\fi
6035 |<add a group of columns|>%
6036 >>>
6037
6038
6039 \<start a group of cols\><<<
6040 \xdef\:VBorder{\:VBorder
6041 <!--table:table-column-group ???="TBL-\TableNo-\ar:cnt g"-->}%
6042 >>>
6043
6044 \<add a group of columns\><<<
6045 \xdef\:VBorder{\:VBorder<table:table-column\Hnewline
6046 \csname a:table-column-style\endcsname\Hnewline
6047 />}%
6048 >>>
6049
6050 \<latex tabular\><<<
6051 \NewConfigure{table-column-style}{1}
6052 \Configure{table-column-style}
6053 {table:style-name="TBL-\TableNo -\ar:cnt"}
6054 >>>
6055
6056 \<visit a v-bar entry\><<<
6057 \xdef\:VBorder{\:VBorder
6058 \ifnum \NewGroup> 0
6059 <!--/table:table-column-group-->\remove:eog <</ >>\fi}%
6060 >>>
6061
6062 \<insert last end of group, if missing\><<<
6063 \def\:temp{#1}\ifx\:temp\empty
6064 \else\HCode{<!--/table:table-column-group-->}\fi
6065 >>>
6066
6067
6068
6069 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6070 \subsection{Vertical Lines}
6071 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6072
6073
6074
6075 \<cell LR borders property\><<<
6076 \cell:vbars
6077 >>>
6078
6079
6080 \<latex tabular\><<<
6081 \def\cell:vbars{%
6082 \def\:tempa##1##2{%
6083 \tmp:cnt=0
6084 \def\:temp####1{%
6085 \if ####1##1\advance\tmp:cnt by 1 \fi
6086 \if ####1.\else \expandafter\:temp \fi
6087 }%
6088 \expandafter\:temp\LR:VBars.%
6089 \ifnum \tmp:cnt>0
6090 \OOstyles{ fo:border-##2="|<hline resolution|>\the\tmp:cnt
6091 cm solid \#000000" }%
6092 \fi
6093 }%
6094 \:tempa L{left}%
6095 \:tempa R{right}%
6096 }
6097 >>>
6098
6099
6100 \<hline resolution\><<<
6101 0.0>>>
6102
6103 \<extract cell h-border info\><<<
6104 \ifx \:AllColBars\empty
6105 \let\LR:VBars=\empty
6106 \else
6107 \edef\LR:VBars{\Col:VBars}%
6108 \fi
6109 >>>
6110
6111
6112
6113 \verb'\AllColMargins' Return a binary string in which 1 represents
6114 a column, and 0 represents a `@'. \verb'\ColMargins' retrieves the
6115 zeros before the 1's that represent the current and following 1's.
6116
6117 \<latex tabular\><<<
6118 \def\Col:VBars{\expandafter\get:vbar\:AllColBars,,}
6119 \def\get:vbar#1,{\if :#1:\else
6120 \ifnum #1=0 \ifnum \HCol=1 L\fi
6121 \else \ifnum \HCol=#1R\fi \fi
6122 \expandafter\get:vbar \fi}
6123 >>>
6124
6125
6126
6127
6128 \<configure ooffice-mml latex\><<<
6129 \let\AllColMargins\empty
6130 \ConfigureEnv{array}
6131 {\PushStack\Col:Marg\AllColMargins
6132 \bgroup\Configure{$}{}{}{}}
6133 {\egroup \PopStack\Col:Marg\AllColMargins}
6134 {}{}
6135 >>>
6136
6137 \<configure ooffice-mml array\><<<
6138 \ConfigureEnv{array}
6139 {\PushStack\Col:Marg\AllColMargins
6140 \bgroup\Configure{$}{}{}{}}
6141 {\egroup \PopStack\Col:Marg\AllColMargins}
6142 {}{}
6143 >>>
6144
6145
6146 \<configure ooffice latex\><<<
6147 \ConfigureEnv{tabular}
6148 {\PushStack\Col:Marg\AllColMargins}
6149 {\PopStack\Col:Marg\AllColMargins}
6150 {}{}
6151 >>>
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162 \<visit start of pattern\><<<
6163 \let\:AllColBars=\empty
6164 >>>
6165
6166 \<visit a v-bar entry\><<<
6167 \xdef\:AllColBars{\:AllColBars
6168 \ifx\:AllColBars\empty \else ,\fi \ar:cnt}%
6169 >>>
6170
6171
6172 \<save cols info\><<<
6173 \PushStack\Col:Bars\:AllColBars
6174 >>>
6175
6176
6177 \<recall cols info\><<<
6178 \PopStack\Col:Bars\:AllColBars
6179 >>>
6180
6181
6182
6183
6184
6185
6186
6187 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6188 \subsection{Horizontal Marging}
6189 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6190
6191 \verb'\AllColMargins' Return a binary string in which 1 represents
6192 a column, and 0 represents a `@'. \verb'\ColMargins' retrieves the
6193 zeros before the 1's that represent the current and following 1's.
6194
6195 \<cell h-margins property\><<<
6196 \OOstyles{%
6197 fo:padding-left="0\ifnum \Left:Marg >0 .17\fi cm" |% 5pt |%
6198 fo:padding-right="0\ifnum \Right:Marg>0 .17\fi cm"
6199 }%
6200 >>>
6201
6202 \<extract cell margins info\><<<
6203 \ColMargins
6204 >>>
6205
6206
6207 \<latex tabular\><<<
6208 \def\ColMargins{\tmp:cnt=\HCol\relax
6209 \expandafter\nosp:hbr\AllColMargins 1//}
6210 \def\nosp:hbr#11#2//{\ifnum \tmp:cnt>1 \advance\tmp:cnt by -1
6211 \nosp:hbr#2//\else\nosp:gt#11#2//\fi}
6212 \def\nosp:gt#11#21#3//{%
6213 \def\Left:Marg{#1}\def\Right:Marg{#2}%
6214 \edef\Left:Marg{\ifx \Left:Marg\empty 1\else 0\fi}%
6215 \edef\Right:Marg{\ifx \Right:Marg\empty 1\else 0\fi}}
6216
6217
6218 |<configuring @()|>
6219 >>>
6220
6221
6222 \<visit start of pattern\><<<
6223 \let\AllColMargins=\empty
6224 >>>
6225
6226 \<visit a non-@ entry\><<<
6227 \xdef\AllColMargins{\AllColMargins 1}%
6228 >>>
6229
6230 \<visit a @ entry\><<<
6231 \xdef\AllColMargins{\AllColMargins 0}%
6232 >>>
6233
6234
6235 \<save cols info\><<<
6236 \PushStack\Col:Marg\AllColMargins
6237 >>>
6238
6239
6240 \<recall cols info\><<<
6241 \PopStack\Col:Marg\AllColMargins
6242 >>>
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6253 \subsection{Horizontal Borders}
6254 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6255
6256
6257 \<latex tabular\><<<
6258 \Configure{hline}{\ifx \ar:cnt\:UnDef
6259 \else\o:noalign:{|<hline body for array/tabular|>}%
6260 \expandafter\ignoreEndTr
6261 \fi}
6262 \Configure{//[]}{\ifx \ar:cnt\:UnDef
6263 \else\o:noalign:{|<vspace body for array/tabular|>}\fi}
6264 >>>
6265
6266
6267 \<vspace body for array/tabular\><<<
6268 \append:def\vspc:s{\h:HBorder}%
6269 \def\:tempb{\ifnum \tmp:cnt<\ar:cnt
6270 \advance\tmp:cnt by 1 \append:def\vspc:s{\i:HBorder}%
6271 \expandafter\:tempb
6272 \fi }
6273 \tmp:cnt=0 \:tempb
6274 \append:def\vspc:s{\j:HBorder}\global\let\vspc:s=\vspc:s
6275 >>>
6276
6277 \<hline body for array/tabular\><<<
6278 \append:def\hline:s{\a:HBorder}%
6279 \def\:tempb{\ifnum \tmp:cnt<\ar:cnt
6280 \advance\tmp:cnt by 1 \append:def\hline:s{\b:HBorder}%
6281 \expandafter\:tempb
6282 \fi }%
6283 \tmp:cnt=0 \:tempb
6284 \append:def\hline:s{\c:HBorder}\global\let\hline:s=\hline:s
6285 >>>
6286
6287 \<latex tabular\><<<
6288 \def\ignore:EndTr{\o:noalign:{\global\futurelet\:AfterHline}}
6289 \long\def\ifProperTr#1{%
6290 \ifx \:AfterHline\end
6291 #1\global\let\:AfterHline\endinput
6292 \else \ifx \:AfterHline\endinput \else #1\fi\fi}
6293 \def\ProperTrTrue{\global\let\:AfterHline=\relax}
6294 >>>
6295
6296
6297 \<latex tabular\><<<
6298 \Configure{putHBorder}{\HCode{\HBorder}}
6299 \Configure{HBorder}
6300 {|<HBorder hline|>}
6301 {|<HBorder hline cell|>}
6302 {|<end HBorder hline|>}
6303 {|<HBorder cline|>}
6304 {|<HBorder cline p cell|>}
6305 {|<HBorder cline p-hr cell|>}
6306 {|<end HBorder cline|>}
6307 {|<HBorder vspace|>}
6308 {|<HBorder vspace td|>}
6309 {|<end HBorder vspace|>}
6310 \OOstyles {|<hline-p-hr style|>}
6311 >>>
6312
6313
6314
6315
6316 \<configure ooffice-mml latex\><<<
6317 \Configure{HBorder}
6318 |<HBorder hline row|>%
6319 |<HBorder cline row|>%
6320 |<HBorder vspace row|>%
6321 >>>
6322
6323
6324 \<HBorder hline row\><<<
6325 {\ifmathml <\a:mathml mtr\Hnewline class="hline">
6326 \else |<HBorder hline|>\fi}
6327 {\ifmathml |<mml mtd hline|>
6328 \else |<HBorder hline cell|>\fi}
6329 {\ifmathml </\a:mathml mtr>
6330 \else |<end HBorder hline|>\fi}
6331 >>>
6332
6333
6334 \<HBorder cline row\><<<
6335 {\ifmathml <\a:mathml mtr\Hnewline class="cline">
6336 \else |<HBorder cline|>\fi}
6337 {\ifmathml <\a:mathml mtd></\a:mathml mtd>
6338 \else |<HBorder cline p cell|>\fi }
6339 {\ifmathml |<mml mtd hline|>
6340 \else |<HBorder cline p-hr cell|>\fi}
6341 {\ifmathml </\a:mathml mtr>
6342 \else |<end HBorder cline|>\fi}
6343 >>>
6344
6345 \<HBorder vspace row\><<<
6346 {\ifmathml <\a:mathml mtr\Hnewline class="vspace" style="font-size:\HBorderspace">
6347 \else |<HBorder vspace|>\fi}
6348 {\ifmathml <\a:mathml mtd\Hnewline></\a:mathml mtd>
6349 \else |<HBorder vspace td|>\fi}
6350 {\ifmathml </\a:mathml mtr>
6351 \else |<end HBorder vspace|>\fi}
6352 >>>
6353
6354
6355
6356
6357
6358
6359 \<HBorder hline\><<<
6360 <table:table-row \Hnewline table:style-name="hline-row">%
6361 >>>
6362
6363
6364 \<mml mtd hline\><<<
6365 <\a:mathml mtd><\a:mathml mo> \string&\#x0332; </\a:mathml mo></\a:mathml mtd>
6366 >>>
6367
6368
6369 \<HBorder hline cell\><<<
6370 <table:table-cell table:style-name="hline-cell" >%
6371 <text:p text:style-name="hline-p-hr" />%
6372 </table:table-cell>\Hnewline
6373 >>>
6374
6375 \<end HBorder hline\><<<
6376 </table:table-row>\Hnewline
6377 >>>
6378
6379 \<HBorder cline\><<<
6380 <table:table-row \Hnewline table:style-name="cline-row">\Hnewline
6381 >>>
6382
6383 \<HBorder cline p cell\><<<
6384 <table:table-cell table:style-name="cline-cell">%
6385 <text:p text:style-name="cline-p" />%
6386 </table:table-cell>\Hnewline
6387 >>>
6388
6389 \<HBorder cline p-hr cell\><<<
6390 <table:table-cell table:style-name="cline-cell">%
6391 <text:p text:style-name="cline-p-hr" />%
6392 </table:table-cell>\Hnewline
6393 >>>
6394
6395 \<end HBorder cline\><<<
6396 </table:table-row>\Hnewline
6397 >>>
6398
6399
6400
6401 \<HBorder vspace\><<<
6402 <tr\Hnewline class="vspace" style="font-size:\HBorderspace">%
6403 >>>
6404
6405 \<HBorder vspace td\><<<
6406 <td\Hnewline>\string&\csname :sharp\endcsname xA0;</td>%
6407 >>>
6408
6409 \<end HBorder vspace\><<<
6410 </tr>%
6411 >>>
6412
6413
6414
6415
6416 \<hline-p-hr style\><<<
6417 <style:style style:name="hline-p-hr"
6418 style:family="paragraph">\Hnewline
6419 <style:paragraph-properties
6420 fo:padding="0.00001cm"
6421 fo:margin-top="0.00001cm"
6422 fo:margin-bottom="0.00001cm"
6423 fo:border-left="none"
6424 fo:border-right="none"
6425 fo:border-top="none"
6426 fo:line-height="|<hline resolution|>11cm"
6427 fo:border-bottom="|<hline resolution|>1cm solid \#000000"
6428 />\Hnewline
6429 </style:style>
6430 >>>
6431
6432
6433 \<hline-p-hr style\><<<
6434 <style:style style:name="cline-p-hr"
6435 style:family="paragraph">\Hnewline
6436 <style:paragraph-properties
6437 fo:padding="0.00001cm"
6438 fo:margin-top="0.00001cm"
6439 fo:margin-bottom="0.00001cm"
6440 fo:border-left="none"
6441 fo:border-right="none"
6442 fo:border-top="none"
6443 fo:line-height="0.01cm"
6444 fo:border-bottom="|<hline resolution|>1cm solid \#000000"
6445 />\Hnewline
6446 </style:style>
6447 <style:style style:name="cline-p"
6448 style:family="paragraph">\Hnewline
6449 <style:paragraph-properties
6450 fo:margin="0.00001cm"
6451 fo:border="none"
6452 fo:line-height="0.001cm"
6453 />\Hnewline
6454 </style:style>
6455 >>>
6456
6457
6458
6459 \begin{verbatim}
6460 > In addition, of course the formatting of borders for OOo tables doesn't
6461 > come out exactly the same as when entered in OOo itself, so that
6462 > round-tripping won't work,
6463
6464 TeX4ht introduces the borders in segments: top, down, left,
6465 right. Moreover, the horizontal segments appear in separate cells. The
6466 segmentation is there to provide for special effects in LaTeX
6467 tables. I don't know how to improve the outcome, short of trying to
6468 post process the output.
6469 \end{verbatim}
6470
6471
6472
6473 %%%%%%%%%%%%%
6474 \subsubsection{Multicolumn}
6475 %%%%%%%%%%%%%
6476
6477
6478 \<latex tabular\><<<
6479 \Configure{multicolumn}
6480 {\let\col:Css\empty
6481 \expandafter\let\csname col:Css0\endcsname\empty
6482 \expandafter\let\csname col:Css1\endcsname\empty
6483 \Configure{VBorder}
6484 {}
6485 {\edef\col:Css{\col:Css
6486 \ifnum \ar:cnt=0 L\else R\fi }%
6487 \expandafter\edef\csname col:Css\ar:cnt\endcsname{%
6488 fo:border-\ifnum \ar:cnt=0 left\else right\fi
6489 ="0.01cm solid \#000000"
6490 fo:padding-\ifnum \ar:cnt=0 left\else right\fi
6491 ="0.17cm" |% 5pt |%
6492 }%
6493 }{}{}%
6494 }
6495 {|<multicolumn sty|>}
6496 {|<multicolumn sty|>%
6497 \Configure{HtmlPar}
6498 {|<multicolumn par|>}
6499 {|<multicolumn par|>}
6500 {}{}%
6501 }
6502 {}
6503 >>>
6504
6505
6506
6507
6508
6509 \<multicolumn par\><<<
6510 \Configure{HtmlPar}
6511 {\HCode{<text:line-break/><text:line-break/>}}
6512 {\HCode{<text:line-break/><text:line-break/>}}
6513 {}
6514 {}%
6515 >>>
6516
6517 The above text:p doesn't get into the code. Where the contributions comes from???
6518
6519
6520 \<multicolumn sty\><<<
6521 \ifx \col:Css\empty \else
6522 \edef\col:Css{multicolumn-\col:Css 11\halignTD-\cell:style:name}%
6523 \expandafter\ifx \csname \col:Css\endcsname\relax
6524 \expandafter\xdef\csname \col:Css\endcsname{}%
6525 |<multicolumn oOOstyles|>%
6526 \fi
6527 \HCode{<text:span
6528 text:style-name="\col:Css"></text:span>}%
6529 \fi
6530 >>>
6531
6532 \<multicolumn oOOstyles\><<<
6533 \OOstyles{%
6534 <style:style
6535 style:name="\col:Css"
6536 style:family="paragraph"
6537 style:parent-style-name="\cell:style:name">\Hnewline
6538 <style:paragraph-properties
6539 \csname col:Css0\endcsname
6540 \csname col:Css1\endcsname
6541 />\Hnewline
6542 </style:style>\Hnewline
6543 }%
6544 >>>
6545
6546
6547
6548 \<\><<<
6549 \OOstyles{%
6550 <style:style style:name="TBL-\TableNo-\HRow-\HCol"
6551 style:family="table-cell">\Hnewline
6552 <style:table-cell-properties
6553 % style:vertical-align="bottom"
6554 \col:Css
6555 />\Hnewline
6556 </style:style>\Hnewline
6557 }
6558 >>>
6559
6560 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6561 \subsection{Other}
6562 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6563
6564
6565
6566
6567 \verb|\par| is empty if not in par box.
6568
6569 \<start array par box\><<<
6570 \par \ShowPar
6571 >>>
6572
6573 \<end array par box\><<<
6574 \IgnorePar \EndP
6575 >>>
6576
6577
6578 \<latex tabular\><<<
6579 \Configure{halign}
6580 {\EndP\halignTB{halign}} {\HCode{</table>}}
6581 {\HCode{<tr \Hnewline}\halignTR\HCode{>}}
6582 {\HCode{</tr>}}
6583 {\HCode{<td \ifnum \HMultispan>1 colspan="\HMultispan"\fi}%
6584 \halignTD \HCode{\Hnewline>}}
6585 {\HCode{</td>}}
6586 \Configure{pic-halign}{}
6587 >>>
6588
6589
6590
6591 \<latex tabular\><<<
6592 \Configure{HVerbatim+}{\z@}{\:nbsp}
6593 \Configure{Needs}{l.
6594 \the\inputlineno\space--- needs --- #1 ---}
6595 \Configure{Needs-}{l.
6596 \the\inputlineno\space--- needs --- #1 ---}
6597 >>>
6598
6599
6600
6601 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6602 \subsection{Color}
6603 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6604
6605 \<configure ooffice color\><<<
6606 \Configure{color}{\:gobble}
6607 >>>
6608
6609 \<configure ooffice color\><<<
6610 \Configure{HColor:gray}{%
6611 \int:of\:tempa{255}{#1}%
6612 \hex:of\:tempa
6613 \Configure{HColor}{}{\#\:tempa\:tempa\:tempa}%
6614 }
6615 \Configure{HColor:rgb}{%
6616 \int:of\:tempa{255}{#1}%
6617 \int:of\:tempb{255}{#2}%
6618 \int:of\:tempc{255}{#3}%
6619 \hex:of\:tempa
6620 \hex:of\:tempb
6621 \hex:of\:tempc
6622 \Configure{HColor}{}{\#\:tempa\:tempb\:tempc}%
6623 }
6624 \Configure{HColor:cmyk}{%
6625 \int:of\:Cyan{255}{#1}%
6626 \int:of\:Magenta{255}{#2}%
6627 \int:of\:Yellow{255}{#3}%
6628 \int:of\:Black{255}{#4}%
6629 \:cmyk\:tempa\:Cyan
6630 \:cmyk\:tempb\:Magenta
6631 \:cmyk\:tempc\:Yellow
6632 \hex:of\:tempa
6633 \hex:of\:tempb
6634 \hex:of\:tempc
6635 \Configure{HColor}{}{\#\:tempa\:tempb\:tempc}%
6636 }
6637 |<HColor util|>
6638 >>>
6639
6640
6641
6642
6643
6644 \<HColor util\><<<
6645 \def\int:of#1#2#3{%
6646 \tmp:dim=#3pt \tmp:dim=#2\tmp:dim
6647 \edef\:temp{\tmp:cnt\the\tmp:dim//}%
6648 \def#1##1//{}\afterassignment#1\:temp
6649 \edef#1{\the\tmp:cnt}%
6650 }
6651 \def\hex:of#1{%
6652 \tmp:cnt=#1
6653 \divide\tmp:cnt by 16
6654 \edef\:temp{\ifcase \tmp:cnt 0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or
6655 8\or 9\or A\or B\or C\or D\or E\or F\fi}%
6656 \multiply\tmp:cnt by -16 \advance\tmp:cnt by #1
6657 \edef#1{\:temp
6658 \ifcase \tmp:cnt 0\or 1\or 2\or 3\or 4\or 5\or 6\or 7\or
6659 8\or 9\or A\or B\or C\or D\or E\or F\fi}%
6660 }
6661 >>>
6662
6663
6664 \begin{verbatim}
6665 cmyk -> gray
6666 (1 - 0.299c - 0.587m - 0.114y)(1 - k)
6667
6668 cmyk -> rgb
6669 Red = 1-minimum(1,Cyan *(1-Black)+Black)
6670 Green = 1-minimum(1,Magenta*(1-Black)+Black)
6671 Blue = 1-minimum(1,Yellow *(1-Black)+Black)
6672 \end{verbatim}
6673
6674
6675
6676 \<HColor util\><<<
6677 \def\:cmyk#1#2{%
6678 \tmp:cnt=255 \advance\tmp:cnt by -\:Black
6679 \multiply\tmp:cnt by#2 \advance\tmp:cnt by \:Black
6680 \advance\tmp:cnt by -255 \tmp:cnt=-\tmp:cnt
6681 \ifnum \tmp:cnt<0 \tmp:cnt=0 \fi
6682 \edef#1{\the\tmp:cnt}%
6683 }
6684 >>>
6685
6686
6687 The following doesn't work yet.
6688
6689
6690 \begin{verbatim}
6691 \documentclass{article}
6692 \usepackage[dvips]{xcolor}
6693
6694 \begin{document}
6695
6696 \begin{center}
6697 \fcolorbox{black}{green}{\parbox{.775\columnwidth}{\textbf{Hint:}\vspace{.2cm}\\ Abc.}}
6698 \end{center}
6699
6700
6701 \begin{center}
6702
6703 \fcolorbox{black}{green}{\parbox{.775\columnwidth}{\textbf{Hint:}\vspace{.2cm}\\ Abc.}}
6704
6705 \fcolorbox{black}{green}{\parbox{.775\columnwidth}{\textbf{Hint:}\vspace{.2cm}\\ Abc.}}
6706
6707 \end{center}
6708 \end{document}
6709
6710
6711 \documentclass {article}
6712
6713 \usepackage[table,svgnames]{xcolor}
6714
6715 \begin {document}
6716
6717 \rowcolors[]{1}{gray!10}{gray!5}
6718
6719 \begin{tabular}{|*{2}{r|c|}}
6720 Blue & Red & Yellow & Green\\\hline
6721 Blue & Red & Yellow & Green\\
6722 Blue & Red & Yellow & Green\\\hline
6723 Blue & Red & Yellow & Green\\
6724 Blue & Red & Yellow & Green\\
6725 Blue & Red & Yellow & Green\\
6726 Blue & Red & Yellow & Green\\
6727 \end{tabular}
6728
6729 \end{verbatim}
6730
6731 \<configure ooffice color\><<<
6732 \Configure{fcolorbox}
6733 {\bgroup\gHAdvance\textcolorN by 1
6734 \ifvmode \let\v:colorbox\def \IgnorePar \EndP
6735 \else \let\v:colorbox=\relax \fi
6736 \ifx \v:colorbox\def
6737 \HCode{<text:p \Hnewline
6738 text:style-name="colorbox\textcolorN">}%
6739 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6740 \let\A:color=\a:color
6741 \Configure{color}%
6742 {\Configure{color}%
6743 {\let\a:color=\A:color
6744 \Configure{SetHColor}{%
6745 \OOstyles{<style:style style:name="colorbox\textcolorN"
6746 style:family="paragraph"\>
6747 % <style:text-properties style:text-background-color="\HColor"/>
6748 <style:text-properties fo:color="\HColor"
6749 fo:background-color="transparent" />
6750 </style:style>}%
6751 }}%
6752 \Configure{SetHColor}{%
6753 % \hshow{\#colorbox\textcolorN{border: solid 1px \HColor;}}%
6754 }%
6755 }%
6756 \Configure{fbox}{\leavevmode }{}%
6757 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6758 \else
6759 \HCode{<text:span \Hnewline
6760 text:style-name="colorbox\textcolorN">}%
6761 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6762 \let\A:color=\a:color
6763 \Configure{color}%
6764 {\Configure{color}%
6765 {\let\a:color=\A:color
6766 \Configure{SetHColor}{%
6767 \OOstyles{<style:style style:name="colorbox\textcolorN" style:family="text">
6768 % <style:text-properties style:text-background-color="\HColor" />
6769 <style:text-properties fo:color="\HColor"
6770 fo:background-color="transparent" />
6771 </style:style>}%
6772 }}%
6773 \Configure{SetHColor}{%
6774 % \hshow{\#colorbox\textcolorN{border: solid 1px \HColor;}}%
6775 }%
6776 }%
6777 \Configure{fbox}{\leavevmode }{}%
6778 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6779 \fi
6780 }
6781 {\ifx \v:colorbox\def
6782 \EndP\HCode{</text:p>}\par
6783 \else \HCode{</text:span>}\fi
6784 \egroup
6785 }
6786 >>>
6787
6788
6789 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6790 \subsection{XColor}
6791 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6792
6793
6794 \<configure ooffice xcolor\><<<
6795 \Configure{rowcolors}
6796 {\Configure{SetHColor}{%
6797 \expandafter\ifx \csname HColor\endcsname\relax \else
6798 % \hshow{tr\#TBL-\TableNo-\the\rownum-{background-color:\HColor}}%
6799 \fi
6800 }}
6801 >>>
6802
6803 \<configure ooffice xcolor\><<<
6804 \Configure{HColor!gray}{%
6805 \XC@c@lcD\rangeGray{}{#1}\@@tmp
6806 \int:of\:tempa{255}{\@@tmp}%
6807 \hex:of\:tempa
6808 \Configure{HColor}{}{\#\:tempa\:tempa\:tempa}%
6809 }
6810 >>>
6811
6812 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6813 \subsection{Colortbl}
6814 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6815
6816
6817 We can save the row color in automatic styles.
6818
6819
6820 \<configure ooffice colortbl\><<<
6821 \def\:tblrowcolor#1{%
6822 \bgroup
6823 \HAdvance\HRow by 1% update row number locally
6824 % get the row color in the #RRGGBB format
6825 \expandafter\extractcolorspec\expandafter{#1}{\row:color}%
6826 \expandafter\convertcolorspec\row:color{HTML}\row:color%
6827 % we are writting to an temporary file, so we need to write \# here, it will be expanded
6828 % to # when the temp file is read
6829 \protected@edef\row:color{\detokenize{\#}\row:color}%
6830 \OOautomaticstylesxml{<style:style style:name="TBL-\TableNo-\HRow-" style:family="table-row">
6831 <style:table-row-properties fo:background-color="\row:color" >
6832 <style:background-image/>
6833 </style:table-row-properties>
6834 </style:style>}%
6835 \egroup
6836 }
6837 \Configure{rowcolor}{\:tblrowcolor}
6838 >>>
6839
6840
6841
6842 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6843 \section{tabbing}
6844 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6845
6846 \<ooffice begin-end env\><<<
6847 \HAssign\tabbing:N=0
6848 \Configure{tabbing}[1.5]{\IgnorePar\leavevmode
6849 \gHAdvance\tabbing:N by 1
6850 \gHAssign\tabbing:Nrow=0
6851 \ht:special{t4ht=<text:p
6852 text:style-name="tabbing" \Hnewline >}}
6853 {\ht:special{t4ht=</text:p>\Hnewline}\ShowPar}
6854 {\gHAdvance\tabbing:Nrow by 1
6855 \ht:special{t4ht=<text:span\Hnewline
6856 text:style-name="tabbing-\tabbing:N-\tabbing:Nrow"
6857 >}%
6858 |<style of current tabbing cell|>%
6859 }
6860 {\ht:special{t4ht=</text:span>}}
6861 \ConfigureEnv{tabbing}{\IgnorePar\EndP}{}{}{}
6862 >>>
6863
6864 \<ooffice begin-end env\><<<
6865 \NewConfigureOO{tabbing}
6866 \ConfigureOO{tabbing}{|<oo tabbing style|>}
6867 >>>
6868
6869
6870 \<oo tabbing style\><<<
6871 <style:style style:name="tabbing"
6872 style:family="paragraph"
6873 style:parent-style-name="Standard" >\Hnewline
6874 <style:paragraph-properties fo:margin-left="0cm"
6875 fo:margin-right="0cm"
6876 fo:text-indent="0.5cm"
6877 style:auto-text-indent="false"/>\Hnewline
6878 </style:style>\Hnewline
6879 >>>
6880
6881 The following style sdon't work.
6882
6883
6884 \<style of current tabbing cell\><<<
6885 \OOstyles{%
6886 <style:style style:name="tabbing-\tabbing:N-\tabbing:Nrow"
6887 >\Hnewline
6888 <style:text-properties
6889 fo:wrap-option="no-wrap"
6890 \ifx \TabWidth\empty \else
6891 fo:width="\TabWidth pt"
6892 \fi
6893 \ifx \`\TabType
6894 style:text-align="right"
6895 \fi
6896 />\Hnewline
6897 </style:style>\Hnewline
6898 }
6899 >>>
6900
6901
6902 \begin{verbatim}
6903 Is there a way to request a no-wrap element <text:span> ...
6904 </text:span> of a specified width?
6905
6906 LaTeX source:
6907 \begin{tabbing}
6908 Armadillo \= Armament \= \kill
6909 Gnat \> Gnu \> Gnome \\
6910 Armadillo \> Armament \> Armorer
6911 \end{tabbing}
6912
6913 Unfortunately not, you have to use either tab-stops or a table for this.
6914 \end{verbatim}
6915
6916 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6917 \section{Index}
6918 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6919
6920
6921 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6922 \subsection{Envelop}
6923 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
6924
6925
6926 \<ooffice index\><<<
6927 \:CheckOption{index-plain}\if:Option
6928 |<plain index|>
6929 \else
6930 |<fancy index|>
6931 \Log:Note{to get the index that doesn't change after `Update TOC and Index',
6932 use the command line option `index-plain'}
6933 \fi
6934 >>>
6935
6936 This is the way to get the index that doesn't change after `Update TOC and Index' in LibreOffice.
6937 See \Link[https://github.com/michal-h21/make4ht/issues/170]{}{}issue 170\EndLink for more info.
6938
6939 \<plain index\><<<
6940 \Configure{theindex}
6941 {\ifvmode\IgnorePar\fi
6942 \EndP\HCode{<text:section style:style-name="theindex-section">}%
6943 \csname put:IndexTitle\endcsname}
6944 {\HCode{</text:section>}}
6945 |<index list|>
6946 >>>
6947
6948 \<fancy index\><<<
6949 \Configure{theindex}
6950 {\ifvmode\IgnorePar\fi
6951 \EndP\HCode{<text:alphabetical-index text:name="theindex" >
6952 |<index format|>%
6953 <text:index-body>\Hnewline}%
6954 \csname put:IndexTitle\endcsname}
6955 {\HCode{</text:index-body></text:alphabetical-index>}}
6956 |<index list|>
6957 >>>
6958
6959 \<index list\><<<
6960 {\HCode{<text:p text:style-name="P6" >}}
6961 {\HCode{<text:tab-stop/></text:p>}\hfill\break}
6962 {\HCode{<text:p text:style-name="P7" >}}
6963 {\HCode{<text:tab-stop/></text:p>}\hfill\break}
6964 {\HCode{<text:p text:style-name="P8" >}}
6965 {\HCode{<text:tab-stop/></text:p>}\hfill\break}
6966 {}
6967 >>>
6968
6969
6970
6971
6972
6973 \<index format\><<<
6974 <text:alphabetical-index-source
6975 text:sort-algorithm="alphanumeric" >\Hnewline
6976 <text:index-title-template
6977 text:style-name="Index-Heading" >\indexname
6978 </text:index-title-template>\Hnewline
6979 |<index entry format|>\Hnewline
6980 </text:alphabetical-index-source>\Hnewline
6981 >>>
6982
6983 \<index entry format\><<<
6984 <text:alphabetical-index-entry-template
6985 text:outline-level="1"
6986 text:style-name="Index-1" >\Hnewline
6987 <text:index-entry-text/>\Hnewline
6988 <text:index-entry-tab-stop
6989 style:type="left"
6990 style:position="0in"
6991 style:leader-char=" "
6992 />\Hnewline
6993 <text:index-entry-page-number/>\Hnewline
6994 </text:alphabetical-index-entry-template>\Hnewline
6995 >>>
6996
6997 \<index entry format\><<<
6998 <text:alphabetical-index-entry-template
6999 text:outline-level="2"
7000 text:style-name="Index-2" >\Hnewline
7001 <text:index-entry-text/>\Hnewline
7002 <text:index-entry-tab-stop
7003 style:type="left"
7004 style:position="0in"
7005 style:leader-char=" "
7006 />\Hnewline
7007 <text:index-entry-page-number/>\Hnewline
7008 </text:alphabetical-index-entry-template>\Hnewline
7009 >>>
7010
7011 \<index entry format\><<<
7012 <text:alphabetical-index-entry-template
7013 text:outline-level="3"
7014 text:style-name="Index-3" >\Hnewline
7015 <text:index-entry-text/>\Hnewline
7016 <text:index-entry-tab-stop
7017 style:type="left"
7018 style:position="0in"
7019 style:leader-char=" "
7020 />\Hnewline
7021 <text:index-entry-page-number/>\Hnewline
7022 </text:alphabetical-index-entry-template>\Hnewline
7023 >>>
7024
7025
7026
7027
7028
7029
7030
7031
7032 \<content style 6\><<<
7033 \NewConfigureOO{Index 1}
7034 \ConfigureOO{Index 1}{\Hnewline
7035 <style:style style:name="Index-1"
7036 style:family="paragraph"
7037 style:parent-style-name="Index"
7038 style:class="index">
7039 <style:paragraph-properties fo:margin-left="0cm"
7040 fo:margin-right="0cm"
7041 fo:text-indent="0cm"
7042 style:auto-text-indent="false"/>
7043 </style:style>
7044 \Hnewline }
7045 >>>
7046
7047
7048
7049 \<content style 7\><<<
7050 \NewConfigureOO{Index 2}
7051 \ConfigureOO{Index 2}{\Hnewline
7052 <style:style style:name="Index-2"
7053 style:family="paragraph"
7054 style:parent-style-name="Index"
7055 style:class="index">\Hnewline
7056 <style:paragraph-properties fo:margin-left="0.499cm"
7057 fo:margin-right="0cm"
7058 fo:text-indent="0cm"
7059 style:auto-text-indent="false"/>\Hnewline
7060 </style:style>
7061 \Hnewline}
7062 >>>
7063
7064
7065
7066 \<content style 8\><<<
7067 \NewConfigureOO{Index 3}
7068 \ConfigureOO{Index 3}{\Hnewline
7069 <style:style style:name="Index-3"
7070 style:family="paragraph"
7071 style:parent-style-name="Index"
7072 style:class="index">\Hnewline
7073 <style:paragraph-properties fo:margin-left="0.998cm"
7074 fo:margin-right="0cm"
7075 fo:text-indent="0cm"
7076 style:auto-text-indent="false"/>\Hnewline
7077 </style:style>
7078 \Hnewline}
7079 >>>
7080
7081
7082
7083
7084 \<automatic style 6\><<<
7085 \Hnewline
7086 <style:style style:name="P6"
7087 style:family="paragraph"
7088 style:parent-style-name="Index-1">\Hnewline
7089 <style:paragraph-properties >\Hnewline
7090 <style:tab-stops>\Hnewline
7091 <style:tab-stop style:position="0cm"/>\Hnewline
7092 </style:tab-stops>\Hnewline
7093 </style:text-properties>\Hnewline
7094 </style:style>
7095 \Hnewline
7096 >>>
7097
7098
7099 \<automatic style 7\><<<
7100 \Hnewline
7101 <style:style style:name="P7"
7102 style:family="paragraph"
7103 style:parent-style-name="Index-2">\Hnewline
7104 <style:paragraph-properties >\Hnewline
7105 <style:tab-stops>\Hnewline
7106 <style:tab-stop style:position="0cm"/>\Hnewline
7107 </style:tab-stops>\Hnewline
7108 </style:paragraph-properties >\Hnewline
7109 </style:style>
7110 \Hnewline
7111 >>>
7112
7113
7114 \<automatic style 8\><<<
7115 \Hnewline
7116 <style:style style:name="P8"
7117 style:family="paragraph"
7118 style:parent-style-name="Index-3">\Hnewline
7119 <style:paragraph-properties >\Hnewline
7120 <style:tab-stops>\Hnewline
7121 <style:tab-stop style:position="0cm"/>\Hnewline
7122 </style:tab-stops>\Hnewline
7123 </style:paragraph-properties >\Hnewline
7124 </style:style>
7125 \Hnewline
7126 >>>
7127
7128
7129 %%%%%%%%%%%%%
7130 \subsection{Making Index Entries}
7131 %%%%%%%%%%%%%
7132
7133
7134 We need to parse the index entries to get the correct attributes that will be saved in the ODT file.
7135
7136 \<configure ooffice latex\><<<
7137 \ExplSyntaxOn
7138 \tl_new:N \l_parsed_index_part_a_tl
7139 \tl_new:N \l_parsed_index_part_b_tl
7140 \tl_new:N \l_parsed_index_part_c_tl
7141 \tl_new:N \l_parsed_index_part_d_tl
7142
7143 % support for internal ODT indexing. each \index command will insert
7144 % marker to the contents of the document, which can be displayed using
7145 % LibreOffice's index feature
7146
7147 % parse \index parts aaa!bbb!ccc$\vert$ddd into different token lists,
7148 % because we need to put them to different attributes
7149 % (that $vert$ should be a vertical bar character, ASCII 124, but that's
7150 % active in tex4ht)
7151 \def\parse:index:parts#1{
7152 \regex_extract_once:nnN { ^([^!^|^@]*)!?([^!^|^@]*)!?([^\|^@]*)[\|@]?(.*)$ } { #1 } \l_tmpa_seq
7153 \tl_set:Nx \l_parsed_index_part_a_tl { \seq_item:Nn \l_tmpa_seq {2} }
7154 \tl_set:Nx \l_parsed_index_part_b_tl { \seq_item:Nn \l_tmpa_seq {3} }
7155 \tl_set:Nx \l_parsed_index_part_c_tl { \seq_item:Nn \l_tmpa_seq {4} }
7156 }
7157
7158
7159 \def\:indexmark#1{%
7160 \parse:index:parts{#1}%
7161 \a:indexmark%
7162 % we need to assign index keys to correct attributes.
7163 % which attributes to use depends on number of index levels,
7164 % so we need to use different attributes for each number
7165 \tl_if_empty:NTF \l_parsed_index_part_c_tl{
7166 \tl_if_empty:NTF \l_parsed_index_part_b_tl{
7167 % only one level
7168 % spaces between words were missing sometimes, so I am using \HCode
7169 \HCode{\tl_use:N \l_parsed_index_part_a_tl}
7170 }{% two levels
7171 \HCode{\tl_use:N \l_parsed_index_part_b_tl} \c:indexmark \HCode{\tl_use:N \l_parsed_index_part_a_tl}}
7172 }
7173 {% three levels
7174 \HCode{\tl_use:N \l_parsed_index_part_c_tl} \d:indexmark \HCode{\tl_use:N \l_parsed_index_part_b_tl} \c:indexmark\HCode{\tl_use:N \l_parsed_index_part_a_tl }}%
7175 \b:indexmark%
7176 }
7177 \ExplSyntaxOff
7178 >>>
7179
7180 Configure wrindex to save the index entries to the ODT file.
7181
7182 \<configure ooffice latex\><<<
7183 |<wrindex one param|>
7184 >>>
7185
7186 \<wrindex one param\><<<
7187 \pend:defI\@wrindex{{%
7188 \:indexmark{##1}
7189 }}
7190 >>>
7191
7192 Some packages, like Imakeidx use two parameters for @wrindex. We need to support that
7193 \<wrindex two params\><<<
7194 \pend:defII\@wrindex{{%
7195 \:indexmark{##2}
7196 }}
7197 >>>
7198
7199 Configure packages that use two parameters for @wrindex. There will be probably more that will need to get configured.
7200
7201 \<configure ooffice imakeidx\><<<
7202 |<wrindex two params|>
7203 >>>
7204
7205 \<configure ooffice index\><<<
7206 |<wrindex two params|>
7207 >>>
7208
7209
7210 The following code was supposed to write index entries using internal
7211 ODT markup, but it doesn't work.
7212
7213 \<configure ooffice latex do not use \><<<
7214 \catcode`\!=13
7215 \HAssign\indexmark:N = 0
7216 \immediate\openin15=\jobname.4ix
7217 \ifeof15 \else
7218 \Configure{wrindex}
7219 {{\special{t4ht@(}\catcode`\\=0 \catcode`\{=1
7220 \catcode`\}=2 \catcode`\ =10 \catcode`\!=13
7221 \def!{\c:indexmark\def!{\d:indexmark\def!{\string!}}}%
7222 \gHAdvance\indexmark:N by 1
7223 \def\indexmark##1##2{%
7224 \ifnum \indexmark:N=##2 \special{t4ht@)}\a:indexmark
7225 ##1\b:indexmark\special{t4ht@(}\fi}%
7226 \hbox{\input \jobname.4ix \special{t4ht@)}}%
7227 }}
7228 \fi
7229 \catcode`\!=12
7230 \NewConfigure{indexmark}{4}
7231 \Configure{indexmark}
7232 {\HCode{<text:alphabetical-index-mark\Hnewline
7233 text:id="dx\last:haddr"
7234 text:string-value="}%
7235 \NoFonts}
7236 {\EndNoFonts \HCode{" />}}
7237 {\HCode{" text:key1="}}
7238 {\HCode{" text:key2="}}
7239 >>>
7240
7241
7242 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7243 % \pend:def\a:wrindex{%
7244 % \let\title::chs=\title:chs
7245 % \def\title:chs{\let\title:chs\title::chs
7246 % \title:chs{\html:addr}{}\:gobbleII}%
7247 % }
7248 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7249 % \Configure{indexmark}
7250 % {\HCode{<!--}\Link-{}{dx\last:haddr}\EndLink\HCode{-->}%
7251 % \HCode{<text:alphabetical-index-mark\Hnewline
7252
7253
7254 \<configure ooffice latex\><<<
7255 \pend:def\index{\leavevmode}
7256 >>>
7257
7258 The following two sample codes provide different behavior.
7259
7260 \begin{verbatim}
7261 \documentclass[12pt]{article}
7262 \usepackage{makeidx}
7263 \makeindex
7264 \begin{document}
7265 \index{Hola: Hallo} Hola
7266 \printindex
7267 \end{document}
7268 \end{verbatim}
7269
7270 \begin{verbatim}
7271 \documentclass{article}
7272 \usepackage[frenchb]{babel}
7273 \usepackage{makeidx}
7274 \makeindex
7275
7276 \begin{document}
7277 \begin{itemize}
7278 \item \index{blabla} blabla
7279 \item blabla
7280 \end{itemize}
7281 \end{document}
7282 \end{verbatim}
7283
7284
7285
7286
7287
7288
7289 %%%%%%%%%%%%%
7290 \subsection{Insed Title Head}
7291 %%%%%%%%%%%%%
7292
7293 \<ooffice index\><<<
7294 \Configure{LNK}{\oo:LNK}{\EndLink}{}
7295 \Odef\oo:LNK[#1]#2#3{\Link{#2}{#3}}
7296 >>>
7297
7298
7299 \<chapter index\><<<
7300 \Configure{@begin}{theindex}{\ifx \indexname\empty \else
7301 \def\put:IndexTitle{|<index title|>}\fi}
7302 >>>
7303
7304 \<non-chapter index\><<<
7305 \Configure{@begin}{theindex}{\ifx \indexname\empty \else
7306 \def\put:IndexTitle{|<index title|>}\fi}
7307 >>>
7308
7309 \<index title\><<<
7310 \HCode{<text:index-title
7311 text:style-name="Sect1"
7312 text:name="Alphabetical_Index1_Head"
7313 ><text:p
7314 text:style-name="Index-Heading" >}\indexname
7315 \HCode{</text:p></text:index-title>\Hnewline}
7316 >>>
7317
7318
7319 \<configure ooffice latex\><<<
7320 \NewConfigureOO{Index Heading}
7321 \ConfigureOO{Index Heading}{\Hnewline
7322 <style:style
7323 style:name="Index-Heading"
7324 style:family="paragraph"
7325 style:parent-style-name="Heading"
7326 style:class="index">\Hnewline
7327 <style:paragraph-properties
7328 fo:margin-left="0in"
7329 fo:margin-right="0in"
7330 fo:font-size="16pt"
7331 fo:font-weight="bold"
7332 style:font-size-asian="16pt"
7333 style:font-weight-asian="bold"
7334 style:font-size-complex="16pt"
7335 style:font-weight-complex="bold"
7336 fo:text-indent="0in"
7337 style:auto-text-indent="false"
7338 text:number-lines="false"
7339 text:line-number="0"/>\Hnewline
7340 </style:style>\Hnewline
7341 }
7342 >>>
7343
7344 \<configure html4 multind\><<<
7345 \Configure{@begin}{theindex}
7346 {\ifx \indexname\empty \else|<toc for multind|>\fi}
7347 >>>
7348
7349
7350 % \ifx \indexname\empty \else
7351 % \ifx\chapter\:Undef \section*{\indexname}\else
7352 % \chapter*{\indexname}\fi
7353 % \let\indexname=\empty
7354 % \fi
7355 %
7356
7357
7358
7359 \<configure html4 index\><<<
7360 \Configure{NoSection}
7361 {\let\sv:index=\p@index \let\sv:label=\label
7362 \let\sv:newline=\newline \def\newline{ }%
7363 \def\p@index[##1]{\@gobble}\let\label=\@gobble
7364 |<nolink ref|>%
7365 }
7366 {\let\p@index=\sv:index \let\label=\sv:label
7367 |<restore ref|>%
7368 \let\newline=\sv:newline
7369 }
7370 >>>
7371
7372
7373
7374
7375 \<configure html4 texinfo\><<<
7376 \Configure{index}
7377 {\IgnorePar\leavevmode\EndP\Tg<div class="index">}
7378 {\IgnorePar\EndP\Tg</div>}
7379 {\leavevmode\Tg<span class="entry">}
7380 {\Tg</span>\Tg<br />\IgnorePar}
7381 >>>
7382
7383
7384
7385
7386
7387
7388
7389 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7390 \subsection{mwcls}
7391 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
7392
7393 \<mwcls index\><<<
7394 \Configure{@begin}{theindex}{\section*{\indexname}}
7395 >>>
7396
7397 \<mwcls sections\><<<
7398 \ConfigureMark{chapter}
7399 {\ifHeadingNumbered \mw@seccntformat\HeadingNumber\fi}
7400 \ConfigureMark{section}
7401 {\ifHeadingNumbered\@seccntformat{section}\fi}
7402 \ConfigureMark{subsection}
7403 {\ifHeadingNumbered\@seccntformat{subsection}\fi}
7404 \ConfigureMark{subsubsection}
7405 {\ifHeadingNumbered\@seccntformat{subsubsection}\fi}
7406 >>>
7407
7408
7409 %%%%%%%%%%%%%%%%%%
7410 \section{Begin/End Environments}
7411 %%%%%%%%%%%%%%%%%%
7412
7413
7414 %%%%%%%%%%%%%
7415 \subsection{Verse}
7416 %%%%%%%%%%%%%
7417
7418
7419
7420 \<configure ooffice latex\><<<
7421 \ConfigureEnv{verse}
7422 {|<begin env section|>%
7423 \HCode{<!--start verse-->}%
7424 \bgroup |<HtmlPar at verse|>}
7425 {\egroup \ifvmode \IgnorePar\fi \EndP
7426 \HCode{<!--end verse-->}|<end env section|>\par\ShowPar}
7427 {}{}
7428 \ConfigureList{verse}
7429 {}{}
7430 {\parindent=\z@} {\par}
7431 \NewConfigureOO{verse}
7432 \ConfigureOO{verse}{\Hnewline
7433 <style:style style:name="verse"
7434 style:family="paragraph"
7435 style:parent-style-name="Text-body"
7436 style:next-style-name="Text-body">
7437 <style:paragraph-properties fo:margin-left="1.499cm"
7438 fo:margin-right="1cm"
7439 fo:margin-top="0.199cm"
7440 fo:margin-bottom="0.199cm"
7441 fo:text-indent="-0.499cm"
7442 style:auto-text-indent="false">
7443 <style:tab-stops/>
7444 </style:paragraph-properties >
7445 </style:style>
7446 \Hnewline}
7447 >>>
7448
7449 \<configure ooffice verse\><<<
7450 \ConfigureEnv{verse}
7451 {|<begin env section|>%
7452 \HCode{<!--start verse-->}%
7453 \bgroup
7454 \Configure{HtmlPar}
7455 {\ifvmode \IgnorePar\fi \EndP\end:verseln
7456 \HCode{<text:p text:style-name="verse-stanza" >}}
7457 {\ifvmode \IgnorePar\fi \EndP\end:verseln
7458 \HCode{<text:p text:style-name="verse-stanza" >}}
7459 {\HCode{</text:p>}\let\end:verseln\empty}
7460 {\HCode{</text:p>}\let\end:verseln\empty}%
7461 \let\end:verseln\empty
7462 }
7463 {\egroup
7464 \ifvmode \IgnorePar\fi \EndP\HCode{<!--end verse-->}|<end env section|>
7465 \par\ShowPar}
7466 {}{}
7467
7468 \ConfigureList{verse}
7469 {} {\ifvmode \IgnorePar\fi \EndP \end:verseln}
7470 {\parindent=\z@} {}
7471
7472 \Configure{verseline}
7473 {\ifvmode \IgnorePar\fi \EndP \end:verseln
7474 \HCode{<text:p text:style-name="verse">}\def\end:verseln{\HCode{</text:p>}}}
7475 {\ifvmode \IgnorePar\fi \EndP \end:verseln
7476 \HCode{<text:p text:style-name="verse">}%
7477 \def\end:verseln{\HCode{</text:p>}}}
7478
7479 \ConfigureOO{verse}{\Hnewline
7480 <style:style style:name="verse"
7481 style:family="paragraph"
7482 style:parent-style-name="Text-body"
7483 style:next-style-name="Text-body">
7484 <style:paragraph-properties fo:margin-left="1.499cm"
7485 fo:margin-right="1cm"
7486 fo:margin-top="0cm"
7487 fo:margin-bottom="0cm"
7488 fo:text-indent="-0.499cm"
7489 style:auto-text-indent="false">
7490 <style:tab-stops/>
7491 </style:paragraph-properties >
7492 </style:style>
7493 \Hnewline}
7494
7495 \NewConfigureOO{verse-stanza}
7496 \ConfigureOO{verse-stanza}{\Hnewline
7497 <style:style style:name="verse-stanza"
7498 style:family="paragraph"
7499 style:parent-style-name="Text-body"
7500 style:next-style-name="Text-body">
7501 <style:paragraph-properties fo:margin-left="1.499cm"
7502 fo:margin-right="1cm"
7503 fo:margin-top="0.5cm"
7504 fo:margin-bottom="0cm"
7505 fo:text-indent="-0.499cm"
7506 style:auto-text-indent="false">
7507 <style:tab-stops/>
7508 </style:paragraph-properties >
7509 </style:style>
7510 \Hnewline}
7511 >>>
7512
7513 %%%%%%%%%%%%%
7514 \subsection{Paragraph}
7515 %%%%%%%%%%%%%
7516
7517
7518
7519
7520 \<HtmlPar at verse\><<<
7521 \Configure{HtmlPar}
7522 {\ifvmode \IgnorePar\fi \EndP
7523 \HCode{<text:p text:style-name="verse" >}}
7524 {\ifvmode \IgnorePar\fi \EndP
7525 \HCode{<text:p text:style-name="verse" >}}
7526 {\HCode{</text:p>}}
7527 {\HCode{</text:p>}}%
7528 >>>
7529
7530
7531
7532
7533
7534
7535 %%%%%%%%%%%%%
7536 \subsection{Table}
7537 %%%%%%%%%%%%%
7538
7539
7540
7541 \<ooffice begin-end env\><<<
7542 \ConfigureEnv{table}
7543 {\ifvmode \IgnorePar\fi \EndP
7544 \HCode{<text:section text:name="table" >}%
7545 \bgroup \Configure{float}{\ShowPar}{}{\ShowPar\IgnoreIndent\csname par\endcsname}%
7546 }
7547 {\egroup
7548 \ifvmode \IgnorePar\fi\EndP \HCode{</text:section>}%
7549 \csname par\endcsname\ShowPar}
7550 {}{}
7551 >>>
7552
7553
7554
7555
7556
7557
7558 %%%%%%%%%%%%%
7559 \subsection{Float}
7560 %%%%%%%%%%%%%
7561
7562
7563
7564 \<configure ooffice latex\><<<
7565 \Configure{float}
7566 {\csname par\endcsname\ShowPar \leavevmode}
7567 {\ifvmode \IgnorePar\fi \EndP
7568 \HCode{<text:section text:name="float" >}}
7569 {\ifvmode \IgnorePar\fi\EndP
7570 \HCode{</text:section>}%
7571 \csname par\endcsname\ShowPar
7572 }
7573 \ConfigureEnv{figure}
7574 {\ifvmode \IgnorePar\fi \EndP
7575 \HCode{<text:section text:name="fig"
7576 text:style-name="Figure"
7577 >|<big skip|>}%
7578 \bgroup \Configure{float}{\ShowPar}{}{}%
7579 }
7580 {\egroup
7581 \ifvmode \IgnorePar\fi\EndP \HCode{|<big skip|></text:section>}%
7582 \csname par\endcsname\ShowPar}
7583 {}{}
7584 >>>
7585
7586 \<configure ooffice Preamble\><<<
7587 \edef\Preamble{\Preamble,refcaption}
7588 >>>
7589
7590 The section style can't be in style.xml?
7591
7592
7593 \<oo2 automatic styles\><<<
7594 \Configure{automatic-styles}
7595 {\csname a:figure-style\endcsname}
7596 \NewConfigure{figure-style}{1}
7597 \Configure{figure-style}{%
7598 <style:style style:name="Figure" style:family="section">\Hnewline
7599 <style:section-properties
7600 fo:margin-left="0.25in"
7601 fo:margin-right="0.25in"
7602 style:editable="true">\Hnewline
7603 <style:columns fo:column-count="0"
7604 fo:column-gap="0in"/>
7605 </style:section-properties>
7606 </style:style>\Hnewline
7607 }
7608 >>>
7609
7610
7611
7612 %%%%%%%%%%%%%%%%%%%%%%%%%%%
7613 \section{lineno.sty}
7614 %%%%%%%%%%%%%%%%%%%%%%%%%%%
7615
7616 \<configure ooffice lineno\><<<
7617 \:warning{The line numbers are commented out. To reintroduce them, use
7618 the \string\Configure{lineno}{...}{...} command}
7619 \Configure{lineno}
7620 {\bgroup \let\LineNumber=\empty}
7621 {\egroup}
7622 >>>
7623
7624
7625
7626 %%%%%%%%%%%%%%%%%%
7627 \section{Text Decorations}
7628 %%%%%%%%%%%%%%%%%%
7629
7630
7631 %%%%%%%%%%%%%%%%%%
7632 \subsection{Fonts}
7633 %%%%%%%%%%%%%%%%%%
7634
7635
7636
7637 \<configure ooffice tex4ht\><<<
7638 \Configure{htf}{0}{+}{<text:span\Hnewline
7639 text:style-name="}{\%s}{-\%s}{x-x-\%d}{}{">}{</text:span>}
7640 \Configure{htf}{4}{+}{<text:span\Hnewline
7641 text:style-name="}{}{}{}{}{small-caps">}{</text:span>}
7642 >>>
7643
7644 \<configure ooffice tex4ht\><<<
7645 \NewConfigureOO{small-caps}
7646 \ConfigureOO{small-caps}{%
7647 <style:style style:name="small-caps" style:family="text">\Hnewline
7648 <style:text-properties
7649 fo:font-variant="small-caps"
7650 />\Hnewline
7651 </style:style>\Hnewline
7652 }
7653 >>>
7654
7655
7656 \<configure ooffice fontmath\><<<
7657 \ifx \find:set:mgroup\:UnDef
7658 \def\find:set:mgroup#1#2#3{\bgroup
7659 \let\HPage\:gobble
7660 \let\EndHPage\:gobble
7661 \def\use@mathgroup##1##2##3{\relax
7662 \tmp:cnt=##2%
7663 \xdef\:temp####1{\noexpand\Configure{MathClass}{#2}%
7664 {}{}{}{\mathchar"0\the\tmp:cnt ####1}}%
7665 }%
7666 \setbox\tmp:bx=\hbox{$#1$}\setbox\tmp:bx=\hbox{}%
7667 \set:mgroup#3{}{}%
7668 \egroup
7669 }
7670 \fi
7671 >>>
7672
7673
7674 \<configure ooffice fontmath\><<<
7675 \Configure{texttt}
7676 {\ifmathml \Configure{@mtext}{\mml:class="texttt" mathvariant="monospace" }%
7677 \else \HCode{<text:span text:style-name="texttt" >}\fi}
7678 {\ifmathml\else \HCode{</text:span>}\fi}
7679 \Configure{textit}
7680 {\ifmathml \Configure{@mtext}{\mml:class="textit" mathvariant="italic" }%
7681 \else \HCode{<text:span text:style-name="textit" >}\fi}
7682 {\ifmathml\else \HCode{</text:span>}\fi}
7683 \Configure{textrm}
7684 {\ifmathml \Configure{@mtext}{ \mml:class="textrm" mathvariant="normal" }%
7685 \else \HCode{<text:span text:style-name="textrm" >}\fi}
7686 {\ifmathml\else \HCode{</text:span>}\fi}
7687 \Configure{textsl}
7688 {\ifmathml \Configure{@mtext}{ \mml:class="textst" mathvariant="italic" }%
7689 \else \HCode{<text:span text:style-name="textsl" >}\fi}
7690 {\ifmathml\else \HCode{</text:span>}\fi}
7691 \Configure{textsf}
7692 {\ifmathml \Configure{@mtext}{ \mml:class="textsf" mathvariant="sans-serif" }%
7693 \else \HCode{<text:span text:style-name="textsf" >}\fi}
7694 {\ifmathml\else \HCode{</text:span>}\fi}
7695 \Configure{textbf}
7696 {\ifmathml \Configure{@mtext}{ \mml:class="textbf" mathvariant="bold" }%
7697 \else \HCode{<text:span text:style-name="textbf" >}\fi}
7698 {\ifmathml\else \HCode{</text:span>}\fi}
7699 \Configure{textsc}
7700 {\ifmathml \Configure{@mtext}{ \mml:class="textsc" mathvariant="normal" }%
7701 \else \HCode{<text:span text:style-name="textsc" >}\fi}
7702 {\ifmathml\else \HCode{</text:span>}\fi}
7703 \Configure{emph}
7704 {\ifmathml \Configure{@mtext}{ \mml:class="emph" mathvariant="italic" }%
7705 \else \HCode{<text:span text:style-name="Emphasis" >}\fi}
7706 {\ifmathml\else \HCode{</text:span>}\fi}
7707 \Configure{textup}
7708 {\ifmathml \Configure{@mtext}{ \mml:class="textup" mathvariant="normal" }%
7709 \else \HCode{<text:span text:style-name="textup" >}\fi}
7710 {\ifmathml\else \HCode{</text:span>}\fi}
7711 >>>
7712
7713
7714
7715 \<configure ooffice fontmath\><<<
7716 \NewConfigureOO{emph}
7717 \ConfigureOO{emph}{|<oo emph style|>}
7718 \NewConfigureOO{textit}
7719 \ConfigureOO{textit}{|<oo textit style|>}
7720 \NewConfigureOO{textbf}
7721 \ConfigureOO{textbf}{|<oo textbf style|>}
7722 \NewConfigureOO{textsc}
7723 \ConfigureOO{textsc}{|<oo textsc style|>}
7724 \NewConfigureOO{texttt}
7725 \ConfigureOO{texttt}{|<oo texttt style|>}
7726 \NewConfigureOO{textrm}
7727 \ConfigureOO{textrm}{|<oo textrm style|>}
7728 \NewConfigureOO{textsf}
7729 \ConfigureOO{textsf}{|<oo textsf style|>}
7730 \NewConfigureOO{textsl}
7731 \ConfigureOO{textsl}{|<oo textsl style|>}
7732 \NewConfigureOO{textsl}
7733 \ConfigureOO{textsl}{|<oo textup style|>}
7734 >>>
7735
7736
7737 \<oo textsf style\><<<
7738 <style:style style:name="textsf" style:family="text">\Hnewline
7739 <style:text-properties fo:font-style="normal"
7740 fo:font-weight="normal"
7741 style:font-family-generic="swiss"
7742 style:font-pitch="variable" />\Hnewline
7743 </style:style>\Hnewline
7744 >>>
7745
7746
7747 \<oo emph style\><<<
7748 <style:style style:name="Emphasis" style:family="text">\Hnewline
7749 <style:text-properties fo:font-style="italic"/>\Hnewline
7750 </style:style>\Hnewline
7751 >>>
7752
7753 \<oo textit style\><<<
7754 <style:style style:name="textit" style:family="text">\Hnewline
7755 <style:text-properties fo:font-style="italic"/>\Hnewline
7756 </style:style>\Hnewline
7757 >>>
7758
7759
7760
7761
7762 \<oo textrm style\><<<
7763 <style:style style:name="textrm" style:family="text">\Hnewline
7764 <style:text-properties fo:font-weight="normal"
7765 style:font-weight-asian="normal"
7766 style:font-weight-complex="normal"/>\Hnewline
7767 </style:style>\Hnewline
7768 >>>
7769
7770
7771
7772
7773
7774 \<oo textsl style\><<<
7775 <style:style style:name="textsl" style:family="text">\Hnewline
7776 <style:text-properties fo:font-style="italic"/>\Hnewline
7777 </style:style>\Hnewline
7778 >>>
7779
7780 \<oo textbf style\><<<
7781 <style:style style:name="textbf" style:family="text">\Hnewline
7782 <style:text-properties fo:font-style="normal"
7783 fo:font-weight="bold"/>\Hnewline
7784 </style:style>\Hnewline
7785 >>>
7786
7787 \<oo textsc style\><<<
7788 <style:style style:name="textsc" style:family="text">\Hnewline
7789 <style:text-properties
7790 fo:font-variant="small-caps"
7791 fo:font-style="normal"
7792 fo:font-weight="normal"
7793 % fo:font-size="75\%"
7794 style:text-position="0\prcnt:ch\space 100\prcnt:ch"
7795 />\Hnewline
7796 </style:style>\Hnewline
7797 >>>
7798
7799
7800 \<oo texttt style\><<<
7801 <style:style style:name="texttt" style:family="text">\Hnewline
7802 <style:text-properties
7803 fo:font-family="monospace"
7804 />\Hnewline
7805 </style:style>\Hnewline
7806 >>>
7807
7808 \<oo textup style\><<<
7809 <style:style style:name="textup" style:family="text">\Hnewline
7810 <style:text-properties fo:font-weight="normal"
7811 style:font-weight-asian="normal"
7812 style:font-weight-complex="normal"/>\Hnewline
7813 </style:style>\Hnewline
7814 >>>
7815
7816
7817
7818 %%%%%%%%%%%%%
7819 \subsection{Soul}
7820 %%%%%%%%%%%%%
7821
7822 \<configure ooffice soul\><<<
7823 \Configure{textcaps}
7824 {\HCode{<text:span text:style-name="textcaps">}}
7825 {\HCode{</text:span>}}
7826 \Configure{texthl}
7827 {\HCode{<text:span text:style-name="texthl">}\bgroup
7828 \ifx\setstcolor\:gobble\else |<soul color|>\fi}
7829 {\egroup\HCode{</text:span>}}
7830 \Configure{textso}
7831 {\HCode{<text:span text:style-name="textso">}}
7832 {\HCode{</text:span>}}
7833 \Configure{textst}
7834 {\HCode{<text:span text:style-name="textst">}\bgroup
7835 \ifx\setstcolor\:gobble\else |<soul color|>\fi}
7836 {\egroup\HCode{</text:span>}}
7837 \Configure{textul}
7838 {\HCode{<text:span text:style-name="textul">}\bgroup
7839 \ifx\setstcolor\:gobble\else |<soul color|>\fi}
7840 {\egroup\HCode{</text:span>}}
7841 >>>
7842
7843
7844
7845
7846
7847 \<configure ooffice soul\><<<
7848 \NewConfigureOO{textcaps}
7849 \ConfigureOO{textcaps}{|<oo textcaps style|>}
7850 \NewConfigureOO{textso}
7851 \ConfigureOO{textso}{|<oo textso style|>}
7852 \NewConfigureOO{textst}
7853 \ConfigureOO{textst}{|<oo textst style|>}
7854 \NewConfigureOO{textul}
7855 \ConfigureOO{textul}{|<oo textul style|>}
7856 >>>
7857
7858
7859 \<oo textcaps style\><<<
7860 <style:style style:name="textcaps" style:family="text">\Hnewline
7861 <style:text-properties fo:font-variant="small-caps" />\Hnewline
7862 </style:style>\Hnewline
7863 >>>
7864
7865
7866
7867 \<oo textso style\><<<
7868 <style:style style:name="textso" style:family="text">
7869 <style:text-properties fo:letter-spacing="0.035in"/>
7870 </style:style>
7871 >>>
7872
7873 \<oo textst style\><<<
7874 <style:style style:name="textst" style:family="text">
7875 <style:text-properties style:text-line-through-style="solid"
7876 style:text-underline-style="none" />
7877 </style:style>
7878 >>>
7879
7880 \<oo textul style\><<<
7881 <style:style style:name="textul" style:family="text">
7882 <style:text-properties style:text-underline-style="solid"
7883 style:text-underline-width="auto"
7884 style:text-underline-color="font-color"
7885 />
7886 </style:style>
7887 >>>
7888
7889 \<soul color\><<<
7890 \Configure{textcolor}
7891 {\gHAdvance\textcolorN by 1
7892 \OOautomaticstylesxml{%
7893 <style:style style:name="textcolor\textcolorN" style:family="text">
7894 <style:text-properties fo:color="\:currentcolor"
7895 fo:background-color="transparent" />
7896 </style:style>}%
7897 \HCode{<text:span text:style-name="textcolor\textcolorN">}}%
7898 {\HCode{</text:span>}}%
7899 >>>
7900
7901
7902 % <style:text-properties style:text-background-color="\HColor"/>
7903
7904 % <style:style style:name="T7" style:family="text">
7905 % <style:text-properties fo:color="#008000" fo:background-color="#ffffff"/>
7906 % </style:style>
7907
7908
7909 %%%%%%%%%%%%%
7910 \subsection{Color}
7911 %%%%%%%%%%%%%
7912
7913
7914 \<configure ooffice color\><<<
7915 \HAssign\textcolorN=0
7916 >>>
7917
7918
7919 \<configure ooffice color\><<<
7920 \ExplSyntaxOn
7921 \def\:escapecurrentcolor{%
7922 \tl_set:Nn\l_tmpa_tl{\:currentcolor}%
7923 \regex_replace_all:nnN{\#}{\detokenize{\#}}\l_tmpa_tl
7924 \tl_set_eq:NN\:currentcolor\l_tmpb_tl%
7925 }
7926 \ExplSyntaxOff
7927 \Configure{textcolor}
7928 {\gHAdvance\textcolorN by 1
7929 \:escapecurrentcolor
7930 \OOautomaticstylesxml{%
7931 <style:style style:name="textcolor\textcolorN" style:family="text">
7932 <style:text-properties fo:color="\:currentcolor"
7933 fo:background-color="transparent" />
7934 </style:style>}%
7935 \HCode{<text:span text:style-name="textcolor\textcolorN">}}%
7936 {\HCode{</text:span>}}%
7937 >>>
7938
7939 %%%%%%%%%%%%%%%%%%
7940 \section{frames}
7941 %%%%%%%%%%%%%%%%%
7942
7943 Basic support for framed boxes.
7944
7945 \subsection{framed.sty}
7946
7947 \<configure ooffice framed\><<<
7948 |<framedbox|>
7949 |<framedbox style|>
7950
7951 >>>
7952
7953 I've found that the framed box must be placed inside paragraph. It doesn't matter that it can contain
7954 nested paragraphs, it still works, unlike in HTML, where nested paragraphs are invalid.
7955
7956 I've found this solution by investigating of the code that LO creates for frame boxes.
7957 It seems that it is a best method how to come with solutions that work in the ODT format.
7958
7959 \<framedbox\><<<
7960 \Configure{makeframed}
7961 {\ifvmode\IgnorePar\fi\EndP%
7962 \HCode{<text:p><draw:frame draw:style-name="framebox" text:anchor-type="as-char" svg:width="100\prcnt:ch">\Hnewline
7963 <draw:text-box>}\par\ShowPar%
7964 }
7965 {\ifvmode\IgnorePar\fi\EndP\HCode{</draw:text-box></draw:frame></text:p>}\par\ShowPar}
7966 >>>
7967
7968 \<framedbox style\><<<
7969 \NewConfigureOO{framebox}
7970 \ConfigureOO{framebox}
7971 {<style:style style:name="framebox" style:family="graphic" style:class="text">\Hnewline
7972 <style:graphic-properties style:vertical-pos="from-top" style:vertical-rel="paragraph"
7973 style:horizontal-pos="from-left" style:horizontal-rel="paragraph" fo:padding="0.25cm"
7974 fo:border="0.06pt solid \#000000"/>
7975 </style:style>
7976 }
7977 >>>
7978
7979 %%%%%%%%%%%%%%%%%%
7980 \section{Pictures}
7981 %%%%%%%%%%%%%%%%%%
7982
7983
7984 \<configure ooffice latex\><<<
7985 \Configure{picture}
7986 {\Picture+[PICT]{}}
7987 {\EndPicture}
7988 >>>
7989
7990
7991
7992 \<configure ooffice pst-jtree\><<<
7993 \Configure{picture}
7994 {\Picture+[PICT]{}}
7995 {\EndPicture}
7996 >>>
7997
7998
7999
8000
8001
8002 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8003 \section{Equation Environment}
8004 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8005
8006
8007 %%%%%%%%%%%%%
8008 \subsection{LaTeX}
8009 %%%%%%%%%%%%%
8010
8011
8012 \<configure ooffice-mml latex\><<<
8013 \:CheckOption{tab-eq}\if:Option
8014 |<tab-based display equation|>
8015 \else
8016 \Log:Note{for tab-based layoutof equation environment
8017 use the command line option `tab-eq'}
8018 |<tabular-based display equation|>
8019 \fi
8020 >>>
8021
8022
8023
8024 \<tab-based display equation\><<<
8025 \Configure{equation}
8026 {\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi
8027 \EndP \HCode{<text:p text:style-name="equ-p-tab"><text:tab/>}%
8028 \Tabtrue
8029 |<disp math within equation|>%
8030 \IgnorePar}
8031 {\Tabfalse \ifvmode \IgnorePar\fi\EndP \HCode{<text:tab/>}}
8032 {\HCode{</text:p>}|<try inline par|>%
8033 }
8034 >>>
8035
8036 \<configure ooffice Preamble\><<<
8037 \newif\ifTab \Tabfalse
8038 >>>
8039
8040
8041
8042 \<tab-based display equation\><<<
8043 \OOstyles{%
8044 <style:style
8045 style:name="equ-p-tab"
8046 style:family="paragraph"
8047 style:parent-style-name="Standard">\Hnewline
8048 <style:paragraph-properties
8049 fo:text-align="center"
8050 style:justify-single-word="false">\Hnewline
8051 <style:tab-stops>
8052 <style:tab-stop
8053 style:position="7.5cm"
8054 style:type="center"/>
8055 <style:tab-stop
8056 style:position="17cm"
8057 style:type="right"/>
8058 </style:tab-stops>\Hnewline
8059 </style:paragraph-properties>
8060 </style:style>\Hnewline
8061 }
8062 >>>
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074 \<tabular-based display equation\><<<
8075 \Configure{equation}
8076 {\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi
8077 \EndP |<equation start table|>%
8078 |<disp math within equation|>%
8079 \IgnorePar}
8080 {\ifvmode \IgnorePar\fi\EndP
8081 |<equation table cells separator|>}
8082 {|<equation end table|>|<try inline par|>%
8083 }
8084 >>>
8085
8086
8087 \<equation start table\><<<
8088 \HCode{<table:table table:style-name="equation">%
8089 <table:table-column table:style-name="equ-col" />\Hnewline
8090 <table:table-column table:style-name="equ-num-col" />\Hnewline
8091 <table:table-row>%
8092 <table:table-cell table:style-name="equ-cell">%
8093 <text:p text:style-name="equ-p">}%
8094 >>>
8095
8096
8097
8098
8099 \<equation end table\><<<
8100 \HCode{</text:p></table:table-cell>\Hnewline
8101 </table:table-row></table:table>}%
8102 >>>
8103
8104
8105
8106
8107
8108 \<equation table cells separator\><<<
8109 \HCode{</text:p></table:table-cell>\Hnewline
8110 <table:table-cell table:style-name="equ-num-cell">%
8111 <text:p text:style-name="equ-num-p">}%
8112 >>>
8113
8114
8115
8116
8117
8118 \<configure ooffice-mml latex\><<<
8119 \OOstyles{%
8120 <style:style
8121 style:name="equ-p"
8122 style:family="paragraph"
8123 style:parent-style-name="Standard">\Hnewline
8124 <style:paragraph-properties
8125 fo:text-align="center"
8126 style:justify-single-word="false"/>\Hnewline
8127 </style:style>\Hnewline
8128 }
8129 \OOstyles{%
8130 <style:style
8131 style:name="equ-num-p"
8132 style:family="paragraph"
8133 style:parent-style-name="Standard">\Hnewline
8134 <style:paragraph-properties
8135 fo:text-align="end"
8136 style:justify-single-word="false"/>\Hnewline
8137 </style:style>\Hnewline
8138 }
8139 \OOstyles{%
8140 <style:style style:name="equation"
8141 style:family="table">\Hnewline
8142 <\style:tableproperties
8143 style:rel-width="88\prcnt:ch"
8144 fo:margin-left="1cm"
8145 fo:margin-right="0cm"
8146 fo:margin-top="0.3cm"
8147 fo:margin-bottom="0.3cm"
8148 table:align="margins"/>\Hnewline
8149 </style:style>\Hnewline
8150 }
8151 >>>
8152
8153 %%%%%%%%%%%%%
8154 \subsection{AMS Non-Starred}
8155 %%%%%%%%%%%%%
8156
8157
8158 \<configure ooffice-mml amsmath\><<<
8159 |<alt mathopen for eq|>
8160 \:CheckOption{tab-eq}\if:Option
8161 |<tab-based ams display equation|>
8162 \else
8163 \Log:Note{for tab-based layout of equation environment
8164 use the command line option `tab-eq'}
8165 |<tabular-based ams display equation|>
8166 \fi
8167 >>>
8168
8169
8170 Current AMSMath uses empty mathopen at the beginning of an equation,
8171 which results in missing markup for subsequent numbers and characters.
8172
8173 We check for empty parameter, and don't execute configurations when it is empty.
8174
8175 This is a copy from tex4ht-mathml.tex, because here it is used only in the
8176 htlm-mml.4ht output.
8177
8178 \<alt mathopen for eq\><<<
8179 \def\eq:mathopen#1{\ifx\relax#1\relax\else\a:mathopen\fi\o:mathopen:{#1}}
8180 >>>
8181
8182 \<mathopen in equation\><<<
8183 \let\mathopen\eq:mathopen%
8184 >>>
8185
8186
8187
8188
8189
8190 \<tabular-based ams display equation\><<<
8191 \Configure{equation}
8192 {\ifvmode \IgnorePar\fi\EndP
8193 |<equation start table|>%
8194 |<amsmath equation july 2000|>%
8195 |<disp math within equation|>%
8196 |<mathopen in equation|>%
8197 }
8198 {\ifvmode \IgnorePar\fi\EndP |<equation table cells separator|>}
8199 {\ifvmode \IgnorePar\fi\EndP |<equation end table|>%
8200 |<try inline par|>}
8201 >>>
8202
8203
8204
8205
8206
8207 \<tab-based ams display equation\><<<
8208 \Configure{equation}
8209 {\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi
8210 \EndP \HCode{<text:p text:style-name="equ-p-tab"><text:tab/>}%
8211 \Tabtrue
8212 |<amsmath equation july 2000|>%
8213 |<mathopen in equation|>%
8214 \IgnorePar}
8215 {\Tabfalse \ifvmode \IgnorePar\fi\EndP \HCode{<text:tab/>}}
8216 {\HCode{</text:p>}|<try inline par|>%
8217 }
8218 >>>
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231 \<disp math within equation\><<<
8232 \Configure{$$}
8233 {\Configure{@math}{}\IgnorePar\EndP
8234 \CenteredFrametrue \DviMath \CenteredFramefalse }
8235 {\EndDviMath\EndP}{}%
8236 >>>
8237
8238
8239
8240
8241 \<amsmath equation july 2000\><<<
8242 \Configure{gather}
8243 {\HCode{<\a:mathml mtable\Hnewline
8244 class="equation"><\a:mathml mtr><\a:mathml mtd>}\IgnorePar
8245 |<math display in equation|>}
8246 {\HCode{</\a:mathml mtd></\a:mathml mtr></\a:mathml mtable>}}
8247 {}
8248 {}
8249 {\ifnum\HCol=2 \IgnorePar
8250 \HCode{</\a:mathml mtd><\a:mathml mtd>}\fi }
8251 {}%
8252 >>>
8253
8254
8255
8256 %%%%%%%%%%%%%
8257 \subsection{AMS Starred}
8258 %%%%%%%%%%%%%
8259
8260
8261
8262 \<configure ooffice-mml amsmath\><<<
8263 \Configure{equation*}
8264 {\ifvmode \IgnorePar\fi \EndP
8265 |<equation-star start table|>%
8266 |<disp math within equation|>%
8267 \IgnorePar
8268 }
8269 {\ifvmode \IgnorePar\fi\EndP
8270 |<equation-star end table|>%
8271 \IgnoreIndent\par}
8272 >>>
8273
8274
8275 \<equation-star start table\><<<
8276 \HCode{<text:p text:style-name="display-math">}%
8277 >>>
8278
8279
8280 \<equation-star end table\><<<
8281 \HCode{</text:p>}%
8282 >>>
8283
8284
8285
8286 \<configure ooffice-mml amsmath\><<<
8287 \ConfigureEnv{align}
8288 {\ifmathml\else
8289 \ifvmode \IgnorePar\fi \EndP
8290 \IgnorePar
8291 \HCode{<text:p text:style-name="display-math">}%
8292 \fi
8293 }
8294 {\ifmathml\else
8295 \ifvmode \IgnorePar\fi\EndP
8296 \HCode{</text:p>}%
8297 \IgnoreIndent\par
8298 \fi
8299 }
8300 {} {}
8301 >>>
8302
8303
8304 \<configure ooffice-mml amsmath\><<<
8305 \ConfigureEnv{align*}
8306 {\ifmathml\else
8307 \ifvmode \IgnorePar\fi \EndP
8308 \IgnorePar
8309 \HCode{<text:p text:style-name="display-math">}%
8310 \fi
8311 }
8312 {\ifmathml\else
8313 \ifvmode \IgnorePar\fi\EndP
8314 \HCode{</text:p>}%
8315 \IgnoreIndent\par
8316 \fi
8317 }
8318 {} {}
8319 >>>
8320
8321
8322
8323 %%%%%%%%%%%%%%%%%%%
8324 \section{algorithmicx}
8325 %%%%%%%%%%%%%%%%%%%
8326
8327 \<configure ooffice algorithmicx\><<<
8328 \ConfigureEnv{algorithmic}
8329 {\ifvmode \IgnorePar\fi \EndP
8330 % \HCode{<div \a:LRdir class="algorithmic">}%
8331 \bgroup
8332 \Configure{HtmlPar}
8333 {\EndP}
8334 {\EndP}
8335 {}
8336 {}%
8337 }
8338 {\egroup
8339 % \HCode{</div>}%
8340 \par\ShowPar
8341 }
8342 {}{}
8343 >>>
8344
8345 \<configure ooffice algorithmicx\><<<
8346 \let\end:itm=\empty
8347 \ConfigureList{algorithmic}%
8348 {\EndP \end:itm
8349 \SaveHtmlPar \HCode{<text:list
8350 text:style-name="algorithmic|<cond rtl class|>"
8351 text:name="algorithmic"\Hnewline>}%
8352 \PushMacro\end:Itm
8353 \global\let\end:itm=\empty
8354 \global\let\end:Itm=\empty
8355 \Configure{HtmlPar}
8356 {\end:itm\gdef\end:itm{\HCode{</text:p>}}%
8357 \HCode{<text:p
8358 text:style-name="dd|<cond rtl class|>" >}%
8359 }
8360 {\end:itm\gdef\end:itm{\HCode{</text:p>}}%
8361 \HCode{<text:p
8362 text:style-name="dd|<cond rtl class|>" >}%
8363 }
8364 {}
8365 {}%
8366 }
8367 {\end:itm \end:Itm \global\let\end:itm=\empty
8368 \PopMacro\end:Itm \global\let\end:Itm\end:Itm
8369 \HCode{</text:list>}\RecallHtmlPar \ShowPar
8370 \special{t4ht@.}%
8371 }
8372 {\end:itm \end:Itm \gdef\end:Itm{\HCode{</text:list-item>}}%
8373 \gdef\end:itm{\HCode{</text:p>}\special{t4ht@.}}\HCode{<text:list-item><text:p
8374 text:style-name="algorithmic-dt|<cond rtl class|>"\Hnewline >}\bgroup \bf
8375 \special{t4ht@. }%
8376 }
8377 {\special{t4ht@.}%
8378 \egroup
8379 \special{t4ht@. }%
8380 }
8381 >>>
8382
8383
8384
8385
8386
8387
8388
8389 \<\><<<
8390 \ConfigureList{algorithmic}%
8391 {\EndP
8392 \PushMacro\end:itm
8393 \global\let\end:itm=\empty}
8394 {\PopMacro\end:itm \global\let\end:itm \end:itm
8395 \EndP
8396 \special{t4ht@.}%
8397 \HCode{</span>}%
8398 }
8399 {\end:itm
8400 \HCode{\ifx \end:itm\empty\else <br class="algorithmic"/>\fi
8401 <span class="label-\the\labelwidth">}%
8402 \global\def\end:itm{\EndP\special{t4ht@,}\Tg</span>}%
8403 \ifnum \c@ALG@line=10
8404 \Css{.algorithmic span.label{width:3em; text-align:right;}}\fi
8405 }
8406 {\HCode{</span>&\#xA0;<span\Hnewline class="algorithmic">}%
8407 \special{t4ht@. }}
8408 \Css{div.algorithmic span.algorithmic{white-space:pre}}
8409 >>>
8410
8411
8412
8413
8414
8415 \<configure ooffice latex\><<<
8416 \NewConfigureOO{algorithmic}
8417 \ConfigureOO{algorithmic}{|<algorithmic style|>}
8418 >>>
8419
8420
8421
8422
8423 \<algorithmic style\><<<
8424 <text:list-style style:name="algorithmic" >
8425 <text:list-level-style-bullet
8426 text:level="1"
8427 text:style-name="Source-Text"
8428 text:bullet-char=" " >\Hnewline
8429 <style:list-level-properties
8430 text:space-before="0in"
8431 text:min-label-width="0in"
8432 text:min-label-distance="0in" />\Hnewline
8433 </text:list-level-style-bullet>
8434 <text:list-level-style-bullet
8435 text:level="2"
8436 text:style-name="Source-Text"
8437 text:bullet-char=" " >\Hnewline
8438 <style:list-level-properties
8439 text:space-before="0.2in"
8440 text:min-label-width="0.2in"
8441 text:min-label-distance="0.05in"
8442 />\Hnewline
8443 </text:list-level-style-bullet>
8444 <text:list-level-style-bullet
8445 text:level="3"
8446 text:style-name="Source-Text"
8447 text:bullet-char=" " >\Hnewline
8448 <style:list-level-properties
8449 text:space-before="0.4in"
8450 text:min-label-width="0.2in"
8451 text:min-label-distance="0.05in"/>\Hnewline
8452 </text:list-level-style-bullet>
8453 <text:list-level-style-bullet
8454 text:level="4"
8455 text:style-name="Source-Text"
8456 text:bullet-char=" " >\Hnewline
8457 <style:list-level-properties
8458 text:space-before="0.6in"
8459 text:min-label-width="0.2in"
8460 text:min-label-distance="0.05in"/>\Hnewline
8461 </text:list-level-style-bullet>
8462 </text:list-style>
8463 >>>
8464
8465
8466 \<algorithmic style\><<<
8467 <style:style
8468 style:name="algorithmic-dd"
8469 style:family="paragraph"
8470 style:parent-style-name="Standard">
8471 <style:paragraph-properties
8472 fo:margin-left="0.35in"
8473 fo:margin-right="0in"
8474 fo:margin-top="0cm"
8475 fo:margin-bottom="0.2cm"
8476 fo:text-indent="0in"
8477 style:auto-text-indent="false"/>
8478 <style:text-properties
8479 fo:wrap-option="no-wrap"
8480 />
8481 </style:style>
8482 <style:style
8483 style:name="algorithmic-dt"
8484 style:family="paragraph"
8485 style:parent-style-name="">
8486 <style:paragraph-properties
8487 fo:margin-left="0.1in"
8488 fo:margin-right="0in"
8489 fo:text-indent="0in"
8490 style:auto-text-indent="false"/>
8491 <style:text-properties
8492 fo:wrap-option="no-wrap"
8493 />
8494 </style:style>
8495 >>>
8496
8497
8498
8499
8500 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8501 \section{Links}
8502 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8503
8504 %%%%%%%%%%%%%
8505 \subsection{Cross References}
8506 %%%%%%%%%%%%%
8507
8508
8509 \url{http://www.linuxjournal.com/article/8112}
8510
8511 \begin{verbatim}
8512 <text:reference-mark-start text:name="xx"/>
8513 is
8514 <text:reference-mark-end text:name="xx"/>
8515
8516 <text:reference-ref text:reference-format="direction" text:ref-name="xx">
8517 above
8518 </text:reference-ref>
8519 \end{verbatim}
8520
8521
8522
8523 An approximation is provided here, to be cleaned by xtpipes.
8524
8525 \<configure ooffice latex\><<<
8526 \Configure{Link}{t4htlink}{href=}{name=}{}%
8527 \Configure{ref}
8528 {\Link}
8529 {\ifx \RefArg\:UnDef\else
8530 \Tg<!--tex4ht:ref: \RefArg\space-->\fi\EndLink}
8531 {}
8532 \def\NOHREF:#1{\space href="\:sharp#1"}%
8533 >>>
8534
8535
8536
8537 \<configure ooffice latex\><<<
8538 \:CheckOption{hidden-ref}\if:Option
8539 \OOstyles{%
8540 <style:style style:name="reference-ref" style:family="text">
8541 <style:text-properties
8542 style:text-scale = "0\prcnt:ch"
8543 />
8544 </style:style>
8545 }
8546 \else
8547 \Log:Note{to hide clickable index and bibliography references
8548 use the command line option `hidden-ref'}
8549 \OOstyles{%
8550 <style:style style:name="reference-ref" style:family="text">
8551 <style:text-properties
8552 style:text-underline-style="solid"
8553 style:text-underline-width="thick"
8554 style:text-underline-height="0.2em"
8555 style:text-underline-color="\#0000FF"
8556 />
8557 </style:style>
8558 }
8559 \fi
8560 >>>
8561
8562 \<configure ooffice latex \><<<
8563 \Configure{Link}{text:a}{ xlink:href=}
8564 { office:name=}{}%
8565 \def\NOHREF:#1{\space xlink:href="\:sharp#1"}%
8566 >>>
8567
8568
8569 % \Configure{Link}{text:span}{xlink:href=}{xlink:label=}{}
8570
8571
8572
8573
8574 %%%%%%%%%%%%%%%%%%%
8575 \subsection{url.sty}
8576 %%%%%%%%%%%%%%%%%%%
8577
8578 \<configure ooffice url\><<<
8579 \:CheckOption{url-il2-pl} \if:Option
8580 \else \:CheckOption{url-enc} \fi
8581 \if:Option
8582 \Configure{string-encoder}{url-encoder}
8583 % \:CheckOption{url-il2-pl} \if:Option
8584 |<il2-pl.tcx url encoder|>
8585 % \else
8586 |<default url encoder WAIT|>
8587 % \Log:Note{for il2-pl url encoding,
8588 % use the command line option 'url-il2-pl'}
8589 % \fi
8590 \Configure{url}%
8591 {|<:temp = url encoded string|>%
8592 \Link[\noexpand\the\tmp:toks \space
8593 class="url"]{}{}{\let\UrlBigBreaks\empty
8594 \let\UrlBreaks\empty #1}\EndLink}
8595 |<url encoded string utilities|>
8596 \else
8597 \:CheckOption{url-} \if:Option
8598 \Configure{url}%
8599 {{\let\UrlBigBreaks\empty \let\UrlBreaks\empty #1}}%
8600 \else
8601 \Log:Note{for URL encoding within href
8602 use the command line option `url-enc'; for hyperlink-less
8603 entry use the command line option `url-'}
8604 \Configure{url}%
8605 {\tmp:toks{#1}\Link[\noexpand\the\tmp:toks\space
8606 class="url"]{}{}{\let\UrlBigBreaks\empty
8607 \let\UrlBreaks\empty #1}\EndLink}
8608 \fi
8609 \fi
8610 |<path config|>
8611 >>>
8612
8613 \<:temp = url encoded string\><<<
8614 \tmp:toks={}\set:spaces#1|<par del|>%
8615 \edef\:temp{\tmp:toks{\csname url-encoder\expandafter\endcsname
8616 \the\tmp:toks |<par del|>}}\:temp
8617 >>>
8618
8619 \<url encoded string utilities\><<<
8620 \def\set:spaces{\futurelet\:temp\set:spacesoo}
8621 \def\set:spacesoo{%
8622 \expandafter\ifx \space\:temp
8623 \tmp:toks\expandafter{\the\tmp:toks{ }}%
8624 \fi
8625 \set:spaceso
8626 }
8627 \def\set:spaceso#1#2|<par del|>{%
8628 \tmp:toks\expandafter{\the\tmp:toks #1}%
8629 \if :#2:\else \set:spaces#2|<par del|>\fi
8630 }
8631 >>>
8632
8633 \<default url encoder\><<<
8634 \Configure{url-encoder}
8635 {%}{%25}
8636 {&}{%26}
8637 {'}{%27}
8638 {<}{%3C}
8639 {>}{%3E}
8640 {_}{_}
8641 {^}{^}
8642 {}{}
8643 \Log:Note{current url encoding setting: \string\Configure{url-encoder}%
8644 {\%}{\%25}%
8645 {&}{\%26}%
8646 {'}{\%27}%
8647 {<}{\%3C}%
8648 {>}{\%3E}%
8649 {\string _}{\string _}%
8650 {\string ^}{\string ^}%
8651 {}{}}
8652 >>>
8653
8654
8655
8656
8657 \<il2-pl.tcx url encoder\><<<
8658 \input{html4-l2-url.4ht}
8659 >>>
8660
8661
8662 \Link[http://www.faqs.org/rfcs/rfc2396.html]{}{}http://www.faqs.org/rfcs/rfc2396.html\EndLink
8663
8664 See issues in:
8665
8666 \begin{verbatim}
8667 \documentclass{article}
8668 \usepackage{url}
8669 \begin{document}
8670
8671 \url{a%b c&d}
8672
8673 \url{a%25b+c&amp;d}
8674
8675 \end{document}
8676 \end{verbatim}
8677
8678 \<\><<<
8679 \expandafter\ifx\csname Url@OT1encSpecials\endcsname\relax
8680 |<url.sty|>
8681 \else
8682 |<url-2004.sty|>
8683 \fi
8684 >>>
8685
8686 \<url-2004.styNO\><<<
8687
8688 >>>
8689
8690 \<url.styNO\><<<
8691 \Configure{url}{\Link[#1 class="url"]{}{}{\let\UrlBigBreaks\empty
8692 \let\UrlBreaks\empty #1}\EndLink}
8693 >>>
8694
8695 %%%%%%%%%%%%%%%%%%
8696 \section{Other}
8697 %%%%%%%%%%%%%%%%%%
8698
8699
8700
8701
8702
8703 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8704 \subsection{??? Move to Unicode}
8705 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8706
8707
8708 \<configure ooffice fontmath\><<<
8709 \Configure{mathellipsis}
8710 {\HCode{\string&\#x2026;}}
8711 >>>
8712
8713
8714
8715
8716
8717
8718
8719 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8720 \subsection{Math}
8721 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8722
8723
8724
8725 \<configure ooffice-mml latex\><<<
8726 \Configure{[]}
8727 {\Configure{@math}{|<block display|>}\IgnorePar
8728 \ifvmode\EndP
8729 \else\EndP \HCode{<!--tex4ht:inline-->}\fi
8730 \HCode{<text:p text:style-name="display-math">}%
8731 \CenteredFrametrue \DviMath \CenteredFramefalse
8732 $$\DisplayMathtrue}
8733 {$$\EndDviMath\HCode{</text:p>}\ShowPar\par
8734 {\csname HCondtrue\endcsname\noindent}}
8735 {}
8736 >>>
8737
8738
8739
8740
8741 \<configure ooffice tex4ht\><<<
8742 \def\mml:class#1"#2"{ }
8743 >>>
8744
8745
8746
8747
8748 \<oo2 mml tex4ht\><<<
8749 \Configure{$$}
8750 {\Configure{@math}{|<block display|>}\IgnorePar
8751 \ifvmode\EndP
8752 \else\EndP \HCode{<!--tex4ht:inline-->}\fi
8753 \HCode{<text:p text:style-name="display-math">}%
8754 \CenteredFrametrue \DviMath \CenteredFramefalse }
8755 {\EndDviMath
8756 \HCode{</text:p>}
8757 \ShowPar\par
8758 {\csname HCondtrue\endcsname\noindent}}
8759 {\DisplayMathtrue}
8760 >>>
8761
8762
8763 \<configure ooffice-mml rlbabel\><<<
8764 \Configure{[]}
8765 {\Configure{@math}{|<block display|>}\IgnorePar
8766 \ifvmode\EndP
8767 \else\EndP \HCode{<!--tex4ht:inline-->}\fi
8768 \HCode{<text:p text:style-name="display-math">}%
8769 \CenteredFrametrue \DviMath \CenteredFramefalse
8770 $$\DisplayMathtrue}
8771 {$$\EndDviMath\HCode{</text:p>}\ShowPar\par
8772 {\csname HCondtrue\endcsname\noindent}}
8773 {}
8774 >>>
8775
8776
8777
8778 \<configure ooffice-mml tex4ht\><<<
8779 \NewConfigureOO{display-math}
8780 \ConfigureOO{display-math}
8781 {<style:style style:name="display-math"
8782 style:family="paragraph"
8783 style:parent-style-name="Text-body">\Hnewline
8784 <style:paragraph-properties
8785 fo:text-align="center"
8786 style:auto-text-indent="false"
8787 style:justify-single-word="false"/>\Hnewline
8788 </style:style>\Hnewline}
8789 >>>
8790
8791
8792
8793
8794
8795
8796 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8797 \subsection{Obeying lines and Verbatims}
8798 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8799
8800
8801 \<configure ooffice latex\><<<
8802 \Configure{verb}
8803 {\HCode{<text:span\Hnewline text:style-name="verb">}}
8804 {\HCode{</text:span>}}
8805 \NewConfigureOO{verb}
8806 \ConfigureOO{verb}{|<verb style|>}
8807 >>>
8808
8809 \<configure ooffice latex\><<<
8810 \Configure{obeylines}
8811 {\ifvmode \IgnorePar\EndP \IgnoreIndent
8812 \HCode{<text:p\Hnewline text:style-name="obeylines-v">}%
8813 \gdef\ob:ln{\ht:special{t4ht=</text:p>}}%
8814 \else
8815 \SaveEndP \HCode{<text:span\Hnewline
8816 text:style-name="obeylines-h">}%
8817 \gdef\ob:ln{\ht:special{t4ht=</text:span>}\RecallEndP}%
8818 \fi
8819 }
8820 {\EndP\ob:ln\ShowPar}
8821 {\hbox{\HCode{<text:line-break/>}}}
8822 \NewConfigureOO{obeylines}
8823 \ConfigureOO{obeylines}{|<obeylines style|>}
8824 >>>
8825
8826
8827
8828 \<configure ooffice latex\><<<
8829 \ConfigureEnv{verbatim}
8830 {\ifinner\else \vfill\break\fi
8831 \IgnorePar\EndP \HAssign\Verb:N=0
8832 \HCode{|<input line num|><text:p
8833 text:style-name="Preformatted-Text|<cond rtl class|>">}\EndNoFonts
8834 }
8835 {\NoFonts \EndP \ht:special{t4ht=</text:p>}\ShowPar\par}
8836 {}{}
8837 \Configure{verbatim}
8838 {\HAdvance\Verb:N by 1 \ifnum \Verb:N>1
8839 \HCode{<text:line-break/>}%
8840 \fi
8841 }
8842 {\HCode{<text:s/>}}
8843 \NewConfigureOO{verbatim}
8844 \ConfigureOO{verbatim}{|<verbatim style|>}
8845 >>>
8846
8847
8848
8849
8850 \<obeylines style\><<<
8851 <style:style style:name="obeylines-h" style:family="text">\Hnewline
8852 <style:text-properties
8853 fo:wrap-option="no-wrap"
8854 />\Hnewline
8855 </style:style>\Hnewline
8856 <style:style style:name="obeylines-v" style:family="text">\Hnewline
8857 <style:text-properties
8858 fo:wrap-option="no-wrap"
8859 />\Hnewline
8860 </style:style>\Hnewline
8861 >>>
8862
8863
8864
8865 \<verb style\><<<
8866 <style:style style:name="verb" style:family="text">\Hnewline
8867 <style:text-properties
8868 fo:font-family="monospace"
8869 />\Hnewline
8870 </style:style>\Hnewline
8871 >>>
8872
8873
8874
8875 \<verbatim style\><<<
8876 <style:style style:name="Preformatted-Text"
8877 style:family="paragraph"
8878 style:parent-style-name="Standard">\Hnewline
8879 <style:paragraph-properties
8880 % fo:font-family="monospace"
8881 % fo:wrap-option="no-wrap"
8882 % style:font-name="Courier"
8883 fo:margin-top="0.2cm"
8884 fo:margin-bottom="0.2cm"
8885 fo:text-indent="0cm"
8886 />\Hnewline
8887 <style:text-properties fo:font-family="monospace"/>\Hnewline
8888 </style:style>\Hnewline
8889 |<Preformatted Text rtl|> %
8890 >>>
8891
8892
8893
8894
8895
8896
8897
8898 \<W2L verbatim style\><<<
8899 <style:style style:name="Preformatted-Text"
8900 style:family="paragraph"
8901 style:parent-style-name="Standard"
8902 style:class="html">
8903 <style:paragraph-properties fo:margin-top="0cm"
8904 fo:margin-bottom="0cm"
8905 style:font-name="Cumberland2"
8906 fo:font-size="12pt"
8907 style:font-name-asian="Cumberland2"
8908 style:font-size-asian="10pt"
8909 style:font-name-complex="Cumberland2"
8910 style:font-size-complex="10pt"/>
8911 </style:style>
8912 >>>
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931 \<oo2 fonts \><<<
8932 <style:font-face
8933 style:font-name="Courier"
8934 svg:font-family="Courier"
8935 style:font-family-generic="modern"
8936 style:font-pitch="fixed"/>\Hnewline
8937 >>>
8938
8939
8940
8941
8942 % \begin{verbatim}
8943 % fo:wrap-option is not supported by OOo
8944 %
8945 % The option fo:font-family is not used for generic font names in OOo, you
8946 % should use the combination
8947 % fo:font-family="Courier" (or some other suitable font name, not important)
8948 % style:font-family-generic="modern"
8949 % style:font-pitch="fixed"
8950 %
8951 % The `momospace' is recognized, and needed for the spaces.
8952 % Do we need the Courier?
8953 %
8954 % See:
8955 %
8956 % \ begin{verbatim}
8957 % 1234
8958 % x x
8959 % \ end{verbatim}
8960 %
8961 %
8962 % I would recommend to declare the styles verb and verbatim as follows:
8963 %
8964 % <style:font-decl style:name="Courier" fo:font-family="Courier"
8965 % style:font-family-generic="modern" style:font-pitch="fixed"/>
8966 %
8967 % <style:style style:name="verbatim" style:family="paragraph"
8968 % style:parent-style-name="Standard">
8969 % <style:paragraph-properties style:font-name="Courier" fo:margin-top="0.2cm"
8970 % fo:margin-bottom="0.2cm" fo:text-indent="0cm" />
8971 % </style:style>
8972 %
8973 % <style:style style:name="verb" style:family="text">
8974 % <style:text-properties style:font-name="Courier" />
8975 % </style:style>
8976 %
8977 % OOo comes with built-in styles for this, which you could choose to use
8978 % instead:
8979 % "Preformatted-Text" and "Teletype"
8980 % \end{verbatim}
8981
8982 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8983 \subsection{Standard Paragraphs}
8984 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8985
8986
8987
8988 \<configure ooffice tex4ht\><<<
8989 \expandafter\ifx \csname if@rl\endcsname\relax
8990 \expandafter \csname newif\expandafter\endcsname \csname if@rl\endcsname
8991 \@rlfalse
8992 \fi
8993 \HTML:PAR{\ifHCond Like-\fi Text-body|<cond rtl class|>}%
8994 {\ifdim \parindent=\z@ Text-body\else
8995 First-line-indent\fi |<cond rtl class|>}
8996 >>>
8997
8998
8999 % \HTML:PAR{p-\ifHCond nopar\else noindent\fi}%
9000 % {p-\ifdim \parindent=\z@ no\fi indent}
9001
9002
9003 \<utilities\><<<
9004 \def\HTML:PAR#1#2{%
9005 \Configure{HtmlPar}%
9006 {\EndP\HCode{|<input line num|><text:p text:style-name="#1">}}%
9007 {\EndP\HCode{|<input line num|><text:p text:style-name="#2">}}%
9008 {\HCode{</text:p>\Hnewline}}%
9009 {\HCode{</text:p>\Hnewline}}}
9010 >>>
9011
9012 \<input line num\><<<
9013 <!--l. \the\inputlineno-->%
9014 >>>
9015
9016
9017
9018
9019
9020 It seems that the \verb+auto-text-indent="true"+ setting does not
9021 export to rtf or ms word doc successfully from OOo at present. The
9022 style p-indent thus displays as non-indented when the file is
9023 exported from Ooo. Hence, it is replaced with
9024
9025 \begin{verbatim}
9026 fo:text-indent="0.4cm"
9027 style:auto-text-indent="false"
9028 \end{verbatim}
9029
9030
9031 \<configure ooffice tex4ht\><<<
9032 \NewConfigureOO{p-indent}
9033 \ConfigureOO{p-indent}{%
9034 <style:style style:name="First-line-indent"
9035 style:family="paragraph"
9036 style:parent-style-name="Text-body"
9037 style:class="text">\Hnewline
9038 <style:paragraph-properties fo:margin-left="0cm"
9039 fo:margin-right="0cm"
9040 fo:text-indent="0.499cm"
9041 style:auto-text-indent="false"/>
9042 </style:style>\Hnewline |<First-line-indent rtl|> }
9043 >>>
9044
9045
9046
9047 \<configure ooffice tex4ht\><<<
9048 \NewConfigureOO{p-noindent}
9049 \ConfigureOO{p-noindent}{%
9050 <style:style style:name="Text-body"
9051 style:family="paragraph"
9052 style:parent-style-name="Standard"
9053 style:next-style-name="First-line-indent"
9054 style:class="text"
9055 style:master-page-name="">\Hnewline
9056 <style:paragraph-properties fo:margin-top="0cm"
9057 fo:margin-bottom="0cm"
9058 fo:line-height="120\prcnt:ch"
9059 fo:text-align="justify"
9060 style:justify-single-word="false"
9061 fo:hyphenate="true"
9062 fo:hyphenation-remain-char-count="2"
9063 fo:hyphenation-push-char-count="2"
9064 fo:hyphenation-ladder-count="no-limit"
9065 style:page-number="0"/>
9066 </style:style>
9067 \Hnewline
9068 <style:style style:name="Like-Text-body"
9069 style:family="paragraph"
9070 style:parent-style-name="Standard"
9071 style:next-style-name="First-line-indent"
9072 style:class="text"
9073 style:master-page-name="">\Hnewline
9074 <style:paragraph-properties fo:margin-top="0cm"
9075 fo:margin-bottom="0cm"
9076 fo:line-height="120\prcnt:ch"
9077 fo:text-align="justify"
9078 style:justify-single-word="false"
9079 fo:hyphenate="true"
9080 fo:hyphenation-remain-char-count="2"
9081 fo:hyphenation-push-char-count="2"
9082 fo:hyphenation-ladder-count="no-limit"
9083 style:page-number="0"/>
9084 </style:style>
9085 \Hnewline |<Text-body rtl|>}
9086 >>>
9087
9088
9089
9090
9091
9092
9093
9094
9095 \<configure ooffice tex4ht\><<<
9096 \NewConfigureOO{p-nopar}
9097 \ConfigureOO{p-nopar}
9098 {<style:style style:name="p-nopar"
9099 style:family="paragraph"
9100 style:parent-style-name="Text-body">\Hnewline
9101 <style:paragraph-properties
9102 fo:text-align="justify"
9103 style:auto-text-indent="false"
9104 fo:margin-top="0.3cm"
9105 fo:margin-bottom="0.3cm"
9106 style:justify-single-word="false"/>\Hnewline
9107 </style:style>\Hnewline |<p-nopar rtl|> }
9108 >>>
9109
9110 %%%%%%%%%%%%%
9111 \subsection{Page Layout}
9112 %%%%%%%%%%%%%
9113
9114 We need to define the following dimensions for Plain TeX
9115
9116 \<plain page dimensions\><<<
9117 \newdimen\paperwidth
9118 \newdimen\paperheight
9119 \paperwidth=11truein
9120 \paperheight=8.5truein
9121 >>>
9122
9123 The following doesn't catch because the style name is not in use. Is
9124 there a way to get styles to be specifies as a default without
9125 referring to names.
9126
9127 \<oo2 automatic styles\><<<
9128 \Configure{automatic-styles}
9129 {\csname a:page-layout\endcsname}
9130 \NewConfigure{page-layout}{1}
9131 \Configure{page-layout}{%
9132 <style:page-layout style:name="Standard-page-layout">\Hnewline
9133 <style:page-layout-properties
9134 fo:page-width="\the\paperwidth" |%"8.5in"|%
9135 fo:page-height="\the\paperheight" |%"11in"|%
9136 style:num-format="1"
9137 style:print-orientation="portrait"
9138 fo:margin-top="0.7874in"
9139 fo:margin-bottom="0.7874in"
9140 fo:margin-left="0.7874in"
9141 fo:margin-right="0.7874in"
9142 style:writing-mode="lr-tb"
9143 style:footnote-max-height="0in">\Hnewline
9144 <style:footnote-sep
9145 style:width="0.0071in"
9146 style:distance-before-sep="0.0398in"
9147 style:distance-after-sep="0.0398in"
9148 style:adjustment="left"
9149 style:rel-width="25\prcnt:ch"
9150 style:color="\#000000"/>\Hnewline
9151 </style:page-layout-properties>\Hnewline
9152 <style:header-style/>
9153 <style:footer-style/>
9154 </style:page-layout>\Hnewline
9155 }
9156 >>>
9157
9158 % <style:style style:name="P1"
9159 % style:family="paragraph"
9160 % style:parent-style-name="Text-body">
9161 % <style:paragraph-properties fo:line-height="0.2201in"/>
9162 % </style:style>
9163
9164 \<styles.xml: master-styles\><<<
9165 <style:master-page
9166 style:name="Standard"
9167 style:page-layout-name="Standard-page-layout"/>\Hnewline
9168 >>>
9169
9170 \<styles.xml: automatic-styles\><<<
9171 <style:page-layout style:name="Standard-page-layout">
9172 <style:page-layout-properties
9173 fo:page-width="\the\paperwidth" |%"8.5in"|%
9174 fo:page-height="\the\paperheight" |%"11in"|%
9175 fo:margin-left="1.0in"
9176 fo:margin-right="1.0in"
9177 style:print-orientation="portrait"
9178 >
9179 </style:page-layout-properties>
9180 </style:page-layout>
9181 >>>
9182
9183
9184 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9185 \subsection{Captions of Figures}
9186 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9187
9188 \<ooffice captions\><<<
9189 \Configure{caption}
9190 {\ht:everypar{\HtmlPar}%
9191 \ifvmode \EndP \par\ShowPar\else \HCode{<text:line-break/>}\fi
9192 \HCode{\Hnewline <text:span text:style-name="caption" >%
9193 <text:span text:style-name="caption-title" >}}
9194 {: }
9195 {\HCode{</text:span>}}
9196 {\HCode{</text:span>}}
9197 \OOstyles{%
9198 <style:style style:name="caption-title" style:family="text">\Hnewline
9199 <style:text-properties fo:font-style="normal"
9200 fo:font-weight="bold"/>\Hnewline
9201 </style:style>\Hnewline
9202 }
9203 >>>
9204
9205
9206
9207
9208
9209 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9210 \subsection{Vertical Spaces}
9211 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9212
9213 \<big skip\><<<
9214 <text:p text:style-name="bigskip"></text:p>%
9215 >>>
9216
9217
9218 \<configure ooffice tex4ht\><<<
9219 \OOstyles{%
9220 <style:style style:name="bigskip" style:family="paragraph"
9221 style:parent-style-name="Text-body">
9222 <style:paragraph-properties
9223 fo:margin-top="0.2cm"
9224 fo:margin-bottom="0.0cm"
9225 />
9226 </style:style>
9227 }
9228 >>>
9229
9230 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9231 \subsection{Page Breaks}
9232 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9233
9234
9235
9236 \<configure ooffice tex4ht\><<<
9237 \OOstyles{%
9238 <style:style style:name="clearpage" style:family="paragraph"
9239 style:parent-style-name="Text-body">
9240 <style:paragraph-properties fo:break-before="page" />
9241 </style:style>
9242 }
9243 \def\Hclearpage{%
9244 \par \ifvmode
9245 \IgnorePar\EndP
9246 \HCode{|<new page|>}%
9247 \ShowPar\par
9248 \fi
9249 }
9250
9251 >>>
9252
9253 \<new page\><<<
9254 <text:p text:style-name="clearpage"></text:p>%
9255 >>>
9256
9257
9258
9259 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9260 \subsection{Footnotes}
9261 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9262
9263
9264 \<configure ooffice latex\><<<
9265 |<footnote mark|>
9266 |<footnote text|>
9267 |<footnote thank|>
9268 >>>
9269
9270 \<footnote text\><<<
9271 \Configure{footnotetext}
9272 {\Tag{|<footnote id|>-tx}{}%
9273 |<check duplicate footnote text|>%
9274 \SaveEndP \NoFonts \bgroup\let\@textsuperscript\hbox%
9275 \HCode{<\text:footnote\Hnewline\text:note:class
9276 text:id="}|<footnote id|>%
9277 \HCode{"><\text:footnote-citation>}%
9278 \IgnorePar \special{t4ht@(}%
9279 }
9280 {\egroup\EndNoFonts \RecallEndP
9281 \HCode{</\text:footnote-citation><\text:footnote-body>
9282 <text:p\Hnewline text:style-name="Footnote">}\NoFonts
9283 % |<footnotetext space|>%
9284 \SaveHtmlPar |<footnote pars|>\ShowPar \special{t4ht@)}%
9285 }
9286 {\RecallHtmlPar\EndNoFonts
9287 \HCode{</text:p></\text:footnote-body></\text:footnote>}%
9288 |<notice footnote text|>%
9289 }
9290 >>>
9291
9292
9293 \<footnotetext space\><<<
9294 %<text:s/>
9295 >>>
9296
9297 \<configure ooffice latex\><<<
9298 \NewConfigureOO{Footnote}
9299 \ConfigureOO{Footnote}{
9300 <style:style
9301 style:name="Footnote"
9302 style:family="paragraph"
9303 style:parent-style-name="Standard"
9304 style:class="extra">\Hnewline
9305 <style:paragraph-properties
9306 fo:margin-left="0.2in"
9307 fo:margin-right="0in"
9308 fo:text-indent="-0.2in"
9309 style:auto-text-indent="false"/>
9310 <style:text-properties fo:font-size="85\prcnt:ch"
9311 style:font-size-asian="85\prcnt:ch"
9312 style:font-size-complex="85\prcnt:ch" />
9313 </style:style>\Hnewline
9314 <text:notes-configuration text:note-class="footnote"
9315 text:citation-style-name="Footnote_20_Symbol"
9316 text:citation-body-style-name="Footnote_20_anchor"
9317 style:num-format="1" text:start-value="0"
9318 text:footnotes-position="page"
9319 text:start-numbering-at="document" />\Hnewline
9320 <style:style style:name="Footnote_20_Symbol"
9321 style:display-name="Footnote Symbol" style:family="text" >\Hnewline
9322 <style:text-properties style:text-position="super 70\prcnt:ch" />\Hnewline
9323 </style:style>
9324 <style:style style:name="Footnote_20_anchor"
9325 style:display-name="Footnote anchor" style:family="text">
9326 <style:text-properties style:text-position="super 58\prcnt:ch" />\Hnewline
9327 </style:style>\Hnewline
9328 }
9329 >>>
9330
9331
9332
9333
9334
9335
9336 % \Odef\Link[##1]##2##3{\global\let\cur:EndLink\EndLink
9337 % \gdef\EndLink{\global\let\EndLink=\cur:EndLink}}
9338
9339
9340 \<footnote pars\><<<
9341 \Configure{HtmlPar}
9342 {\EndP \HCode{<text:p text:style-name="Footnote">}}
9343 {\EndP \HCode{<text:p text:style-name="Footnote">}}
9344 {\HCode{</text:p>}}
9345 {\HCode{</text:p>}}%
9346 >>>
9347
9348
9349
9350
9351 \<footnote mark\><<<
9352 \ifx \tmp:bx\:UnDef \csname newbox\endcsname \tmp:bx \fi
9353 \Configure{footnotemark}
9354 {\Tag{|<footnote id|>}{}%
9355 |<footnote mark without text|>}%
9356 {|<end footnote mark without text|>%
9357 }
9358 >>>
9359
9360 \<check duplicate footnote text\><<<
9361 \ifTag{|<footnote id|>}
9362 {\expandafter\ifx\csname (|<footnote id|>)\endcsname\def
9363 \:warning{Multiple footnote texts for mark \FNnum}%
9364 \fi
9365 } {}%
9366 >>>
9367
9368
9369 \<notice footnote text\><<<
9370 \expandafter\global\expandafter
9371 \let\csname (|<footnote id|>)\endcsname\def
9372 >>>
9373
9374
9375 \<footnote mark without text\><<<
9376 \ifTag{|<footnote id|>-tx}
9377 {\setbox\tmp:bx=\hbox\bgroup}
9378 {\NoFonts
9379 \HCode{<\text:footnote\Hnewline\text:note:class
9380 text:id="}|<footnote id|>%
9381 \HCode{"><\text:footnote-citation>}%
9382 }%
9383 >>>
9384
9385 \<end footnote mark without text\><<<
9386 \ifTag{|<footnote id|>-tx}
9387 {\egroup}
9388 {\EndNoFonts \HCode{</\text:footnote-citation><\text:footnote-body>
9389 <text:p\Hnewline text:style-name="Footnote">%
9390 </text:p></\text:footnote-body></\text:footnote>}%
9391 }%
9392 >>>
9393
9394
9395 \<footnote id\><<<
9396 fn\FNnum x\minipageNum
9397 >>>
9398
9399 \<thank id\><<<
9400 fn\the\c@footnote x\minipageNum
9401 >>>
9402
9403
9404
9405 \<configure ooffice footmisc\><<<
9406 \Configure{footnotetext}
9407 {\Tag{|<footnote id|>-tx}{}%
9408 |<check duplicate footnote text|>%
9409 \NoFonts \let\@textsuperscript\hbox
9410 \HCode{<\text:footnote\Hnewline\text:note:class
9411 text:id="}|<footnote id|>%
9412 \HCode{"><\text:footnote-citation>}%
9413 \let\fn:nbsp\:nbsp \let\:nbsp\empty
9414 }
9415 {\EndNoFonts \let\:nbsp\fn:nbsp
9416 \HCode{</\text:footnote-citation><\text:footnote-body>%
9417 <text:p\Hnewline text:style-name="Footnote">|<footnotetext space|>}%
9418 \SaveHtmlPar \Configure{HtmlPar}{}{}{}{}%
9419 }
9420 {\RecallHtmlPar
9421 \HCode{</text:p></\text:footnote-body></\text:footnote>}%
9422 |<notice footnote text|>}
9423 >>>
9424
9425
9426
9427
9428 \<configure ooffice latex\><<<
9429 \Configure{textsuperscript}
9430 {\HCode{<text:span text:style-name="textsuperscript">}}
9431 {\HCode{</text:span>}}
9432 \OOstyles{%
9433 <style:style style:name="textsuperscript" style:family="text">\Hnewline
9434 <style:text-properties style:text-position="super 58\prcnt:ch"/>\Hnewline
9435 </style:style>\Hnewline
9436 }
9437 \Configure{textsubscript}
9438 {\HCode{<text:span text:style-name="textsubscript">}}
9439 {\HCode{</text:span>}}
9440 \OOstyles{%
9441 <style:style style:name="textsubscript" style:family="text">\Hnewline
9442 <style:text-properties style:text-position="sub 58\prcnt:ch"/>\Hnewline
9443 </style:style>\Hnewline
9444 }
9445 >>>
9446
9447
9448 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9449 \subsection{Etc}
9450 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9451
9452 \<configure ooffice latex\><<<
9453 \Configure{centercr}
9454 {\ht:special{t4ht=<text:line-break/>}}
9455 {\ht:everypar{\ht:everypar{\HtmlPar}}}
9456 >>>
9457
9458
9459
9460 \<configure ooffice latex\><<<
9461 \def\:temp{T\HCode{<text:span text:style-name="TEX">}E\HCode{</text:span>}X}
9462 \HLet\TeX\:temp
9463 \OOstyles{\Hnewline
9464 <style:style style:name="TEX" style:family="text">
9465 <style:text-properties style:text-position="-25 100\prcnt:ch"/>
9466 </style:style>
9467 \Hnewline}
9468 >>>
9469
9470 \<configure ooffice latex\><<<
9471 \def\:temp{L\HCode{<text:span text:style-name="LATEX">}A\HCode{</text:span>}\TeX}
9472 \HLet\LaTeX\:temp
9473 \OOstyles{\Hnewline
9474 <style:style style:name="LATEX" style:family="text">
9475 <style:text-properties style:text-position="15 70\prcnt:ch"/>
9476 </style:style>
9477 \Hnewline}
9478 >>>
9479
9480
9481 \<configure ooffice-mml latex\><<<
9482 \Configure{newline}
9483 {\ifmtext |<end mtext|>\HCode{</\a:mathml mtext><\a:mathml
9484 mtext class="newline">}%
9485 |<start mtext|>%
9486 \else \HCode{<text:line-break\Hnewline/>}\fi}
9487 >>>
9488
9489
9490
9491 \<start mtext\><<<
9492 \ht:special{t4ht@,&\#x00A0;}%
9493 >>>
9494
9495 \<end mtext\><<<
9496 \ht:special{t4ht@,}%
9497 >>>
9498
9499
9500
9501
9502
9503 \<configure ooffice amsmath\><<<
9504 \def\:temp{{\protect\AmSfont AMS}}
9505 \HLet\AmS\:temp
9506 >>>
9507
9508
9509
9510
9511 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9512 \chapter{Classes}
9513 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
9514
9515
9516 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9517 \section{Main Classes}
9518 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
9519
9520
9521 \<configure ooffice article\><<<
9522 |<ooffice title page|>
9523 |<content styles|>
9524 |<non chap tocs|>
9525 |<ooffice bib with refname|>
9526 |<ooffice begin-end env|>
9527 |<basic ooffice sections|>
9528 |<basic ooffice section styles|>
9529 |<ooffice captions|>
9530 |<ooffice index|>
9531 |<non-chapter index|>
9532 |<config lists of figures and tables|>
9533 |<base font size|>
9534 >>>
9535
9536 \<configure ooffice report\><<<
9537 |<ooffice title page|>
9538 |<content styles|>
9539 |<chap tocs|>
9540 |<ooffice bib with bibname|>
9541 |<ooffice begin-end env|>
9542 |<ooffice chapters|>
9543 |<report chapters|>
9544 |<basic ooffice sections|>
9545 |<basic ooffice section styles|>
9546 |<ooffice captions|>
9547 |<ooffice index|>
9548 |<chapter index|>
9549 |<config lists of figures and tables|>
9550 |<base font size|>
9551 >>>
9552
9553 \<configure ooffice book\><<<
9554 |<ooffice title page|>
9555 |<content styles|>
9556 |<chap tocs|>
9557 |<ooffice bib with bibname|>
9558 |<ooffice begin-end env|>
9559 |<ooffice chapters|>
9560 |<book chapters|>
9561 |<basic ooffice sections|>
9562 |<basic ooffice section styles|>
9563 |<ooffice captions|>
9564 |<ooffice index|>
9565 |<chapter index|>
9566 |<config lists of figures and tables|>
9567 |<base font size|>
9568 >>>
9569
9570
9571
9572 \<base font size\><<<
9573 {\Configure{Needs}{Font\string_Size: #1}\ifcase \@ptsize
9574 \or \Needs{11}\or \Needs{12}\else \fi}
9575 >>>
9576
9577
9578 \<configure ooffice scrbook\><<<
9579 |<ooffice title page|>
9580 |<scr subtitle|>
9581 |<content styles|>
9582 |<chap tocs|>
9583 |<scr chap tocs|>
9584 |<ooffice bib with refname|>
9585 |<ooffice begin-end env|>
9586 |<scr ooffice chapters|>
9587 |<basic scr ooffice sections|>
9588 |<basic ooffice section styles|>
9589 |<ooffice captions|>
9590 |<ooffice index|>
9591 |<chapter index|>
9592 |<scrbook end units|>
9593 |<config lists of figures and tables|>
9594 |<base font size|>
9595 >>>
9596
9597 \<configure ooffice scrreprt\><<<
9598 |<ooffice title page|>
9599 |<scr subtitle|>
9600 |<scr abstract|>
9601 |<content styles|>
9602 |<chap tocs|>
9603 |<scr chap tocs|>
9604 |<ooffice bib with bibname|>
9605 |<ooffice begin-end env|>
9606 |<scr ooffice chapters|>
9607 |<basic scr ooffice sections|>
9608 |<basic ooffice section styles|>
9609 |<ooffice captions|>
9610 |<ooffice index|>
9611 |<chapter index|>
9612 |<config lists of figures and tables|>
9613 |<base font size|>
9614 >>>
9615
9616 \<configure ooffice scrartcl\><<<
9617 |<ooffice title page|>
9618 |<scr subtitle|>
9619 |<scr abstract|>
9620 |<content styles|>
9621 |<ooffice bib with refname|>
9622 |<ooffice begin-end env|>
9623 |<basic scr ooffice sections|>
9624 |<basic ooffice section styles|>
9625 |<ooffice captions|>
9626 |<ooffice index|>
9627 |<base font size|>
9628 >>>
9629
9630
9631
9632 \<configure ooffice amsart\><<<
9633 |<ooffice title page|>
9634 |<content styles|>
9635 |<non chap tocs|>
9636 |<ooffice captions|>
9637 |<basic ams ooffice sections|>
9638 |<basic ooffice section styles|>
9639 |<ooffice bib with bibname|>
9640 |<base font size|>
9641 >>>
9642
9643
9644 \<configure ooffice amsproc\><<<
9645 |<base font size|>
9646 >>>
9647
9648 \<configure ooffice amsbook\><<<
9649 |<base font size|>
9650 >>>
9651
9652
9653 \<configure ooffice mwart\><<<
9654 |<ooffice title page|>
9655 |<content styles|>
9656 |<non chap tocs|>
9657 |<ooffice bib with refname|>
9658 |<ooffice begin-end env|>
9659 |<basic ooffice sections|>
9660 |<basic ooffice section styles|>
9661 |<ooffice captions|>
9662 |<ooffice index|>
9663 |<non-chapter index|>
9664 |<config lists of figures and tables|>
9665 |<base font size|>
9666 |<mwcls index|>
9667 |<mwcls sections|>
9668 >>>
9669
9670 \<configure ooffice mwrep\><<<
9671 |<ooffice title page|>
9672 |<content styles|>
9673 |<chap tocs|>
9674 |<ooffice bib with bibname|>
9675 |<ooffice begin-end env|>
9676 |<basic ooffice sections|>
9677 |<basic ooffice section styles|>
9678 |<ooffice captions|>
9679 |<ooffice index|>
9680 |<chapter index|>
9681 |<config lists of figures and tables|>
9682 |<base font size|>
9683 |<mwcls index|>
9684 |<mwcls sections|>
9685 >>>
9686
9687 \<configure ooffice mwbk\><<<
9688 |<ooffice title page|>
9689 |<content styles|>
9690 |<chap tocs|>
9691 |<ooffice bib with bibname|>
9692 |<ooffice begin-end env|>
9693 |<basic ooffice sections|>
9694 |<basic ooffice section styles|>
9695 |<ooffice captions|>
9696 |<ooffice index|>
9697 |<chapter index|>
9698 |<config lists of figures and tables|>
9699 |<base font size|>
9700 |<mwcls index|>
9701 |<mwcls sections|>
9702 >>>
9703
9704 \<configure ooffice jurabook\><<<
9705 |<jurabook sections|>
9706 |<jurabook tocs|>
9707 >>>
9708
9709 \<configure ooffice slides\><<<
9710 \Configure{maketitle}
9711 {\HCode{<!--begin maketitle-->}}
9712 {\HCode{<!--end maketitle-->}\par}
9713 {\ifvmode \IgnorePar\fi \EndP
9714 \HCode{<text:p text:style-name="Title|<cond rtl class|>" >}}
9715 {\HCode{</text:p>}}
9716 \Configure{author date}
9717 {\ifvmode \IgnorePar\fi \EndP
9718 \HCode{<text:p text:style-name="author|<cond rtl class|>">}}
9719 {\HCode{</text:p>}}
9720 {\ifvmode \IgnorePar\fi \EndP
9721 \HCode{<text:p text:style-name="date|<cond rtl class|>">}}
9722 {\HCode{</text:p>}}
9723 \NewConfigureOO{title}
9724 \ConfigureOO{title}{%
9725 <style:style style:name="Title"
9726 style:family="paragraph"
9727 style:parent-style-name="Heading"
9728 style:next-style-name="author"
9729 style:class="chapter">\Hnewline
9730 <style:paragraph-properties fo:margin-top="0.42cm"
9731 fo:margin-bottom="0.51cm"
9732 fo:font-size="20pt"
9733 fo:font-weight="normal"
9734 style:font-size-asian="18pt"
9735 style:font-weight-asian="bold"
9736 style:font-size-complex="18pt"
9737 style:font-weight-complex="bold"
9738 fo:text-align="center"
9739 style:justify-single-word="false"/>
9740 </style:style> \Hnewline <style:style style:name="Title-rtl"
9741 style:family="paragraph"
9742 style:parent-style-name="Heading-rtl"
9743 style:next-style-name="author-rtl"
9744 style:class="chapter">\Hnewline
9745 <style:paragraph-properties fo:margin-top="0.42cm"
9746 fo:margin-bottom="0.51cm"
9747 fo:font-size="20pt"
9748 fo:font-weight="normal"
9749 style:font-size-asian="18pt"
9750 style:font-weight-asian="bold"
9751 style:font-size-complex="18pt"
9752 style:font-weight-complex="bold"
9753 fo:text-align="center"
9754 style:justify-single-word="false"
9755 style:writing-mode="rl-tb" />
9756 </style:style> \Hnewline
9757 }
9758 \NewConfigureOO{author}
9759 \ConfigureOO{author}{%
9760 <style:style style:name="author"
9761 style:family="paragraph"
9762 style:parent-style-name="Text-body"
9763 style:next-style-name="date">\Hnewline
9764 <style:paragraph-properties fo:margin-top="0cm"
9765 fo:margin-bottom="0.199cm"
9766 fo:font-size="14pt"
9767 fo:text-align="center"
9768 style:justify-single-word="false"/>
9769 </style:style>\Hnewline <style:style style:name="author-rtl"
9770 style:family="paragraph"
9771 style:parent-style-name="Text-body-rtl"
9772 style:next-style-name="date-rtl">\Hnewline
9773 <style:paragraph-properties fo:margin-top="0cm"
9774 fo:margin-bottom="0.199cm"
9775 fo:font-size="14pt"
9776 fo:text-align="center"
9777 style:justify-single-word="false"
9778 style:writing-mode="rl-tb" />
9779 </style:style>\Hnewline
9780 }
9781 \NewConfigureOO{date}
9782 \ConfigureOO{date}{%
9783 <style:style style:name="date"
9784 style:family="paragraph"
9785 style:parent-style-name="Text-body"
9786 style:next-style-name="Text-body">\Hnewline
9787 <style:paragraph-properties fo:margin-top="0cm"
9788 fo:margin-bottom="0.199cm"
9789 fo:font-size="14pt"
9790 fo:text-align="center"
9791 style:justify-single-word="false"/>
9792 </style:style>\Hnewline <style:style style:name="date-rtl"
9793 style:family="paragraph"
9794 style:parent-style-name="Text-body"
9795 style:next-style-name="Text-body">\Hnewline
9796 <style:paragraph-properties fo:margin-top="0cm"
9797 fo:margin-bottom="0.199cm"
9798 fo:font-size="14pt"
9799 fo:text-align="center"
9800 style:justify-single-word="false"
9801 style:writing-mode="rl-tb" />
9802 </style:style>\Hnewline
9803 }
9804 >>>
9805
9806
9807
9808
9809
9810
9811
9812
9813 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
9814 \section{g-brief}
9815 %%%%%%%%%%%%%%%%%%%%%%%%%%%%
9816
9817
9818
9819 \<configure ooffice g-brief\><<<
9820 \Configure{g-brief}
9821 {\ifvmode \IgnorePar\fi \EndP |<open g-brief|>}
9822 {\ifvmode \IgnorePar\fi \EndP |<end open g-brief|>}
9823 {\ifvmode \IgnorePar\fi \EndP \par}
9824 {\ifvmode \IgnorePar\fi \EndP \par}
9825 >>>
9826
9827
9828 \<open g-brief\><<<
9829 \let\sv:br =\\%
9830 \let\sv:@imakebox=\@imakebox
9831 \def\\{\HCode{</table:table-row>\Hnewline<table:table-row>}}%
9832 \let\:clearpage\clearpage
9833 \def\clearpage{\let\clearpage\:clearpage
9834 \ifvmode \IgnorePar\fi \EndP
9835 \HCode{<table:table table:style-name="date">
9836 <table:table-column/><table:table-column/>
9837 <table:table-column/><table:table-column/>
9838 <table:table-row>\Hnewline}%
9839 \IgnorePar
9840 }%
9841 \def\@imakebox[##1][##2]##3{%
9842 \HCode{<table:table-cell>\Hnewline
9843 <text:p text:style-name="makebox-##2">}%
9844 \bgroup \let\\=\sv:br \let\@imakebox\sv:@imakebox
9845 \let\par\sv:par
9846 ##3%
9847 \egroup
9848 \HCode{</text:p></table:table-cell>}%
9849 \def\par{\let\par\brf:par
9850 \ifvmode \IgnorePar\fi \EndP
9851 \HCode{</table:table-row></table:table>}}%
9852 }%
9853 >>>
9854
9855
9856
9857 \<end open g-brief\><<<
9858 \let\@imakebox\sv:@imakebox
9859 \let\\=\sv:br
9860 >>>
9861
9862 \<configure ooffice g-brief\><<<
9863 \OOstyles{%
9864 <style:style style:name="makebox-r" \Hnewline
9865 style:family="paragraph" >\Hnewline
9866 <style:paragraph-properties fo:text-align="end"
9867 style:justify-single-word="false" />\Hnewline
9868 </style:style>\Hnewline
9869 }
9870 >>>
9871
9872
9873
9874 \<open g-brief\><<<
9875 \let\brf:par\par
9876 \HTML:PAR{p-g-brief}{p-g-brief}%
9877 >>>
9878
9879 \<end open g-brief\><<<
9880 \HTML:PAR{p-\ifHCond nopar\else noindent\fi}%
9881 {p-\ifdim \parindent=\z@ no\fi indent}%
9882 >>>
9883
9884
9885 \<configure ooffice g-brief\><<<
9886 \OOstyles{%
9887 <style:style style:name="p-g-brief"
9888 style:family="paragraph"
9889 style:parent-style-name="Text-body">\Hnewline
9890 <style:paragraph-properties
9891 fo:text-align="justify"
9892 style:auto-text-indent="false"
9893 style:justify-single-word="false"
9894 fo:margin-top="0.7cm"
9895 fo:margin-bottom="0.7cm"
9896 />\Hnewline
9897 </style:style>\Hnewline
9898 }
9899 >>>
9900
9901
9902
9903 \<configure ooffice g-briefNO\><<<
9904 \Configure{letterfoot}
9905 {\ifvmode \IgnorePar\fi \EndP
9906 \bgroup
9907 \Configure{halignTB<>}{tabular}{\HCode{\Hnewline
9908 table:style-name="letterfoot"
9909 }<>\HAlign}%
9910 \Configure{table-column-style}
9911 {table:style-name="letterfoot\ar:cnt"}%
9912 }
9913 {}
9914 {\egroup}
9915 \OOstyles{%
9916 <style:style style:name="letterfoot"
9917 style:family="table">\Hnewline
9918 <style:text-properties
9919 fo:margin-top="2cm"
9920 table:align="margins"/>\Hnewline
9921 </style:style>\Hnewline
9922 }
9923 \OOstyles{%
9924 <style:style style:name="letterfoot1"
9925 style:family="table-column">\Hnewline
9926 <style:text-properties style:column-width="3cm"
9927 style:rel-column-width="3030*"
9928 />\Hnewline
9929 </style:style>\Hnewline
9930 }
9931 >>>
9932
9933
9934 The above styles don't work?
9935
9936
9937
9938
9939 \<configure ooffice g-brief\><<<
9940 \Configure{letterfoot}
9941 {\ifvmode \IgnorePar\fi \EndP
9942 \HCode{<text:p text:style-name="letterfoot">}%
9943 \bgroup
9944 \Configure{tabular}
9945 {}{} {}{\HCode{<text:line-break/>}} {}{~~}%
9946 }
9947 {}
9948 {\egroup \HCode{</text:p>}}
9949 \OOstyles{%
9950 {<style:style style:name="letterfoot"
9951 style:family="paragraph"
9952 style:parent-style-name="Text-body">\Hnewline
9953 <style:paragraph-properties
9954 fo:text-align="justify"
9955 style:auto-text-indent="false"
9956 fo:margin-top="2cm"
9957 fo:margin-bottom="0cm"
9958 style:justify-single-word="false"/>\Hnewline
9959 </style:style>\Hnewline}
9960 }
9961 >>>
9962
9963
9964 The above styles don't work?
9965
9966
9967
9968
9969
9970
9971 \<configure ooffice g-brief\><<<
9972 \Configure{letterhead}
9973 {\ifvmode \IgnorePar\fi \EndP
9974 \HCode{<text:section
9975 text:style-name="header-style" text:name="header">
9976 <text:p text:style-name="left-col">}}
9977 {\HCode{</text:p>}}
9978 {\ifvmode \IgnorePar\fi \EndP
9979 \HCode{</text:section>
9980 <text:p text:style-name="p-retouradresse">}}
9981 {\ifvmode \IgnorePar\fi \EndP
9982 \HCode{</text:p><text:p text:style-name="postage">}}
9983 {\HCode{</text:p>}}
9984 \Configure{retouradresse}
9985 {\HCode{<text:span text:style-name="retouradresse">}}
9986 {\HCode{</text:span>}}
9987 >>>
9988
9989 \<configure ooffice g-brief\><<<
9990 \NewConfigureOO{g-brief-header}
9991 \ConfigureOO{g-brief-header}{\Hnewline
9992 <style:style style:name="header-style" style:family="section">\Hnewline
9993 <style:text-properties text:dont-balance-text-columns="false"
9994 fo:margin-bottom="2cm">\Hnewline
9995 <style:columns fo:column-count="2"
9996 fo:column-gap="1in">\Hnewline
9997 <style:column fo:margin-left="0in"
9998 fo:margin-right="0in"/>\Hnewline
9999 <style:column fo:margin-left="0in"
10000 fo:margin-right="0in"/>\Hnewline
10001 </style:columns>\Hnewline
10002 </style:text-properties>\Hnewline
10003 </style:style>\Hnewline
10004 }
10005 >>>
10006
10007 \<configure ooffice g-briefNO\><<<
10008 \OOstyles{%
10009 <style:style style:name="header-style" style:family="section">\Hnewline
10010 <style:text-properties text:dont-balance-text-columns="false"
10011 fo:margin-bottom="2cm">\Hnewline
10012 <style:columns fo:column-count="2"
10013 fo:column-gap="1in">\Hnewline
10014 <style:column fo:margin-left="0in"
10015 fo:margin-right="0in"/>\Hnewline
10016 <style:column fo:margin-left="0in"
10017 fo:margin-right="0in"/>\Hnewline
10018 </style:columns>\Hnewline
10019 </style:text-properties>\Hnewline
10020 </style:style>\Hnewline
10021 }
10022 >>>
10023
10024 \<configure ooffice g-brief\><<<
10025 \OOstyles{%
10026 <style:style style:name="p-retouradresse" \Hnewline
10027 style:family="paragraph" \Hnewline
10028 style:parent-style-name="Standard">\Hnewline
10029 <style:paragraph-properties fo:margin-top="0.7cm" \Hnewline
10030 fo:margin-bottom="0.7cm"/>\Hnewline
10031 </style:style>\Hnewline
10032 }
10033 \OOstyles{%
10034 <style:style style:name="postage" \Hnewline
10035 style:family="paragraph" \Hnewline
10036 style:parent-style-name="Standard">\Hnewline
10037 <style:paragraph-properties fo:margin-top="0.5cm" \Hnewline
10038 fo:margin-bottom="0.5cm"/>\Hnewline
10039 </style:style>\Hnewline
10040 }
10041 >>>
10042
10043 The following configuration does not show.
10044
10045 \<configure ooffice g-brief\><<<
10046 \OOstyles{%
10047 <style:style style:name="tabular"
10048 style:family="table"
10049 style:parent-style-name="header-style">\Hnewline
10050 <\style:tableproperties style:rel-width="46\prcnt:ch"
10051 fo:margin-left="1cm"
10052 fo:margin-right="0cm"
10053 table:align="margins"/>\Hnewline
10054 </style:style>\Hnewline
10055 }
10056 >>>
10057
10058
10059 \<configure ooffice g-brief\><<<
10060 \Configure{betreff}
10061 {\HCode{<text:span text:style-name="betreff">}}
10062 {\HCode{</text:span>}}
10063 \Configure{betrefftext}
10064 {\HCode{<text:span text:style-name="betrefftext">}}
10065 {\HCode{</text:span>}}
10066 \Configure{gruss}
10067 {\HCode{<text:span text:style-name="gruss">}}
10068 {\HCode{</text:span>}}
10069 \Configure{grussskip}
10070 {\HCode{<text:span text:style-name="grussskip">}}
10071 {\HCode{</text:span>}}
10072 \Configure{unterschrift}
10073 {\HCode{<text:span text:style-name="unterschrift">}}
10074 {\HCode{</text:span>}}
10075 \Configure{datumtext}
10076 {\HCode{<text:span text:style-name="datumtext">}}
10077 {\HCode{</text:span>}}
10078 \Configure{datum}
10079 {\HCode{<text:span text:style-name="datum">}}
10080 {\HCode{</text:span>}}
10081 \Configure{anlagen}
10082 {\HCode{<text:span text:style-name="anlagen">}}
10083 {\HCode{</text:span>}}
10084 \Configure{verteiler}
10085 {\HCode{<text:span text:style-name="verteiler">}}
10086 {\HCode{</text:span>}}
10087 \Configure{sprache}
10088 {\HCode{<text:span text:style-name="sprache">}}
10089 {\HCode{</text:span>}}
10090 >>>
10091
10092 \<configure ooffice g-brief\><<<
10093 \Configure{telefontex}
10094 {\HCode{<text:span text:style-name="telefontex">}}
10095 {\HCode{</text:span>}}
10096 \Configure{telefaxtext}
10097 {\HCode{<text:span text:style-name="telefaxtext">}}
10098 {\HCode{</text:span>}}
10099 \Configure{telextext}
10100 {\HCode{<text:span text:style-name="telextext">}}
10101 {\HCode{</text:span>}}
10102 \Configure{telefax}
10103 {\HCode{<text:span text:style-name="telefax">}}
10104 {\HCode{</text:span>}}
10105 \Configure{telefon}
10106 {\HCode{<text:span text:style-name="telefon">}}
10107 {\HCode{</text:span>}}
10108 \Configure{telex}
10109 {\HCode{<text:span text:style-name="telex">}}
10110 {\HCode{</text:span>}}
10111 >>>
10112
10113 \<configure ooffice g-brief\><<<
10114 \Configure{emailtext}
10115 {\HCode{<text:span text:style-name="emailtext">}}
10116 {\HCode{</text:span>}}
10117 \Configure{email}
10118 {\HCode{<text:span text:style-name="email">}}
10119 {\HCode{</text:span>}}
10120 \Configure{httptext}
10121 {\HCode{<text:span text:style-name="httptext">}}
10122 {\HCode{</text:span>}}
10123 \Configure{http}
10124 {\HCode{<text:span text:style-name="http">}}
10125 {\HCode{</text:span>}}
10126 \Configure{banktext}
10127 {\HCode{<text:span text:style-name="banktext">}}
10128 {\HCode{</text:span>}}
10129 \Configure{bank}
10130 {\HCode{<text:span text:style-name="bank">}}
10131 {\HCode{</text:span>}}
10132 \Configure{konto}
10133 {\HCode{<text:span text:style-name="konto">}}
10134 {\HCode{</text:span>}}
10135 \Configure{blztext}
10136 {\HCode{<text:span text:style-name="blztext">}}
10137 {\HCode{</text:span>}}
10138 \Configure{blz}
10139 {\HCode{<text:span text:style-name="blz">}}
10140 {\HCode{</text:span>}}
10141 >>>
10142
10143 \<configure ooffice g-brief\><<<
10144 \Configure{ihrzeichentext}
10145 {\HCode{<text:span text:style-name="ihrzeichentext">}}
10146 {\HCode{</text:span>}}
10147 \Configure{ihrzeichen}
10148 {\HCode{<text:span text:style-name="ihrzeichen">}}
10149 {\HCode{</text:span>}}
10150 \Configure{ihrschreibentext}
10151 {\HCode{<text:span text:style-name="ihrschreibentext">}}
10152 {\HCode{</text:span>}}
10153 \Configure{ihrschreiben}
10154 {\HCode{<text:span text:style-name="ihrschreiben">}}
10155 {\HCode{</text:span>}}
10156 \Configure{meinzeichentext}
10157 {\HCode{<text:span text:style-name="meinzeichentext">}}
10158 {\HCode{</text:span>}}
10159 \Configure{meinzeichen}
10160 {\HCode{<text:span text:style-name="meinzeichen">}}
10161 {\HCode{</text:span>}}
10162 \Configure{unserzeichentext}
10163 {\HCode{<text:span text:style-name="unserzeichentext">}}
10164 {\HCode{</text:span>}}
10165 >>>
10166
10167 \<configure ooffice g-brief\><<<
10168 \Configure{adresse}
10169 {\HCode{<text:span text:style-name="adresse">}}
10170 {\HCode{</text:span>}}
10171 \Configure{land}
10172 {\HCode{<text:span text:style-name="land">}}
10173 {\HCode{</text:span>}}
10174 \Configure{name}
10175 {\HCode{<text:span text:style-name="name">}}
10176 {\HCode{</text:span>}}
10177 \Configure{ort}
10178 {\HCode{<text:span text:style-name="ort">}}
10179 {\HCode{</text:span>}}
10180 \Configure{postvermerk}
10181 {\HCode{<text:span text:style-name="postvermerk">}}
10182 {\HCode{</text:span>}}
10183 \Configure{strasse}
10184 {\HCode{<text:span text:style-name="strasse">}}
10185 {\HCode{</text:span>}}
10186 \Configure{zusatz}
10187 {\HCode{<text:span text:style-name="zusatz">}}
10188 {\HCode{</text:span>}}
10189 >>>
10190
10191
10192 \<configure oolatex g-briefNO\><<<
10193 \Configure{anrede}
10194 {\ifvmode \IgnorePar\fi \EndP \HCode{<text:p text:style-name="anrede">}}
10195 {\HCode{</text:p>}}
10196 >>>
10197
10198 %%%%%%%%%%%%%%%%%%
10199 \section{Polyglossia}
10200 %%%%%%%%%%%%%%%%%%
10201 \<configure polyglossia polyglossia\><<<
10202 \Configure{PolyglossiaRtl}{\@rltrue}{\@rlfalse}
10203 >>>
10204
10205 %%%%%%%%%%%%%%%%%%
10206 \section{Babel}
10207 %%%%%%%%%%%%%%%%%%
10208
10209
10210 \<configure ooffice babel\><<<
10211 |<quotedblbase|>
10212 \Configure{accent}\lower@umlaut\lower@umlaut{|<diaeresis codes|>{}{34}}
10213 {\a:accents{uml}{#1}} {\b:accents{uml}{#1}{#2}}
10214 >>>
10215
10216 % \Configure{accent}\lower@umlaut\lower@umlaut{A{A}E{E}I{I}O{O}U{U}Y%
10217 % {Y}a{a}e{e}i{i}\i{i}o{o}u{u}y{y}{}{34}}
10218 % {\a:accents{uml}{#1}} {\b:accents{uml}{#1}{#2}}
10219
10220
10221 \<configure ooffice babelNO\><<<
10222 |<T1 old iso-8859-2 accents|>
10223 |<old iso-8859-2 accents|>
10224 >>>
10225
10226
10227 \<T1 old iso-8859-2 accents\><<<
10228 \expand:after{\Configure{accent}}\csname T1\string\`\expandafter\endcsname
10229 \csname T1\string\`\endcsname{|<grave iso-8859-2|>{}{}}
10230 {\HChar{#1}} {\b:accents{grave}{#1}{#2}}
10231 \expand:after{\Configure{accent}}\csname T1\string\'\expandafter\endcsname
10232 \csname T1\string\'\endcsname{|<acute iso-8859-2|>{}{}}
10233 {\HChar{#1}} {\b:accents{acute}{#1}{#2}}
10234 \expand:after{\Configure{accent}}\csname T1\string\^\expandafter\endcsname
10235 \csname T1\string\^\endcsname{|<circumflex iso-8859-2|>{}{}}
10236 {\HChar{#1}} {\b:accents{circ}{#1}{#2}}
10237 \expand:after{\Configure{accent}}\csname T1\string\~\expandafter\endcsname
10238 \csname T1\string\~\endcsname{|<tilde iso-8859-2|>{}{}}
10239 {\HChar{#1}} {\b:accents{tilde}{#1}{#2}}
10240 \expand:after{\Configure{accent}}\csname T1\string\"\expandafter\endcsname
10241 \csname T1\string\"\endcsname{|<diaeresis iso-8859-2|>{}{34}}
10242 {\HChar{#1}} {\b:accents{uml}{#1}{#2}}
10243 \expand:after{\expand:after{\Configure{accent}}%
10244 \csname T1\string\r\endcsname}%
10245 \csname T1\string\r\endcsname{|<ring iso-8859-2|>{}{}}
10246 {\HChar{#1}} {\b:accents{ring}{#1}{#2}}
10247 >>>
10248
10249
10250
10251 \<T1 old iso-8859-2 accents\><<<
10252 \expand:after{\expand:after{\Configure{accent}}%
10253 \csname T1\string\c\endcsname}%
10254 \csname T1\string\c\endcsname{|<cedilla iso-8859-2|>{}{}}
10255 {\HChar{#1}} {\b:accents{cedil}{#1}{#2}}
10256 \expand:after{\expand:after{\Configure{accent}}%
10257 \csname T1\string\t\endcsname}%
10258 \csname T1\string\t\endcsname{{}{}}
10259 {\HChar{#1}} {\b:accents{udot}{#1}{#2}}
10260 \expand:after{\expand:after{\Configure{accent}}%
10261 \csname T1\string\H\endcsname}%
10262 \csname T1\string\H\endcsname{|<double acute iso-8859-2|>{}{}}
10263 {\HChar{#1}}{\b:accents{Huml}{#1}{#2}}
10264 \expand:after{\expand:after{\Configure{accent}}%
10265 \csname T1\string\b\endcsname}%
10266 \csname T1\string\b\endcsname{{}{}}
10267 {\HChar{#1}} {\b:accents{b}{#1}{#2}}
10268 \expand:after{\expand:after{\Configure{accent}}%
10269 \csname T1\string\d\endcsname}%
10270 \csname T1\string\d\endcsname{{}{}}
10271 {\HChar{#1}} {\b:accents{d}{#1}{#2}}
10272 >>>
10273
10274
10275
10276 \<T1 old iso-8859-2 accents\><<<
10277 \expand:after{\Configure{accent}}\csname T1\string\.\expandafter\endcsname
10278 \csname T1\string\.\endcsname
10279 {|<dot iso-8859-2|>{}{}}
10280 {\HChar{#1}}{\b:accents{dot}{#1}{#2}}
10281 \expand:after{\Configure{accent}}\csname T1\string\u\expandafter\endcsname
10282 \csname T1\string\u\endcsname
10283 {|<breve iso-8859-2|>{}{}}
10284 {\HChar{#1}}{\b:accents{breve}{#1}{#2}}
10285 \expand:after{\Configure{accent}}\csname T1\string\vec\expandafter\endcsname
10286 \csname T1\string\vec\endcsname
10287 {|<vec iso-8859-2|>{}{}}
10288 {\HChar{#1}}{\b:accents{vec}{#1}{#2}}
10289 \expandafter\let\csname T1\string\v\endcsname\:UnDef
10290 \expand:after{\Configure{accent}}\csname T1\string\v\expandafter\endcsname
10291 \csname T1\string\v\endcsname
10292 {|<caron iso-8859-2|>{}{}}
10293 {\HChar{#1}}{\b:accents{check}{#1}{#2}}
10294 \expand:after{\Configure{accent}}\csname T1\string\=\expandafter\endcsname
10295 \csname T1\string\=\endcsname
10296 {|<bar iso-8859-2|>{}{}}
10297 {\HChar{#1}}{\b:accents{bar}{#1}{#2}}
10298 >>>
10299
10300
10301
10302 \<old iso-8859-2 accents\><<<
10303 \Configure{accent}\`\grave{|<grave iso-8859-2|>{}{}}
10304 {\HChar{#1}} {\b:accents{grave}{#1}{#2}}
10305 \Configure{accent}\'\acute{|<acute iso-8859-2|>{}{}}
10306 {\HChar{#1}} {\b:accents{acute}{#1}{#2}}
10307 \Configure{accent}\^\hat{|<circumflex iso-8859-2|>{}{}}
10308 {\HChar{#1}} {\b:accents{hat}{#1}{#2}}
10309 \Configure{accent}\~\tilde{|<tilde iso-8859-2|>{}{}}
10310 {\HChar{#1}} {\b:accents{tilde}{#1}{#2}}
10311 \Configure{accent}\"\ddot{|<diaeresis iso-8859-2|>{}{34}}
10312 {\HChar{#1}} {\b:accents{uml}{#1}{#2}}
10313 >>>
10314
10315 \<old iso-8859-2 accents\><<<
10316 \Configure{accent}\c\c{|<cedilla iso-8859-2|>{}{}}
10317 {\HChar{#1}} {\b:accents{cedil}{#1}{#2}}
10318 \Configure{accent}\t\t{{}{}}
10319 {\HChar{#1}} {\b:accents{udot}{#1}{#2}}
10320 \Configure{accent}\H\H{|<double acute iso-8859-2|>{}{}}
10321 {\HChar{#1}} {\b:accents{Huml}{#1}{#2}}
10322 \Configure{accent}\b\b{{}{}}
10323 {\HChar{#1}} {\b:accents{b}{#1}{#2}}
10324 \Configure{accent}\d\d{{}{}}
10325 {\HChar{#1}} {\b:accents{d}{#1}{#2}}
10326 >>>
10327
10328
10329 \<old iso-8859-2 accents\><<<
10330 \Configure{accent}\.\.{|<dot above iso-8859-2|>{}{}}
10331 {\HChar{#1}} {\b:accents{dot}{#1}{#2}}
10332 \Configure{accent}\dot\dot{|<dot above iso-8859-2|>{}{}}
10333 {\HChar{#1}} {\b:accents{dot}{#1}{#2}}
10334 \Configure{accent}\u\breve{|<breve iso-8859-2|>{}{}}
10335 {\HChar{#1}} {\b:accents{breve}{#1}{#2}}
10336 \Configure{accent}\vec\vec{{}{}}
10337 {\HChar{#1}} {\b:accents{vec}{#1}{#2}}
10338 \Configure{accent}\v\v{|<caron iso-8859-2|>{}{}}
10339 {\HChar{#1}} {\b:accents{check}{#1}{#2}}
10340 \Configure{accent}\check\check{|<caron iso-8859-2|>{}{}}
10341 {\HChar{#1}} {\b:accents{check}{#1}{#2}}
10342 \Configure{accent}\=\bar{{}{}}
10343 {\HChar{#1}} {\b:accents{bar}{#1}{#2}}
10344 >>>
10345
10346 Accents for Plain TeX
10347
10348 \<plain accents\><<<
10349 \Configure{accent}\`\grave{A{00C0}E{00C8}I{00CC}N{01F8}O{00D2}U{00D9}W{1E80}%
10350 Y{1EF2}a{00E0}e{00E8}i{00EC}n{01F9}o{00F2}u{00F9}%
10351 w{1E81}y{1EF3}\i{00EC}%
10352 {}{}}
10353 {\a:accents{grave}{#1}} {\b:accents{grave}{#1}{#2}}
10354 \Configure{accent}\'\acute{A{00C1}C{0106}D{010E}E{00C9}G{01F4}I{00CD}L{0139}N{0143}%
10355 O{00D3}R{0154}S{015A}U{00DA}Y{00DD}Z{0179}a{00E1}c{0107}%
10356 d{010F}e{00E9}g{01F5}i{00ED}l{013A}n{0144}o{00F3}r{0155}%
10357 s{015B}u{00FA}y{00FD}z{017A}j{FFFD}J{FFDD}\i{00ED}\j{FFFD}%
10358 {}{}}
10359 {\a:accents{acute}{#1}} {\b:accents{acute}{#1}{#2}}
10360 \Configure{accent}\^\hat{A{00C2}E{00CA}I{00CE}O{00D4}U{00DB}a{00E2}e{00EA}%
10361 i{00EE}o{00F4}u{00FB}C{0108}c{0109}G{011C}g{011D}%
10362 H{0124}h{0125}J{0134}j{0135}S{015C}s{015D}W{0174}%
10363 w{0175}Y{0176}y{0177}Z{1E90}z{1E91}\i{00EE}\j{0135}%
10364 {}{}}
10365 {\a:accents{circ}{#1}} {\b:accents{hat}{#1}{#2}}
10366 \Configure{accent}\~\tilde{A{00C3}N{00D1}O{00D5}a{00E3}n{00F1}o{00F5}I{0128}%
10367 i{0129}U{0168}u{0169}V{1E7C}v{1E7D}E{1EBC}e{1EBD}%
10368 Y{1EF8}y{1EF9}\i{0129}%
10369 {}{}}
10370 {\a:accents{tilde}{#1}} {\b:accents{tilde}{#1}{#2}}
10371 \Configure{accent}\"\ddot{H{1E26}h{1E27}W{1E84}w{1E85}X{1E8C}x{1E8D}%
10372 t{1E97}A{00C4}E{00CB}I{00CF}O{00D6}U{00DC}%
10373 a{00E4}e{00EB}i{00EF}o{00F6}u{00FC}y{00FF}%
10374 Y{0178}\i{00EF}%
10375 {}{34}}
10376 {\a:accents{uml}{#1}} {\b:accents{uml}{#1}{#2}}
10377 \Configure{accent}\c\c{C{C}c{c}{}{}}
10378 {\a:accents{cedil}{#1}} {\b:accents{cedil}{#1}{#2}}
10379 \Configure{accent}\t\t{{}{}}
10380 {\a:accents{udot}{#1}} {\b:accents{udot}{#1}{#2}}
10381 \Configure{accent}\H\H{O{0150}o{0151}U{0170}u{0171}Y{04F2}y{04F3}{}{}}
10382 {\a:accents{Huml}{#1}} {\b:accents{Huml}{#1}{#2}}
10383 \Configure{accent}\b\b{{}{}}
10384 {\a:accents{b}{#1}} {\b:accents{b}{#1}{#2}}
10385 \Configure{accent}\d\d{{}{}}
10386 {\a:accents{d}{#1}} {\b:accents{d}{#1}{#2}}
10387 \Configure{accent}\.\.{{}{}}
10388 {\a:accents{dot}{#1}} {\b:accents{dot}{#1}{#2}}
10389 \Configure{accent}\dot\dot{{}{}}
10390 {\a:accents{dot}{#1}} {\b:accents{dot}{#1}{#2}}
10391 \Configure{accent}\u\breve{{}{}}{\a:accents{breve}{#1}}
10392 {\b:accents{breve}{#1}{#2}}
10393 \Configure{accent}\vec\vec{{}{}}{\a:accents{vec}{#1}}
10394 {\b:accents{vec}{#1}{#2}}
10395 \Configure{accent}\v\v{{}{}}{\a:accents{check}{#1}}
10396 {\b:accents{check}{#1}{#2}}
10397 \Configure{accent}\check\check{{}{}}{\a:accents{check}{#1}}
10398 {\b:accents{check}{#1}{#2}}
10399 \Configure{accent}\=\bar{{}{}}
10400 {\a:accents{bar}{#1}} {\b:accents{bar}{#1}{#2}}
10401 \Configure{accent}\widetilde\widetilde{{}{}}
10402 {\a:accents{widetilde}{#1}} {\b:accents{widetilde}{#1}{#2}}
10403 \Configure{accent}\widehat\widehat{{}{}}
10404 {\a:accents{widehat}{#1}} {\b:accents{widehat}{#1}{#2}}
10405
10406 \Configure{accents}
10407 {\ht:special{t4ht@+\string&{35}x#2{59}}x}
10408 {\Picture+{ \:Picture:{#1}}#2{#3}\EndPicture}
10409
10410 >>>
10411
10412 \<configure ooffice frenchb\><<<
10413 \Configure{frenchb-thinspace}{\HCode{\string&\:sharp x202F;}\setbox\tmp:bx=\hbox\bgroup}{\egroup}
10414 \Configure{frenchb-nbsp}{\:nbsp\setbox\tmp:bx=\hbox\bgroup}{\egroup}
10415 >>>
10416
10417
10418 %%%%%%%%%%%%%%%%%%
10419 \section{ElsArt}
10420 %%%%%%%%%%%%%%%%%%
10421
10422 \<configure ooffice elsart\><<<
10423 \ConfigureEnv{frontmatter}
10424 {\IgnorePar
10425 \HCode{<!--begin frontmatter-->%
10426 <text:section text:name="frontmatter">}\ShowPar}
10427 {\ifvmode\IgnorePar\fi \EndP \IgnorePar
10428 \HCode{</text:section><!--end frontmatter-->}\ShowPar}
10429 {}{}
10430 >>>
10431
10432 \<configure ooffice elsart\><<<
10433 \Configure{thanks author date and}
10434 {\ifvmode \IgnorePar\fi \EndP
10435 \HCode{<text:p text:style-name="Text-body|<cond rtl class|>">}}
10436 {\HCode{</text:p>}\IgnorePar}
10437 {\ifvmode \IgnorePar\fi \EndP
10438 \HCode{<text:p text:style-name="author|<cond rtl class|>">}\IgnorePar}
10439 {\HCode{</text:p>}\IgnorePar}
10440 {\ifvmode \IgnorePar\fi \EndP
10441 \HCode{<text:p text:style-name="date|<cond rtl class|>">}}
10442 {\HCode{</text:p>}\IgnorePar}
10443 {}
10444 {}% {\HCode{<text:line-break/>}}
10445 >>>
10446
10447 \<configure ooffice elsart\><<<
10448 \Configure{address}
10449 {\IgnorePar \EndP
10450 \HCode{<text:p\Hnewline text:style-name="address">}\IgnorePar}
10451 {\IgnorePar\EndP \HCode{</text:p>}\IgnorePar}
10452 \NewConfigureOO{address}
10453 \ConfigureOO{address}{%
10454 <style:style style:name="address"
10455 style:family="paragraph"
10456 style:parent-style-name="Text-body">\Hnewline
10457 <style:paragraph-properties fo:margin-top="0cm"
10458 fo:margin-bottom="0.199cm"
10459 fo:font-size="12pt"
10460 fo:font-style="italic"
10461 fo:text-align="center"
10462 style:justify-single-word="false"/>
10463 </style:style>\Hnewline |<author rtl|>}
10464 >>>
10465
10466 \<configure ooffice elsart\><<<
10467 \Configure{abstract}
10468 {\HCode{<text:p\Hnewline
10469 text:style-name="abstract-title">}\par\IgnorePar}
10470 { \HCode{</text:p>}}
10471 {\IgnorePar\EndP}
10472 \ConfigureOO{abstract-title}{\Hnewline
10473 <style:style style:name="abstract-title"
10474 style:family="paragraph"
10475 style:parent-style-name="abstract"
10476 style:next-style-name="abstract">\Hnewline
10477 <style:paragraph-properties fo:margin-top="0.499cm"
10478 fo:margin-bottom="0cm"
10479 fo:font-weight="bold"
10480 fo:font-size="10pt"
10481 fo:text-align="left"
10482 fo:border-top="0.01cm solid \#000000"
10483 style:justify-single-word="false"/>\Hnewline
10484 </style:style>\Hnewline
10485 }
10486 \ConfigureOO{abstract}{\Hnewline
10487 <style:style style:name="abstract"
10488 style:family="paragraph"
10489 style:parent-style-name="Text-body"
10490 style:next-style-name="Text-body">\Hnewline
10491 <style:paragraph-properties fo:margin-left="0cm"
10492 fo:margin-right="0cm"
10493 fo:margin-top="0cm"
10494 fo:margin-bottom="0.199cm"
10495 fo:font-size="10pt"
10496 fo:text-indent="0cm"
10497 fo:text-align="left"
10498 style:auto-text-indent="false"/>\Hnewline
10499 </style:style>\Hnewline |<abstract rtl|> }
10500 >>>
10501
10502
10503 \<configure ooffice elsart\><<<
10504 \Configure{keyword}
10505 {\IgnorePar\EndP
10506 \HCode{<text:p\Hnewline text:style-name="keyword">}\IgnorePar}
10507 {\IgnorePar\EndP \HCode{</text:p>}\IgnorePar}
10508 \NewConfigureOO{keyword}
10509 \ConfigureOO{keyword}{\Hnewline
10510 <style:style style:name="keyword"
10511 style:family="paragraph"
10512 style:parent-style-name="Text-body"
10513 style:next-style-name="Text-body">\Hnewline
10514 <style:paragraph-properties fo:margin-left="0cm"
10515 fo:margin-right="0cm"
10516 fo:margin-top="0cm"
10517 fo:margin-bottom="0.199cm"
10518 fo:font-size="10pt"
10519 fo:font-style="italic"
10520 fo:text-indent="0cm"
10521 fo:text-align="left"
10522 fo:border-bottom="0.01cm solid \#000000"
10523 style:auto-text-indent="false"/>\Hnewline
10524 </style:style>\Hnewline > }
10525 >>>
10526
10527 \<configure ooffice elsart\><<<
10528
10529 >>>
10530
10531 \<configure ooffice elsart\><<<
10532
10533 >>>
10534
10535
10536 %%%%%%%%%%%%%%%%%%
10537 \section{Foils}
10538 %%%%%%%%%%%%%%%%%%
10539
10540
10541 \<configure ooffice foils\><<<
10542 \Configure{foilhead}
10543 {\IgnorePar\EndP \HCode{<!--start of foilhead-->}}
10544 {\IgnorePar\EndP \HCode{<!--end of foilhead-->}}
10545 {\HCode{<text:h text:style-name="foilhead|<cond rtl class|>"
10546 \text:outlinelevel="3" >}%
10547 \IgnoreIndent}
10548 {\HCode{</text:h>\Hnewline}\par\ShowPar}
10549 >>>
10550
10551 \<configure ooffice foils\><<<
10552 \NewConfigureOO{foilhead}
10553 \ConfigureOO{foilhead}{\Hnewline
10554 <style:style style:name="foilhead"
10555 style:family="paragraph"
10556 style:parent-style-name="Heading"
10557 style:next-style-name="Text-body"
10558 style:class="text">\Hnewline
10559 <style:paragraph-properties fo:font-size="12pt"
10560 fo:font-weight="bold"
10561 style:font-size-asian="14pt"
10562 style:font-weight-asian="bold"
10563 style:font-size-complex="14pt"
10564 style:font-weight-complex="bold"
10565 fo:margin-top="0.42cm"
10566 fo:margin-bottom="0.51cm"
10567 fo:text-align="center"
10568 style:justify-single-word="false"
10569 />
10570 </style:style>
10571 }
10572 >>>
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583 \<configure ooffice foils\><<<
10584 \Configure{thank}
10585 {\setbox\tmp:bx=\hbox\bgroup}
10586 {\egroup}
10587 {\NoFonts \leavevmode \bgroup \protect\Configure{$}{}{}{}%
10588 \hbox{\HCode{<text:note\Hnewline text:note-class="footnote"
10589 text:id="}|<thank id|>%
10590 \HCode{"><text:note-citation>}}%
10591 }
10592 {\egroup \EndNoFonts
10593 \HCode{</text:note-citation><text:note-body>
10594 <text:p\Hnewline text:style-name="Footnote" ><text:s/>}}
10595 {\HCode{</text:p></text:note-body></text:note>}}
10596 >>>
10597
10598
10599
10600 \<configure ooffice foils\><<<
10601 \def\:temp#1{{\stepcounter{footnote}%
10602 \a:thank\@fnsymbol\c@footnote\b:thank
10603 \a:thanks
10604 \c:thank \@fnsymbol\c@footnote\d:thank #1\e:thank
10605 \b:thanks
10606 }}
10607 \HLet\thanks\:temp
10608 >>>
10609
10610
10611
10612
10613 \<configure ooffice foils\><<<
10614 \Configure{maketitle}
10615 {\bgroup
10616 \Configure{newpage}{}%
10617 \HCode{<!--begin maketitle-->}
10618 \Configure{tabular}{}{}{}{}{\ifnum \HRow>1
10619 \HCode{<text:line-break\Hnewline/>}\fi}{}%
10620 \ConfigureEnv{tabular}{}{}{}{}%
10621 }
10622 {\HCode{<!--end maketitle-->}\egroup \par}
10623 {\ifvmode \IgnorePar\fi \EndP
10624 \HCode{<text:p text:style-name="Title|<cond rtl class|>" >}}
10625 {\HCode{</text:p>}}
10626 \OOstyles{%
10627 <style:style style:name="maketitle-tabular"
10628 style:family="table">\Hnewline
10629 <\style:tableproperties
10630 fo:margin-top="0.42cm"
10631 fo:margin-bottom="0.51cm"
10632 fo:font-size="20pt"
10633 fo:font-weight="normal"
10634 fo:text-align="center"
10635 style:justify-single-word="false"
10636 table:align="margins"/>\Hnewline
10637 </style:style>\Hnewline
10638 }
10639 \NewConfigureOO{title}
10640 \ConfigureOO{title}{%
10641 <style:style style:name="Title"
10642 style:family="paragraph"
10643 style:parent-style-name="Heading"
10644 style:next-style-name="author"
10645 style:class="chapter">\Hnewline
10646 <style:paragraph-properties fo:margin-top="0.42cm"
10647 fo:margin-bottom="0.51cm"
10648 fo:font-size="20pt"
10649 fo:font-weight="normal"
10650 style:font-size-asian="18pt"
10651 style:font-weight-asian="bold"
10652 style:font-size-complex="18pt"
10653 style:font-weight-complex="bold"
10654 fo:text-align="center"
10655 style:justify-single-word="false"/>
10656 </style:style> \Hnewline <style:style style:name="Title-rtl"
10657 style:family="paragraph"
10658 style:parent-style-name="Heading-rtl"
10659 style:next-style-name="author-rtl"
10660 style:class="chapter">\Hnewline
10661 <style:paragraph-properties fo:margin-top="0.42cm"
10662 fo:margin-bottom="0.51cm"
10663 fo:font-size="20pt"
10664 fo:font-weight="normal"
10665 style:font-size-asian="18pt"
10666 style:font-weight-asian="bold"
10667 style:font-size-complex="18pt"
10668 style:font-weight-complex="bold"
10669 fo:text-align="center"
10670 style:justify-single-word="false"
10671 style:writing-mode="rl-tb" />
10672 </style:style> \Hnewline
10673 }
10674 >>>
10675
10676
10677
10678 \<configure ooffice foils\><<<
10679 \Configure{author date}
10680 {\ifvmode \IgnorePar\fi \EndP
10681 \HCode{<text:p text:style-name="author|<cond rtl class|>">}}
10682 {\HCode{</text:p>}}
10683 {\ifvmode \IgnorePar\fi \EndP
10684 \HCode{<text:p text:style-name="date|<cond rtl class|>">}}
10685 {\HCode{</text:p>}}
10686 \NewConfigureOO{author}
10687 \ConfigureOO{author}{%
10688 <style:style style:name="author"
10689 style:family="paragraph"
10690 style:parent-style-name="Text-body"
10691 style:next-style-name="date">\Hnewline
10692 <style:paragraph-properties fo:margin-top="0cm"
10693 fo:margin-bottom="0.2cm"
10694 fo:font-size="14pt"
10695 fo:text-align="center"
10696 style:justify-single-word="false"/>
10697 </style:style>\Hnewline <style:style style:name="author-rtl"
10698 style:family="paragraph"
10699 style:parent-style-name="Text-body-rtl"
10700 style:next-style-name="date-rtl">\Hnewline
10701 <style:paragraph-properties fo:margin-top="0cm"
10702 fo:margin-bottom="0.2cm"
10703 fo:font-size="14pt"
10704 fo:text-align="center"
10705 style:justify-single-word="false"
10706 style:writing-mode="rl-tb" />
10707 </style:style>\Hnewline
10708 }
10709 \NewConfigureOO{date}
10710 \ConfigureOO{date}{%
10711 <style:style style:name="date"
10712 style:family="paragraph"
10713 style:parent-style-name="Text-body"
10714 style:next-style-name="Text-body">\Hnewline
10715 <style:paragraph-properties fo:margin-top="0.6cm"
10716 fo:margin-bottom="0.2cm"
10717 fo:font-size="14pt"
10718 fo:text-align="center"
10719 style:justify-single-word="false"/>
10720 </style:style>\Hnewline <style:style style:name="date-rtl"
10721 style:family="paragraph"
10722 style:parent-style-name="Text-body"
10723 style:next-style-name="Text-body">\Hnewline
10724 <style:paragraph-properties fo:margin-top="0cm"
10725 fo:margin-bottom="0.199cm"
10726 fo:font-size="14pt"
10727 fo:text-align="center"
10728 style:justify-single-word="false"
10729 style:writing-mode="rl-tb" />
10730 </style:style>\Hnewline
10731 }
10732 >>>
10733
10734
10735
10736
10737 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10738 \chapter{Packages}
10739 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
10740
10741 %%%%%%%%%%%%%%%%%%
10742 \section{Pstricks}
10743 %%%%%%%%%%%%%%%%%%
10744
10745
10746 \<configure ooffice pst-all\><<<
10747 \ConfigureEnv{psmatrix}
10748 {\Picture*{}}
10749 {\EndPicture}
10750 {}{}
10751 >>>
10752
10753 \<configure ooffice pstricks\><<<
10754 \Configure{pspicture}
10755 {\ifvmode \ifinner\else \vfill\break\fi
10756 \leavevmode\fi
10757 \bgroup
10758 \ifdim \pst@dimh<\z@ \pst@dimh=-\pst@dimh \fi
10759 \HCode{<!--width="\ifdim \wd\pst@hbox=\z@ \the\pst@dimg
10760 \else\the\wd\pst@hbox\fi"
10761 height="\ifdim \ht\pst@hbox=\z@ \the\pst@dimh
10762 \else \the\ht\pst@hbox\fi"-->}%
10763 \egroup
10764 \Picture+[\a:pspictureAlt]{ class="pspicture"}}
10765 {\EndPicture}
10766 \NewConfigure{pspictureAlt}{1}
10767 \Configure{pspictureAlt}{PIC}
10768 >>>
10769
10770
10771 %%%%%%%%%%%%%%%%%%
10772 \section{Fancyvrb}
10773 %%%%%%%%%%%%%%%%%%
10774
10775
10776
10777 \<configure ooffice fancyvrb\><<<
10778 \HAssign\fancyvrbNo=0
10779 \Configure{fancyvrb}
10780 {\IgnorePar \EndP \gHAdvance\fancyvrbNo by 1
10781 \gHAssign\fancyvrb:cnt0
10782 \HCode{<text:p text:style-name="fancyvrb\fancyvrbNo">}}
10783 {\EndP\HCode{</text:p>}}
10784 {\gHAdvance\fancyvrb:cnt by 1
10785 \ifnum \fancyvrb:cnt>1
10786 \HCode{<text:line-break />}\fi} {}
10787 {}{}
10788 >>>
10789
10790
10791 \<configure ooffice fancyvrb\><<<
10792 \Configure{BVerbatimInput}
10793 {\ifvmode \IgnorePar \fi \EndP
10794 \gHAssign\HRow=0
10795 \HCode{<text:p text:style-name="BVerbatimInput">}}
10796 {\ifvmode \IgnorePar \fi \EndP \HCode{</text:p>}}
10797 {\gHAdvance\HRow by 1 \ifnum \HRow>1 \HCode{<text:line-break />}\fi}{}
10798 >>>
10799
10800 %%%%%%%%%%%%%%%%%%
10801 \section{Ulem}
10802 %%%%%%%%%%%%%%%%%%
10803
10804
10805
10806 \<configure ooffice ulem\><<<
10807 \Configure{uline}
10808 {\ifmmode \HCode{<\a:mathml mrow class="uline">}%
10809 \else \HCode{<text:span text:style-name="uline">}\fi}
10810 {\ifmmode \HCode{</\a:mathml mrow>}\else \HCode{</text:span>}\fi}
10811 \NewConfigureOO{uline}
10812 \ConfigureOO{uline}{|<oo uline style|>}
10813 >>>
10814
10815 \<oo uline style\><<<
10816 <style:style style:name="uline" style:family="text">
10817 <style:text-properties style:text-underline-style="solid"
10818 style:text-underline-width="auto"
10819 style:text-underline-color="font-color"
10820 />
10821 </style:style>
10822 >>>
10823
10824
10825
10826 \<configure ooffice ulem\><<<
10827 \Configure{uuline}
10828 {\ifmmode \HCode{<\a:mathml mrow class="uuline">}%
10829 \else \HCode{<text:span text:style-name="uuline">}\fi}
10830 {\ifmmode \HCode{</\a:mathml mrow>}\else \HCode{</text:span>}\fi}
10831 \NewConfigureOO{uuline}
10832 \ConfigureOO{uuline}{|<oo uuline style|>}
10833 >>>
10834
10835 \<oo uuline style\><<<
10836 <style:style style:name="uuline" style:family="text">
10837 <style:text-properties style:text-underline-style="solid"
10838 style:text-underline-width="auto"
10839 style:text-underline-color="font-color"
10840 />
10841 </style:style>
10842 >>>
10843
10844
10845 \<configure ooffice ulem\><<<
10846 \Configure{uwave}
10847 {\ifmmode \HCode{<\a:mathml mrow class="uwave">}%
10848 \else \HCode{<text:span text:style-name="uwave">}\fi}
10849 {\ifmmode \HCode{</\a:mathml mrow>}\else \HCode{</text:span>}\fi}
10850 \NewConfigureOO{uwave}
10851 \ConfigureOO{uwave}{|<oo uwave style|>}
10852 >>>
10853
10854 \<oo uwave style\><<<
10855 <style:style style:name="uwave" style:family="text">
10856 <style:text-properties style:text-underline-style="wave"
10857 style:text-underline-width="auto"
10858 style:text-underline-color="font-color"
10859 />
10860 </style:style>
10861 >>>
10862
10863 % <style:text-properties style:text-underline="single" />
10864
10865
10866
10867 \<configure ooffice ulem\><<<
10868 \Configure{sout}
10869 {\ifmmode \HCode{<\a:mathml mrow class="sout">}%
10870 \else \HCode{<text:span text:style-name="sout">}\fi}
10871 {\ifmmode \HCode{</\a:mathml mrow>}\else \HCode{</text:span>}\fi}
10872 \NewConfigureOO{sout}
10873 \ConfigureOO{sout}{|<oo sout style|>}
10874 >>>
10875
10876 \<oo sout style\><<<
10877 <style:style style:name="sout" style:family="text">
10878 <style:text-properties style:text-line-through-style="solid"
10879 style:text-underline-style="none" />
10880 </style:style>
10881 >>>
10882
10883
10884
10885
10886 \<configure ooffice ulem\><<<
10887 \Configure{xout}
10888 {\ifmmode \HCode{<\a:mathml mrow class="xout">}%
10889 \else \HCode{<text:span text:style-name="xout">}\fi}
10890 {\ifmmode \HCode{</\a:mathml mrow>}\else \HCode{</text:span>}\fi}
10891 \NewConfigureOO{xout}
10892 \ConfigureOO{xout}{|<oo xout style|>}
10893 >>>
10894
10895 \<oo xout style\><<<
10896 <style:style style:name="xout" style:family="text">
10897 <style:text-properties style:text-line-through-style="solid"
10898 style:text-underline-style="none" />
10899 </style:style>
10900 >>>
10901
10902
10903
10904 %%%%%%%%%%%%%%%%%%
10905 \section{German}
10906 %%%%%%%%%%%%%%%%%%
10907
10908
10909
10910 \<configure ooffice german\><<<
10911 |<quotedblbase|>
10912 >>>
10913
10914 \<configure ooffice ngerman\><<<
10915 |<quotedblbase|>
10916 >>>
10917
10918
10919
10920
10921
10922 \<quotedblbase\><<<
10923 \Configure{quotedblbase}{\leavevmode\ht:special{t4ht@+&{35}x201E;}x}
10924 \Configure{quotesinglbase}{\leavevmode\ht:special{t4ht@+&{35}x201A;}x}
10925 >>>
10926
10927
10928 \<configure ooffice german\><<<
10929 \Configure{accent}\grmn@OTumlaut
10930 \grmn@OTumlaut{|<diaeresis codes|>{}{34}}
10931 {\a:accents{uml}{#1}} {\b:accents{uml}{#1}{#2}}
10932 >>>
10933
10934
10935 \<configure ooffice ngerman\><<<
10936 \Configure{accent}\grmn@OTumlaut
10937 \grmn@OTumlaut{|<diaeresis codes|>{}{34}}
10938 {\a:accents{uml}{#1}} {\b:accents{uml}{#1}{#2}}
10939 >>>
10940
10941
10942 \<diaeresis codes\><<<
10943 H{1E26}h{1E27}W{1E84}w{1E85}X{1E8C}x{1E8D}%
10944 t{1E97}A{00C4}E{00CB}I{00CF}O{00D6}U{00DC}%
10945 a{00E4}e{00EB}i{00EF}o{00F6}u{00FC}y{00FF}%
10946 Y{0178}\i{00EF}%
10947 >>>
10948
10949
10950
10951 %%%%%%%%%%%%%%%%%%
10952 \section{Hyperref}
10953 %%%%%%%%%%%%%%%%%%
10954
10955
10956
10957
10958 \<configure ooffice hyperref\><<<
10959 \ifx \@baseurl\@empty \else
10960 \Configure{@HEAD}
10961 {\HCode{<!--base href="\:baseurl" /-->}}
10962 \let\:baseurl\@baseurl
10963 \let\@baseurl=\@empty
10964 \fi
10965 >>>
10966
10967
10968
10969
10970 %%%%%%%%%%%%%%%%%%%%%
10971 \section{Listings}
10972 %%%%%%%%%%%%%%%%%%%%%
10973
10974
10975 \<configure ooffice listings\><<<
10976 \Log:Note{to ensure proper alignments use
10977 fixed size fonts (see listings.dtx)}
10978 \Configure{listings}
10979 {\ifvmode \IgnorePar\fi \EndP
10980 {\everypar{}\leavevmode}\HCode{<!--l. \the\inputlineno-->}%
10981 \HCode{<text:p text:style-name="Preformatted-Text">}%
10982 }
10983 {{\everypar{}\leavevmode}\HCode{</text:p>}\par}
10984 {}{}
10985 >>>
10986
10987 \<configure ooffice listings\><<<
10988 \ConfigureEnv{lstlisting}
10989 {\ifvmode \IgnorePar\fi \EndP
10990 \HCode{<!--l. \the\inputlineno lstlisting-->}%
10991 % \HCode{}%
10992 \bgroup %
10993 \gdef\start:LstLn{%
10994 \ifvmode\IgnorePar\fi\EndP\HCode{<text:p\Hnewline text:style-name="Preformatted-Text">}%
10995 \ht:special{t4ht@(}\ttfamily%
10996 \gdef\start:LstLn{\HCode{<text:s/><text:line-break/>}}}
10997 \pend:def\lst@DeInit{\ifvmode\IgnorePar\fi\EndP\HCode{</text:p>}}%
10998 \Configure{listings}
10999 {{\everypar{}\leavevmode}}
11000 {{\everypar{}\leavevmode}}
11001 {\start:LstLn}{}%
11002 }
11003 {\ht:special{t4ht@)}\egroup
11004 % \ifvmode \IgnorePar\fi \EndP \HCode{</text:p>}\par}
11005 \par}
11006 {} {}
11007 >>>
11008
11009 \<configure ooffice listings\><<<
11010 \Configure{lstinputlisting}
11011 {\ifvmode \IgnorePar\fi \EndP
11012 \HCode{<!--l. \the\inputlineno lstinputlisting-->}%
11013 % \HCode{<text:p\Hnewline text:style-name="Preformatted-Text">}%
11014 \bgroup%
11015 \gdef\start:LstLn{%
11016 \ifvmode\IgnorePar\fi\EndP\HCode{<text:p\Hnewline text:style-name="Preformatted-Text">}%
11017 \ht:special{t4ht@(}\ttfamily%
11018 \gdef\start:LstLn{\HCode{<text:s/><text:line-break/>}}}
11019 \pend:def\lst@DeInit{\ifvmode\IgnorePar\fi\EndP\HCode{</text:p>}}%
11020 \Configure{listings}
11021 {{\everypar{}\leavevmode}}
11022 {{\everypar{}\leavevmode}}
11023 {\start:LstLn}
11024 {\HCode{<text:line-break/>}}%
11025 }
11026 {\special{t4ht@)}\egroup\par}
11027 >>>
11028
11029
11030
11031 \<configure ooffice-mml latex\><<<
11032 \def\:nbsp{\ifmtext |<unicode space|>\else\ifmathml
11033 \Tg<\a:mathml mspace />\else |<oo space|>\fi\fi}
11034 >>>
11035
11036 \<unicode space\><<<
11037 \leavevmode\special{t4ht@+\string&{35}x00A0{59}}x%
11038 >>>
11039
11040 \<oo space\><<<
11041 \ht:special{t4ht@+\string&{35}x00A0{59}}x%
11042 >>>
11043
11044 Nonbraking spaces may go to aux files and need protect the colon and
11045 semicolons from catcode changes when loaded, e.g., in french.
11046
11047
11048
11049
11050
11051
11052 %%%%%%%%%%%%%
11053 \section{Linguistics}
11054 %%%%%%%%%%%%%
11055
11056 %%%%%%%%%%%%%
11057 \subsection{linguex}
11058 %%%%%%%%%%%%%
11059
11060
11061
11062 \<configure ooffice linguex\><<<
11063 \Configure{a.list}
11064 {\ConfigureList{list}%
11065 {\EndP\HCode{<text:list
11066 text:style-name="list|<cond rtl class|>"
11067 text:name="list"\Hnewline>}%
11068 \PushMacro\end:itm
11069 \global\let\end:itm=\empty
11070 \SaveHtmlPar \HTML:PAR{dd}{dd}%
11071 }
11072 {\PopMacro\end:itm \global\let\end:itm \end:itm
11073 \EndP
11074 \RecallHtmlPar
11075 \HCode{</text:list-item></text:list>}\ShowPar}
11076 {\end:itm \global\def\end:itm{\EndP\HCode{</text:list-item>}}%
11077 \HCode{<text:list-item><text:p
11078 text:style-name="dt|<cond rtl class|>"\Hnewline >}\bgroup \bf}
11079 {\egroup\HCode{</text:p>}\par\ShowPar}%
11080 }
11081 >>>
11082
11083 %%%%%%%%%%%%%
11084 \subsection{cgloss4e}
11085 %%%%%%%%%%%%%
11086
11087
11088
11089 \<configure ooffice cgloss4e\><<<
11090 \Configure{tsent}
11091 {\HCode{<table:table-cell table:style-name="tsent-td">%
11092 <text:p text:style-name="tsent-p">}%
11093 \gHAdvance\tsent:cnt by 1
11094 }
11095 {\HCode{</text:p></table:table-cell>}}
11096 {\HCode{<text:line-break />}}
11097 >>>
11098
11099 \<configure ooffice cgloss4e\><<<
11100 \Configure{gll}
11101 {\ifvmode \IgnorePar\fi \EndP
11102 \bgroup
11103 \ConfigureEnv{flushleft}
11104 {\ifvmode \IgnorePar\fi \EndP}
11105 {\ShowPar}
11106 {\EndP\IgnorePar
11107 |<boxed env|>%
11108 \HCode{<table:table table:style-name="gll-table"\Hnewline>%
11109 }\IgnorePar}
11110 {\IgnorePar\EndP\HCode{</table:table-row></table:table>}%
11111 |<end boxed env|>}%
11112 \Configure{HtmlPar}{}{}{}{}%
11113 \gHAssign\tsent:cnt=0
11114 }
11115 {\tmp:cnt=0
11116 \loop
11117 \advance\tmp:cnt by 1
11118 \HCode{<table:table-column table:style-name="gll-col"/>}%
11119 \ifnum \tsent:cnt>\tmp:cnt
11120 \repeat
11121 \HCode{<table:table-row table:style-name="gll-tr">}%
11122 }
11123 {\egroup}
11124 >>>
11125
11126 %%%%%%%%%%%%%
11127 \subsection{covington}
11128 %%%%%%%%%%%%%
11129
11130
11131
11132 \<configure ooffice covington\><<<
11133 \Configure{tsent}
11134 {\HCode{<table:table-cell table:style-name="tsent-td">%
11135 <text:p text:style-name="tsent-p">}%
11136 \gHAdvance\tsent:cnt by 1
11137 }
11138 {\HCode{</text:p></table:table-cell>}}
11139 {\HCode{<text:line-break />}}
11140 >>>
11141
11142
11143 \<configure ooffice covington\><<<
11144 \HAssign\gll:Cnt = 0
11145 \Configure{gll}
11146 {\ifvmode \IgnorePar\fi \EndP
11147 \gHAdvance\gll:Cnt by 1
11148 \bgroup
11149 \ConfigureEnv{flushleft}
11150 {\ifvmode \IgnorePar\fi \EndP}
11151 {\ShowPar}
11152 {\EndP\IgnorePar
11153 |<boxed env|>%
11154 \HCode{<table:table table:name="gll-\gll:Cnt"
11155 table:style-name="gll-table"\Hnewline>}%
11156 \ifnum 0<0\LikeRef{gll-\gll:Cnt}
11157 |<set gll's table-column|>%
11158 \fi
11159 \HCode{<table:table-row table:style-name="gll-tr">}%
11160 \IgnorePar
11161 }
11162 {\IgnorePar\EndP
11163 \csname :glend\endcsname
11164 \HCode{</table:table-row></table:table>}%
11165 |<end boxed env|>}%
11166 \Configure{HtmlPar}{}{}{}{}%
11167 \gHAssign\tsent:cnt=0
11168 }
11169 {}
11170 {\Tag{gll-\gll:Cnt}{\tsent:cnt}\egroup}
11171 >>>
11172
11173
11174
11175 \<set gll's table-column\><<<
11176 \tmp:cnt=0
11177 \loop
11178 \advance\tmp:cnt by 1
11179 \HCode{<table:table-column table:style-name="gll-col"/>}%
11180 \ifnum \LikeRef{gll-\gll:Cnt}>\tmp:cnt
11181 \repeat
11182 >>>
11183
11184 \<configure ooffice covington\><<<
11185 \Configure{glt}
11186 {\expandafter\ifx\csname :glend\endcsname\relax\else
11187 \HCode{</text:p></table:table-cell>}%
11188 \fi
11189 \HCode{</table:table-row><table:table-row
11190 table:style-name="glt"><table:table-cell
11191 table:number-columns-spanned="\tsent:cnt"><text:p
11192 text:style-name="p-glt">}%
11193 \gdef\:glend{\global\let\:glend\relax
11194 \HCode{</text:p></table:table-cell>}}%
11195 }
11196 \NewConfigureOO{p-glt}
11197 \ConfigureOO{p-glt}{\Hnewline
11198 <style:style style:name="p-glt"
11199 style:family="paragraph"
11200 style:parent-style-name="Standard" >
11201 <style:paragraph-properties fo:margin-top="0.2cm"/>
11202 </style:style>
11203 }
11204 >>>
11205
11206 \<configure ooffice covington\><<<
11207 \Configure{gln}
11208 {\expandafter\ifx\csname :glend\endcsname\relax\else
11209 \HCode{</text:p></table:table-cell>}%
11210 \fi
11211 \gHAdvance\tsent:cnt by 1
11212 \HCode{<table:table-cell><text:p
11213 text:style-name="p-gln">}%
11214 \gdef\:glend{\global\let\:glend\relax
11215 \HCode{</text:p></table:table-cell>}}%
11216 }
11217 \NewConfigureOO{p-gln}
11218 \ConfigureOO{p-gln}{\Hnewline
11219 <style:style style:name="p-gln"
11220 style:family="paragraph"
11221 style:parent-style-name="Standard" >
11222 <style:paragraph-properties fo:text-align="end"/>
11223 </style:style>
11224 }
11225 >>>
11226
11227 \<configure ooffice covington\><<<
11228 \NewConfigureOO{gll-table}
11229 \ConfigureOO{gll-table}{\Hnewline
11230 <style:style style:name="gll-table" style:family="table">
11231 <style:table-properties
11232 fo:margin-top="0.3cm"
11233 fo:margin-bottom="0.3cm"
11234 />
11235 </style:style>
11236 }
11237 >>>
11238 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11239 \chapter{Right to Left}
11240 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11241
11242
11243
11244 \<cond rtl class\><<<
11245 \if@rl-rtl\fi
11246 >>>
11247
11248
11249 %%%%%%%%%%%%%%%%%%
11250 \section{Title Page}
11251 %%%%%%%%%%%%%%%%%%
11252
11253
11254
11255
11256
11257 \<Title rtl\><<<
11258 <style:style style:name="Title-rtl"
11259 style:family="paragraph"
11260 style:parent-style-name="Heading-rtl"
11261 style:next-style-name="author-rtl"
11262 style:class="chapter">\Hnewline
11263 <style:paragraph-properties fo:margin-top="0.42cm"
11264 fo:margin-bottom="0.51cm"
11265 fo:font-size="20pt"
11266 fo:font-weight="normal"
11267 style:font-size-asian="18pt"
11268 style:font-weight-asian="bold"
11269 style:font-size-complex="18pt"
11270 style:font-weight-complex="bold"
11271 fo:text-align="center"
11272 style:justify-single-word="false"
11273 style:writing-mode="rl-tb" />
11274 </style:style> \Hnewline
11275 >>>
11276
11277 \<author rtl\><<<
11278 <style:style style:name="author-rtl"
11279 style:family="paragraph"
11280 style:parent-style-name="Text-body-rtl"
11281 style:next-style-name="date-rtl">\Hnewline
11282 <style:paragraph-properties fo:margin-top="0cm"
11283 fo:margin-bottom="0.199cm"
11284 fo:font-size="14pt"
11285 fo:text-align="center"
11286 style:justify-single-word="false"
11287 style:writing-mode="rl-tb" />
11288 </style:style>\Hnewline
11289 >>>
11290
11291
11292
11293 \<date rtl\><<<
11294 <style:style style:name="date-rtl"
11295 style:family="paragraph"
11296 style:parent-style-name="Text-body"
11297 style:next-style-name="Text-body">\Hnewline
11298 <style:paragraph-properties fo:margin-top="0cm"
11299 fo:margin-bottom="0.199cm"
11300 fo:font-size="14pt"
11301 fo:text-align="center"
11302 style:justify-single-word="false"
11303 style:writing-mode="rl-tb" />
11304 </style:style>\Hnewline
11305 >>>
11306
11307
11308
11309
11310 \<abstract rtl\><<<
11311 <style:style style:name="abstract-rtl"
11312 style:family="paragraph"
11313 style:parent-style-name="Text-body-rtl"
11314 style:next-style-name="Text-body-rtl">\Hnewline
11315 <style:paragraph-properties fo:margin-left="3cm"
11316 fo:margin-right="3cm"
11317 fo:margin-top="0cm"
11318 fo:margin-bottom="0.199cm"
11319 fo:font-size="10pt"
11320 fo:text-indent="0cm"
11321 style:auto-text-indent="false"
11322 style:writing-mode="rl-tb" />\Hnewline
11323 </style:style>\Hnewline
11324 >>>
11325
11326
11327 \<configure ooffice amsart\><<<
11328 \Configure{keywords}
11329 {\par\IgnorePar\EndP
11330 \HCode{<text:p\Hnewline text:style-name="keywords">}\ShowPar}
11331 {\ifvmode \IgnorePar\fi \EndP \HCode{</text:p>}}
11332 \Configure{subjclass}
11333 {\par\IgnorePar
11334 \HCode{<text:p\Hnewline text:style-name="subjclass">}\par\ShowPar}
11335 {\ifvmode \IgnorePar \fi\EndP \HCode{</text:p>}}
11336 \Configure{@maketitle}
11337 {\ifvmode \IgnorePar\fi \EndP
11338 \HCode{<text:p\Hnewline text:style-name="submaketitle"></text:p>}\IgnoreIndent
11339 |<start nested pars|>}
11340 {|<end nested pars|>\ifvmode \IgnorePar \fi\EndP
11341 \HCode{<text:p\Hnewline text:style-name="end-submaketitle"></text:p>}}
11342 >>>
11343
11344
11345
11346
11347 \<configure ooffice amsart\><<<
11348 \NewConfigureOO{submaketitle}
11349 \ConfigureOO{submaketitle}{\Hnewline
11350 <style:style style:name="submaketitle"
11351 style:family="paragraph"
11352 style:parent-style-name="Text-body"
11353 style:next-style-name="Text-body">\Hnewline
11354 <style:paragraph-properties fo:margin-left="0cm"
11355 fo:margin-right="0cm"
11356 fo:margin-top="0cm"
11357 fo:margin-bottom="0cm"
11358 fo:border-bottom="0.01cm solid \#000000"
11359 style:auto-text-indent="false"/>\Hnewline
11360 </style:style>\Hnewline >
11361 <style:style style:name="end-submaketitle"
11362 style:family="paragraph"
11363 style:parent-style-name="Text-body"
11364 style:next-style-name="Text-body">\Hnewline
11365 <style:paragraph-properties fo:margin-left="0cm"
11366 fo:margin-right="0cm"
11367 fo:margin-top="0cm"
11368 fo:margin-bottom="0cm"
11369 fo:border-top="0.01cm solid \#000000"
11370 style:auto-text-indent="false"/>\Hnewline
11371 </style:style>\Hnewline > }
11372 >>>
11373
11374
11375 \<boxed subjclass\><<<
11376 \hbox{\HCode{<text:p><draw:frame
11377 draw:name="subjclass"
11378 draw:style-name="subjclass"
11379 text:anchor-type="as-char"
11380 draw:z-index="0"
11381 >
11382 <draw:text-box
11383 >}}%
11384 >>>
11385
11386
11387 \<end boxed subjclass\><<<
11388 \hbox{\HCode{</draw:text-box>
11389 </draw:frame></text:p> }}%
11390 >>>
11391
11392
11393
11394
11395 \<configure ooffice amsart\><<<
11396 \Configure{maketitle}
11397 {\ifvmode \IgnorePar\fi \EndP |<ams title for TITLE|>%
11398 \HCode{<!--begin maketitle-->}%
11399 \ConfigureEnv{center}
11400 {\ifvmode \IgnorePar\fi} {\ifvmode \IgnorePar\fi}
11401 {\ifvmode \IgnorePar\fi} {\ifvmode \IgnorePar\fi}%
11402 |<footnote for ams title|>%
11403 }
11404 {\ifvmode \IgnorePar\fi \EndP \HCode{<!--end maketitle-->}\par}
11405 {\NoFonts\IgnorePar \EndP
11406 \HCode{<text:p text:style-name="Title\if@rl-rtl\fi">}\IgnorePar
11407 \bgroup \Configure{HtmlPar}{}{}{}{}}
11408 {\egroup \HCode{</text:p>}\IgnoreIndent\EndNoFonts}
11409 >>>
11410
11411
11412
11413 \<configure ooffice amsart\><<<
11414 \Configure{thanks author date and}
11415 {\par\IgnorePar\EndP \HCode{<text:p text:style-name="thanks">}\par\ShowPar}
11416 {\ifvmode \IgnorePar\fi\EndP \HCode{</text:p>}}
11417 {\ifvmode \IgnorePar\fi\EndP
11418 \HCode{<text:p text:style-name="authors"><text:span text:style-name="author">}}
11419 {\ifvmode \IgnorePar\fi\EndP \HCode{</text:span></text:p>}}
11420 {\par\IgnorePar\EndP \HCode{<text:p text:style-name="date">}\par\ShowPar}
11421 {\ifvmode \IgnorePar\fi\EndP \HCode{</text:p>}}
11422 {\lowercase{\HCode{</text:span><text:span text:style-name="and">}}and~%
11423 \lowercase{\HCode{</text:span><text:span text:style-name="xxxx">}}}
11424 {}%{\HCode{<text:line-break />}}
11425 >>>
11426
11427
11428
11429 \<configure ooffice amsart\><<<
11430 \NewConfigureOO{authors}
11431 \ConfigureOO{authors}{%
11432 <style:style style:name="authors"
11433 style:family="paragraph"
11434 >\Hnewline
11435 <style:paragraph-properties fo:margin-top="0cm"
11436 fo:margin-bottom="0.199cm"
11437 fo:font-size="14pt"
11438 fo:text-align="center"
11439 style:justify-single-word="false"/>
11440 </style:style>
11441 }
11442 >>>
11443
11444 \<configure ooffice amsart\><<<
11445 \NewConfigureOO{abstract-title}
11446 \ConfigureOO{abstract-title}{\Hnewline
11447 <style:style style:name="abstract-title"
11448 style:family="paragraph"
11449 style:parent-style-name="abstract-title">
11450 <style:paragraph-properties
11451 fo:margin-left="0.3in"
11452 fo:margin-right="0.2799in"
11453 fo:text-indent="0in"
11454 fo:margin-top="0in"
11455 fo:margin-bottom="0.0783in"
11456 fo:text-align="start"
11457 style:justify-single-word="false"
11458 style:auto-text-indent="false"
11459 />
11460 </style:style>\Hnewline
11461 }
11462 >>>
11463
11464
11465
11466 \<configure ooffice amsart\><<<
11467 \NewConfigureOO{keywords}
11468 \ConfigureOO{keywords}{\Hnewline
11469 <style:style style:name="keywords"
11470 style:family="paragraph"
11471 style:parent-style-name="Text-body"
11472 style:next-style-name="Text-body">\Hnewline
11473 <style:paragraph-properties fo:margin-left="0cm"
11474 fo:margin-right="0cm"
11475 fo:margin-top="0cm"
11476 fo:margin-bottom="0.199cm"
11477 fo:font-size="10pt"
11478 fo:font-style="italic"
11479 fo:text-indent="0cm"
11480 fo:text-align="left"
11481 style:auto-text-indent="false"/>\Hnewline
11482 </style:style>\Hnewline > }
11483 >>>
11484
11485
11486
11487 \<configure ooffice amsart\><<<
11488 \Configure{addresses}
11489 {\ifvmode \IgnorePar\fi \EndP
11490 \HCode{<text:p text:style-name="addresses"></text:p>}\ShowPar
11491 |<start nested pars|>}
11492 {|<end nested pars|>\ifvmode \IgnorePar\fi \EndP
11493 \HCode{<text:p text:style-name="end-addresses"></text:p>}}
11494 \Configure{address}
11495 {\HCode{<text:span text:style-name="address-title">}}
11496 {\ifvmode \IgnorePar\fi \HCode{</text:span><text:span text:style-name="address">}}
11497 {\HCode{</text:span>}}
11498 \Configure{curraddr}
11499 {\HCode{<text:span text:style-name="curraddr-title">}}
11500 {\ifvmode \IgnorePar\fi \HCode{</text:span><text:span text:style-name="curraddr">}}
11501 {\HCode{</text:span>}}
11502 \Configure{email}
11503 {\HCode{<text:span text:style-name="email-title">}}
11504 {\ifvmode \IgnorePar\fi \HCode{</text:span><text:span text:style-name="email">}}
11505 {\HCode{</text:span>}}
11506 \Configure{urladdr}
11507 {\HCode{<text:span text:style-name="urladdr-title">}}
11508 {\ifvmode \IgnorePar\fi \HCode{</text:span><text:span text:style-name="urladdr">}}
11509 {\HCode{</text:span>}}
11510 >>>
11511
11512 \<configure ooffice amsart\><<<
11513 \NewConfigureOO{address}
11514 \ConfigureOO{address}{
11515 <style:style style:name="address" style:family="text">
11516 <style:text-properties fo:text-transform="capitalize"
11517 />
11518 </style:style>
11519 }
11520 >>>
11521
11522
11523
11524 \<start nested pars\><<<
11525 \bgroup
11526 \HTML:PAR{nested-p-\ifHCond nopar\else noindent\fi}%
11527 {nested-p-\ifdim \parindent=\z@ no\fi indent}%
11528 >>>
11529
11530 \<end nested pars\><<<
11531 \ifvmode \IgnorePar \fi \EndP \egroup
11532 >>>
11533
11534 %%%%%%%%%%%%%%%%%%
11535 \section{Lists}
11536 %%%%%%%%%%%%%%%%%%
11537
11538
11539
11540 \<oo+ itemize style rtl\><<<
11541 <text:list-style style:name="Itemize-rtl">\Hnewline
11542 <text:list-level-style-bullet
11543 \list:text:level="1"
11544 text:style-name="Bullet-Symbols"
11545 text:bullet-char="\string&\:sharp x2022;" >\Hnewline
11546 <style:text-properties
11547 text:space-before="0.15in"
11548 text:min-label-distance="0.05in"/>\Hnewline
11549 </text:list-level-style-bullet>\Hnewline
11550 <text:list-level-style-bullet
11551 \list:text:level="2"
11552 text:bullet-char="\string&\:sharp x25E6;" >\Hnewline
11553 <style:text-properties
11554 text:space-before="0.1972in"
11555 text:min-label-width="0.2965in"/>\Hnewline
11556 </text:list-level-style-bullet>\Hnewline
11557 <text:list-level-style-bullet
11558 \list:text:level="3"
11559 text:bullet-char="\string&\:sharp x25AA;" >\Hnewline
11560 <style:text-properties
11561 text:space-before="0.3937in"
11562 text:min-label-width="0.4965in"/>\Hnewline
11563 </text:list-level-style-bullet>\Hnewline
11564 <text:list-level-style-bullet
11565 \list:text:level="4"
11566 text:bullet-char="\string&\:sharp x25AB;" >\Hnewline
11567 <style:text-properties
11568 text:space-before="0.5909in"
11569 text:min-label-width="0.6965in"/>\Hnewline
11570 </text:list-level-style-bullet>\Hnewline
11571 </text:list-style>\Hnewline
11572 >>>
11573
11574 \<oo+ itemize style rtl\><<<
11575 <style:style style:name="Inside-itemize-rtl"
11576 style:family="paragraph"
11577 style:list-style-name="Itemize-rtl">\Hnewline
11578 <style:paragraph-properties
11579 fo:text-align="end"
11580 style:justify-single-word="false"
11581 style:writing-mode="rl-tb"/>\Hnewline
11582 </style:style>\Hnewline
11583 >>>
11584
11585
11586
11587
11588
11589
11590 \<oo2+ enumerate style rtl\><<<
11591 <text:list-style style:name="Enumerate-rtl">\Hnewline
11592 <text:list-level-style-number
11593 text:level="1"
11594 text:style-name="Numbering-Symbols"
11595 style:num-prefix="\csname b:enumerate:1\endcsname"
11596 style:num-suffix="\csname c:enumerate:1\endcsname" >\Hnewline
11597 <style:list-level-properties
11598 text:space-before="0.15in"
11599 style:num-format="\csname a:enumerate:1\endcsname"
11600 text:min-label-distance="0.05in"/>\Hnewline
11601 </text:list-level-style-number>\Hnewline
11602 <text:list-level-style-number
11603 text:level="2"
11604 text:style-name="Numbering-Symbols"
11605 style:num-prefix="\csname b:enumerate:2\endcsname"
11606 style:num-suffix="\csname c:enumerate:2\endcsname">\Hnewline
11607 <style:list-level-properties
11608 text:space-before="0.35in"
11609 style:num-format="\csname a:enumerate:2\endcsname"
11610 text:min-label-distance="0.05in"/>\Hnewline
11611 </text:list-level-style-number>\Hnewline
11612 <text:list-level-style-number
11613 text:level="3"
11614 text:style-name="Numbering-Symbols"
11615 style:num-prefix="\csname b:enumerate:3\endcsname"
11616 style:num-suffix="\csname c:enumerate:3\endcsname">\Hnewline
11617 <style:list-level-properties
11618 text:space-before="0.6in"
11619 style:num-format="\csname a:enumerate:3\endcsname"
11620 text:min-label-distance="0.05in"/>\Hnewline
11621 </text:list-level-style-number>\Hnewline
11622 <text:list-level-style-number
11623 text:level="4"
11624 text:style-name="Numbering-Symbols"
11625 style:num-prefix="\csname b:enumerate:4\endcsname"
11626 style:num-suffix="\csname c:enumerate:4\endcsname">\Hnewline
11627 <style:list-level-properties
11628 text:space-before="0.8in"
11629 style:num-format="\csname a:enumerate:4\endcsname"
11630 text:min-label-distance="0.05in"/>\Hnewline
11631 </text:list-level-style-number>\Hnewline
11632 </text:list-style>\Hnewline
11633 >>>
11634
11635 \<shared oo+ enumerate style rtl\><<<
11636 <style:style style:name="Inside-enumerate-rtl"
11637 style:family="paragraph"
11638 style:list-style-name="Enumerate-rtl">\Hnewline
11639 <style:paragraph-properties
11640 fo:text-align="end"
11641 style:justify-single-word="false"
11642 style:writing-mode="rl-tb"/>\Hnewline
11643 </style:style>\Hnewline
11644 >>>
11645
11646
11647
11648
11649 %%%%%%%%%%%%%%%%%%
11650 \section{Sectioning}
11651 %%%%%%%%%%%%%%%%%%
11652
11653
11654
11655 \<Heading 1 rtl\><<<
11656 <style:style style:name="Heading-1-rtl"
11657 style:family="paragraph"
11658 style:parent-style-name="Heading-rtl"
11659 style:next-style-name="Text-body-rtl"
11660 style:class="text">\Hnewline
11661 <style:paragraph-properties fo:font-size="17.2999992370605pt"
11662 fo:font-weight="bold"
11663 style:font-size-asian="115\prcnt:ch"
11664 style:font-weight-asian="bold"
11665 style:font-size-complex="115\prcnt:ch"
11666 style:font-weight-complex="bold"
11667 fo:text-align="end"
11668 style:justify-single-word="false"
11669 style:writing-mode="rl-tb" />
11670 </style:style>
11671 \Hnewline
11672 >>>
11673
11674
11675
11676
11677 \<Heading 2 rtl\><<<
11678 <style:style style:name="Heading-2-rtl"
11679 style:family="paragraph"
11680 style:parent-style-name="Heading"
11681 style:next-style-name="Text-body"
11682 style:class="text">\Hnewline
11683 <style:paragraph-properties fo:font-size="14.3999996185303pt"
11684 style:font-size-complex="14pt"
11685 style:font-style-complex="italic"
11686 style:font-weight-complex="bold"
11687 fo:margin-top="0.42cm"
11688 fo:margin-bottom="0cm"
11689 fo:text-align="end"
11690 style:justify-single-word="false"
11691 style:writing-mode="rl-tb" />
11692 </style:style>
11693 \Hnewline
11694 >>>
11695
11696
11697
11698 \<Heading 3 rtl\><<<
11699 <style:style style:name="Heading-3-rtl"
11700 style:family="paragraph"
11701 style:parent-style-name="Heading-rtl"
11702 style:next-style-name="Text-body-rtl"
11703 style:class="text">\Hnewline
11704 <style:paragraph-properties fo:font-size="12pt"
11705 fo:font-weight="bold"
11706 style:font-size-asian="14pt"
11707 style:font-weight-asian="bold"
11708 style:font-size-complex="14pt"
11709 style:font-weight-complex="bold"
11710 fo:text-align="end"
11711 style:justify-single-word="false"
11712 style:writing-mode="rl-tb" />
11713 </style:style>
11714 \Hnewline
11715 >>>
11716
11717
11718 \<Heading 4 rtl\><<<
11719 <style:style style:name="Heading-4-rtl"
11720 style:family="paragraph"
11721 style:parent-style-name="Heading-rtl"
11722 style:next-style-name="Text-body-rtl"
11723 style:class="text">\Hnewline
11724 <style:paragraph-properties fo:font-size="12pt"
11725 fo:font-weight="bold"
11726 fo:margin-top="0.42cm"
11727 fo:margin-bottom="0cm"
11728 style:font-size-complex="85\prcnt:ch"
11729 style:font-style-complex="italic"
11730 style:font-weight-complex="bold"
11731 fo:text-align="end"
11732 style:justify-single-word="false"
11733 style:writing-mode="rl-tb"
11734 />
11735 </style:style>
11736 \Hnewline
11737 >>>
11738
11739
11740 \<Heading 5 rtl\><<<
11741 <style:style style:name="Heading-5-rtl"
11742 style:family="paragraph"
11743 style:parent-style-name="Heading"
11744 style:next-style-name="Text-body"
11745 style:class="text">\Hnewline
11746 <style:paragraph-properties fo:margin-left="0cm"
11747 fo:margin-right="0cm"
11748 fo:margin-top="0.42cm"
11749 fo:margin-bottom="0cm"
11750 fo:font-size="12pt"
11751 fo:font-style="italic"
11752 fo:font-weight="normal"
11753 style:font-size-complex="85\prcnt:ch"
11754 style:font-weight-complex="bold"
11755 fo:text-indent="0cm"
11756 style:auto-text-indent="false"
11757 fo:text-align="end"
11758 style:justify-single-word="false"
11759 style:writing-mode="rl-tb" />
11760 </style:style>
11761 \Hnewline
11762 >>>
11763
11764
11765
11766 \<Heading 6 rtl\><<<
11767 <style:style style:name="Heading-6-rtl"
11768 style:family="paragraph"
11769 style:parent-style-name="Heading-rtl"
11770 style:next-style-name="Text-body-rtl"
11771 style:class="text">\Hnewline
11772 <style:paragraph-properties fo:font-size="75\prcnt:ch"
11773 fo:font-weight="bold"
11774 style:font-size-asian="75\prcnt:ch"
11775 style:font-weight-asian="bold"
11776 style:font-size-complex="75\prcnt:ch"
11777 style:font-weight-complex="bold"
11778 fo:text-align="end"
11779 style:justify-single-word="false"
11780 style:writing-mode="rl-tb" />
11781 </style:style>
11782 \Hnewline
11783 >>>
11784
11785
11786
11787 \<Heading 7 rtl\><<<
11788 <style:style style:name="Heading-7-rtl"
11789 style:family="paragraph"
11790 style:parent-style-name="Heading-rtl"
11791 style:next-style-name="Text-body-rtl"
11792 style:class="text">\Hnewline
11793 <style:paragraph-properties fo:font-size="75\prcnt:ch"
11794 fo:font-weight="bold"
11795 style:font-size-asian="75\prcnt:ch"
11796 style:font-weight-asian="bold"
11797 style:font-size-complex="75\prcnt:ch"
11798 style:font-weight-complex="bold"
11799 fo:text-align="end"
11800 style:justify-single-word="false"
11801 style:writing-mode="rl-tb" />
11802 </style:style>
11803 \Hnewline
11804 >>>
11805
11806
11807 \<Heading 8 rtl\><<<
11808 <style:style style:name="Heading-8-rtl"
11809 style:family="paragraph"
11810 style:parent-style-name="Heading-rtl"
11811 style:next-style-name="Text-body-rtl"
11812 style:class="text">\Hnewline
11813 <style:paragraph-properties fo:font-size="75\prcnt:ch"
11814 fo:font-weight="bold"
11815 style:font-size-asian="75\prcnt:ch"
11816 style:font-weight-asian="bold"
11817 style:font-size-complex="75\prcnt:ch"
11818 style:font-weight-complex="bold"
11819 fo:text-align="end"
11820 style:justify-single-word="false"
11821 style:writing-mode="rl-tb" />
11822 </style:style>
11823 \Hnewline
11824 >>>
11825
11826
11827
11828 \<Heading 9 rtl\><<<
11829 <style:style style:name="Heading-9-rtl"
11830 style:family="paragraph"
11831 style:parent-style-name="Heading"
11832 style:next-style-name="Text-body"
11833 style:class="text">\Hnewline
11834 <style:paragraph-properties fo:font-size="75\prcnt:ch"
11835 fo:font-weight="bold"
11836 style:font-size-asian="75\prcnt:ch"
11837 style:font-weight-asian="bold"
11838 style:font-size-complex="75\prcnt:ch"
11839 style:font-weight-complex="bold"
11840 fo:text-align="end"
11841 style:justify-single-word="false"
11842 style:writing-mode="rl-tb" />
11843 </style:style>
11844 \Hnewline
11845 >>>
11846
11847
11848 \<Heading 10 rtl\><<<
11849 <style:style style:name="Heading-10-rtl"
11850 style:family="paragraph"
11851 style:parent-style-name="Heading-rtl"
11852 style:next-style-name="Text-body-rtl"
11853 style:class="text">\Hnewline
11854 <style:paragraph-properties fo:font-size="75\prcnt:ch"
11855 fo:font-weight="bold"
11856 style:font-size-asian="75\prcnt:ch"
11857 style:font-weight-asian="bold"
11858 style:font-size-complex="75\prcnt:ch"
11859 style:font-weight-complex="bold"/>
11860 </style:style>
11861 \Hnewline
11862 >>>
11863
11864 \subsection{mdwlist}
11865
11866 \<configure ooffice mdwlist\><<<
11867
11868 \ConfigureList{itemize*}%
11869 {\EndP\HCode{|<input line num|><\text:unorderedlist
11870 text:style-name="Itemize|<cond rtl class|>"
11871 >\Hnewline}\def\end@Item{}\bgroup
11872 \Configure{HtmlPar}
11873 {\EndP\HCode{<text:p
11874 text:style-name="Inside-itemize|<cond rtl class|>"
11875 >}}
11876 {\EndP\HCode{<text:p
11877 text:style-name="Inside-itemize|<cond rtl class|>"
11878 >}}
11879 {\HCode{</text:p>\Hnewline}}
11880 {\HCode{</text:p>\Hnewline}}%
11881 \gHAdvance\BegEnd:D by 1
11882 }
11883 {\gHAdvance\BegEnd:D by -1
11884 \EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
11885 </\text:unorderedlist>\Hnewline}\ShowPar}
11886 {\EndP\end@Item\DeleteMark}
11887 {\HCode{<text:list-item>}\par\ShowPar
11888 \def\end@Item{\HCode{</text:list-item>\Hnewline}}}
11889
11890 \ConfigureList{enumerate*}%
11891 {\EndP\HCode{<\text:orderedlist
11892 text:style-name="Enumerate|<cond rtl class|>"
11893 >\Hnewline}\def\end@Item{}\bgroup
11894 \Configure{HtmlPar}
11895 {\EndP\HCode{<text:p
11896 text:style-name="Inside-enumerate|<cond rtl class|>"
11897 >}}
11898 {\EndP\HCode{<text:p
11899 text:style-name="Inside-enumerate|<cond rtl class|>"
11900 >}}
11901 {\HCode{</text:p>\Hnewline}} {\HCode{</text:p>\Hnewline}}}
11902 {\EndP\IgnorePar \egroup \HCode{</text:list-item>\Hnewline
11903 </\text:orderedlist>\Hnewline}\ShowPar}
11904 {\EndP\end@Item\DeleteMark}
11905 {\HCode{<text:list-item>}\par\ShowPar
11906 \def\end@Item{\HCode{</text:list-item>\Hnewline}}}
11907 >>>
11908
11909 %%%%%%%%%%%%%%%%%%
11910 \section{Verbatim}
11911 %%%%%%%%%%%%%%%%%%
11912
11913
11914
11915 \<Preformatted Text rtl\><<<
11916 <style:style style:name="Preformatted-Text-rtl"
11917 style:family="paragraph"
11918 style:parent-style-name="Standard">\Hnewline
11919 <style:paragraph-properties
11920 % fo:font-family="monospace"
11921 % fo:wrap-option="no-wrap"
11922 % style:font-name="Courier"
11923 fo:margin-top="0.2cm"
11924 fo:margin-bottom="0.2cm"
11925 fo:text-indent="0cm"
11926 fo:text-align="end"
11927 style:justify-single-word="false"
11928 style:writing-mode="rl-tb"
11929 />\Hnewline
11930 <style:text-properties fo:font-family="monospace"/>\Hnewline
11931 </style:style>\Hnewline
11932 >>>
11933
11934
11935 %%%%%%%%%%%%%%%%%%
11936 \section{Paragraphs}
11937 %%%%%%%%%%%%%%%%%%
11938
11939
11940 \<First-line-indent rtl\><<<
11941 <style:style style:name="First-line-indent-rtl"
11942 style:family="paragraph"
11943 style:parent-style-name="Text-body"
11944 style:class="text">\Hnewline
11945 <style:paragraph-properties fo:margin-left="0cm"
11946 fo:margin-right="0cm"
11947 fo:text-indent="0.499cm"
11948 style:auto-text-indent="false"
11949 fo:text-align="end"
11950 style:justify-single-word="false"
11951 style:writing-mode="rl-tb" />
11952 </style:style>\Hnewline
11953 >>>
11954
11955
11956 \<Text-body rtl\><<<
11957 <style:style style:name="Text-body-rtl"
11958 style:family="paragraph"
11959 style:parent-style-name="Standard"
11960 style:next-style-name="First-line-indent"
11961 style:class="text"
11962 style:master-page-name="">\Hnewline
11963 <style:paragraph-properties fo:margin-top="0cm"
11964 fo:margin-bottom="0cm"
11965 fo:line-height="120\prcnt:ch"
11966 style:justify-single-word="false"
11967 fo:hyphenate="true"
11968 fo:hyphenation-remain-char-count="2"
11969 fo:hyphenation-push-char-count="2"
11970 fo:hyphenation-ladder-count="no-limit"
11971 style:page-number="0"
11972 fo:text-align="end"
11973 style:writing-mode="rl-tb" />
11974 </style:style>
11975 \Hnewline
11976 <style:style style:name="Like-Text-body-rtl"
11977 style:family="paragraph"
11978 style:parent-style-name="Standard"
11979 style:next-style-name="First-line-indent"
11980 style:class="text"
11981 style:master-page-name="">\Hnewline
11982 <style:paragraph-properties fo:margin-top="0cm"
11983 fo:margin-bottom="0cm"
11984 fo:line-height="120\prcnt:ch"
11985 style:justify-single-word="false"
11986 fo:hyphenate="true"
11987 fo:hyphenation-remain-char-count="2"
11988 fo:hyphenation-push-char-count="2"
11989 fo:hyphenation-ladder-count="no-limit"
11990 style:page-number="0"
11991 fo:text-align="end"
11992 style:writing-mode="rl-tb" />
11993 </style:style>
11994 \Hnewline
11995 >>>
11996
11997
11998
11999 \<p-nopar rtl\><<<
12000 <style:style style:name="p-nopar-rtl"
12001 style:family="paragraph"
12002 style:parent-style-name="Text-body">\Hnewline
12003 <style:paragraph-properties
12004 style:auto-text-indent="false"
12005 fo:margin-top="0.3cm"
12006 fo:margin-bottom="0.3cm"
12007 style:justify-single-word="false"
12008 fo:text-align="end"
12009 style:writing-mode="rl-tb" />\Hnewline
12010 </style:style>\Hnewline
12011 >>>
12012
12013
12014 %%%%%%%%%%%%%%%%%%
12015 \section{List-Based Environments}
12016 %%%%%%%%%%%%%%%%%%
12017
12018
12019
12020 \<quote rtl\><<<
12021 <style:style style:name="quote-rtl"
12022 style:family="paragraph"
12023 style:parent-style-name="Text-body-rtl"
12024 style:next-style-name="Text-body-rtl">\Hnewline
12025 <style:paragraph-properties fo:margin-left="1cm"
12026 fo:margin-right="1cm"
12027 fo:margin-top="0.199cm"
12028 fo:margin-bottom="0.199cm"
12029 fo:text-indent="0cm"
12030 style:auto-text-indent="false"
12031 fo:text-align="end"
12032 style:writing-mode="rl-tb" />\Hnewline
12033 </style:style>
12034 \Hnewline
12035 >>>
12036
12037
12038 \<quotation rtl\><<<
12039 <style:style style:name="quotation-rtl"
12040 style:family="paragraph"
12041 style:parent-style-name="Standard">\Hnewline
12042 <style:paragraph-properties
12043 fo:margin-left="1cm"
12044 fo:margin-right="1cm"
12045 fo:margin-top="0cm"
12046 fo:margin-bottom="0cm"
12047 fo:text-indent="0.499cm"
12048 style:auto-text-indent="true"
12049 fo:text-align="end"
12050 style:writing-mode="rl-tb" />\Hnewline
12051 </style:style>\Hnewline
12052 >>>
12053
12054
12055
12056
12057
12058 %%%%%%%%%%%%%%%%%%
12059 \section{Math}
12060 %%%%%%%%%%%%%%%%%%
12061
12062
12063
12064 \<mathml rlbabel\><<<
12065 \if@rl\else\beginR\fi
12066 >>>
12067
12068
12069 %%%%%%%%%%%%%%%%%%
12070 \chapter{Math}
12071 %%%%%%%%%%%%%%%%%%
12072
12073
12074 %%%%%%%%%%%%%%%%%%
12075 \section{Envelops}
12076 %%%%%%%%%%%%%%%%%%
12077
12078 \<configure mathml rlbabel\><<<
12079 \Configure{[]}
12080 {\Configure{@math}{|<block display|>}\csname a:mathml[]\endcsname
12081 \CenteredFrametrue \DviMath \CenteredFramefalse
12082 \Tg<\a:mathml mrow\Hnewline>$$\DisplayMathtrue }
12083 {$$\Tg</\a:mathml mrow>\EndDviMath\csname b:mathml[]\endcsname
12084 |<mathml rlbabel|> }
12085 >>>
12086
12087
12088 \<block display\><<<
12089 % \a:mathml display="block"
12090 >>>
12091
12092
12093 \<inline display\><<<
12094 %\a:mathml display="inline"
12095 >>>
12096
12097
12098
12099 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12100 \section{Underline and Overline}
12101 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12102
12103
12104 \<configure ooffice-mml latex\><<<
12105 \Configure{overline}
12106 {\bgroup\ifmathml |<mathml overline|>\else
12107 \HCode{<text:span text:style-name="overline" >}\fi}
12108 {\ifmathml |<end mathml overline|>\else \HCode{</text:span>}\fi\egroup}
12109 \Configure{underline}
12110 {\bgroup
12111 \ifmathml |<mathml underline|>%
12112 \else |<nomath underline|>\HCode{<text:span text:style-name="underline" >}\fi}
12113 {\ifmathml |<end mathml underline|>\else \HCode{</text:span>}\fi \egroup}
12114 >>>
12115
12116
12117
12118 \<configure ooffice-mml ushort \><<<
12119 \Configure{ushort}
12120 {\bgroup
12121 \ifmathml |<mathml underline|>%
12122 \else |<nomath underline|>\HCode{<text:span text:style-name="underline" >}\fi}
12123 {\ifmathml |<end mathml underline|>\else \HCode{</text:span>}\fi \egroup}
12124 \Configure{ushortw}
12125 {\bgroup
12126 \ifmathml |<mathml underline|>%
12127 \else |<nomath underline|>\HCode{<text:span text:style-name="underline" >}\fi}
12128 {\ifmathml |<end mathml underline|>\else \HCode{</text:span>}\fi \egroup}
12129 \Configure{ushortd}
12130 {\bgroup
12131 \ifmathml |<mathml underline|>%
12132 \else |<nomath underline|>\HCode{<text:span text:style-name="underline" >}\fi}
12133 {\ifmathml |<end mathml underline|>\else \HCode{</text:span>}\fi \egroup}
12134 \Configure{ushortdw}
12135 {\bgroup
12136 \ifmathml |<mathml underline|>%
12137 \else |<nomath underline|>\HCode{<text:span text:style-name="underline" >}\fi}
12138 {\ifmathml |<end mathml underline|>\else \HCode{</text:span>}\fi \egroup}
12139 \Configure{ushortdline}
12140 {\bgroup
12141 \ifmathml |<mathml underline|>%
12142 \else |<nomath underline|>\HCode{<text:span text:style-name="underline" >}\fi}
12143 {\ifmathml |<end mathml underline|>\else \HCode{</text:span>}\fi \egroup}
12144 >>>
12145
12146
12147
12148 \<mathml overline\><<<
12149 \HCode{<\a:mathml mover accent="false"\Hnewline
12150 \mml:class="mml-overline"><\a:mathml mrow>}%
12151 >>>
12152
12153 \<end mathml overline\><<<
12154 \HCode{</\a:mathml mrow><\a:mathml mo\Hnewline
12155 accent="true">&\#x00AF;</\a:mathml mo>%
12156 </\a:mathml mover>}%
12157 >>>
12158
12159
12160 \<mathml underline\><<<
12161 \HCode{<\a:mathml munder \a:mathml accentunder="false"\Hnewline
12162 \mml:class="mml-underline"><\a:mathml mrow>}%
12163 >>>
12164
12165 \<nomath underline\><<<
12166 \expandafter\everymath
12167 \expandafter{\expandafter\everymath
12168 \expandafter{\the\everymath}}%
12169 \let\o::@underline:\o:@@underline:
12170 \def\o:@@underline:{\let\o:@@underline:\o::@underline:}%
12171 >>>
12172
12173 \<end mathml underline\><<<
12174 \HCode{</\a:mathml mrow><\a:mathml mo\Hnewline
12175 accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
12176 >>>
12177
12178
12179
12180 \<configure ooffice fontmath\><<<
12181 \NewConfigureOO{overline}
12182 \ConfigureOO{overline}{|<oo overline style|>}
12183 \NewConfigureOO{underline}
12184 \ConfigureOO{underline}{|<oo underline style|>}
12185 >>>
12186
12187 \<oo underline style\><<<
12188 <style:style style:name="underline" style:family="text">
12189 <style:text-properties style:text-underline-style="solid"
12190 style:text-underline-width="auto"
12191 style:text-underline-color="font-color"
12192 />
12193 </style:style>
12194 >>>
12195
12196 Overline??
12197
12198 \<oo overline style\><<<
12199 <style:style style:name="overline" style:family="text">
12200 <style:text-properties style:text-underline="dotted" />
12201 </style:style>
12202 >>>
12203
12204
12205 %%%%%%%%%%%%%%%%%%
12206 \section{mfenced}
12207 %%%%%%%%%%%%%%%%%%
12208
12209 OO doesn't seem to hono mfenced
12210
12211 \begin{verbatim}
12212 \documentclass{article}
12213 \begin{document}
12214 \[
12215 \sin\left(x\right)\]
12216 \end{document}
12217 \end{verbatim}
12218
12219 \<configure ooffice-mml latex\><<<
12220 >>>
12221
12222 \<configure ooffice-mml plain\><<<
12223 >>>
12224
12225
12226
12227
12228
12229
12230 \<mfenced patches\><<<
12231 \Configure{left}
12232 {}
12233 {\HCode{<\a:mathml mrow>\expandafter
12234 \ifx \csname \string#1:lr del\endcsname\relax
12235 <\a:mathml mo form="prefix" >#1</\a:mathml mo\space>\else
12236 \expandafter\ifx \csname \string#1:lr del\endcsname\empty \else
12237 <\a:mathml mo form="prefix" >\csname
12238 \string#1:lr del\endcsname</\a:mathml mo>\fi
12239 \fi<\a:mathml mrow>}}
12240 >>>
12241
12242
12243
12244
12245
12246 \<mfenced patches\><<<
12247 \Configure{right}
12248 {\HCode{</\a:mathml mrow>\expandafter
12249 \ifx \csname \string#1:lr del\endcsname\relax
12250 <\a:mathml mo form="postfix" >#1</\a:mathml mo>\else
12251 \expandafter\ifx \csname \string#1:lr del\endcsname\empty \else
12252 <\a:mathml mo form="postfix" >\csname
12253 \string#1:lr del\endcsname</\a:mathml mo>\fi
12254 \fi
12255 }}
12256 {\HCode{</\a:mathml mrow>}}
12257 >>>
12258
12259
12260 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12261 \chapter{???????????????????????}
12262 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12263
12264
12265
12266 %%%%%%%%%%%%%%%%%%
12267 \section{Long Tables}
12268 %%%%%%%%%%%%%%%%%%
12269
12270
12271 \<configure ooffice longtable\><<<
12272 \Configure{halignTB<>}{longtable}{\HCode{\Hnewline
12273 table:style-name="longtable"
12274 }<>\HAlign}
12275 \Configure{longtable}
12276 {\IgnorePar\EndP \HCode{|<show input line no|>}%
12277 \halignTB{longtable}%
12278 |<list the grouping of columns|>}
12279 {|<insert Clr|>\HCode{</table:table>}}
12280 {\HCode{<table:table-row \Hnewline}\halignTR\HCode{
12281 table:style-name="TBL-\TableNo-\HRow-">}}
12282 {\HCode{</table:table-row>}}
12283 {\edef\cell:style:name{}% suppress compilation error
12284 \HCode{<table:table-cell
12285 \ifnum \HMultispan>1 table:number-columns-spanned="\HMultispan"\fi
12286 \space table:style-name="TBL-\TableNo-\HRow-\HCol" ><text:p>}|<td save EndP|>%
12287 |<start array par box|>\PushStack\Table:Stck\TableNo}
12288 {\PopStack\Table:Stck\TableNo
12289 |<end array par box|>\HCode{</text:p></table:table-cell>}}
12290 >>>
12291
12292
12293
12294
12295
12296
12297 \<show input line no\><<<
12298 <!--l. \the\inputlineno-->%
12299 >>>
12300
12301
12302
12303 \<td save EndP\><<<
12304 \SaveEndP
12305 >>>
12306
12307 \<td recall EndP\><<<
12308 \RecallEndP
12309 >>>
12310
12311
12312 %%%%%%%%%%%%%%%%%%
12313 \section{Curve}
12314 %%%%%%%%%%%%%%%%%%
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325 \<configure ooffice curve\><<<
12326 \ConfigureEnv{rubric}
12327 {\bgroup |<rubric table|>} {\egroup} {} {}
12328 >>>
12329
12330
12331 \<rubric table\><<<
12332 \Configure{table-column-style}
12333 {table:style-name="|<rubric col num|>"}
12334 \Configure{longtable}
12335 {\IgnorePar\EndP \HCode{|<show input line no|>}%
12336 \halignTB{longtable}%
12337 |<list the grouping of columns|>}
12338 {|<insert Clr|>\HCode{</table:table>}}
12339 {\HCode{<table:table-row \Hnewline}\halignTR\HCode{
12340 table:style-name="TBL-\TableNo-\HRow-">}}
12341 {\HCode{</table:table-row>}}
12342 {\HCode{<table:table-cell
12343 \ifnum \HMultispan>1 table:number-columns-spanned="\HMultispan"\fi
12344 \space table:style-name="|<rubric cell num|>" ><text:p
12345 text:style-name="|<rubric par num|>" >}|<td save EndP|>%
12346 |<start array par box|>\PushStack\Table:Stck\TableNo}
12347 {\PopStack\Table:Stck\TableNo
12348 |<end array par box|>\HCode{</text:p></table:table-cell>}}
12349 >>>
12350
12351 \<rubric col num\><<<
12352 \ifcase \ar:cnt\relax
12353 \or %1
12354 keyCol%
12355 \or %2
12356 markCol%
12357 \else
12358 bodyCol% TBL-\TableNo -\ar:cnt
12359 \fi
12360 >>>
12361
12362 \<rubric cell num\><<<
12363 \ifcase \HMultispan\relax
12364 \or %1
12365 \ifcase \HCol\relax
12366 \or %1
12367 keyCell%
12368 \or %2
12369 markCell%
12370 \else
12371 TBL-\TableNo-\HRow-\HCol
12372 \fi
12373 \or %2
12374 \ifnum \HCol=2
12375 subrubricCell%
12376 \else
12377 TBL-\TableNo-\HRow-\HCol
12378 \fi
12379 \or %3
12380 \ifnum \HCol=1
12381 rubricheadCell%
12382 \else
12383 TBL-\TableNo-\HRow-\HCol
12384 \fi
12385 \else
12386 TBL-\TableNo-\HRow-\HCol
12387 \fi
12388 >>>
12389
12390
12391 \<rubric par num\><<<
12392 \ifcase \HMultispan\relax
12393 \or %1
12394 \ifcase \HCol\relax
12395 \or %1
12396 keyP%
12397 \or %2
12398 markP%
12399 \else
12400 TBL-\TableNo-\HRow-\HCol
12401 \fi
12402 \or %2
12403 \ifnum \HCol=2
12404 subrubricP%
12405 \else
12406 TBL-\TableNo-\HRow-\HCol
12407 \fi
12408 \or %3
12409 \ifnum \HCol=1
12410 rubricheadP%
12411 \else
12412 TBL-\TableNo-\HRow-\HCol
12413 \fi
12414 \else
12415 TBL-\TableNo-\HRow-\HCol
12416 \fi
12417 >>>
12418
12419
12420
12421 \<configure ooffice curve\><<<
12422 \OOstyles{%
12423 \Hnewline
12424 <style:style
12425 style:name="markCol"
12426 style:family="table-column"
12427 > \Hnewline
12428 <style:table-column-properties
12429 style:rel-column-width="180*"/>
12430 </style:style> \Hnewline
12431 <style:style style:name="keyCol" style:family="table-column">
12432 <style:table-column-properties
12433 style:rel-column-width="1546*"/>
12434 </style:style> \Hnewline
12435 <style:style style:name="bodyCol" style:family="table-column">
12436 <style:table-column-properties
12437 style:rel-column-width="6914*"/>
12438 </style:style> \Hnewline
12439 }
12440 >>>
12441
12442
12443
12444 \<configure ooffice curve\><<<
12445 \Configure{maketitle}
12446 {}{}
12447 {\ifvmode \IgnorePar\fi \EndP
12448 \HCode{<text:h text:style-name="curveTitle" text:outline-level="1"
12449 >}}
12450 {\ifvmode \IgnorePar\fi \EndP \HCode{</text:h>}}
12451 {\ifvmode \IgnorePar\fi \EndP
12452 \HCode{<text:h text:style-name="curveSubTitle" text:outline-level="2"
12453 >}}
12454 {\ifvmode \IgnorePar\fi \EndP \HCode{</text:h>}}
12455 >>>
12456
12457
12458
12459 \<configure ooffice curve\><<<
12460 \OOstyles{%
12461 \Hnewline
12462 <style:style
12463 style:name="curveTitle"
12464 style:family="paragraph"
12465 > \Hnewline
12466 <style:paragraph-properties
12467 fo:text-align="center"
12468 style:justify-single-word="false"
12469 fo:margin-top="0.4cm"
12470 fo:margin-bottom="0.1cm"
12471 /> \Hnewline
12472 <style:text-properties
12473 fo:font-size="145\prcnt:ch"
12474 fo:font-weight="bold"
12475 /> \Hnewline
12476 </style:style> \Hnewline
12477 }
12478 >>>
12479
12480
12481
12482 \<configure ooffice curve\><<<
12483 \OOstyles{%
12484 \Hnewline
12485 <style:style
12486 style:name="curveSubTitle"
12487 style:family="paragraph"
12488 > \Hnewline
12489 <style:paragraph-properties
12490 fo:text-align="center"
12491 style:justify-single-word="false"
12492 fo:margin-top="0.1cm"
12493 fo:margin-bottom="0.2cm"
12494 /> \Hnewline
12495 <style:text-properties
12496 fo:font-size="130\prcnt:ch"
12497 fo:font-weight="normal"
12498 fo:font-style="italic"
12499 /> \Hnewline
12500 </style:style> \Hnewline
12501 }
12502 >>>
12503
12504
12505 \<configure ooffice curve\><<<
12506 \Configure{makeheaders}
12507 {\ifvmode \IgnorePar\fi \EndP
12508 \HCode{%
12509 <table:table table:name="makeheaders" >
12510 <table:table-column table:number-columns-repeated="2"/>
12511 <table:table-row>
12512 <table:table-cell table:style-name="leftheader"
12513 office:value-type="string">
12514 <text:p text:style-name="Pleft" >}}
12515 {\HCode{</text:p>
12516 </table:table-cell>
12517 <table:table-cell table:style-name="rightheader"
12518 office:value-type="string">
12519 <text:p text:style-name="Pright" >}}
12520 {\HCode{</text:p>
12521 </table:table-cell>
12522 </table:table-row>
12523 </table:table>}}
12524 >>>
12525
12526 \<configure ooffice curve\><<<
12527 \OOstyles{%
12528 <style:style
12529 style:name="leftheader"
12530 style:family="table-cell">
12531 <style:table-cell-properties
12532 fo:padding="0.0382in"
12533 fo:border="none"/>
12534 </style:style>
12535 <style:style
12536 style:name="rightheader"
12537 style:family="table-cell">
12538 <style:table-cell-properties
12539 fo:padding="0.0382in"
12540 fo:border="none"/> i
12541 </style:style>
12542 <style:style style:name="Pleft"
12543 style:family="paragraph" >
12544 <style:paragraph-properties
12545 fo:text-align="left"
12546 style:justify-single-word="false"/>
12547 <style:text-properties
12548 fo:font-style="normal" />
12549 </style:style>
12550 <style:style style:name="Pright"
12551 style:family="paragraph" >
12552 <style:paragraph-properties
12553 fo:text-align="end"
12554 style:justify-single-word="false"/>
12555 <style:text-properties
12556 fo:font-style="normal" />
12557 </style:style>
12558 }
12559 >>>
12560
12561
12562
12563 \<configure ooffice curve\><<<
12564 \Configure{rubrichead}
12565 {\ifvmode \IgnorePar\fi \EndP
12566 \HCode{<text:span text:style-name="rubrichead" >}}
12567 {\ifvmode \IgnorePar\fi \EndP \HCode{</text:span>}}
12568 >>>
12569
12570
12571 \<configure ooffice curve\><<<
12572 \OOstyles{%
12573 \Hnewline
12574 <style:style
12575 style:name="rubrichead"
12576 style:family="text"
12577 > \Hnewline
12578 <style:text-properties
12579 fo:font-size="110\prcnt:ch"
12580 fo:font-weight="bold"
12581 /> \Hnewline
12582 </style:style> \Hnewline
12583 }
12584 >>>
12585
12586
12587
12588 \<configure ooffice curve\><<<
12589 \OOstyles{%
12590 \Hnewline
12591 <style:style
12592 style:name="rubricheadP"
12593 style:family="paragraph"
12594 > \Hnewline
12595 <style:paragraph-properties
12596 fo:text-align="center"
12597 style:justify-single-word="false"
12598 fo:margin-top="0.2cm"
12599 fo:margin-bottom="0.2cm"
12600 /> \Hnewline
12601 </style:style> \Hnewline
12602 }
12603 >>>
12604
12605
12606
12607
12608 \<configure ooffice curve\><<<
12609 \Configure{subrubric}
12610 {\ifvmode \IgnorePar\fi \EndP
12611 \HCode{<text:span text:style-name="subrubric" >}}
12612 {\ifvmode \IgnorePar\fi \EndP \HCode{</text:span>}}
12613 >>>
12614
12615
12616 \<configure ooffice curve\><<<
12617 \OOstyles{%
12618 \Hnewline
12619 <style:style
12620 style:name="subrubric"
12621 style:family="text"
12622 > \Hnewline
12623 <style:text-properties
12624 fo:font-weight="normal"
12625 fo:font-style="italic"
12626 fo:font-size="130\prcnt:ch"
12627 /> \Hnewline
12628 </style:style> \Hnewline
12629 }
12630 >>>
12631
12632 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12633 \section{wrapfig}
12634 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12635
12636
12637 \<configure ooffice wrapfig\><<<
12638 \pend:def\WFclear{%
12639 \let\orig:par\par%
12640 \def\par{\let\par\orig:par}%
12641 }%
12642 \append:def\WFclear{\let\par\orig:par}
12643
12644 \Configure{wrapfloat}
12645 {\ifvmode \IgnorePar\fi \EndP%
12646 \HCode{<text:section text:name="wrapfig-\WFplace" ><text:p>}\bgroup\HtmlParOff}
12647 {\ifvmode \IgnorePar\fi\EndP%
12648 \HCode{</text:p></text:section>}%
12649 \HtmlParOn\egroup%
12650 \csname par\endcsname\ShowPar%
12651 }
12652
12653 >>>>
12654
12655 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12656 \section{subscript}
12657 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12658
12659 \<configure ooffice subscript\><<<
12660 \Configure{textsubscript}
12661 {\HCode{<text:span text:style-name="textsubscript">}}
12662 {\HCode{</text:span>}}
12663 \OOstyles{%
12664 <style:style style:name="textsubscript" style:family="text">\Hnewline
12665 <style:text-properties style:text-position="sub"/>\Hnewline
12666 </style:style>\Hnewline
12667 }
12668 >>>
12669
12670 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12671 \section{mhchem}
12672 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12673
12674 \<configure ooffice-mml mhchem\><<<
12675 % redefine this command to add the text: prefix for the text commands
12676 \renewcommand\:mhmathmlorhtml[2]{\ifmathml\a:mathml #1\else text:#2\fi}
12677 >>>
12678
12679
12680 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12681 \chapter{Notes}
12682 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12683
12684
12685
12686
12687 %%%%%%%%%%%%%%%%%%%%%%
12688 \section{References}
12689 %%%%%%%%%%%%%%%%%%%%%%
12690
12691 \begin{itemize}
12692 \item Accessibility
12693
12694 \begin{itemize}
12695
12696 \item Peter Korn's Weblog, Testing ODF document accessibility
12697 \url{http://blogs.sun.com/korn/entry/testing_odf_document_accessibility_and}
12698
12699 \item
12700 eDesigner,
12701 \url{http://www.alphaworks.ibm.com/tech/adesigner}
12702
12703
12704 \item
12705 OASIS OpenDocument - Accessibility
12706 \url{http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office-accessibility}
12707 \end{itemize}
12708
12709
12710 \item \href{http://books.evc-cit.info/odbook/book.html}{OASIS OpenDocument Essentials}
12711
12712 \item OpenDocument:
12713 \href{http://www.oasis-open.org/committees/download.php/12572/OpenDocument-v1.0-os.pdf}{OASIS}
12714
12715 \item OpenDocument:
12716 \href{http://www.oasis-open.org/specs/index.php}{OASIS}
12717
12718
12719
12720 DTD?, relaxng schema provided
12721
12722 \item OpenOffice :
12723 \href{http://xml.openoffice.org/source/browse/xml/xmloff/dtd/}{DTD},
12724 \href{http://books.evc-cit.info/book.php}{book},
12725 \href{http://books.evc-cit.info/odbook/book.html}{OASIS OpenDocument Essentials},
12726 \href{http://books.evc-cit.info/}{OpenOffice.org XML Essentials} book,
12727 \href{http://xml.openoffice.org/xml_specification.pdf}{OpenOffice.org XML
12728 File Format
12729 1.0} Technical Reference Manual Version 2 December 2002,
12730 \href{http://www.xml.com/pub/a/2001/02/07/openoffice.html}{Adventures
12731 with OpenOffice and XML} (Matt Sergeant ),
12732 \href{http://xml.openoffice.org/}{home page},
12733 \href{http://www.ccsd1.k12.wy.us/Training/Help_Desk/StarOffice/816-7367.pdf}{user's
12734 guide},
12735 \href{http://xml.coverpages.org/OpenOfficeXMLSpec200207.pdf}{Technical
12736 reference},
12737 \href{http://ooo.ximian.com/lxr/source/xml/xmloff/dtd/}{some online
12738 dtds}
12739
12740 \item
12741 Publication:
12742 Maarten Wisse, "Hacking TEX4ht for XML Output: The Road towards a TEX
12743 to Word Convertor", MAPS 28 (2002), pp. 28-35.
12744 (\url{http://home.wanadoo.nl/pmwisse/hpmwissese3.html}.)
12745
12746 \item Samples:
12747 \url{http://www.xml.com/2001/02/07/adventure.sxw},
12748 \url{http://cvs.berlios.de/cgi-bin/viewcvs.cgi/od2f/study/content.xml?annotate=1.2}
12749
12750 \item
12751 \url{http://www.oasis-open.org/committees/download.php/10765/office-spec-1.0-cd-2.pdf}
12752 \url{http://xml.coverpages.org/ni2005-01-04-a.htm}
12753
12754 \item
12755 \url{http://docs.oasis-open.org/office/v1.1/OS/}
12756
12757 \item See NeoOffice/J for Macs
12758
12759 \item
12760 Sun ODF Plugin 1.1 for Microsoft Office:
12761 \url{http://www.sun.com/software/star/odf_plugin/}
12762 \end{itemize}
12763
12764 %%%%%%%%%%%%%%%%%%%
12765 \section{To Do}
12766 %%%%%%%%%%%%%%%%%%%
12767
12768 \begin{itemize}
12769 \item Activate groups of columns?
12770 \item Vertical Borders
12771
12772 Why the following doesn't work?
12773
12774 \begin{verbatim}
12775 \OOstyles{%
12776 <style:style style:name="hline-cell" style:family="table-cell">
12777 <style:text-properties fo:padding="0.097cm"
12778 fo:border-left="none"
12779 fo:border-right="none"
12780 fo:border-top="none"
12781 fo:border-bottom="0.002cm solid \#000000"/>
12782 </style:style>
12783 }
12784 \end{verbatim}
12785
12786 \item Margins on sides of tables
12787 \end{itemize}
12788
12789
12790 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12791 \section{Writer2LaTeX}
12792 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12793
12794 \begin{verbatim}
12795 Another thing with built-in styles in OOo: You use the style "Quotations",
12796 but the definition is not included in styles.xml. This is not a problem
12797 for OOo, but it will be a problem for other applications reading the file
12798 (Writer2LaTeX, KWord,...). To fix that you should always include the
12799 definition of a style.
12800
12801
12802 w2l in-file
12803 \end{verbatim}
12804
12805
12806 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12807 \section{Supporting Files}
12808 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
12809
12810 \begin{verbatim}
12811 The .sxw file is a .JAR file (which is basically the same as a .ZIP file).
12812
12813 The manifest.xml file is the difference between .ZIP and .JAR,
12814 apparently. It makes searching the files easier, and the documentation
12815 claims that this file is uncompressed, so that it can be easily
12816 read. I have not tested this, but it seems like a good idea.
12817
12818 content.xml - the text of the document
12819 styles.xml - the styles used by the document
12820 meta.xml - various meta-information (author, etc)
12821 settings.xml - the Word Processor settings used.
12822 META-INF/manifest.xml - a list of all these files, plus any others used in the document
12823
12824 \end{verbatim}
12825
12826 %%%%%%%%%%%%%%%%%%
12827 \section{How-To Examples}
12828 %%%%%%%%%%%%%%%%%%
12829
12830
12831 %%%%%%%%%%%%%
12832 \subsection{New Pages}
12833 %%%%%%%%%%%%%
12834
12835
12836
12837 \<configure ooffice latex\><<<
12838 \Configure{newpage}{\par \EndP \IgnorePar
12839 \HCode{<text:p text:style-name="newpage"></text:p>}%
12840 \par\ShowPar}
12841 \OOstyles{%
12842 <style:style style:name="newpage" style:family="paragraph" >
12843 <style:paragraph-properties fo:break-after="page"/>
12844 </style:style>
12845 }
12846 >>>
12847
12848
12849
12850
12851
12852
12853
12854 \endinput