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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Mon Apr 13 21:03:22 CEST 2020


Author: michal_h21
Date: 2020-04-13 22:03:21 +0300 (Mon, 13 Apr 2020)
New Revision: 682

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-html4.tex
   trunk/lit/tex4ht-html5.tex
Log:
Fixed centering of images in figures

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2020-04-04 19:03:06 UTC (rev 681)
+++ trunk/lit/ChangeLog	2020-04-13 19:03:21 UTC (rev 682)
@@ -1,3 +1,11 @@
+2020-04-13 Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex(html4.4ht): removed CSS code that set left margin for
+	images in margins to 10%
+	* tex4ht-html5.tex (html5.4ht): fixed centering of images in floats and
+	figures.
+	https://tex.stackexchange.com/a/538431/2891
+
 2020-04-04 Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-mathjax.tex (mathjax-latex-4ht.4ht): added \fixtmathjaxsec command,

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2020-04-04 19:03:06 UTC (rev 681)
+++ trunk/lit/tex4ht-html4.tex	2020-04-13 19:03:21 UTC (rev 682)
@@ -13662,7 +13662,6 @@
          \Hnewline -->}%
       \egroup}
 \fi
-\Css{.figure img.graphics {margin-left:10\%;}}
 \Configure{graphics*}
    {gif}
    {{\Configure{Needs}{File: \Gin at base.gif}\Needs{}}%

Modified: trunk/lit/tex4ht-html5.tex
===================================================================
--- trunk/lit/tex4ht-html5.tex	2020-04-04 19:03:06 UTC (rev 681)
+++ trunk/lit/tex4ht-html5.tex	2020-04-13 19:03:21 UTC (rev 682)
@@ -295,8 +295,7 @@
    {}{}
 
 \Css{figure.float, div.figure {margin-left: auto; margin-right: auto;}}
-\Css{figure.float img {text-align:center;}}
-\Css{figure.figure img {text-align:center;}}
+\Css{figure.float img, figure.figure img {display: block; margin-left: auto; margin-right: auto;}}
 \Css{figure.figure > p {text-align:center;}}
 
 \Configure{caption}{\:xhtml{\IgnorePar\EndP}\HCode{<figcaption class="caption" ><span class="id">}}



More information about the tex4ht-commits mailing list.