\Configure{graphics}...............2
#1 before \includegraphics
#2 after \includegraphics
Examples:
\Configure{graphics}
{\Picture+[PIC]{ class="graphics"}}
{\EndPicture }
\Configure{graphics}
{\bgroup
\Configure{IMG}
{\ht:special{t4ht=<img src="}}
{\ht:special{t4ht=" alt="}}
{" }
{\ht:special{t4ht=" }}
{}%
\Picture+[PIC]{}}
{\EndPicture
\def\temp{.pstex}\expandafter\ifx
\csname Gin@ext\endcsname\temp
\HCode{ width="75\%" }\fi
\HCode{ />}%
\egroup}
\Configure{graphics*}..............2
#1 extension name
#2 insertion
\Gin@base (file name), \Gin@ext, \Gin@req@width, \Gin@req@height,
\noBoundingBox (defined iff bounding box is unknown)
Allows to configure tex4ht for graphics files named in
the \includegraphics macro, based on the type of the files.
An empty insertion #2 cancels previous requests for the
specified extension.
Example:
\Configure{graphics*}
{jpg}
{\Picture[pict]{\csname Gin@base\endcsname.jpg}}
\Configure{graphics*}
{wmf}
{\Needs{"convert \csname Gin@base\endcsname.wmf
\csname Gin@base\endcsname.gif"}%
\Picture[pict]{\csname Gin@base\endcsname.gif
width="\expandafter\the\csname
Gin@req@width\endcsname"
height="\expandafter\the\csname
Gin@req@height\endcsname"}%
}
\Configure{graphics*}
{eps}
{\openin15=\csname Gin@base\endcsname\PictExt\relax
\ifeof15
\Needs{"convert \csname Gin@base\endcsname.eps
\csname Gin@base\endcsname\PictExt"}%
\fi
\closein15
\Picture[pict]{\csname Gin@base\endcsname\PictExt}%
}
Note: Arguments of the \includegraphics command such as angle and
scale in
\includegraphics[angle=-90,scale=0.5]{fig.eps}
are not known to the given figure (e.g., to fig.eps). To be
taken into account, the scripts should handle the transformations
they request (e.g., in \csname Grot@angle\endcsname,
\csname Gscale@x\endcsname, \csname Gscale@y\endcsname)
-_-_-