summaryrefslogtreecommitdiff
path: root/support
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-10-26 03:00:55 +0000
committerNorbert Preining <norbert@preining.info>2022-10-26 03:00:55 +0000
commitfac21618bdcd44d7ca47228c8b856488b12ee6a2 (patch)
treee9819cfcefa3d3865508f8a48a871338e56340c1 /support
parent170c76072a2b68eeeb23fa4a9e3dfbdee131e29c (diff)
CTAN sync 202210260300
Diffstat (limited to 'support')
-rw-r--r--support/TeX4ht/source/ChangeLog16
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex18
-rw-r--r--support/TeX4ht/source/tex4ht-html4.tex3
-rw-r--r--support/TeX4ht/source/tex4ht-mathml.tex35
-rw-r--r--support/TeX4ht/source/tex4ht-unicode.tex5
5 files changed, 55 insertions, 22 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index 31e91303c0..c9fb24a9d0 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,19 @@
+2022-10-25 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-4ht.tex (fontmath.4ht, plain.4ht),
+ * tex4ht-html4.tex (html4-math.4ht),
+ * tex4ht-unicode.tex (unicode.4ht): fixed \Longrightarrow and
+ \Longleftarrow symbols.
+ https://github.com/michal-h21/make4ht/issues/86
+
+ * tex4ht-4ht.tex (endnotes.4ht): fixed clash between Endnotes and
+ BibLaTeX.
+ https://tug.org/pipermail/tex4ht/2022q4/003274.html
+
+ * tex4ht-mathml.tex (mathml.4ht, html-mml.4ht): fixed support for
+ \hline inside the array environment.
+ https://tex.stackexchange.com/a/662845/2891
+
2022-10-23 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-html4.tex (html4.4ht): added the Gin-percent option. It
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index 7a44c341d5..e70774e203 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1219 2022-10-20 14:40:14Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1223 2022-10-25 20:53:26Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -32740,13 +32740,24 @@ of \''<a>' elements.
\NewConfigure{makeenmark}{2}
\def\enoteformat{\rightskip\z@ \leftskip\z@ \parindent=1.8em
\leavevmode\llap{\hbox{\textsuperscript{\@theenmark}}}}
+
+\NewConfigure{theendnotes}{2}
+\NewConfigure{enoteformat}{2}
+>>>
+
+BibLaTeX patches theendnotes at begin document, and it produces
+compilation error, because it cannot find the \''\enoteformat'
+command here. We can postpone our redefinition to the moment,
+when BibLaTeX patched the command already.
+
+\<fix endnotes\><<<
+\AtBeginDocument{%
\def\:tempc{\bgroup
\pend:def\enoteformat{\a:enoteformat}%
\append:def\enoteformat{\b:enoteformat}%
\a:theendnotes \o:theendnotes: \b:theendnotes \egroup}
\HLet\theendnotes=\:tempc
-\NewConfigure{theendnotes}{2}
-\NewConfigure{enoteformat}{2}
+}
>>>
%%%%%%%%%%%%%%%%%
@@ -36395,6 +36406,7 @@ A previous definition \Verb+\def\aa{{\Protect\:aa}}+ was problematic because
\MathSymbol\mathop{ldots}
\MathSymbol\mathrel{Longleftrightarrow}
\MathSymbol\mathrel{Longrightarrow}
+\MathSymbol\mathrel{Longleftarrow}
\MathSymbol\mathrel{bowtie}
\MathSymbol\mathrel{cdots}
\MathSymbol\mathrel{ddots}
diff --git a/support/TeX4ht/source/tex4ht-html4.tex b/support/TeX4ht/source/tex4ht-html4.tex
index 55989c36fc..91b14dac02 100644
--- a/support/TeX4ht/source/tex4ht-html4.tex
+++ b/support/TeX4ht/source/tex4ht-html4.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-html4.tex 1220 2022-10-23 18:52:19Z michal_h21 $
+% $Id: tex4ht-html4.tex 1223 2022-10-25 20:53:26Z michal_h21 $
% Compile 4 times: latex tex4ht-html4
% Copy html4.4ht into the work directory before all but the last compilation.
%
@@ -8586,6 +8586,7 @@ The hbox is for avoiding the start of a new paragraph, if in vmode.
\<picmath plain,fontmath\><<<
\Configure{Longrightarrow} {\pic:sym{Longrightarrow}}
+\Configure{Longleftarrow} {\pic:sym{Longleftarrow}}
\Configure{bowtie} {\pic:sym{bowtie}}
\Configure{cong} {\pic:sym{cong}}
\Configure{ddots} {\pic:sym{ddots}}
diff --git a/support/TeX4ht/source/tex4ht-mathml.tex b/support/TeX4ht/source/tex4ht-mathml.tex
index 23c6aacbaf..5d5e11e944 100644
--- a/support/TeX4ht/source/tex4ht-mathml.tex
+++ b/support/TeX4ht/source/tex4ht-mathml.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathml.tex 1209 2022-10-05 21:12:23Z michal_h21 $$
+% $Id: tex4ht-mathml.tex 1221 2022-10-25 11:32:47Z michal_h21 $$
% compile 3 times: latex tex4ht-mathltx
% or xhlatex tex4ht-mathltx "html,3,sections+"
%
@@ -1173,7 +1173,7 @@ space, without having them ignored, must use &nbsp; or other
\Configure{array}
{\halignTB{array}}
{\ifvmode \IgnorePar\fi |<insert Clr|>\Tg</\a:mathml mtable>}
- {\Tg<\a:mathml mtr>}{\Tg</\a:mathml mtr>}
+ {\Tg<\a:mathml mtr \mml:class="array-row">}{\Tg</\a:mathml mtr>}
{|<mtd array|>}
{\Tg</\a:mathml mtd>}
\ConfigureEnv{array}
@@ -1205,7 +1205,7 @@ space, without having them ignored, must use &nbsp; or other
\<mtd array\><<<
-\HCode{<\a:mathml mtd\Hnewline \mml:class="array"
+\HCode{<\a:mathml mtd\Hnewline \mml:class="array-td"
\ifnum 1<\HMultispan columnspan="\HMultispan"\fi}%
\halignTD \HCode{>}%
>>>
@@ -1232,15 +1232,15 @@ space, without having them ignored, must use &nbsp; or other
\def\:MM{m}
\def\mathml:hborder{%
\Configure{HBorder}
- {<\a:mathml mtr\Hnewline \mml:class="hline">}
+ {<\a:mathml mtr\Hnewline \mml:class="array-hline">}
{|<mml hline|>}
{</\a:mathml mtr>}
- {<\a:mathml mtr\Hnewline \mml:class="cline">}
+ {<\a:mathml mtr\Hnewline \mml:class="array-cline">}
{<\a:mathml mtd></\a:mathml mtd>}
{|<mml hline|>}
{</\a:mathml mtr>}
{<\a:mathml mtr\Hnewline
- \mml:class="vspace" style="font-size:\HBorderspace">}
+ \mml:class="array-vspace" style="font-size:\HBorderspace">}
{<\a:mathml mtd\Hnewline></\a:mathml mtd>}
{</\a:mathml mtr>}
}
@@ -1252,18 +1252,18 @@ space, without having them ignored, must use &nbsp; or other
\def\:MM{\ifmathml \a:mathml m\fi}
\Configure{HBorder}
{<\:MM tr\Hnewline
- \ifmathml \expandafter\mml:class\else class\fi="hline">}
+ \ifmathml \expandafter\mml:class\else class\fi="array-hline">}
{\ifmathml|<mml hline|>\else
- <td><hr\xml:empty></td>\fi}
+ <td></td>\fi}
{</\:MM tr>}
{<\:MM tr\Hnewline
- \ifmathml \expandafter\mml:class\else class\fi ="cline">}
+ \ifmathml \expandafter\mml:class\else class\fi ="array-cline">}
{<\:MM td></\:MM td>}
{\ifmathml|<mml hline|>\else
- <td><hr\xml:empty></td>\fi}
+ <td></td>\fi}
{</\:MM tr>}
{<\:MM tr\Hnewline
- \ifmathml \expandafter\mml:class\else class\fi="vspace"
+ \ifmathml \expandafter\mml:class\else class\fi="array-vspace"
style="font-size:\HBorderspace">}
{<\:MM td\Hnewline>\ifmathml\else\string&\#x00A0;\fi
</\:MM td>}
@@ -1286,16 +1286,19 @@ space, without having them ignored, must use &nbsp; or other
\HCode{</\:MT td>}|<td recall EndP|>}
>>>
+It seems that Firefox doesn't support MathML styling
+using element names, but classes works. We need to hide
+rows produced by hline.
\<configure html-mml latex\><<<
-\Css{mtr.hline mtd{
+\Css{.array-hline,.array-cline{
border-bottom:black solid 1px;
- padding-top:2px;
- padding-bottom:0em;
+ height:0px;
}}
-\Css{mtr.hline mtd mo{
+\Css{.hline-mtd{
display:none
}}
+\Css{.array-hline + .array-row:last-child{display:none;}}
>>>
\<td save EndP\><<<
@@ -1308,7 +1311,7 @@ space, without having them ignored, must use &nbsp; or other
\<mml hline\><<<
-<\a:mathml mtd><mo> \string&\#x0332; </mo></\a:mathml mtd>
+<\a:mathml mtd \mml:class="hline-mtd"></\a:mathml mtd>
>>>
diff --git a/support/TeX4ht/source/tex4ht-unicode.tex b/support/TeX4ht/source/tex4ht-unicode.tex
index eefe14ffb3..83469c1870 100644
--- a/support/TeX4ht/source/tex4ht-unicode.tex
+++ b/support/TeX4ht/source/tex4ht-unicode.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-unicode.tex 954 2021-06-19 19:34:56Z michal_h21 $
+% $Id: tex4ht-unicode.tex 1223 2022-10-25 20:53:26Z michal_h21 $
% latex tex4ht-unicode or xhlatex tex4ht-unicode "html,3,sections+"
%
% Copyright 2009-2021 TeX Users Group
@@ -434,7 +434,8 @@ The special replaces the `x' character.
>>>
\<plain,fontmath math symbols\><<<
-\Configure{Longrightarrow} {\x:unicode{21D2}}
+\Configure{Longrightarrow} {\x:unicode{27F9}}
+\Configure{Longleftarrow} {\x:unicode{27F8}}
\Configure{bowtie} {\x:unicode{22C8}}
\Configure{doteq} {\x:unicode{2250}}
\Configure{cong} {\x:unicode{2245}}