9.1 Drawing Utilitis

  9.1.1 Diagrams
  9.1.2 Diagrams
  9.1.3 dratex
  9.1.4 pgf
  9.1.5 pgf
  9.1.6 psfig
  9.1.7 graphics
  9.1.8 xy
  9.1.9 pstricks
  9.1.10 pb-diagram
  9.1.11 pictex
  9.1.12 mfpic

9.1.1 Diagrams

<..configure html4 epsf..>
 \Configure{epsfsetgraph}
   {\Picture+[\PicName]{}}
   {\EndPicture}
-_-_-

9.1.2 Diagrams

<..configure html4 diagrams..>
 \ConfigureEnv{diagram}
    {\ifvmode \IgnorePar \EndP
       \Tg<div class="diagrams">\def\End:Diagrams{\Tg</div>}%
     \else \let\End:Diagrams\empty
     \fi }
    {\End:Diagrams}
    {}{}
 \Configure{diagram}
    {\Picture*{}$} {$\EndPicture}
 \Css{.diagrams {text-align: center;}}
-_-_-

9.1.3 dratex

<..configure html4 dratex..>
 \Css{div.Draw{text-align:center}}
-_-_-

9.1.4 pgf

<..configure html4 pgf..>
 \ConfigureEnv{pgfpicture}
    {\hbox\bgroup\Picture+[picture]{}}
    {\EndPicture\egroup}
    {}{}
-_-_-

9.1.5 pgf

<..configure html4 overpic..>
 \ConfigureEnv{overpic}
    {\Picture*[pic]{}}
    {\EndPicture}
    {}{}
-_-_-

9.1.6 psfig

<..configure html4 psfig..>
 <.0,32,4 psfig.>
-_-_-

<..0,32,4 psfig..>
 \Configure{psfig} {\Picture+[psfig]{}}{\EndPicture}
-_-_-

9.1.7 graphics

<..configure html4 graphics..>
 \:CheckOption{graphics-} \if:Option
    \Configure{graphics}
      {\bgroup
         \let\E:IMG=\e:IMG \let\e:IMG=\empty
       \Picture+[\a:GraphicsAlt]{ class="graphics"}}
      {\EndPicture
          \E:IMG\HCode{<!--tex4ht:graphics
          \Hnewline  name="\PictureFile"  src="\Gin@base\Gin@ext"
          \Hnewline -->}%
       \egroup}
 \else
    <.graphics quality.>
    \Configure{graphics}
      {\bgroup
         \let\E:IMG=\e:IMG \let\e:IMG=\empty
       \Picture+[\a:GraphicsAlt]{ class="graphics"}}
      {\EndPicture        \ifx\noBoundingBox\UnDefined
           <.pixels graphics width/height.>\fi
          \E:IMG\HCode{<!--tex4ht:graphics
          \Hnewline  name="\PictureFile"  src="\Gin@base\Gin@ext"
          \Hnewline -->}%
       \egroup}
 \fi
 \Css{.figure img.graphics {margin-left:10\%;}}
 \Configure{graphics*}
    {gif}
    {{\Configure{Needs}{File: \[email protected]}\Needs{}}%
     \Picture[\a:GraphicsAlt]{\[email protected] <.graphics dim.>}}
 \Configure{graphics*}
    {png}
    {{\Configure{Needs}{File: \[email protected]}\Needs{}}%
     \Picture[\a:GraphicsAlt]{\[email protected] <.graphics dim.>}}
 \Configure{graphics*}
    {jpg}
    {{\Configure{Needs}{File: \[email protected]}\Needs{}}%
     \Picture[\a:GraphicsAlt]{\[email protected] <.graphics dim.>}}
 \Configure{graphics*}
    {jpeg}
    {{\Configure{Needs}{File: \[email protected]}\Needs{}}%
     \Picture[\a:GraphicsAlt]{\[email protected] <.graphics dim.>}}
 \NewConfigure{GraphicsAlt}{1}
 \Configure{GraphicsAlt}{PIC}
 <.includegraphics dim.>
-_-_-

<..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 options
       ‘graphics-num’ or ‘graphics-’. The ‘num’ should provide
       the density of pixels in the bitmaps (e.g., 110).
    }
 \else
    \def\int:pt#1.#2<.par del.>{#1}
 \fi
-_-_-

