From 3ea86bef2e63ca77c8fbfe4e3b4617804de11855 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 20 Apr 2009 23:02:43 +0000 Subject: tex4ht-1.0.2009_04_18_1145 git-svn-id: svn://tug.org/texlive/trunk@12767 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht | 117 ++++++++++++++++++++-- 1 file changed, 110 insertions(+), 7 deletions(-) (limited to 'Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht') diff --git a/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht b/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht index a755bac3839..952c60160cd 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/html-mml.4ht @@ -1,6 +1,6 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -% html-mml.4ht 2008-09-10-15:23 % -% Copyright (C) 1999--2008 Eitan M. Gurari % +% html-mml.4ht 2009-04-18-11:08 % +% Copyright (C) 1999--2009 Eitan M. Gurari % % % % This work may be distributed and/or modified under the % % conditions of the LaTeX Project Public License, either % @@ -24,7 +24,7 @@ % gurari@cse.ohio-state.edu % % http://www.cse.ohio-state.edu/~gurari % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\immediate\write-1{version 2008-09-10-15:23} +\immediate\write-1{version 2009-04-18-11:08} \exit:ifnot{amsmath,% array,% @@ -87,6 +87,15 @@ tex4ht} }{\EndNoFonts}% \mathmlfalse \b:DviMathML \sv:ignore } +\Css{\a:mathml math { text-indent: 0em; }} +\Configure{halignTBL} + {t}{\ifmathml \HCode{ style="text-align:top;\border:lines +" }\fi} + {b}{\ifmathml \HCode{ style="text-align:baseline;\border:lines +" }\fi} + {c}{\ifmathml \HCode{ style="text-align:axis;\border:lines +" }\fi} + {} \Configure{halignTD} {}{} {<}{\ifmathml \HCode{ \a:mathml columnalign="left"}\else \HCode{ style="text-align:left; white-space:nowrap;"}\fi} @@ -223,6 +232,14 @@ tex4ht} {\ifvmode \IgnorePar \fi \EndP \HCode{}\RecallEndP } +\Css{mtr.hline mtd{ + border-bottom:black solid 1px; + padding-top:2px; + padding-bottom:0em; +}} +\Css{mtr.hline mtd mo{ + display:none +}} \:CheckOption{fonts} \if:Option \Configure{texttt} {\ifmathml \Configure{@mtext}{\mml:class="texttt" @@ -395,6 +412,45 @@ accent="true">&\#x0332;}% \append:def\js:on{\ifmathml \ifmtext \ht:special{t4ht@,&\#x00A0;}% \fi\fi} \fi +\def\border:lines{% + \ifnum \borderlines>0 + \ifnum \borderlines>1 border-right:solid 1px black;\fi + \ifodd \borderlines border-left:solid 1px black;\fi + \fi +} +\Configure{VBorder} + {\let\VBorder=\empty \let\AllColMargins=\empty + \global\let\GROUPS=\empty \HAssign\NewGroup = 0 + \gHAdvance\Next:TableNo by 1 \global\let\TableNo=\Next:TableNo + \HAssign\borderlines = 0 +\global\let\columnlines=\relax +% + } + {\ifx \columnlines\relax \gHAssign\borderlines = 1 + \else \gHAdvance\borderlines by 2 \fi +% + \xdef\VBorder{\VBorder\ifnum \NewGroup> 0 \fi} + \HAssign\NewGroup = 0 \gdef\GROUPS{rules="groups"}} + {\Advance:\NewGroup by 1 + \ifnum \borderlines>1 \gHAdvance\borderlines by -2 \fi +\ifx \columnlines\relax + \global\let\columnlines\empty +\else + \ifnum \NewGroup=1 + \xdef\columnlines{\columnlines\ifx\columnlines\empty + \else \space\fi solid}% + \else + \xdef\columnlines{\columnlines\ifx\columnlines\empty + \else \space\fi none}% + \fi +\fi +% + \ifnum \NewGroup=1 \xdef\VBorder{\VBorder}\fi + \xdef\VBorder{\VBorder}\xdef\AllColMargins{\AllColMargins1}} + {\xdef\AllColMargins{\AllColMargins 0}} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -420,6 +476,9 @@ accent="true">&\#x0332;}% + + + @@ -620,7 +679,6 @@ accent="true">&\#x0332;}% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{plain} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -668,6 +726,9 @@ accent="true">&\#x0332;}% + + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -698,6 +759,39 @@ accent="true">&\#x0332;}% \ifvmode\IgnorePar\fi \EndP\HCode{}\fi } \def\gob:sp#1{#1} +\Configure{VBorder} + {\let\VBorder=\empty \let\AllColMargins=\empty + \global\let\GROUPS=\empty \HAssign\NewGroup = 0 + \gHAdvance\Next:TableNo by 1 \global\let\TableNo=\Next:TableNo + \HAssign\borderlines = 0 +\global\let\columnlines=\relax +% + } + {\ifx \columnlines\relax \gHAssign\borderlines = 1 + \else \gHAdvance\borderlines by 2 \fi +% + \xdef\VBorder{\VBorder\ifnum \NewGroup> 0 \fi} + \HAssign\NewGroup = 0 \gdef\GROUPS{rules="groups"}} + {\Advance:\NewGroup by 1 + \ifnum \borderlines>1 \gHAdvance\borderlines by -2 \fi +\ifx \columnlines\relax + \global\let\columnlines\empty +\else + \ifnum \NewGroup=1 + \xdef\columnlines{\columnlines\ifx\columnlines\empty + \else \space\fi solid}% + \else + \xdef\columnlines{\columnlines\ifx\columnlines\empty + \else \space\fi none}% + \fi +\fi +% + \ifnum \NewGroup=1 \xdef\VBorder{\VBorder}\fi + \xdef\VBorder{\VBorder}\xdef\AllColMargins{\AllColMargins1}} + {\xdef\AllColMargins{\AllColMargins 0}} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -722,9 +816,6 @@ accent="true">&\#x0332;}% - - - @@ -794,6 +885,9 @@ accent="true">&\#x0332;}% + + + @@ -1104,6 +1198,15 @@ accent="true">&\#x0332;}% + + + + + + + + + -- cgit v1.2.3