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

Michal Hoftich INVALID.NOREPLY at gnu.org.ua
Thu Aug 12 22:24:35 CEST 2021


Author: michal_h21
Date: 2021-08-12 20:24:34 +0000 (Thu, 12 Aug 2021)
New Revision: 972

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-4ht.tex
Log:
moved .xbb declarations from graphicx to graphics

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2021-08-12 20:15:30 UTC (rev 971)
+++ trunk/lit/ChangeLog	2021-08-12 20:24:34 UTC (rev 972)
@@ -3,6 +3,8 @@
 	* tex4ht-ooffice.tex (ooffice.4ht): added support for SVG image inclusion.
 	* tex4ht-ooffice.tex (ooffice.4ht): fixed support for images created by
 	\Picture+{} and \Picture+{} commands.
+	* tex4ht-4ht.tex (graphics.4ht, graphicx.4ht): moved mapping to .xbb files
+	from graphicx.4ht to graphics.4ht, so they work with both packages.
 
 2021-08-03  Michal Hoftich  <michal.h21 at gmail.com>
 

Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex	2021-08-12 20:15:30 UTC (rev 971)
+++ trunk/lit/tex4ht-4ht.tex	2021-08-12 20:24:34 UTC (rev 972)
@@ -25920,6 +25920,18 @@
 \def\if:boundingbox#1#2{\ifdim\Gin at req@width=\Gin at nat@width\ifx\noBoundingBox\UnDefined#1\else#2\fi\else#1\fi}
 >>>
 
+We need to find bounding boxes of images. Graphics support the .xbb file that contain this information.
+It is necessary to provide the DeclareGraphicsRule commands for supported image formats so 
+the .xbb file works.
+
+\<fix graphics\><<<
+\DeclareGraphicsRule{.png}{bmp}{.xbb}{}
+\DeclareGraphicsRule{.jpg}{bmp}{.xbb}{}
+\DeclareGraphicsRule{.gif}{bmp}{.xbb}{}
+\DeclareGraphicsRule{.pdf}{bmp}{.xbb}{}
+\DeclareGraphicsRule{.svg}{bmp}{.xbb}{}
+>>>
+
 %\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}}}
@@ -26037,11 +26049,6 @@
    \fi
    \Gin:esetsize
 }
-\DeclareGraphicsRule{.png}{bmp}{.xbb}{}
-\DeclareGraphicsRule{.jpg}{bmp}{.xbb}{}
-\DeclareGraphicsRule{.gif}{bmp}{.xbb}{}
-\DeclareGraphicsRule{.pdf}{bmp}{.xbb}{}
-\DeclareGraphicsRule{.svg}{bmp}{.xbb}{}
 
 \NewConfigure{rotatebox}{2}
 \pend:def\Grot at box{\a:rotatebox}



More information about the tex4ht-commits mailing list.