summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/generic
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-03-20 21:37:25 +0000
committerKarl Berry <karl@freefriends.org>2022-03-20 21:37:25 +0000
commit48b0fa5d5c888ecf98655a93fa62a933cdad3ba7 (patch)
tree8c41508d359289f82bbc54151f5669f692993d12 /Master/texmf-dist/source/generic
parentc743750319d62667800ff96a52411a65f9921be2 (diff)
only dvips graphics rules, tex4ht r1094
git-svn-id: svn://tug.org/texlive/trunk@62839 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/generic')
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/ChangeLog5
-rw-r--r--Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex9
2 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/generic/tex4ht/ChangeLog b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
index 78c55c6b7e8..295e80887e5 100644
--- a/Master/texmf-dist/source/generic/tex4ht/ChangeLog
+++ b/Master/texmf-dist/source/generic/tex4ht/ChangeLog
@@ -1,3 +1,8 @@
+2021-03-20 Michal Hoftich <michal.h21@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@freefriends.org>
* update-htfonts: add installed files, not dev.
diff --git a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
index c949a120c64..7786213f1d6 100644
--- a/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
+++ b/Master/texmf-dist/source/generic/tex4ht/tex4ht-4ht.tex
@@ -1,4 +1,4 @@
-% $Id: tex4ht-4ht.tex 1090 2022-03-16 14:38:50Z michal_h21 $
+% $Id: tex4ht-4ht.tex 1094 2022-03-20 20:29:43Z michal_h21 $
% tex tex4ht-4ht or ht tex tex4ht-4ht
%
% Copyright 2009-2022 TeX Users Group
@@ -26334,14 +26334,19 @@ Show dimensions only for pictures that have dimensions specified explicitly or u
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@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@drafttrue