67.1 Gif for DraTex


Dimensions
Definition of /Draw.../EndDraw in DraTeX

MOVE INTO DraTeX.

The comand ‘\Draw’ gives ‘\Picture*{}’ and the option ‘\Draw[replacement]’ gives ‘\Picture*[replacement]{}’.

<..dratex.4ht..>
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 % dratex.4ht                            2014-07-12-22:36 %
 % Copyright (C) 1997--2009       Eitan M. Gurari         %
 <.TeX4ht copyright.>
   <.dratex.sty.>
 \Hinput{dratex}
 \endinput
 -_-_-

<..dratex.sty..>
    \Define\html:Draw{<.definition of /:Draw in DraTeX.>%
       }
 
    \let\old:Draw=\:Draw
    \def\:Draw{%
       \ifx \EndPicture\:UnDef
          \expand:after{<.html into /Draw.>}%
       \else   \expandafter\old:Draw \fi }
    <.utilities for /:Draw.>
    <.arguments of Draw into IMG.>
    <.image maps for /Draw.>
 -_-_-

To avoid cloging the memory, when possible, move the pictures to new pages.

<..html into /Draw..>
 \ifvmode \vfill\break \fi
 \pic:cond\:GifDraw\html:Draw
 -_-_-

We get into ‘\Draw...\EndDraw’ with the following \futurelet, so we’ll better ger the catcodes right.

<..utilities for /:Draw..>
 \def\:GifDraw{\bgroup\:DraCatCodes   \futurelet\:tempa\gif:draw}
 \def\gif:draw{%
   \ifx \:tempa[\g:fdr\g:ifdraw
   \else        \g:fdr\gi:fdraw \fi}
 \def\g:ifdraw[#1]{\Picture*[#1]{ \a:@Picture{Draw}}\html:Draw}
 \def\gi:fdraw{\Picture*{ \a:@Picture{Draw}}\html:Draw}
 \def\g:fdr{\egroup\a:Draw\append:def\end:condpic{\b:Draw}\expandafter}
 \NewConfigure{Draw}{2}
 -_-_-

<..html into /EndDraw..>
 <.measure dimension of drawing.>%
 \global\let\in:pic=\empty
 \box\:box    \end:condpic
 \global\let\in:pic=\:UnDef
 -_-_-