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 -T 14in,14in -Pcmz -Pamz -mode ibmvga -D 110 -f %%1 -pp %%2  > zz%%4.ps 
Fconvert -crop 0x0 -density 110x110 -transparent '#FFFFFF' zz%%4.ps %%3 
Fmv %%3 foo.dir/. 
Conditional Bitmap Conversion for Included Graphic Files

Q. How to avoid the conversion of eps files to gif’s, included through the \includegraphics{...} command’, each time the source file is run across tex4ht.

Compile your source with the command line ‘ htlatex foo "html,info" ’, and check the log file for the information provided there. In particular, the ‘\Configure{graphics*} {wmf} ...’ example may be adapted for dealing with eps files, where a conditional conversion is requested within the ‘\Needs{"..."}’ command (possibly indirectly through a call to a script for doing he job).

Avoiding Bitmaps within formulas

Q. I found that some equations have smaller fonts than the others. I wonder why the size of the equations changes along the document.

Some equations and symbols are converted to bitmaps-I guess they are the parts you are concerned about.

If you try the command ‘ mzlatex foo ’, provided you have the xhlatex-like script of mzlatex configured, you’ll get the bitmaps removed in favor of unicode symbols and mathml formulas. In such a case, one will need a mathml-enabled browser to view the outcome.

If you don’t care using the MS SYMBOL font, which non-pc browsers are likely not to recognize, try the command ‘ htlatex foo "" "symbol/!" ’. It will resolve the bitmap problem for of the characters.

Setting 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