summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-08-14 03:04:22 +0000
committerNorbert Preining <norbert@preining.info>2023-08-14 03:04:22 +0000
commit8360ddccbd0538a65b33a2474e0b3b79acd83dab (patch)
treee7e1f700abecf0a8c5e813512cb1ca60434a6d5a /support/TeX4ht/source
parent03f1daec22e3e5e2ae8d117d503ee9648c5b3f91 (diff)
CTAN sync 202308140304
Diffstat (limited to 'support/TeX4ht/source')
-rw-r--r--support/TeX4ht/source/ChangeLog17
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex11
-rw-r--r--support/TeX4ht/source/tex4ht-docbook.tex16
-rw-r--r--support/TeX4ht/source/tex4ht-mathml.tex17
4 files changed, 52 insertions, 9 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog
index ca3df845bd..9790ff0922 100644
--- a/support/TeX4ht/source/ChangeLog
+++ b/support/TeX4ht/source/ChangeLog
@@ -1,3 +1,20 @@
+2023-08-13 Michal Hoftich <michal.h21@gmail.com>
+
+ * tex4ht-mathml.tex (mathml.4ht): fixed handling of \tfrac and
+ \dfrac inside of \frac.
+ https://github.com/michal-h21/make4ht/issues/129
+
+ * tex4ht-mathml.tex (mathml.4ht): fixed wrong markup for primes.
+ https://github.com/michal-h21/make4ht/issues/130
+
+ * tex4ht-docbook.tex (docbook.4ht): added formatting for the Ulem
+ package configurations.
+ https://github.com/michal-h21/make4ht/issues/131
+
+ * tex4ht-4ht.tex (amsmath.4ht): don't redefine environment handling
+ macros in the split environment.
+ https://github.com/michal-h21/make4ht/issues/132
+
2023-07-28 Michal Hoftich <michal.h21@gmail.com>
* tex4ht-4ht.tex (xskak.4ht): removed redefiniton of \mainline and
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index a3f229f1f5..2b7fe06736 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1352 2023-07-28 18:30:37Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1353 2023-08-13 17:48:56Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2023 TeX Users Group
@@ -21565,7 +21565,14 @@ The split environment looks like
The folowing tries to compensate for the above extra openning split
environment.
-\<equations of amsmath.sty\><<<
+But in 2023, this causes fatal error in the compilation. Furthermore,
+the test cases that follows work in the picture and MathML modes,
+so it seems that it isn't necessary anymore.
+
+Bug report for the fatal error can be
+\Link[https://github.com/michal-h21/make4ht/issues/132]{}{}found here\EndLink
+
+\<do not use in equations of amsmath.sty\><<<
\Configure{@begin}
{split}
{\relax
diff --git a/support/TeX4ht/source/tex4ht-docbook.tex b/support/TeX4ht/source/tex4ht-docbook.tex
index 86fcca695d..3c9888f2db 100644
--- a/support/TeX4ht/source/tex4ht-docbook.tex
+++ b/support/TeX4ht/source/tex4ht-docbook.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-docbook.tex 904 2021-04-16 20:30:30Z karl $
+% $Id: tex4ht-docbook.tex 1354 2023-08-13 17:55:27Z michal_h21 $
% compile 3 times: latex tex4ht-docbook
% or xhlatex tex4ht-docbook "html,3,sections+"
%
@@ -2692,6 +2692,20 @@ accent="true">&\#x0332;</\a:mathml mo></\a:mathml munder>}%
\verb'&#x0332;' is the code of \verb'&UnderBar;'
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\subsection{Ulem}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
+\<configure docbook ulem\><<<
+\Configure{uline}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
+\Configure{uuline}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
+\Configure{sout}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
+\Configure{xout}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
+\Configure{uwave}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
+\Configure{dashuline}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
+\Configure{dotuline}{\HCode{<emphasis role="underline">}}{\HCode{</emphasis>}}
+>>>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter{AMS}
diff --git a/support/TeX4ht/source/tex4ht-mathml.tex b/support/TeX4ht/source/tex4ht-mathml.tex
index eb549a1429..1af96d34db 100644
--- a/support/TeX4ht/source/tex4ht-mathml.tex
+++ b/support/TeX4ht/source/tex4ht-mathml.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathml.tex 1347 2023-07-11 20:48:44Z michal_h21 $$
+% $Id: tex4ht-mathml.tex 1356 2023-08-13 18:48:02Z michal_h21 $$
% compile 3 times: latex tex4ht-mathltx
% or xhlatex tex4ht-mathltx "html,3,sections+"
%
@@ -1599,11 +1599,16 @@ configurations, respectively.
}
>>>
-Use correct math style for Amsmath's variants of inline fractions.
+Use correct math style for Amsmath's variants of inline fractions. We also need to add fractions markup in tfrac and dfrac to
+support their use \Link[https://github.com/michal-h21/make4ht/issues/129]{}{}inside of fractions\EndLink.
\<configure mathml amsmath\><<<
-\pend:def\dfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="true"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
-\pend:def\tfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="false"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
+\pend:def\dfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="true"}{}{}{}><mfrac><mrow>}
+ \Configure{over}{}{}}{}{}{\HCode{</mrow><mrow>}
+} {}{\HCode{</mrow></mfrac></\a:mathml mstyle>}}}
+\pend:def\tfrac{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="false"}{}{}{}><mfrac><mrow>}
+ \Configure{over}{}{}}{}{}{\HCode{</mrow><mrow>}
+}{}{\HCode{</mrow></mfrac></\a:mathml mstyle>}}}
\pend:def\dbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="true"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
\pend:def\tbinom{\Configure{genfrac}{\HCode{<\a:mathml mstyle \mathchoice{\a:mathml displaystyle="false"}{}{}{}>}}{}{}{}{}{\HCode{</\a:mathml mstyle>}}}
>>>
@@ -1847,9 +1852,9 @@ Used to be
{\relax \csname SUB:prime\endcsname\sp{%
\global\let\SUB:prime=\:UnDef
\def\:tempa{\prime\prime}\ifx \:tempa\:primes
- \mathop{\HCode{\string&\#x2033;}}\else
+ \mathop{\HCode{<\a:mathml mi>\string&\#x2033;</\a:mathml mi>}}\else
\def\:tempa{\prime\prime\prime}\ifx \:tempa\:primes
- \mathop{\HCode{\string&\#x2034;}}\else
+ \mathop{\HCode{<\a:mathml mi>\string&\#x2034;</\a:mathml mi>}}\else
\:primes \fi\fi}%
}
{\let\prime=\relax \xdef\:primes{\:primes\prime}}