[tex4ht-commits] [SCM] tex4ht updated: r685 - trunk/lit
michal_h21 at gnu.org.ua
michal_h21 at gnu.org.ua
Mon Apr 20 18:16:32 CEST 2020
Author: michal_h21
Date: 2020-04-20 19:16:32 +0300 (Mon, 20 Apr 2020)
New Revision: 685
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-mathjax.tex
Log:
Fixed \ { command in the MathJax mode
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2020-04-19 11:34:15 UTC (rev 684)
+++ trunk/lit/ChangeLog 2020-04-20 16:16:32 UTC (rev 685)
@@ -1,5 +1,10 @@
2020-04-19 Michal Hoftich <michal.h21 at gmail.com>
+ * tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): fixed support for `\ {`
+ https://tex.stackexchange.com/a/539677/2891
+ https://puszcza.gnu.org.ua/bugs/index.php?457
+2020-04-19 Michal Hoftich <michal.h21 at gmail.com>
+
* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): added support for \ln in
section titles.
https://puszcza.gnu.org.ua/bugs/?456
Modified: trunk/lit/tex4ht-mathjax.tex
===================================================================
--- trunk/lit/tex4ht-mathjax.tex 2020-04-19 11:34:15 UTC (rev 684)
+++ trunk/lit/tex4ht-mathjax.tex 2020-04-20 16:16:32 UTC (rev 685)
@@ -43,6 +43,8 @@
\cs_new_protected:Npn \alteqtoks #1
{
\tl_set:Nx \l_tmpa_tl {\detokenize{#1}}
+ % convert \ { to \:{
+ \regex_replace_all:nnN { \x{5C} \x{20} \x{7B} } { \x{5C} \x{3A} \x{7B} } \l_tmpa_tl
% delete spaces before left brackets
\regex_replace_all:nnN { \x{20} \x{7B} } { \x{7B} } \l_tmpa_tl
% replace < > and & with xml entities
More information about the tex4ht-commits
mailing list.