summaryrefslogtreecommitdiff
path: root/support/TeX4ht/source/tex4ht-4ht.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-03-22 03:01:37 +0000
committerNorbert Preining <norbert@preining.info>2022-03-22 03:01:37 +0000
commit51119d11f3700a5be7da086dacad56dd219a5c90 (patch)
tree004fca9000d3b9524fc2dad4bb7e01c45eb25665 /support/TeX4ht/source/tex4ht-4ht.tex
parent418f27fe2e2b233c282c7388ed4f2bf3461a958f (diff)
CTAN sync 202203220301
Diffstat (limited to 'support/TeX4ht/source/tex4ht-4ht.tex')
-rw-r--r--support/TeX4ht/source/tex4ht-4ht.tex9
1 files changed, 7 insertions, 2 deletions
diff --git a/support/TeX4ht/source/tex4ht-4ht.tex b/support/TeX4ht/source/tex4ht-4ht.tex
index c949a120c6..7786213f1d 100644
--- a/support/TeX4ht/source/tex4ht-4ht.tex
+++ b/support/TeX4ht/source/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