1
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
% ebook-mml.4ht 2001-09-05-00:34 %
4
% This program can redistributed and/or modified under %
5
% the terms of the LaTeX Project Public License %
6
% Distributed from CTAN archives in directory %
7
% macros/latex/base/lppl.txt; either version 1 of the %
8
% License, or (at your option) any later version. %
10
% However, you are allowed to modify this program %
11
% without changing its name, if you modify its %
12
% signature. Changes to the signature can be introduced %
13
% with a directive of the form %
14
% \message{signature} %
16
% gurari@cis.ohio-state.edu %
17
% http://www.cis.ohio-state.edu/~gurari %
18
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
19
\immediate\write-1{version 2001-09-05-00:34}
25
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
26
\ConfigureHinput{tex4ht}
27
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
29
{\HCode{<?xml version="1.0"?>\Hnewline
30
<!DOCTYPE html [\Hnewline<!ENTITY \% BlockOrInlineElements "script | math">\Hnewline
31
<!ENTITY \% ebook.dtd PUBLIC
32
"+//ISBN 0-9673008-1-9//DTD OEB 1.0 Document//EN"
33
"oebdoc1.dtd">\Hnewline
36
<!ENTITY \% mathml.dtd PUBLIC
37
"-//W3C//DTD MathML 2.0//EN"\Hnewline\space\space
39
\Hnewline \%mathml.dtd;\Hnewline
42
{\:xhtml{\IgnorePar\EndP}%
43
\HCode{<div class="displaymath">}\DviMath}
44
{\EndDviMath\HCode{</div>}\ShowPar\par{\HCondtrue\noindent}%
46
\Configure{PicMath}{}{}{}{ class="math" }
47
\Css{div.displaymath{text-align:center;}}
49
{\mathmltrue \NoFonts\IgnoreRule\HCode{<!--l.
50
\the\inputlineno--><math class="mathml"\Hnewline
51
\expandafter\:rend \a:@math==//>}\a:math
53
{\HCode{</math>}\EndIgnoreRule\EndNoFonts
55
\def\:rend#1=#2=#3//{\if !#1!\else mode=#2\fi}
57
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
59
\endinput\empty\empty\empty\empty\empty\empty
60
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
63
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
64
\ConfigureHinput{latex}
65
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
66
\def\:MM{\ifmathml \let \prOteCt \relax \Protect \csname acp:c\endcsname {9}m\fi}
68
{<\:MM tr\Hnewline class="hline">}
69
{\ifmathml<\let \prOteCt \relax \Protect \csname acp:c\endcsname {9}mtd><!--hr\xml:empty--></\let \prOteCt \relax \Protect \csname acp:c\endcsname {9}mtd>\else
70
<td><hr\xml:empty></td>\fi}
72
{<\:MM tr\Hnewline class="cline">}
74
{\ifmathml<\let \prOteCt \relax \Protect \csname acp:c\endcsname {9}mtd><!--hr\xml:empty--></\let \prOteCt \relax \Protect \csname acp:c\endcsname {9}mtd>\else
75
<td><hr\xml:empty></td>\fi}
77
{<\:MM tr\Hnewline class="vspace"
78
style="font-size:\HBorderspace">}
79
{<\:MM td\Hnewline>\ifmathml\else\string&\#x00A0;\fi
83
{\ifmtext \HCode{</mtext><mtext class="newline">}%
84
\else \Tg<br class="newline" />\fi}
86
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
88
\endinput\empty\empty\empty\empty\empty\empty
89
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%