Debian Codegraph @

texmf-dist/tex/generic/tex4ht/graphics.4ht

raw
1 % graphics.4ht (2024-03-07-13:56), generated from tex4ht-4ht.tex
2 % Copyright 1997-2009 Eitan M. Gurari
3 % Copyright 2009-2024 TeX Users Group
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either
7 % version 1.3c of this license or (at your option) any
8 % later version. The latest version of this license is in
9 % http://www.latex-project.org/lppl.txt
10 % and version 1.3c or later is part of all distributions
11 % of LaTeX version 2005/12/01 or later.
12 %
13 % This work has the LPPL maintenance status "maintained".
14 %
15 % The Current Maintainer of this work
16 % is the TeX4ht Project <http://tug.org/tex4ht>.
17 %
18 % If you modify this program, changing the
19 % version identification would be appreciated.
20 \immediate\write-1{version 2024-03-07-13:56}
21
22
23 \expandafter\let\csname includegraphics \endcsname\includegraphics
24 \def\includegraphics{\expandafter\protect\csname includegraphics \endcsname}
25 \def\grf:removequote"#1"{#1}
26 \def\grf:thrashname#1\relax{}
27 \def\grf:fixquotes{%
28 \@ifnextchar"{\edef\Gin@base{\expandafter\grf:removequote\Gin@base}\grf:thrashname}{\grf:thrashname}}
29 \def\grp:warning#1{\no:bound#1(no BoundingBox)//\:warning{#1}}
30 \def\no:bound#1(no BoundingBox)#2//{\gdef\noBoundingBox{#2}\ifx
31 \noBoundingBox\empty \global\let\noBoundingBox\:UnDef\fi}
32 \let\:tempc\Gin@setfile
33 \pend:defIII\:tempc{\a:graphics
34 \global\let\noBoundingBox\:UnDef
35 \let\@latex@error\grp:warning \let\@ehc\empty}
36 \append:defIII\:tempc{\b:graphics\grf:gobble\leavevmode grf:gobble}
37 \HLet\Gin@setfile\:tempc
38 \NewConfigure{graphics*}[2]{%
39 \expandafter\ifx \csname :.#1\endcsname\relax
40 \pend:defIII\n:Gin@setfile:{\csname :.#1\endcsname}%
41 \fi
42 \def\:temp{#2}\ifx \:temp\empty
43 \expandafter\let\csname :.#1\endcsname\:UnDef
44 \else
45 \expandafter\def\csname :.#1\endcsname{\edef\:temp{\detokenize{.#1}}%
46 \ifx \:temp\Gin@ext \let\a:graphics\relax
47 \def\G:cnfg{#2}\expandafter\grf:gobble \fi}%
48 \fi }
49 \NewConfigure{graphics}{2}
50 \def\grf:gobble#1\leavevmode#2grf:gobble{%
51 \PictureOff\expandafter\grf:fixquotes\Gin@base\relax#1\PictureOn \G:cnfg \let\G:cnfg\relax}
52 \let\G:cnfg\relax
53
54 \let\old:GreadEps\Gread@eps
55 \def\Gread@eps#1{\old:GreadEps{"#1"}}
56 \def\if:boundingbox#1#2{\ifdim\Gin@req@width=\Gin@nat@width\ifx\noBoundingBox\UnDefined#1\else#2\fi\else#1\fi}
57 \def\Gin:defaultdriver{dvips.def}
58 \ifx\Gin@driver\Gin:defaultdriver%
59 \DeclareGraphicsRule{.png}{bmp}{.xbb}{}
60 \DeclareGraphicsRule{.jpg}{bmp}{.xbb}{}
61 \DeclareGraphicsRule{.jpeg}{bmp}{.xbb}{}
62 \DeclareGraphicsRule{.gif}{bmp}{.xbb}{}
63 \DeclareGraphicsRule{.pdf}{bmp}{.xbb}{}
64 \DeclareGraphicsRule{.svg}{bmp}{.xbb}{}
65 \fi
66
67 \Hinput{graphics}
68 \endinput
69