Increase the density (number of dots per inch) when converting the pictures, and then sub-sample the picture. Specifically, replace in ‘tex4ht.env’ the switch
with the switch
or with another switch of the form
The -density switch increases the number of pixels per inch, and the -geometry option reduces that number. The process smoothes (anti-aliases) the edges. Typically screens display about 72 to 100 dots per inch.
The type of fonts in use may also affect the quality of the output. In particular, Type 1 (scalable outlines) fonts offer better outcome than Type 3 (bitmapped) fonts.
The quality of the bitmaps of EPS figures may be improved by converting the figures directly, without transmitting them through the dvi code. For instance, the \includegraphics command in the presence of the following configuration provides such a route.
The following script provides a more efficient and general approach.
Such a behavior might result from pictures which end up off the dvi page limits. A larger paper size may be requested from dvips through the switch ‘-T offset’ (e.g., -T 14in,14in). The dvips command is activated from tex4ht.env.
Some Xfig files are made up of overlapping picture environments, with TeX4ht viewing the components as defining independent figures. The problem can be solved by importing the Xfig files into pictorial environments of TeX4ht.
Alternatively, PDF-based translations into bitmaps might also offer a solution.
The TeX engine might require an update of a search directory: the ls-R database for installations employing kpathsea (run texhash), the data base directory in the case of MiKTeX (select tart -> Programs -> MiKTeX -> Refresh', or run \`'initexmf -u' from a DO session, to update it).
To display the SYMBOL fonts in Netscape on Linux add
to the ~/.Xdefaults file
Consider adding the switch ‘-DHAVE_DIRENT_H’ to the command line. For instance,
gcc -o tex4ht tex4ht.c -DENVFILE='"path/tex4ht.dir/texmf/tex4ht/base/unix/tex4ht.env"' -DHAVE_DIRENT_H
Remove undesirable trailing characters in the lines of the scripts, introduced by the utilities which download the files.
DOS/WINDOW platforms use an endline pair of characters: a carriage return and a line feed (0Dx,0Ax hexadecimal; 13,10 decimal). MAC platforms use only a single carriage feed character (0Dx; 13dec). UNIX platforms use only a single line feed character (0Ax; 10 dec).
In some platforms, the operating systems pass on the quotes of the parameters of htlatex, httex, and httexi to the utilities tex4ht and t4ht. In such cases, the utilities issue complaints of the above nature for file names ‘xxx’ other than those being compiled. The problem can be resolved by installing a filter named ‘htcmd’, and submitting the tex4ht and t4ht commands to the filter. Backslash characters ‘\’ might need replacements with double backslash characters ‘\\’ or forward slash characters ‘/’.
For instance, if htlatex.bat contains a command line of the form ‘C:\tex4ht\t4ht %1 %4’, then after introducing the filter the modified command line will take the form ‘C:\\tex4ht\\htcmd C:\\tex4ht\\t4ht %1 %4’.
The switch -hV on the calling tex4ht command shows where the file is being searched. The following are possible solutions to the problem.
Make sure that the ‘S’ records in tex4ht.env don’t end with invisible spaces, and that the file ends with the record ‘% end of file’.
The specified directory must be augmented by a slash character /.
Gconvert -crop 0x0 -density 110x110 -transparent '#FFFFFF' zz%%4.ps %%3
For instance, use
Gc:\TeX\Imagick\convert
instead of
Gconvert
Try replacing the given script with the following non-concurrent script.
Use the \Configure{@TITLE}{...} command to redefine for the these elements the harmful macros that appear in headers of logical units like \title and \chapter. For instance, the definition \Configure{@TITLE}{\def\LaTeX{LaTeX}} for the source \title{with \LaTeX}.
Commands within titles of divisions might need protection when transported by tex4ht to other locations. The command \Configure{NoSection}{..before...}{...after...} may be used for such a purpose.
The dvi code produced by tex4ht is not valid for use with other utilities. Recompile the source file without the presence of tex4ht, to provide a proper code to your dvi viewer.
This option currently relies on the JavaScript utility overlib.js of Erik Bosrup. The file might need to be fixed at line 234, by introducing ‘return "";’ instead of ‘return;’ (an already reported problem).
Subscripts and superscripts are among the weakest points of tex4ht. In order to recognize them for non-bitmap representations, TeX4ht changes the category codes of ‘^’ and ‘_’, upon reaching the \begin{document} instruction, and ignores the operations if introduced earlier.
The ideal solution would have been to get the superscript and subscript operations, as well as the empty bases ‘{}’, marked upon request by the native compilers in the dvi code. Currently, that is just a good night dream.
The solutions I use are,
for a source test.tex, and a compilation invoked through the command ‘mzlatex test "test"’.