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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Fri Dec 16 14:22:55 CET 2016


Author: michal_h21
Date: 2016-12-16 15:22:54 +0200 (Fri, 16 Dec 2016)
New Revision: 227

Modified:
   trunk/lit/ChangeLog
   trunk/lit/Makefile
   trunk/lit/tex4ht-4ht.tex
Log:
Fixed issues with nameref support

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2016-12-16 10:19:14 UTC (rev 226)
+++ trunk/lit/ChangeLog	2016-12-16 13:22:54 UTC (rev 227)
@@ -1,5 +1,10 @@
 2016-12-16  Michal Hoftich  <michal.h21 at gmail.com>
 
+	* tex4ht-4ht.tex (nameref.4ht): Fixed support for empty nameref
+	types in labels, added support for asmath environments.
+
+2016-12-16  Michal Hoftich  <michal.h21 at gmail.com>
+
 	* tex4ht-html4.tex (html4.4ht): Added support for inclusion of
 	SVG images
 

Modified: trunk/lit/Makefile
===================================================================
--- trunk/lit/Makefile	2016-12-16 10:19:14 UTC (rev 226)
+++ trunk/lit/Makefile	2016-12-16 13:22:54 UTC (rev 227)
@@ -34,7 +34,7 @@
   algorithmic.4ht biblatex.4ht book.4ht color.4ht colortbl.4ht frenchb.4ht \
 	fontspec.4ht fontspec-xetex.4ht fontspec-4ht.lua fontspec-luatex.4ht \
   geometry.4ht graphicx.4ht hyperref.4ht latex.4ht lettrine.4ht listings.4ht \
-  memoir.4ht multicol.4ht multirow.4ht quoting.4ht reading.4ht \
+  memoir.4ht multicol.4ht multirow.4ht nameref.4ht quoting.4ht reading.4ht \
   scrartcl.4ht scrbook.4ht scrreprt.4ht spanish.4ht subscript.4ht \
   titlesec.4ht tocloft.4ht wrapfig.4ht usepackage.4ht xcolor.4ht  
 	

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2016-12-16 10:19:14 UTC (rev 226)
+++ trunk/lit/tex4ht-4ht.tex	2016-12-16 13:22:54 UTC (rev 227)
@@ -3130,11 +3130,21 @@
 %
 % CVR 2013-06-28 15:00
 % 
+
+% Michal 2016-12-16 
+Bug 348: Support for amsmath environments
+
+We can easily define \`|\NR:Type| and \`|\NR:Title| in 
+\`|\Configure{@begin}{env name}{definitions}|. I didn't knew about this
+configuration until now. It seems to be useful when we need to inject something
+into the environment without messing the existing \`|\ConfigureEnv|
+definitions.
+
 \<nameref v.2 configurations\><<<
 \let\NR:Type\relax
 \let\ltx at label\label
 \def\prf:label{{\ifx \NR:Title\:UnDef \else \NR:Title\fi}%
-               {\ifx \NR:Type\:UnDef \else \NR:Type .1\fi}{}}%
+               {\ifx \NR:Type\relax \else \NR:Type .1\fi}{}}%
 \let\NR:StartSec\:StartSec
 \let\NR:no at sect\no at sect
 \def\no at sect#1#2#3#4#5#6[#7]#8{\gdef\NR:Title{\a:newlabel{#7}}%
@@ -3224,6 +3234,34 @@
          \gdef\@currentlabelname{listing}}
       \HLet\NROrg at lst@MakeCaption\:tempc
   }{}%
+  % bug [348]
+  \@ifpackageloaded{amsmath}{%
+     \def\:tempc{%
+       \gdef\NR:Title{\a:newlabel{equation}}%
+       \gdef\NR:Type{equation}%
+       \gdef\@currentlabelname{equation}%
+     }
+     \Configure{@begin}{multline}{\:tempc}
+     \Configure{@begin}{equation}{\:tempc}
+     \Configure{@begin}{boxed}{\:tempc}
+     \Configure{@begin}{equations}{\:tempc}
+     \Configure{@begin}{equation}{\:tempc}
+     \Configure{@begin}{gather*}{\:tempc}
+     \Configure{@begin}{gather}{\:tempc}
+     \Configure{@begin}{genfrac}{\:tempc}
+     \Configure{@begin}{measure@}{\:tempc}
+     \Configure{@begin}{multline*}{\:tempc}
+     \Configure{@begin}{multline}{\:tempc}
+     \Configure{@begin}{overset}{\:tempc}
+     \Configure{@begin}{smallmatrix}{\:tempc}
+     \Configure{@begin}{split}{\:tempc}
+     \Configure{@begin}{subarray}{\:tempc}
+     \Configure{@begin}{substack}{\:tempc}
+     \Configure{@begin}{underset}{\:tempc}
+     \Configure{@begin}{xleftarrow}{\:tempc}
+     \Configure{@begin}{xrightarrow}{\:tempc}
+  }{}
+
 }
 \let\T:ref=\::ref
 \def\::ref{\protect\T at ref}



More information about the tex4ht-commits mailing list