\Configure{graphics}
{\bgroup
\let\E:IMG=\e:IMG \let\e:IMG=\empty
\Picture+{}}
{\EndPicture
\E:IMG\HCode{<!--tex4ht:graphics
\Hnewline name="\PictureFile" src="\Gin@base\Gin@ext"
svg:width="\the\Gin@req@width"
svg:height="\the\Gin@req@height"
\Hnewline -->}%
\egroup}
-_-_-
\:CheckOption{graphics-dim} \if:Option
<.graphics quality.>
\Configure{graphics}
{\bgroup
\let\E:IMG=\e:IMG \let\e:IMG=\empty
\Picture+{}}
{\EndPicture \ifx\noBoundingBox\UnDefined
<.pixels graphics width/height.>\fi
\E:IMG\HCode{<!--tex4ht:graphics
\Hnewline name="\PictureFile" src="\Gin@base\Gin@ext"
\Hnewline -->}%
\egroup}
\else
\fi
\ifx \gr:density\empty
\HCode{
width="\the\Gin@req@width"
height="\the\Gin@req@height"
}%
\else
\bgroup
\divide\Gin@req@width by 72
\multiply\Gin@req@width by \gr:density \relax
\divide\Gin@req@height by 72
\multiply\Gin@req@height by \gr:density \relax
\HCode{
width="\expandafter\int:pt\the\Gin@req@width<.par del.>"
height="\expandafter\int:pt\the\Gin@req@height<.par del.>"
}%
\egroup
\fi -_-_-
\def\:temp#1graphics-#2,#3<.par del.>{\def\gr:density{#2}}
\expandafter\:temp\Preamble,graphics-,<.par del.>
\ifx \gr:density\empty
\Log:Note{if included graphics are
of degraded quality, try the command line option
‘graphics-num’. The ‘num’ should provide
the density of pixels in the bitmaps (e.g., 110).
}
\else
\def\int:pt#1.#2<.par del.>{#1}
\fi -_-_-
\ifx\noBoundingBox\UnDefined
svg:width="\the\Gin@req@width"
svg:height="\the\Gin@req@height"
\fi
-_-_-
\def\svg:width{0.0pt}\def\svg:height{0.0pt}
\Configure{IMG}
{<.insert shadowing fig file.>%
\ht:special{t4ht=<draw:frame
draw:name="<.graphics file name.>"
text:anchor-type="as-char" % "paragraph"
% svg:width="...pt"
% svg:height="...pt"
draw:z-index="0"
>%
<draw:image\Hnewline
xlink:href="Pictures/}}
{\ht:special{t4ht=" \Hnewline
xlink:type="simple"
xlink:show="embed"
xlink:actuate="onLoad"
/><!--draw:name="}}
{" }
{\ht:special{t4ht=" }}
{\ht:special{t4ht=--></draw:frame>}} -_-_-
\Configure{jtree}
{\bgroup
\Configure{IMG}
{<.insert shadowing fig file.>%
\ht:special{t4ht=<draw:frame
draw:name="<.graphics file name.>"
text:anchor-type="as-char"
draw:style-name="jtree"
draw:z-index="0"
>%
<draw:image\Hnewline
xlink:href="Pictures/}}
{\ht:special{t4ht=" \Hnewline
xlink:type="simple"
xlink:show="embed"
xlink:actuate="onLoad"
/><!--draw:name="}}
{" }
{\ht:special{t4ht=" }}
{\ht:special{t4ht=--></draw:frame>}}%
}
{\egroup
} -_-_-
\OOstyles{\Hnewline
<style:style style:name="jtree"
style:family="graphic"
style:parent-style-name="Graphics">
<style:graphic-properties
style:vertical-pos="bottom"
style:vertical-rel="baseline"
style:mirror="none"
fo:margin-left="0.01em"
fo:margin-right="0.01em"
fo:margin-top="0.01em"
fo:margin-bottom="0.01em"
/>
</style:style>
}
-_-_-
\Configure{PictureAlt*+[]}
{\ht:special{t4ht>\jobname .tmp}}
{\ht:special{t4ht<\jobname .tmp}}
\Configure{PictureAlt*+}
{\let\sv:HtmlPar=\HtmlPar \let\HtmlPar=\empty
<.postscript for /Picture.>%
<.tex halign and cr/crcr.>%
\NoFonts\csname PauseMathClass\endcsname \SUBOff \SUPOff
\let\HCode=\:gobble \offinterlineskip
\let\EndPicture=\empty
\ht:special{t4ht>\jobname 1.tmp}%
}
{\ht:special{t4ht<\jobname 1.tmp}%
\let\HCode=\:HCode
\let\EndPicture=\:UnDef \let\HtmlPar=\sv:HtmlPar \SUBOn \SUPOn
\csname EndPauseMathClass\endcsname \EndNoFonts
<.tex4ht halign and cr/crcr.>%
<.delay postscript.>} -_-_-
Was \SUBOff \SUPOff. Any problems?
\def\PsCode##1{{\ht:special{\PsCodeSpecial##1}}}%
-_-_-
\iffalse{\fi
\let\sv:halign=\halign
\let\sv:cr=\cr
\let\sv:crcr=\crcr
\iffalse}\fi
\RecallTeXcr \let\halign =\TeXhalign
-_-_-
\iffalse{\fi
\let\halign=\sv:halign
\let\cr=\sv:cr
\let\crcr=\sv:crcr
\iffalse}\fi
-_-_-