Note: Please also check the .log files of the compilations for hints provided by tex4ht.
There are two kinds of pictures: those created for letters, and those requested directly or indirectly for figures in the source files. The tex4ht.c utility extracts the figures from the foo.dvi file into a foo.idv file, and places in foo.lg messages of how to extract the figures. The t4ht.c utility, uses the requests listed at foo.lg, to activate the G-script from tex4ht.env for the different figures. However, if a F-script is available, it is used instead for the letters.
The command
\Configure{IMG}{<img\Hnewline src="foo.dir/}{" alt="}{" }{ />}
in the configuration file adds the prefix
foo.dir/
to the file names.
The default setting uses the configuration
\Configure{IMG}{<img\Hnewline src="}{" alt="}{" }{ />}
Add to the ‘G’ script in tex4ht.env a command to move the bitmap files to the desired destination (e.g., ‘Gmv %%3 foo.dir/.’).
Add the following commands to the configuration file.
If ‘foo.dir/’ is not the directory used in the ‘G’ script, introduce into tex4ht.env a similar ‘F’ script for the bitmaps of character, e.g.,
Explicit requests:
Implicit requests may also be tailored along the following lines, but they should be used carefully because they are not safe.
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 filename’, 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 filename "" "symbol/!" ’. It will resolve the bitmap problem for of the characters.
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.
Q. How to avoid the conversion of eps files to PNG’s, included through the \includegraphics{...} command’, each time the source file is run across tex4ht.
Compile your source with the command line ‘ htlatex filename "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).
Q. How an image can be made a thumbnail to be clicked on for bringing up the full size image.
Q. I am attempting to convert a Ph.D. thesis written in LaTeX, using a locally developed class ths.cls based on the report class, which redefines some elements of the class for local needs. The output is lacking the Table of Contents and the Lists of Figures and Tables, and the bibliography at the end is only minimally formatted.
The problems result from a lack of a configuration file for the thesis class. Try introducing a configuration file similar to the following one.
Generated August 24, 2020 - tex4ht home page