[tex4ht-commits] [SCM] tex4ht updated: r1094 - trunk/lit
Michal Hoftich
INVALID.NOREPLY at gnu.org.ua
Sun Mar 20 21:29:43 CET 2022
Author: michal_h21
Date: 2022-03-20 20:29:43 +0000 (Sun, 20 Mar 2022)
New Revision: 1094
Modified:
trunk/lit/ChangeLog
trunk/lit/tex4ht-4ht.tex
Log:
don't execute graphics rules with unsupported drivers
Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog 2022-03-20 16:15:35 UTC (rev 1093)
+++ trunk/lit/ChangeLog 2022-03-20 20:29:43 UTC (rev 1094)
@@ -1,3 +1,8 @@
+2021-03-20 Michal Hoftich <michal.h21 at gmail.com>
+
+ * tex4ht-4ht.tex (graphics.4ht): don't execute graphics rules when
+ user selected other driver than dvips.
+
2022-03-20 Karl Berry <karl at freefriends.org>
* update-htfonts: add installed files, not dev.
Modified: trunk/lit/tex4ht-4ht.tex
===================================================================
--- trunk/lit/tex4ht-4ht.tex 2022-03-20 16:15:35 UTC (rev 1093)
+++ trunk/lit/tex4ht-4ht.tex 2022-03-20 20:29:43 UTC (rev 1094)
@@ -26334,14 +26334,19 @@
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.
+the .xbb file works. We execute these rules only with the default dvips driver. If user selects explicitly
+other drivers, it would result in a compilation error.
+
\<fix graphics\><<<
+\def\Gin:defaultdriver{dvips.def}
+\ifx\Gin at driver\Gin:defaultdriver%
\DeclareGraphicsRule{.png}{bmp}{.xbb}{}
\DeclareGraphicsRule{.jpg}{bmp}{.xbb}{}
\DeclareGraphicsRule{.gif}{bmp}{.xbb}{}
\DeclareGraphicsRule{.pdf}{bmp}{.xbb}{}
\DeclareGraphicsRule{.svg}{bmp}{.xbb}{}
+\fi
>>>
%\expandafter\def\csname c:graphics-file:\endcsname#1{\Gin at drafttrue
More information about the tex4ht-commits
mailing list.