summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/tex4ht
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-11-20 17:58:46 +0000
committerKarl Berry <karl@freefriends.org>2021-11-20 17:58:46 +0000
commit4ede05846cf39da0bbfd0484928394f414addc6a (patch)
tree0ba208658829b92c8622a7b528ec24ce7ae9de19 /Master/texmf-dist/tex/generic/tex4ht
parentefef4b038d6de2b8bc263303cf85c500e74d70a1 (diff)
latex3 cmds for \VerbMath, tex4ht r1012
git-svn-id: svn://tug.org/texlive/trunk@61097 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht')
-rw-r--r--Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht19
1 files changed, 11 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht b/Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht
index 260a6be78e8..64a2b2956ea 100644
--- a/Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht
+++ b/Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht
@@ -1,4 +1,4 @@
-% mathjax-latex-4ht.sty (2021-09-14-14:13), generated from tex4ht-mathjax.tex
+% mathjax-latex-4ht.sty (2021-11-20-09:56), generated from tex4ht-mathjax.tex
% Copyright 2018-2021 TeX Users Group
%
% This work may be distributed and/or modified under the
@@ -16,9 +16,8 @@
%
% If you modify this program, changing the
% version identification would be appreciated.
-\immediate\write-1{version 2021-09-14-14:13}
+\immediate\write-1{version 2021-11-20-09:56}
-\RequirePackage{etoolbox,expl3,environ}
\ExplSyntaxOn
\cs_new_protected:Npn \alteqtoks #1
@@ -28,6 +27,8 @@
\regex_replace_all:nnN { \x{26} } { &amp; } \l_tmpa_tl
\regex_replace_all:nnN { \x{3C} } { &lt; } \l_tmpa_tl
\regex_replace_all:nnN { \x{3E} } { &gt; } \l_tmpa_tl
+ % replace \par command with blank lines
+ \regex_replace_all:nnN { \x{5C}par } {\x{A}\x{A}} \l_tmpa_tl
\tl_set:Nx \l_tmpb_tl{ \l_tmpa_tl }
\HCode{\l_tmpb_tl}
}
@@ -47,13 +48,15 @@
#1
\end{#2}}%
}
+\ExplSyntaxOn
\newcommand\VerbMath[1]{%
-\ifcsdef{#1}{%
- \RenewEnviron{#1}{%
- \NoFonts\expandafter\VerbMathToks\expandafter{\BODY}{#1}\EndNoFonts%
- }
-}{}%
+ \cs_if_exist:cTF{#1}{
+ \RenewDocumentEnvironment{#1}{+!b}{%
+ \NoFonts\expandafter\VerbMathToks\expandafter{##1}{#1}\EndNoFonts%
+ }{}
+ }{}%
}
+\ExplSyntaxOff
\def\fixmathjaxtoc#1{\Configure{writetoc}{\def#1{\detokenize{#1}}}}
\def\fixmathjaxsec#1{\def#1{\detokenize{#1}}}