diff options
author | Norbert Preining <norbert@preining.info> | 2023-09-21 03:00:44 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-09-21 03:00:44 +0000 |
commit | 0bb8ade32dcca6728c583e822cbff37268b73c66 (patch) | |
tree | 2c49f3252ce6869dc074c17cb7d0fe8d0996caf3 /support/TeX4ht | |
parent | ab5949fa3536e691f573eb3d885927c97281eb9c (diff) |
CTAN sync 202309210300
Diffstat (limited to 'support/TeX4ht')
-rw-r--r-- | support/TeX4ht/source/ChangeLog | 5 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-4ht.tex | 4 | ||||
-rw-r--r-- | support/TeX4ht/source/tex4ht-mathml.tex | 27 |
3 files changed, 33 insertions, 3 deletions
diff --git a/support/TeX4ht/source/ChangeLog b/support/TeX4ht/source/ChangeLog index f435205901..9f496a5156 100644 --- a/support/TeX4ht/source/ChangeLog +++ b/support/TeX4ht/source/ChangeLog @@ -1,3 +1,8 @@ +2023-09-20 Michal Hoftich <michal.h21@gmail.com> + + * tex4ht-mathml.tex (mathml.4ht): added support for the \mathvariant + command (thanks to Linas Stonys). + 2023-09-11 Michal Hoftich <michal.h21@gmail.com> * tex4ht-html4.tex (html4.4ht): prevent duplicate TOC when the diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex index c76a160f67..592bdcc444 100644 --- a/support/TeX4ht/source/tex4ht-4ht.tex +++ b/support/TeX4ht/source/tex4ht-4ht.tex @@ -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 @@ We can load nameref from the early hook file \<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|> diff --git a/support/TeX4ht/source/tex4ht-mathml.tex b/support/TeX4ht/source/tex4ht-mathml.tex index 869396ddec..9b6f23c04b 100644 --- a/support/TeX4ht/source/tex4ht-mathml.tex +++ b/support/TeX4ht/source/tex4ht-mathml.tex @@ -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,7 +1843,32 @@ Used to be +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@version\endcsname}}{}% +} +>>> \<plain,latex mathml\><<< \Configure{afterSUB}{'}{\def\SUB:prime{\SUB:SUP}} |