Debian Codegraph @

texmf-dist/tex/generic/tex4ht/ooimpress.4ht

raw
1 % ooimpress.4ht (2020-10-16-13:48), generated from tex4ht-ooimpress.tex
2 % Copyright (C) 2009-2010 TeX Users Group
3 % Copyright (C) 2001-2009 Eitan M. Gurari
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either
7 % version 1.3c of this license or (at your option) any
8 % later version. The latest version of this license is in
9 % http://www.latex-project.org/lppl.txt
10 % and version 1.3c or later is part of all distributions
11 % of LaTeX version 2005/12/01 or later.
12 %
13 % This work has the LPPL maintenance status "maintained".
14 %
15 % The Current Maintainer of this work
16 % is the TeX4ht Project <http://tug.org/tex4ht>.
17 %
18 % If you modify this program, changing the
19 % version identification would be appreciated.
20 \immediate\write-1{version 2020-10-16-13:48}
21
22 \exit:ifnot{foils,%
23 g-brief,%
24 latex,%
25 plain,%
26 tex4ht}
27
28
29 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
30 \ConfigureHinput{tex4ht}
31 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
32 \if:latex \Hinclude{\input #1.4ht}{latex}
33
34 \else \ifx \contextversion\Un:def
35 \Hinclude{\input #1.4ht}{plain}
36 \def\:temp{t}%
37 \ifx \eplain\:temp
38 \Hinclude{\input #1.4ht}{eplain}
39 \fi
40 \def\:temp{M\kern-.111em\lower.6ex\hbox{E}\kern-.075emX}
41 \ifx \nM@X\:temp
42 \expandafter\ifx\csname emulateplain\endcsname\relax \else
43 \Hinclude{\input #1.4ht}{mex}
44 \fi\fi
45
46 \ifx \d@nger\:UnDef \else
47 \let\leftheadline\empty
48 \let\rightheadline\empty
49 \Hinclude{\input #1.4ht}{manmac}
50 \fi
51 \else
52 \Hinclude{\input #1.4ht}{context}
53 \fi
54 \fi
55 \newif\ifHCond
56 \def\:gobbleM#1->{}
57
58 \def\media:type{application/vnd.oasis.opendocument.presentation}
59 \Configure{figure-style}{%
60 <style:style style:name="Figure" style:family="section">\Hnewline
61 <style:section-properties
62 fo:margin-left="0.25in"
63 fo:margin-right="0.25in"
64 style:editable="true">\Hnewline
65 <!--style:columns fo:column-count="0"
66 fo:column-gap="0in"/-->
67 </style:section-properties>
68 </style:style>\Hnewline
69 }
70
71 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
72
73 \endinput\empty\empty\empty\empty\empty\empty
74 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
75
76
77
78
79
80 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
81 \ConfigureHinput{latex}
82 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
83 \expandafter\let\csname tex4ht:4ht\endcsname\empty
84 \def\no:dupl#1#2{%
85 \expandafter\ifx \csname #1:4ht\endcsname\relax
86 \expandafter\let \csname #1:4ht\endcsname\empty
87 \expand:after{#2}%
88 \fi
89 }
90
91 \ifx\InputIfFileExists\UnDef%
92 \def\input:if:fileexists#1#2#3{%
93 \openin15 #1.4ht%
94 \ifeof15%
95 #3%
96 \else%
97 \input #1%
98 \fi\closein15%
99 }%
100 \else
101 \let\input:if:fileexists\InputIfFileExists%
102 \fi%
103 \Hinclude{\input #1.4ht}{fontmath}
104 \Hinclude{\@ifpackageloaded{colortbl}{%
105 \no:dupl{array}{\input array.4ht}%
106 \no:dupl{color}{\input color.4ht}%
107 \no:dupl{colortbl}{\input colortbl.4ht}%
108 }{}}{colortbl}
109
110 \def\:strip:quotes"#1"#2"#3\relax{\if .#1.#2\else #1\fi}
111 \def\h:input#1.#2.#3!*?: {%
112 \edef\:current:package{\:strip:quotes"#1""\relax}
113 \:CheckOption{no_\:current:package}\if:Option
114 \let\:temp\empty
115 \else
116 \let\:temp\empty
117 \no:dupl{\:current:package}{%
118 \def\:warn:msg{}
119 \:CheckOption{debug}\if:Option
120 \def\:warn:msg{%
121 \:warning{No configuration file for \:current:package.\if .#2.tex\else #2\fi}%
122 }
123 \fi%
124 \def\:temp{\input:if:fileexists{\:current:package.4ht}{}{\:warn:msg}}%
125 }%
126 \fi \:temp}
127 \edef\:temp{\noexpand\Hinclude
128 {\noexpand\h:input ##1..!*?: }{\@filelist}}
129 \:temp
130
131 \expandafter\let\csname tex4ht:4ht\endcsname\empty
132 \def\no:dupl#1#2{%
133 \expandafter\ifx \csname #1:4ht\endcsname\relax
134 \expandafter\let \csname #1:4ht\endcsname\empty
135 \expand:after{#2}%
136 \fi
137 }
138
139 \Hinclude{\ifx \PsfigVersion\:UnDef \else
140 \no:dupl{#1}{\expand:after{\input psfig.4ht}}\fi}
141 {psfig}
142 \Hinclude{\:CheckOption{#1}
143 \if:Option \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
144 {pictex}
145 \Hinclude{%
146 \expandafter\ifx \csname PSTricksLoaded\endcsname\relax\else
147 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
148 {pstricks}
149 \Hinclude{%
150 \ifx \:DraCatCodes\:UnDef \else
151 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
152 {dratex}
153 \Hinclude{%
154 \ifx \xyloaded\:UnDef \else
155 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
156 {xy}
157
158 \Hinclude{%
159 \ifx \epsfsetgraph\:UnDef \else
160 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
161 {epsf}
162
163 \Hinclude{%
164 \ifx \diagram@help@messages\:UnDef \else
165 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
166 {diagrams}
167
168 \Hinclude{%
169 \ifx \figvisu\:UnDef \else
170 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
171 {fig4tex}
172
173 \Hinclude{}
174 {pctable}
175 \Hinclude{%
176 \:CheckOption{xhtml}\if:Option \fi}
177 {xhtml}
178 \Hinclude{\:CheckOption{#1}
179 \if:Option\else \:CheckOption{ShowFont}\fi
180 \if:Option\else \:CheckOption{frames-}\fi
181 \if:Option\else \:CheckOption{frames}\fi
182 \if:Option\else \:CheckOption{image-maps}\fi
183 \if:Option\else \:CheckOption{java}\fi
184 \if:Option\else \:CheckOption{javascript}\fi
185 \if:Option \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
186 {th4}
187 \Hinclude{\ifx \sethebrew\:UnDef\else \ifx \ArabTeX\:UnDef\else
188 \no:dupl{#1}{\expand:after{\input hebtex.4ht}}\fi \fi}
189 {hebtex}
190
191 \Odef\Link[#1]#2#3{}
192 \let\EndLink\empty
193 \ConfigureOO{Sect1}{\Hnewline
194 <style:style style:name="Sect1"
195 style:family="section">
196 <\style:sectionproperties>
197 <!--style:columns fo:column-count="1"
198 fo:column-gap="0cm">
199 <style:column fo:margin-top="0.5cm"
200 fo:margin-left="0cm"
201 fo:margin-right="0cm"
202 />
203 </style:columns-->
204 </\style:sectionproperties>
205 </style:style>
206 \Hnewline }
207 \ConfigureOO{Sect2}{\Hnewline
208 <style:style style:name="Sect2"
209 style:family="section">
210 <\style:sectionproperties>
211 <!--style:columns fo:column-count="0" fo:column-gap="0cm"/-->
212 </\style:sectionproperties>
213 </style:style>
214 \Hnewline }
215
216 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
217
218 \endinput\empty\empty\empty\empty\empty\empty
219 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
261 \ConfigureHinput{plain}
262 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
263 \expandafter\let\csname tex4ht:4ht\endcsname\empty
264 \def\no:dupl#1#2{%
265 \expandafter\ifx \csname #1:4ht\endcsname\relax
266 \expandafter\let \csname #1:4ht\endcsname\empty
267 \expand:after{#2}%
268 \fi
269 }
270
271 \Hinclude{\def\:temp{\ht:everypar={\setbox0=\lastbox\ht:everypar={}}}%
272 \ifx \NoindentAfter\:temp
273 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
274 {osudeG}
275 \Hinclude{\ifx\amstexloaded@\relax
276 \no:dupl{#1}{
277 \ifx \Space@\:UnDef \expand:after{\input #1.4ht} %
278 \else \input vanilla.4ht \fi}%
279 \fi}
280 {amstex}
281 \Hinclude{\expandafter\ifx \csname amsppt.sty\endcsname\relax \else
282 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
283 {amsppt}
284 \Hinclude{\ifx \texinfoversion\:UnDef\else
285 \no:dupl{#1}{\expand:after{\input texinfo.4ht}}\fi}
286 {texinfo}
287 \Hinclude{\ifx \thistubstyle\:UnDef\else
288 \no:dupl{#1}{\expand:after{\input tugboat.4ht}}\fi}
289 {tugboat}
290
291 \expandafter\let\csname tex4ht:4ht\endcsname\empty
292 \def\no:dupl#1#2{%
293 \expandafter\ifx \csname #1:4ht\endcsname\relax
294 \expandafter\let \csname #1:4ht\endcsname\empty
295 \expand:after{#2}%
296 \fi
297 }
298
299 \Hinclude{\ifx \PsfigVersion\:UnDef \else
300 \no:dupl{#1}{\expand:after{\input psfig.4ht}}\fi}
301 {psfig}
302 \Hinclude{\:CheckOption{#1}
303 \if:Option \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
304 {pictex}
305 \Hinclude{%
306 \expandafter\ifx \csname PSTricksLoaded\endcsname\relax\else
307 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
308 {pstricks}
309 \Hinclude{%
310 \ifx \:DraCatCodes\:UnDef \else
311 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
312 {dratex}
313 \Hinclude{%
314 \ifx \xyloaded\:UnDef \else
315 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
316 {xy}
317
318 \Hinclude{%
319 \ifx \epsfsetgraph\:UnDef \else
320 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
321 {epsf}
322
323 \Hinclude{%
324 \ifx \diagram@help@messages\:UnDef \else
325 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
326 {diagrams}
327
328 \Hinclude{%
329 \ifx \figvisu\:UnDef \else
330 \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
331 {fig4tex}
332
333 \Hinclude{}
334 {pctable}
335 \Hinclude{%
336 \:CheckOption{xhtml}\if:Option \fi}
337 {xhtml}
338 \Hinclude{\:CheckOption{#1}
339 \if:Option\else \:CheckOption{ShowFont}\fi
340 \if:Option\else \:CheckOption{frames-}\fi
341 \if:Option\else \:CheckOption{frames}\fi
342 \if:Option\else \:CheckOption{image-maps}\fi
343 \if:Option\else \:CheckOption{java}\fi
344 \if:Option\else \:CheckOption{javascript}\fi
345 \if:Option \no:dupl{#1}{\expand:after{\input #1.4ht}}\fi}
346 {th4}
347 \Hinclude{\ifx \sethebrew\:UnDef\else \ifx \ArabTeX\:UnDef\else
348 \no:dupl{#1}{\expand:after{\input hebtex.4ht}}\fi \fi}
349 {hebtex}
350
351
352 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
353
354 \endinput\empty\empty\empty\empty\empty\empty
355 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
522 \ConfigureHinput{g-brief}
523 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
524 \ConfigureOO{g-brief-header}{\Hnewline
525 <style:style style:name="header-style" style:family="section">\Hnewline
526 <\style:properties text:dont-balance-text-columns="false"
527 fo:margin-bottom="2cm">\Hnewline
528 <!--style:columns fo:column-count="2"
529 fo:column-gap="1in">\Hnewline
530 <style:column fo:margin-left="0in"
531 fo:margin-right="0in"/>\Hnewline
532 <style:column fo:margin-left="0in"
533 fo:margin-right="0in"/>\Hnewline
534 </style:columns-->\Hnewline
535 </\style:properties>\Hnewline
536 </style:style>\Hnewline
537 }
538
539 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
540
541 \endinput\empty\empty\empty\empty\empty\empty
542 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
588 \ConfigureHinput{foils}
589 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
590 \Configure{BODY}
591 {\HCode{<office:body><office:presentation>}%
592 \let\end:rootslide\empty
593 \start:slide
594 \gdef\end:rootslide{\end:slide \global\let\end:rootslide=\empty}%
595 \par\ShowPar}
596 {\IgnorePar\EndP
597 \end:rootslide
598 \HCode{</office:presentation></office:body>\Hnewline}}
599 \Configure{maketitle}
600 {\bgroup
601 \Configure{newpage}{}%
602 \IgnorePar\EndP\HCode{<!--begin maketitle-->}
603 \Configure{tabular}{}{}{}{}{\ifnum \HRow>1
604 \HCode{<text:line-break\Hnewline/>}\fi}{}%
605 \ConfigureEnv{tabular}{}{}{}{}%
606 }
607 {\ifvmode \IgnorePar\fi \EndP
608 \HCode{ </draw:text-box>
609 </draw:frame>\Hnewline
610 <!--end maketitle-->}\egroup \par}
611 {\ifvmode \IgnorePar\fi \EndP
612 \HCode{<draw:frame presentation:style-name="pr1"
613 draw:layer="layout"
614 svg:width="25.199cm"
615 % svg:height="3.256cm"
616 svg:x="1.4cm"
617 svg:y="3.0cm"
618 presentation:class="title">
619 <draw:text-box>\Hnewline
620 %
621 <text:p text:style-name="Title\if@rl-rtl\fi
622 " >}}
623 {\HCode{</text:p> </draw:text-box>
624 </draw:frame>\Hnewline
625 <draw:frame presentation:style-name="pr1"
626 draw:layer="layout"
627 svg:width="25.199cm"
628 % svg:height="3.256cm"
629 svg:x="1.4cm"
630 svg:y="6.0cm"
631 presentation:class="notes">
632 <draw:text-box>\Hnewline
633 }}
634 \HAssign\PageN=0
635 \Configure{foilhead}
636 {\IgnorePar\EndP \start:slide }
637 {\IgnorePar\EndP
638 \HCode{ </draw:text-box>
639 </draw:frame>\Hnewline
640 }\end:slide }
641 {\HCode{<draw:frame presentation:style-name="pr1"
642 draw:layer="layout"
643 svg:width="25.199cm"
644 % svg:height="3.256cm"
645 svg:x="1.4cm"
646 svg:y="0.962cm"
647 presentation:class="subtitle">
648 <draw:text-box>\Hnewline
649 %
650 <text:p text:style-name="\if@rl-rtl\fi
651 " >}%
652 \IgnoreIndent}
653 {\HCode{</text:p>\Hnewline
654 </draw:text-box>
655 </draw:frame>\Hnewline
656 <draw:frame presentation:style-name="pr1"
657 draw:layer="layout"
658 svg:width="25.199cm"
659 % svg:height="3.256cm"
660 svg:x="1.4cm"
661 svg:y="2.0cm"
662 presentation:class="notes">
663 <draw:text-box>\Hnewline
664 }\par\ShowPar}
665
666 \def\start:slide{\end:rootslide
667 \HAdvance\PageN by 1
668 \HCode{<!--start of foilhead-->
669 <draw:page draw:name="page\PageN"
670 draw:style-name="dp1"
671 draw:master-page-name="Default"> \Hnewline}}
672 \def\end:slide{\HCode{
673 </draw:page>
674 <!--end of foilhead-->}}
675 \ConfigureOO{foilhead}{\Hnewline
676 <style:style style:name="foilhead"
677 style:family="paragraph"
678 >\Hnewline
679 <\style:par:properties fo:font-size="12pt"
680 fo:font-weight="bold"
681 style:font-size-asian="14pt"
682 style:font-weight-asian="bold"
683 style:font-size-complex="14pt"
684 style:font-weight-complex="bold"
685 fo:margin-top="0.42cm"
686 fo:margin-bottom="0.51cm"
687 fo:text-align="center"
688 style:justify-single-word="false"
689 />
690 </style:style>
691 }
692 \ConfigureOO{title}{%
693 <style:style style:name="Title"
694 style:family="paragraph"
695 >\Hnewline
696 <\style:par:properties fo:margin-top="0.42cm"
697 fo:margin-bottom="0.51cm"
698 fo:font-size="20pt"
699 fo:font-weight="normal"
700 style:font-size-asian="18pt"
701 style:font-weight-asian="bold"
702 style:font-size-complex="18pt"
703 style:font-weight-complex="bold"
704 fo:text-align="center"
705 style:justify-single-word="false"/>
706 </style:style> \Hnewline
707 }
708 \Configure{thank}
709 {\setbox\tmp:bx=\hbox\bgroup}
710 {\egroup}
711 {\NoFonts \leavevmode \bgroup \protect\Configure{$}{}{}{}%
712 \hbox{\HCode{<!--text:note\Hnewline text:note-class="footnote"
713 text:id="}%
714 \HCode{"><text:note-citation>}}%
715 }
716 {\egroup \EndNoFonts
717 \HCode{</text:note-citation><text:note-body>
718 <text:p\Hnewline text:style-name="Footnote" ><text:s/>}}
719 {\HCode{</text:p></text:note-body></text:note-->}}
720
721 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
722
723 \endinput\empty\empty\empty\empty\empty\empty
724 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912 \endinput
913