diff options
author | Karl Berry <karl@freefriends.org> | 2022-04-27 21:03:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-04-27 21:03:34 +0000 |
commit | 6b2fce697356e48c8e620b647d75533c94b6497b (patch) | |
tree | c3836be65e101a90b46af20a2b42a6a7f56f5375 /Master/texmf-dist/source | |
parent | 877e63ddb4cdf5a51db6df9aed8b47f27ebd6971 (diff) |
uelem math rendering, tex4ht r1120
git-svn-id: svn://tug.org/texlive/trunk@63162 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/ChangeLog | 7 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex | 18 | ||||
-rw-r--r-- | Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex | 35 |
3 files changed, 33 insertions, 27 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index 27cce11cff6..58146aa1e3f 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,10 @@ +2022-04-27 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-html4.tex (html4.4ht): corrected class names for Ulem + commands in the math mode. + * tex4ht-mathml.tex (mathml.4ht): work arounds for displaying + lines for Ulem commands. + 2022-04-26 Michal Hoftich <michal.h21@gmail.com> * tex4ht-4ht.tex (ulem.4ht), diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex index d9d3ae88ada..cd6cf2992e4 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 1119 2022-04-26 15:53:45Z michal_h21 $ +% $Id: tex4ht-html4.tex 1120 2022-04-27 10:47:56Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -22056,44 +22056,44 @@ gets something wrong there. \Configure{uline} {\HCode{<span class="uline">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Configure{uline-math} - {\HCode{<span class="uline">}\NoFonts} {\EndNoFonts\HCode{</span>}} + {\HCode{<span class="uline-math">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Css{.uline,.uline-math{ text-decoration:underline; }} \Configure{uuline} {\HCode{<span class="uuline">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Configure{uuline-math} - {\HCode{<span class="uuline">}\NoFonts} {\EndNoFonts\HCode{</span>}} + {\HCode{<span class="uuline-math">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Css{.uuline,.uuline-math{ text-decoration:underline double; }} \Configure{sout} {\HCode{<span class="sout">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Configure{sout-math} - {\HCode{<span class="sout">}\NoFonts} {\EndNoFonts\HCode{</span>}} + {\HCode{<span class="sout-math">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Css{span.sout, .sout-math {text-decoration: line-through }} \Configure{xout} {\HCode{<span class="xout">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Configure{xout-math} - {\HCode{<span class="xout">}\NoFonts} + {\HCode{<span class="xout-math">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Css{span.xout, .xout-math {text-decoration: line-through underline }} \Configure{uwave} {\HCode{<span class="uwave">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Configure{uwave-math} - {\HCode{<span class="uwave">}\NoFonts} + {\HCode{<span class="uwave-math">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Css{span.uwave, .uwave-math {text-decoration:underline wavy; }} \Configure{dashuline} {\HCode{<span class="dashuline">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Configure{dashuline-math} - {\HCode{<span class="dashuline">}\NoFonts} + {\HCode{<span class="dashuline-math">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Css{span.dashuline, .dashuline-math {text-decoration:underline dashed;}} \Configure{dotuline} - {\HCode{<span class="dotuline">}\NoFonts} + {\HCode{<span class="dotuline-math">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Configure{dotuline-math} - {\HCode{<span class="dotuline">}\NoFonts} + {\HCode{<span class="dotuline-math">}\NoFonts} {\EndNoFonts\HCode{</span>}} \Css{span.dotuline, .dotuline-math {text-decoration:underline dotted;}} >>> diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex index 5f5da30c082..5c277625e5e 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-mathml.tex 1119 2022-04-26 15:53:45Z michal_h21 $$ +% $Id: tex4ht-mathml.tex 1120 2022-04-27 10:47:56Z michal_h21 $$ % compile 3 times: latex tex4ht-mathltx % or xhlatex tex4ht-mathltx "html,3,sections+" % @@ -3828,33 +3828,32 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}% {\HCode{</mrow></munder>}} >>> -Support for the Ulem package in MathML +Support for the Ulem package in MathML. It seems that text-decoration CSS +property doesn't work in browsers for Mathml, so we need to use various tricks +to emulate effects, especially double, dotted and dashed lines. + \<configure mathml ulem\><<< \Configure{uline-math} - {\HCode{<mstyle class="uline-math">}\NoFonts} {\EndNoFonts\HCode{</mstyle>}} -\Css{.uline-math{ text-decoration:underline; }} + {\HCode{<menclose class="uline-math" notation="bottom">}\NoFonts} {\EndNoFonts\HCode{</menclose>}} \Configure{uuline-math} - {\HCode{<mstyle class="uuline-math">}\NoFonts} {\EndNoFonts\HCode{</mstyle>}} -\Css{.uuline-math{ text-decoration:underline double; }} + {\HCode{<menclose class="uuline-math" notation="bottom">}\NoFonts} {\EndNoFonts\HCode{</menclose>}} +\Css{.uuline-math{ border-bottom:3px double black; }} \Configure{sout-math} - {\HCode{<mstyle class="sout-math">}\NoFonts} {\EndNoFonts\HCode{</mstyle>}} -\Css{.sout-math {text-decoration: line-through }} + {\HCode{<menclose class="sout-math" notation="horizontalstrike">}\NoFonts} {\EndNoFonts\HCode{</menclose>}} \Configure{xout-math} - {\HCode{<mstyle class="xout-math">}\NoFonts} - {\EndNoFonts\HCode{</mstyle>}} -\Css{.xout-math {text-decoration: line-through underline }} + {\HCode{<menclose class="xout-math" notation="horizontalstrike bottom">}\NoFonts} + {\EndNoFonts\HCode{</menclose>}} \Configure{uwave-math} - {\HCode{<mstyle class="uwave-math">}\NoFonts} - {\EndNoFonts\HCode{</mstyle>}} -\Css{.uwave-math {text-decoration:underline wavy; }} + {\HCode{<menclose class="uwave-math" notation="bottom">}\NoFonts} + {\EndNoFonts\HCode{</menclose>}} \Configure{dashuline-math} - {\HCode{<mstyle class="dashuline-math">}\NoFonts} + {\HCode{<mstyle class="dashuline-math" notation="bottom">}\NoFonts} {\EndNoFonts\HCode{</mstyle>}} -\Css{.dashuline-math {text-decoration:underline dashed;}} +\Css{.dashuline-math {border-bottom: 1px dashed black;}} \Configure{dotuline-math} - {\HCode{<mstyle class="dotuline-math">}\NoFonts} + {\HCode{<mstyle class="dotuline-math" notation="bottom">}\NoFonts} {\EndNoFonts\HCode{</mstyle>}} -\Css{.dotuline-math {text-decoration:underline dotted;}} +\Css{.dotuline-math {border-bottom: 1px dotted black;}} >>> |