diff options
author | Norbert Preining <norbert@preining.info> | 2022-04-28 03:00:36 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-04-28 03:00:36 +0000 |
commit | af956ba2c2710e269fb7eed018809aa08da5bd40 (patch) | |
tree | 3ed5a80d5289aacb738f16b31cb7c7c98eccb17b /support/TeX4ht | |
parent | 7b9369df36adafdc30953d0c1582dc2cd47bc1b4 (diff) |
CTAN sync 202204280300
Diffstat (limited to 'support/TeX4ht')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 7 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-html4.tex | 18 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-mathml.tex | 35 |
3 files changed, 33 insertions, 27 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index 27cce11cff..58146aa1e3 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/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/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex index d9d3ae88ad..cd6cf2992e 100644 --- a/support/TeX4ht/source/tex4ht-html4.tex +++ b/support/TeX4ht/source/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/support/TeX4ht/source/tex4ht-mathml.tex b/support/TeX4ht/source/tex4ht-mathml.tex index 5f5da30c08..5c277625e5 100644 --- a/support/TeX4ht/source/tex4ht-mathml.tex +++ b/support/TeX4ht/source/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;}} >>> |