diff options
author | Karl Berry <karl@freefriends.org> | 2018-12-06 02:12:43 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-12-06 02:12:43 +0000 |
commit | 518c74d01d42d9007c1b775ca3fd0529734ba466 (patch) | |
tree | d86026ffe027dfbf9ad34c39bd3ce2e97b4940b7 /Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht | |
parent | 1596085d410d7a721c52bc1d4eeb77b019ac97e2 (diff) |
mathjax, tex4ht r455-457
git-svn-id: svn://tug.org/texlive/trunk@49330 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht')
-rw-r--r-- | Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht | 533 |
1 files changed, 533 insertions, 0 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 new file mode 100644 index 00000000000..daa564f412d --- /dev/null +++ b/Master/texmf-dist/tex/generic/tex4ht/mathjax-latex-4ht.4ht @@ -0,0 +1,533 @@ +% mathjax-latex-4ht.sty (2018-12-05-18:11), generated from tex4ht-mathjax.tex +% Copyright 2018 TeX Users Group +% +% This work may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either +% version 1.3c of this license or (at your option) any +% later version. The latest version of this license is in +% http://www.latex-project.org/lppl.txt +% and version 1.3c or later is part of all distributions +% of LaTeX version 2005/12/01 or later. +% +% This work has the LPPL maintenance status "maintained". +% +% The Current Maintainer of this work +% is the TeX4ht Project <http://tug.org/tex4ht>. +% +% If you modify this program, changing the +% version identification would be appreciated. +\immediate\write-1{version 2018-12-05-18:11} + +\RequirePackage{etoolbox,expl3,environ} + +\ExplSyntaxOn +\cs_new_protected:Npn \alteqtoks #1 +{ + \tl_set:Nx \l_tmpa_tl {\detokenize{#1}} + % delete spaces before left brackets + \regex_replace_all:nnN { \x{20} \x{7B} } { \x{7B} } \l_tmpa_tl + % replace < > and & with xml entities + \regex_replace_all:nnN { \x{26} } { & } \l_tmpa_tl + \regex_replace_all:nnN { \x{3C} } { < } \l_tmpa_tl + \regex_replace_all:nnN { \x{3E} } { > } \l_tmpa_tl + \tl_set:Nx \l_tmpb_tl{ \l_tmpa_tl } + \HCode{\l_tmpb_tl} +} +\ExplSyntaxOff + +\long\def\AltlMath#1\){\expandafter\alteqtoks{\(#1\)}\)} +\long\def\AltlDisplay#1\]{\alteqtoks{\[#1\]}\]} +\long\def\AltMathOne#1${\alteqtoks{\(#1\)}$} + +\newcommand\VerbMathToks[2]{% + \alteqtoks{\begin{#2} + #1 + \end{#2}}% +} +\newcommand\VerbMath[1]{% +\ifcsdef{#1}{% + \RenewEnviron{#1}{% + \NoFonts\expandafter\VerbMathToks\expandafter{\BODY}{#1}\EndNoFonts% + } +}{}% +} +\def\fixmathjaxtoc#1{\def#1{\detokenize{#1}}} + +\VerbMath{subarray} +\VerbMath{smallmatrix} +\VerbMath{matrix} +\VerbMath{pmatrix} +\VerbMath{bmatrix} +\VerbMath{Bmatrix} +\VerbMath{vmatrix} +\VerbMath{Vmatrix} +\VerbMath{cases} +\VerbMath{subequations} +\VerbMath{aligned} +\VerbMath{alignedat} +\VerbMath{gathered} +\VerbMath{gather} +\VerbMath{gather*} +\VerbMath{alignat} +\VerbMath{alignat*} +\VerbMath{xalignat} +\VerbMath{xalignat*} +\VerbMath{xxalignat} +\VerbMath{align} +\VerbMath{align*} +\VerbMath{flalign} +\VerbMath{flalign*} +\VerbMath{split} +\VerbMath{multline} +\VerbMath{multline*} +\VerbMath{equation} +\VerbMath{equation*} +\VerbMath{math} +\VerbMath{displaymath} +\ConfigureEnv{multline}{}{}{}{} +\ConfigureEnv{multline*}{}{}{}{} +\fixmathjaxtoc\left +\fixmathjaxtoc\right +\fixmathjaxtoc\int +\fixmathjaxtoc\, +\fixmathjaxtoc\sin +\fixmathjaxtoc\cos +\fixmathjaxtoc\tan +\fixmathjaxtoc\arcsin +\fixmathjaxtoc\arccos +\fixmathjaxtoc\arctan +\fixmathjaxtoc\csc +\fixmathjaxtoc\sec +\fixmathjaxtoc\cot +\fixmathjaxtoc\sinh +\fixmathjaxtoc\cosh +\fixmathjaxtoc\tanh +\fixmathjaxtoc\coth +\fixmathjaxtoc\log + +\endinput + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +\endinput + |