diff options
author | Norbert Preining <norbert@preining.info> | 2022-05-20 03:01:51 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2022-05-20 03:01:51 +0000 |
commit | 33fe673e1a4a678f76e23a91da0f449998af9c47 (patch) | |
tree | 54a9486c6ec7621c31e33af6e6f111666585b56a /support | |
parent | 049d8c10a2be69e330d26efa5116b5ec451b8eab (diff) |
CTAN sync 202205200301
Diffstat (limited to 'support')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 8 | ||||
-rw-r--r-- | support/TeX4ht/source/mktex4ht-cnf.tex | 3 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 43 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-html4.tex | 18 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-mathml.tex | 12 |
5 files changed, 80 insertions, 4 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index 4de6c1d8dc..97678beb03 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,11 @@ +2022-05-19 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-4ht.tex (cancel.4ht), + * tex4ht-html4.tex ( html4.4ht, html-math.4ht), + * tex4ht-mathml.tex (mathml.4ht): Added support for the Cancel + package. + https://github.com/michal-h21/make4ht/issues/76 + 2022-05-18 Michal Hoftich <michal.h21@gmail.com> * tex4ht-mathml.tex (mathml.4ht): fixed support for \overrightarrow diff --git a/support/TeX4ht/source/mktex4ht-cnf.tex b/support/TeX4ht/source/mktex4ht-cnf.tex index 484ec3721e..dd413acdff 100644 --- a/support/TeX4ht/source/mktex4ht-cnf.tex +++ b/support/TeX4ht/source/mktex4ht-cnf.tex @@ -1,4 +1,4 @@ -% $Id: mktex4ht-cnf.tex 1116 2022-04-25 08:10:08Z michal_h21 $ +% $Id: mktex4ht-cnf.tex 1135 2022-05-19 15:28:47Z michal_h21 $ % Manually-maintained file, listing *.4ht files created by tex4ht-4ht.tex. % Read by tex4ht-cond4ht. % @@ -264,6 +264,7 @@ \AddFile{9}{rotating} \AddFile{9}{boxedminipage} \AddFile{9}{ulem} +\AddFile{9}{cancel} \AddFile{9}{go} \AddFile{9}{paralist} \AddFile{9}{pifont} diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index 663b039416..e5345d8759 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1131 2022-05-08 15:29:51Z karl $ +% $Id: tex4ht-4ht.tex 1135 2022-05-19 15:28:47Z michal_h21 $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2022 TeX Users Group @@ -31004,6 +31004,47 @@ Configurations in math mode are named after the command with the "-math" suffix. >>> %%%%%%%%%%%%%%%%%%% +\Section{cancel} +%%%%%%%%%%%%%%%%%%% + +\<cancel.4ht\><<< +% cancel.4ht (|version), generated from |jobname.tex +% Copyright 2022 TeX Users Group +|<TeX4ht license text|> +|<cancel config|> +\Hinput{cancel} +\endinput +>>> \AddFile{9}{cancel} + +\<cancel config\><<< +\def\:cancelchoose#1#2{\relax\ifmmode\csname a:#1-math\endcsname#2\csname b:#1-math\endcsname\else\csname a:#1\endcsname#2\csname b:#1\endcsname\fi} +\NewConfigure{cancel}{2} +\NewConfigure{cancel-math}{2} +\def\:tempa#1{\:cancelchoose{cancel}{#1}} +% \def\:tempa#1{\ifmmode\a:cancelmath#1\b:cancelmath\else\a:cancel#1\b:cancel\fi} +\HLet\cancel\:tempa + +\NewConfigure{bcancel}{2} +\NewConfigure{bcancel-math}{2} +\def\:tempa#1{\:cancelchoose{bcancel}{#1}} +% \def\:tempa#1{\ifmmode\a:bcancelmath#1\b:bcancelmath\else\a:bcancel#1\b:bcancel\fi} +\HLet\bcancel\:tempa + +\NewConfigure{xcancel}{2} +\NewConfigure{xcancel-math}{2} +\def\:tempa#1{\:cancelchoose{xcancel}{#1}} +% \def\:tempa#1{\ifmmode\a:xcancelmath#1\b:xcancelmath\else\a:xcancel#1\b:xcancel\fi} +\HLet\xcancel\:tempa + +\NewConfigure{cancelto}{3} +\def\:tempa#1#2{\a:cancelto#1\b:cancelto#2\c:cancelto} +\HLet\cancelto\:tempa + +>>> + +%%%%%%%%%%%%%%%%%%% + +%%%%%%%%%%%%%%%%%%% \Section{go} %%%%%%%%%%%%%%%%%%% diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex index a2c897578c..ab80f9af01 100644 --- a/support/TeX4ht/source/tex4ht-html4.tex +++ b/support/TeX4ht/source/tex4ht-html4.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-html4.tex 1133 2022-05-13 13:41:16Z michal_h21 $ +% $Id: tex4ht-html4.tex 1135 2022-05-19 15:28:47Z michal_h21 $ % Compile 4 times: latex tex4ht-html4 % Copy html4.4ht into the work directory before all but the last compilation. % @@ -22156,7 +22156,23 @@ gets something wrong there. >>> +\<configure html4 cancel\><<< +\Configure{cancel}{\HCode{<span class="cancel">}}{\HCode{</span>}} +\Css{.cancel{background: linear-gradient(to left top, transparent 47.75\%, currentColor 49.5\%, currentColor 50.5\%, transparent 52.25\%);}} +\Configure{bcancel}{\HCode{<span class="bcancel">}}{\HCode{</span>}} +\Css{.bcancel{background: linear-gradient(to bottom left, transparent 47.75\%, currentColor 49.5\%, currentColor 50.5\%, transparent 52.25\%);}} +\Configure{xcancel}{\HCode{<span class="xcancel">}}{\HCode{</span>}} +\Css{.xcancel{background: linear-gradient(to bottom left, transparent 47.75\%, currentColor 49.5\%, currentColor 50.5\%, transparent 52.25\%), linear-gradient(to left top, transparent 47.75\%, currentColor 49.5\%, currentColor 50.5\%, transparent 52.25\%);}} +>>> + +\<configure html4-math cancel\><<< +\Configure{cancel-math}{\HCode{<span class="cancel">}}{\HCode{</span>}} +\Configure{bcancel-math}{\HCode{<span class="bcancel">}}{\HCode{</span>}} +\Configure{xcancel-math}{\HCode{<span class="xcancel">}}{\HCode{</span>}} +% It doesn't produce arrow unfortunatelly, maybe we could use SVG +\Configure{cancelto}{\HCode{<span class="cancel">}}{\HCode{</span><sup>}}{\HCode{</sup>}} +>>> diff --git a/support/TeX4ht/source/tex4ht-mathml.tex b/support/TeX4ht/source/tex4ht-mathml.tex index 607a9d5625..29e6292bdf 100644 --- a/support/TeX4ht/source/tex4ht-mathml.tex +++ b/support/TeX4ht/source/tex4ht-mathml.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-mathml.tex 1134 2022-05-18 13:57:59Z michal_h21 $$ +% $Id: tex4ht-mathml.tex 1135 2022-05-19 15:28:47Z michal_h21 $$ % compile 3 times: latex tex4ht-mathltx % or xhlatex tex4ht-mathltx "html,3,sections+" % @@ -3856,7 +3856,17 @@ to emulate effects, especially double, dotted and dashed lines. \Css{.dotuline-math {border-bottom: 1px dotted black;}} >>> +Support for the Cancel package +\<configure mathml cancel\><<< +\Configure{cancel-math}{\HCode{<\a:mathml menclose notation="updiagonalstrike">}}{\HCode{</\a:mathml menclose>}} +\Configure{bcancel-math}{\HCode{<\a:mathml menclose notation="downdiagonalstrike">}}{\HCode{</\a:mathml menclose>}} +\Configure{xcancel-math}{\HCode{<\a:mathml menclose notation="updiagonalstrike downdiagonalstrike">}}{\HCode{</\a:mathml menclose>}} +\Configure{cancelto} +{\HCode{<\a:mathml msup><\a:mathml menclose notation="updiagonalarrow"><\a:mathml mrow>}} +{\HCode{</\a:mathml mrow></\a:mathml menclose><\a:mathml mrow>}} +{\HCode{</\a:mathml mrow></\a:mathml msup>}} +>>> |