texlive[68329] Master/texmf-dist: support \mathvariant, tex4ht r1371
commits+karl at tug.org
commits+karl at tug.org
Wed Sep 20 22:39:58 CEST 2023
Revision: 68329
https://tug.org/svn/texlive?view=revision&revision=68329
Author: karl
Date: 2023-09-20 22:39:58 +0200 (Wed, 20 Sep 2023)
Log Message:
-----------
support \mathvariant, tex4ht r1371
Revision Links:
--------------
https://tug.org/svn/texlive?view=revision&revision=1371
Modified Paths:
--------------
trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht
trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht
trunk/Master/texmf-dist/tex/generic/tex4ht/mkht-scripts.4ht
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-09-20 10:28:45 UTC (rev 68328)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/ChangeLog 2023-09-20 20:39:58 UTC (rev 68329)
@@ -1,3 +1,8 @@
+2023-09-20 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-mathml.tex (mathml.4ht): added support for the \mathvariant
+ command (thanks to Linas Stonys).
+
2023-09-11 Michal Hoftich <michal.h21 at gmail.com>
* tex4ht-html4.tex (html4.4ht): prevent duplicate TOC when the
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2023-09-20 10:28:45 UTC (rev 68328)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex 2023-09-20 20:39:58 UTC (rev 68329)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1368 2023-09-11 09:02:15Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1370 2023-09-17 15:00:53Z karl $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2023 TeX Users Group
@@ -5629,7 +5629,7 @@
\<hyperref-hooks.4ht\><<<
% hyperref-hooks.4ht (|version), generated from |jobname.tex
-% Copyright 2022 TeX Users Group
+% Copyright 2022-2023 TeX Users Group
|<TeX4ht license text|>
\:AtEndOfPackage{%
|<load nameref in hyperref hooks|>
Modified: trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex
===================================================================
--- trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex 2023-09-20 10:28:45 UTC (rev 68328)
+++ trunk/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex 2023-09-20 20:39:58 UTC (rev 68329)
@@ -1,4 +1,4 @@
-% $Id: tex4ht-mathml.tex 1366 2023-09-07 10:32:15Z michal_h21 $$
+% $Id: tex4ht-mathml.tex 1371 2023-09-20 12:19:50Z michal_h21 $$
% compile 3 times: latex tex4ht-mathltx
% or xhlatex tex4ht-mathltx "html,3,sections+"
%
@@ -1843,8 +1843,33 @@
+Support for the \verb'\mathversion' command. Thanks to Linas Stonys
+for the report and additional testing.
+\<configure mathml fontmath\><<<
+|<mathversion config|>
+>>>
+We can configure attributes that will be added to the \verb'<math>' element
+using \verb'\Configure{mathversion-style}' ideally,
+use something like \verb'mathvariant="xxx"'.
+
+\<mathversion config\><<<
+\NewConfigure{mathversion-style}[2]{\expandafter\gdef\csname :mathversion-#1\endcsname{#2}}
+% ToDo: Add support for other mathversions
+\Configure{mathversion-style}{bold}{\a:mathml mathvariant="bold-italic"}
+>>>
+
+Now we can append code to \verb'\mathversion'.
+It will add the mathvariant tag to the \verb'<math>' element.
+
+\<mathversion config\><<<
+\append:defI\mathversion{%
+ % \a:DviMathML is executed at the beginning of math \a:@math is hook for attributes. we need to append out tags to it
+ \Configure{DviMathML}{\append:def\a:@math{\expandafter\csname :mathversion-\math at version\endcsname}}{}%
+}
+>>>
+
\<plain,latex mathml\><<<
\Configure{afterSUB}{'}{\def\SUB:prime{\SUB:SUP}}
\Configure{'}
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht 2023-09-20 10:28:45 UTC (rev 68328)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/hyperref-hooks.4ht 2023-09-20 20:39:58 UTC (rev 68329)
@@ -1,5 +1,5 @@
-% hyperref-hooks.4ht (2023-09-11-14:37), generated from tex4ht-4ht.tex
-% Copyright 2022 TeX Users Group
+% hyperref-hooks.4ht (2023-09-17-08:01), generated from tex4ht-4ht.tex
+% Copyright 2022-2023 TeX Users Group
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
@@ -16,7 +16,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2023-09-11-14:37}
+\immediate\write-1{version 2023-09-17-08:01}
\:AtEndOfPackage{%
\@ifpackageloaded{nameref}{}
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht 2023-09-20 10:28:45 UTC (rev 68328)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht 2023-09-20 20:39:58 UTC (rev 68329)
@@ -1,4 +1,4 @@
-% mathml.4ht (2023-09-07-13:26), generated from tex4ht-mathml.tex
+% mathml.4ht (2023-09-20-13:25), generated from tex4ht-mathml.tex
% Copyright 2009-2023 TeX Users Group
% Copyright 1999-2009 Eitan M. Gurari
%
@@ -17,7 +17,7 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2023-09-07-13:26}
+\immediate\write-1{version 2023-09-20-13:25}
\exit:ifnot{Preamble,%
accents,%
@@ -1697,6 +1697,14 @@
font-style: normal;
}
}
+\NewConfigure{mathversion-style}[2]{\expandafter\gdef\csname :mathversion-#1\endcsname{#2}}
+% ToDo: Add support for other mathversions
+\Configure{mathversion-style}{bold}{\a:mathml mathvariant="bold-italic"}
+\append:defI\mathversion{%
+ % \a:DviMathML is executed at the beginning of math \a:@math is hook for attributes. we need to append out tags to it
+ \Configure{DviMathML}{\append:def\a:@math{\expandafter\csname :mathversion-\math at version\endcsname}}{}%
+}
+
\def\:tempd#1#2{%
\expandafter\def\csname #1\endcsname{\mathchar"13#2\relax}%
\MathSymbol\mathop{#1}%
Modified: trunk/Master/texmf-dist/tex/generic/tex4ht/mkht-scripts.4ht
===================================================================
--- trunk/Master/texmf-dist/tex/generic/tex4ht/mkht-scripts.4ht 2023-09-20 10:28:45 UTC (rev 68328)
+++ trunk/Master/texmf-dist/tex/generic/tex4ht/mkht-scripts.4ht 2023-09-20 20:39:58 UTC (rev 68329)
@@ -1,5 +1,5 @@
-% mkht-scripts.4ht (2023-08-27-00:00), generated from tex4ht-mkht.tex
-% Copyright 2009-2020 TeX Users Group
+% mkht-scripts.4ht (2023-09-10-08:49), generated from tex4ht-mkht.tex
+% Copyright 2009-2023 TeX Users Group
% Copyright 2000-2009 Eitan M. Gurari
%
% This work may be distributed and/or modified under the
@@ -18,7 +18,7 @@
% If you modify this program, changing the
% version identification would be appreciated.
%
-\immediate\write-1{version \ifx \JOBNAME\UnDefined 2023-08-27-00:00\else |version\fi}
+\immediate\write-1{version \ifx \JOBNAME\UnDefined 2023-09-10-08:49\else |version\fi}
\ifx \JOBNAME\UnDef
More information about the tex-live-commits
mailing list.