<..graphics dim..>
 \csname a:Gin-dim\endcsname
-_-_-

<..includegraphics dim..>
 \NewConfigure{Gin-dim}{1}
 \:CheckOption{Gin-dim} \if:Option
    \Configure{Gin-dim}
      {\ifx\noBoundingBox\UnDefined
         <.graphics width/height.>%
       \else
         <.graphicx width/height.>%
       \fi
       class="includegraphics"
      }
 \else \:CheckOption{Gin-dim+} \if:Option
    \Configure{Gin-dim}
      {\ifx \Gin:ewidth\Gin@exclamation
          \ifx \Gin:eheight\Gin@exclamation
             \ifx\noBoundingBox\UnDefined
                <.graphics width/height.>%
             \fi
          \else
             height="\Gin:eheight"
          \fi
       \else
          width="\Gin:ewidth"
          \ifx \Gin:eheight\Gin@exclamation \else
             height="\Gin:eheight"
          \fi
       \fi
       class="includegraphics"
      }
 \else
    \Log:Note{for key dimensions try the option
        ‘Gin-dim’; for key dimensions when bounding box is unavailable
        try ‘Gin-dim+’; neither is recommended}
    \Configure{Gin-dim}
      {\ifx\noBoundingBox\UnDefined
         <.graphics width/height.>%
       \fi
      }
 \fi \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 width/height..>
 width="\the\Gin@req@width"
 height="\the\Gin@req@height"
-_-_-

<..graphicx width/height..>
 \ifx \Gin:ewidth\Gin@exclamation \else
    width="\Gin:ewidth"
 \fi
 \ifx \Gin:eheight\Gin@exclamation \else
    height="\Gin:eheight"
 \fi
-_-_-

9.1.8 xy

<..configure html4 xy..>
 <.32,4 xy.>
-_-_-

<..32,4 xy..>
 \Configure{xypic}
    {\Picture*{}} {\EndPicture}
 \def\:tempc{\HCode{<span class="Xy">}X\HCode{<span
    class="Y">}Y\HCode{</span>}}
 \HLet\Xy\:tempc
 \Css{span.Xy span.Y{ position:relative; top:0.35ex;left:-0.25em;}}
-_-_-

9.1.9 pstricks

<..configure html4 pst-all..>
 \ConfigureEnv{psmatrix}
    {\Picture*{}}
    {\EndPicture}
    {}{}
-_-_-

<..configure html4 pstricks..>
 \Configure{pspicture}
    {\ifvmode \ifinner\else \vfill\break\fi
     \leavevmode\fi
     \bgroup
        \ifdim \pst@dimh<\z@ \pst@dimh=-\pst@dimh \fi
        \HCode{<!--width="\ifdim \wd\pst@hbox=\z@  \the\pst@dimg
                          \else\the\wd\pst@hbox\fi"
                  height="\ifdim \ht\pst@hbox=\z@ \the\pst@dimh
                          \else \the\ht\pst@hbox\fi"-->}%
      \egroup
      \Picture+[\a:pspictureAlt]{ class="pspicture"}}
    {\EndPicture}
 \NewConfigure{pspictureAlt}{1}
 \Configure{pspictureAlt}{PIC}
-_-_-

9.1.10 pb-diagram

<..configure html4 pb-diagram..>
 \ConfigureEnv{diagram}
    {\Picture*{ class="pb-diagram"}$} {$\EndPicture} {}{}
 \Css{.pb-diagram {align:center}}
-_-_-

9.1.11 pictex

<..configure html4 pictex..>
 \Configure{pictex}
    {\:xhtml{\IgnorePar\EndP}\HCode{<div
     class="pictex">}}{\HCode{</div>}}{+[PICT]}
 \Css{div.pictex {text-align:center;}}
-_-_-

9.1.12 mfpic

<..configure html4 mfpic..>
 \expandafter \ifx\csname if@mfp@latexe\endcsname\relax
    <.non 2005 latex mpic.>
 \else
    <.2005 latex mpic.>
 \fi
-_-_-

<..non 2005 latex mpic..>
 \Configure{mfpic} {\Picture+{}} {\EndPicture}
-_-_-

<..2005 latex mpic..>
 \ConfigureEnv{mfpic} {\Picture+{}} {\EndPicture}{}{}
-_-_-