1.2.7 Graphics

<..configure ooffice graphics..>
 \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

<..pixels graphics width/height..>
 \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
-_-_-

<..graphics quality..>
 \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
-_-_-

<..configure ooffice graphics..>+
 \Configure{graphics*}
    {gif}
    {\Picture[IMG]{\[email protected] <.graphics dimensions.> }}
 \Configure{graphics*}
    {png}
    {\Picture[IMG]{\[email protected] <.graphics dimensions.> }}
 \Configure{graphics*}
    {jpg}
    {\Picture[IMG]{\[email protected]  <.graphics dimensions.> }}
 \Configure{graphics*}
    {jpeg}
    {\Picture[IMG]{\[email protected] <.graphics dimensions.> }}
-_-_-

 
 \Configure{graphics*}
    {eps}
    {\Picture[IMG]{\[email protected]  <.graphics dimensions.> }}

<..graphics dimensions..>
 \ifx\noBoundingBox\UnDefined
    svg:width="\the\Gin@req@width"
    svg:height="\the\Gin@req@height"
 \fi
-_-_-

<..configure ooffice tex4ht..>+
 \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 ooffice pst-jtree..>
 \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
   }
-_-_-

<..configure ooffice pst-jtree..>+
 \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>
 }
-_-_-

<..insert shadowing fig file..>
 \ht:special{t4ht><.graphics file name.>.4og}%
 \ht:special{t4ht*>}%
 \ht:special{t4ht<<.graphics file name.>.4og}%
 \OOmanifest{<.graphics obj manifest.>}%
-_-_-

<..graphics file name..>
 \PictureFile
-_-_-

<..configure ooffice tex4ht..>+
 \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?

<..postscript for /Picture..>
 \def\PsCode##1{{\ht:special{\PsCodeSpecial##1}}}%
-_-_-

<..tex halign and cr/crcr..>
 \iffalse{\fi
 \let\sv:halign=\halign
 \let\sv:cr=\cr
 \let\sv:crcr=\crcr
 \iffalse}\fi
 \RecallTeXcr \let\halign =\TeXhalign
-_-_-

<..tex4ht halign and cr/crcr..>
 \iffalse{\fi
 \let\halign=\sv:halign
 \let\cr=\sv:cr
 \let\crcr=\sv:crcr
 \iffalse}\fi
-_-_-

<..delay postscript..>
 \let\PsCode=\relax
-_-_-