exit Q/A
Controlling where the gif files get written

Addresses in the html files:

The command

\Configure{IMG}{<img\Hnewline src="foo.dir/}{" alt="}{" }{ />}

in the configuration file adds the prefix

foo.dir/

to the gif names.

The default setting uses the configuration

\Configure{IMG}{<img\Hnewline src="}{" alt="}{" }{ />}

Placement of gifs:

Add to the ‘G’ script in tex4ht.env a command to move the gif’s to the desired destination (e.g., ‘Gmv %%3 foo.dir/.’).

Addresses of symbolic gifs in the html files:

Add the following commands to the configuration file.

\Configure{htf}{1}{+}{<img\Hnewline 
   src="foo.dir/}{" alt="}{" class="}{\%s}{-\%d}{--\%x}{" />} 
\Configure{htf}{3}{+}{<img\Hnewline 
   src="foo.dir/}{" alt="}{" class="\%s-}{\%s}{-\%d}{--\%x}% 
   {" align="middle" />} 

Placement of symbolic gifs:

If ‘foo.dir/’ is not the directory used in the ‘G’ script, introduce into tex4ht.env a similar ‘F’ script for the character gif’s, e.g.,

Fdvips -Pcmz -Pamz -mode ibmvga -D 110 -f %%1 -pp %%2  > zz%%4.ps 
Fconvert -crop 0x0 -density 110x110 -transparency '#FFFFFF' zz%%4.ps %%3 
Fmv %%3 foo.dir/. 
Bitmaps within formulas

A code similar to the following one may be used to configure instructions like ‘\int_{xxx}^{yyy}’ and ‘\sum_{xxx}^{yyy}’ to produce pictorial representations within non-pictorial formulas.

\def\SubSupOp#1{% 
   \edef\temp{\expandafter\gobble\string#1}% 
   \expandafter\let\csname old\temp\endcsname=#1 
   \edef\temp{\noexpand\SUBSUPOP{\expandafter\noexpand 
                   \csname old\temp\endcsname}}% 
   \HLet#1=\temp 
} 
\def\gobble#1{} 
\def\SUBSUPOP#1{\let\curOP=#1% 
   \let\next=\putOP \let\OPsub=\empty \let\OPsup=\empty 
   \futurelet\nextop\getOP} 
\def\getOP{% 
  \ifx _\nextop \let\next=\getsub 
     \else\ifx ^\nextop \let\next=\getsup\fi\fi \next} 
\def\getsub#1#2{\def\OPsub{#2}\let\next=\putOP 
   \futurelet\nextop\getOP} 
\def\getsup#1#2{\def\OPsup{#2}\let\next=\putOP 
   \futurelet\nextop\getOP} 

\def\putOP{\Picture+{  align="middle"}{\curOP_{\OPsub}^{\OPsup}}\EndPicture} 
 
\SubSupOp\sum 
\SubSupOp\int