[tex4ht-commits] [SCM] tex4ht updated: r1135 - trunk/lit

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu May 19 17:28:47 CEST 2022


Author: michal_h21
Date: 2022-05-19 15:28:47 +0000 (Thu, 19 May 2022)
New Revision: 1135

Modified:
   trunk/lit/ChangeLog
   trunk/lit/mktex4ht-cnf.tex
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
   trunk/lit/tex4ht-mathml.tex
Log:
Added support for the Cancel package

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2022-05-18 13:57:59 UTC (rev 1134)
+++ trunk/lit/ChangeLog	2022-05-19 15:28:47 UTC (rev 1135)
@@ -1,3 +1,11 @@
+2022-05-19  Michal Hoftich  <michal.h21 at 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 at gmail.com>
 
 	* tex4ht-mathml.tex (mathml.4ht): fixed support for \overrightarrow

Modified: trunk/lit/mktex4ht-cnf.tex
===================================================================
--- trunk/lit/mktex4ht-cnf.tex	2022-05-18 13:57:59 UTC (rev 1134)
+++ trunk/lit/mktex4ht-cnf.tex	2022-05-19 15:28:47 UTC (rev 1135)
@@ -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}

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2022-05-18 13:57:59 UTC (rev 1134)
+++ trunk/lit/tex4ht-4ht.tex	2022-05-19 15:28:47 UTC (rev 1135)
@@ -31004,6 +31004,47 @@
 >>>
 
 %%%%%%%%%%%%%%%%%%%
+\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}
 %%%%%%%%%%%%%%%%%%%
 

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2022-05-18 13:57:59 UTC (rev 1134)
+++ trunk/lit/tex4ht-html4.tex	2022-05-19 15:28:47 UTC (rev 1135)
@@ -22156,10 +22156,26 @@
 >>>
 
 
+\<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>}}
+>>>
 
 
+
 \<configure html4 go\><<<
 \Configure{showdiagram}
     {\Picture*[go]{}}  {\EndPicture}

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2022-05-18 13:57:59 UTC (rev 1134)
+++ trunk/lit/tex4ht-mathml.tex	2022-05-19 15:28:47 UTC (rev 1135)
@@ -3856,7 +3856,17 @@
 \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>}}
+>>>
 
 
 



More information about the tex4ht-commits mailing list.