[tex4ht-commits] [SCM] tex4ht updated: r191 - trunk/lit

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Wed Aug 10 11:26:25 CEST 2016


Author: michal_h21
Date: 2016-08-10 12:26:24 +0300 (Wed, 10 Aug 2016)
New Revision: 191

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-mathml.tex
Log:
Fix underscores in math mode

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2016-07-19 17:38:35 UTC (rev 190)
+++ trunk/lit/ChangeLog	2016-08-10 09:26:24 UTC (rev 191)
@@ -1,3 +1,9 @@
+2016-08-10  Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-4ht.tex (latex.4ht): use \mathunderscore in math mode for \_ macro
+	* tex4ht-mathml.tex (mathml.4ht): fix for mathml 
+	https://puszcza.gnu.org.ua/bugs/?337
+
 2016-07-19  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-4ht.tex (lettrine.4ht) <\@lettrine>: use lettrine-*

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2016-07-19 17:38:35 UTC (rev 190)
+++ trunk/lit/tex4ht-4ht.tex	2016-08-10 09:26:24 UTC (rev 191)
@@ -4630,6 +4630,8 @@
 \NewConfigure{textundescore}[1]{\expandafter
    \def\csname ?\string\textunderscore\endcsname{\leavevmode#1}}
 \Configure{textundescore}{\HChar{95}}
+\DeclareRobustCommand{\_}{%
+\ifmmode\mathunderscore\else\textunderscore\fi}
 >>>
 
 The math underscore below is represented by a ruler drawing.

Modified: trunk/lit/tex4ht-mathml.tex
===================================================================
--- trunk/lit/tex4ht-mathml.tex	2016-07-19 17:38:35 UTC (rev 190)
+++ trunk/lit/tex4ht-mathml.tex	2016-08-10 09:26:24 UTC (rev 191)
@@ -1597,9 +1597,12 @@
 >>>
 
 
+Use variant of original LaTeX macro used in \textunderscore
+\<configure mathml tex4ht\><<<
+\def\mathunderscore{\nfss at text{\HChar{95}}}
+>>>
 
 
-
 \<try inline par\><<<
 \ShowPar\par{\HCondtrue\noindent}%
 >>>



More information about the tex4ht-commits mailing list