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

michal_h21 at gnu.org.ua michal_h21 at gnu.org.ua
Thu Sep 12 10:56:03 CEST 2019


Author: michal_h21
Date: 2019-09-12 11:56:02 +0300 (Thu, 12 Sep 2019)
New Revision: 602

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
   trunk/lit/tex4ht-html4.tex
   trunk/lit/tex4ht-ooffice.tex
Log:
Fixed support for image dimensions

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2019-09-10 10:52:32 UTC (rev 601)
+++ trunk/lit/ChangeLog	2019-09-12 08:56:02 UTC (rev 602)
@@ -1,3 +1,10 @@
+2019-09-12 Michal Hoftich  <michal.h21 at gmail.com>
+
+	* tex4ht-html4.tex (html4.4ht),
+	tex4ht-ooffice.tex (ooffice.4ht),
+	tex4ht-4ht.tex (graphics.4ht): fixed support for image dimensions, tex4ht
+	will try to explicitly set them when possible.
+
 2019-09-10 Michal Hoftich  <michal.h21 at gmail.com>
 
 	* tex4ht-html4.tex (html4.4ht),

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2019-09-10 10:52:32 UTC (rev 601)
+++ trunk/lit/tex4ht-4ht.tex	2019-09-12 08:56:02 UTC (rev 602)
@@ -25106,6 +25106,12 @@
 \def\Gread at eps#1{\old:GreadEps{"#1"}}
 >>>
 
+Show dimensions only for pictures that have dimensions specified explicitly or using the .xbb file
+
+\<fix graphics\><<<
+\def\if:boundingbox#1#2{\ifdim\Gin at req@width=\Gin at nat@width\ifx\noBoundingBox\UnDefined#1\else#2\fi\else#1\fi}
+>>>
+
 %\expandafter\def\csname c:graphics-file:\endcsname#1{\Gin at drafttrue
 %   \def\Gin at setfile##1##2##3{%
 %     \def\:temp####1####2{#1}\:temp{##3}{\Gin at base}}}
@@ -25177,7 +25183,7 @@
 
 \EndVerbatim
 
-Fix for XeTeX graphics - PDF inclusion doesn't work with default driver, 
+Fix for XeTeX graphics - PDF inclusion doesn't work with the default driver, 
 dvips needs to be used instead
 
 \<use package\><<<

Modified: trunk/lit/tex4ht-html4.tex
===================================================================
--- trunk/lit/tex4ht-html4.tex	2019-09-10 10:52:32 UTC (rev 601)
+++ trunk/lit/tex4ht-html4.tex	2019-09-12 08:56:02 UTC (rev 602)
@@ -13772,7 +13772,7 @@
        `Gin-dim'; for key dimensions when bounding box is unavailable 
        try `Gin-dim+'; neither is recommended}
    \Configure{Gin-dim}
-     {|<graphics width/height|>}
+   {\if:boundingbox{|<graphics width/height|>}{}}
 \fi \fi
 >>>
 

Modified: trunk/lit/tex4ht-ooffice.tex
===================================================================
--- trunk/lit/tex4ht-ooffice.tex	2019-09-10 10:52:32 UTC (rev 601)
+++ trunk/lit/tex4ht-ooffice.tex	2019-09-12 08:56:02 UTC (rev 602)
@@ -1065,8 +1065,7 @@
 
 
 \<graphics dimensions\><<<
-svg:width="\the\Gin at req@width"
-svg:height="\the\Gin at req@height"
+\if:boundingbox{svg:width="\the\Gin at req@width" svg:height="\the\Gin at req@height"}{}
 >>>  
 
 Enable supported image extensions out of the box.



More information about the tex4ht-commits mailing list