From 8ae8f83319e2a137d5ef635c0ca88c501e06717c Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 12 Dec 2022 22:09:25 +0000 Subject: \bf support, tex4ht r1265 git-svn-id: svn://tug.org/texlive/trunk@65258 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/generic/tex4ht/ChangeLog | 9 +++++ .../source/generic/tex4ht/tex4ht-4ht.tex | 4 +-- .../source/generic/tex4ht/tex4ht-mathml.tex | 9 ++++- Master/texmf-dist/tex/generic/tex4ht/mathml.4ht | 39 ++++++++++++++-------- .../tex/generic/tex4ht/pdfbase-hooks.4ht | 6 ++-- 5 files changed, 47 insertions(+), 20 deletions(-) (limited to 'Master/texmf-dist') diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog index d0d814e916b..df6a756f2f4 100644 --- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog +++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog @@ -1,3 +1,12 @@ +2022-12-12 Michal Hoftich + + * tex4ht-mathml.tex (mathml.4ht): added support for the \bf command. + https://github.com/michal-h21/make4ht/issues/98 + +2022-12-11 Karl Berry + + * tex4ht-4ht.tex (pdfbase-hooks.4ht): copyright 2022. + 2022-12-10 Michal Hoftich * tex4ht-4ht.tex (pdfbase-hooks.4ht): fixed handling of Pdfbase diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex index 2b3f41fe898..f1288840d10 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-4ht.tex 1263 2022-12-10 21:08:00Z michal_h21 $ +% $Id: tex4ht-4ht.tex 1264 2022-12-11 15:00:58Z karl $ % tex tex4ht-4ht or ht tex tex4ht-4ht % % Copyright 2009-2022 TeX Users Group @@ -4887,7 +4887,7 @@ The pdfbase package redefines \`|\@outputpage| macro, which causes tex4ht patche \<<< % pdfbase-hooks.4ht (|version), generated from |jobname.tex -% Copyright 2020 TeX Users Group +% Copyright 2020-2022 TeX Users Group | \:AtEndOfPackage{% \expandafter\let\expandafter\@outputpage\csname pbs_outputpage_orig:\endcsname diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex index ea2fafd2837..08675b614fb 100644 --- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex +++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-mathml.tex @@ -1,4 +1,4 @@ -% $Id: tex4ht-mathml.tex 1238 2022-11-16 15:55:23Z michal_h21 $$ +% $Id: tex4ht-mathml.tex 1265 2022-12-12 10:25:54Z michal_h21 $$ % compile 3 times: latex tex4ht-mathltx % or xhlatex tex4ht-mathltx "html,3,sections+" % @@ -1696,7 +1696,14 @@ Use variant of original LaTeX macro used in \textunderscore {}% >>> +The bf command should work in math. The following definition is a bit fragile, it expects +that it is used inside a group for a small chunk of text. +\<<< +\def\:closebf{\HCode{}\EndPauseMathClass} +\def\:tempa{\ifmmode\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{\PauseMathClass\HCode{<\a:mathml mi mathvariant="bold">}\aftergroup\:closebf}{\o:bf:}} +\HLet\bf\:tempa +>>> \<<< diff --git a/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht b/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht index 7a758931171..57c1a9b4452 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/mathml.4ht @@ -1,4 +1,4 @@ -% mathml.4ht (2022-11-16-13:36), generated from tex4ht-mathml.tex +% mathml.4ht (2022-12-12-13:23), generated from tex4ht-mathml.tex % Copyright 2009-2022 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 2022-11-16-13:36} +\immediate\write-1{version 2022-12-12-13:23} \exit:ifnot{Preamble,% accents,% @@ -659,6 +659,9 @@ vanilla} {\ifmathml \providemtextclass{\mml:class="emph" mathvariant="italic" }\fi} {}% +\def\:closebf{\HCode{}\EndPauseMathClass} +\def\:tempa{\ifmmode\expandafter\@firstoftwo\else\expandafter\@secondoftwo\fi{\PauseMathClass\HCode{<\a:mathml mi mathvariant="bold">}\aftergroup\:closebf}{\o:bf:}} +\HLet\bf\:tempa \let\A:fbox=\a:fbox \let\B:fbox=\b:fbox @@ -1751,7 +1754,6 @@ accent="true">&\#x0332;}% \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amsmath} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -2126,7 +2128,6 @@ accent="true">&\#x0332;}% \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amstext} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -2137,6 +2138,7 @@ accent="true">&\#x0332;}% \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amstex1} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -2366,6 +2368,8 @@ accent="true">&\#x0332;}% + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{plain} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -3199,6 +3203,7 @@ accent="true">&\#x0332;}% \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{amsopn} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -3264,7 +3269,6 @@ accent="true">&\#x0332;}% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -3340,9 +3344,6 @@ accent="true">&\#x0332;}% - - - @@ -3399,6 +3400,9 @@ accent="true">&\#x0332;}% + + + @@ -3671,6 +3675,7 @@ accent="true">&\#x0332;}% \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{gauss} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -3730,6 +3735,8 @@ accent="true">&\#x0332;}% + + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{rlbabel} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -3762,6 +3769,9 @@ accent="true">&\#x0332;}% + + + @@ -3833,6 +3843,10 @@ accent="true">&\#x0332;}% + + + + @@ -3973,9 +3987,6 @@ accent="true">&\#x0332;}% - - - @@ -4067,7 +4078,6 @@ accent="true">&\#x0332;}% \endinput\empty\empty\empty\empty\empty\empty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{ushort} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -4105,6 +4115,7 @@ accent="true">&\#x0332;}% + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \ConfigureHinput{bm} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -4147,8 +4158,6 @@ accent="true">&\#x0332;}% - - @@ -4318,6 +4327,8 @@ accent="true">&\#x0332;}% + + diff --git a/Master/texmf-dist/tex/generic/tex4ht/pdfbase-hooks.4ht b/Master/texmf-dist/tex/generic/tex4ht/pdfbase-hooks.4ht index 9c7a7c788ac..ed3254e7326 100644 --- a/Master/texmf-dist/tex/generic/tex4ht/pdfbase-hooks.4ht +++ b/Master/texmf-dist/tex/generic/tex4ht/pdfbase-hooks.4ht @@ -1,5 +1,5 @@ -% pdfbase-hooks.4ht (2022-12-10-13:19), generated from tex4ht-4ht.tex -% Copyright 2020 TeX Users Group +% pdfbase-hooks.4ht (2022-12-12-13:23), generated from tex4ht-4ht.tex +% Copyright 2020-2022 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 2022-12-10-13:19} +\immediate\write-1{version 2022-12-12-13:23} \:AtEndOfPackage{% \expandafter\let\expandafter\@outputpage\csname pbs_outputpage_orig:\endcsname -- cgit v1.2.3