1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html
><head><!--mn26.html from mn.tex (TeX4ht, 1999-03-31 04:46:00)-->
<title>trouble shooting</title><link
rel="stylesheet" type="text/css" href="mn.css"></head><body
>
<DL > <DT><SPAN CLASS="cmtt-10">l.4 --- TeX4ht warning --- \Configure{...}? ---</SPAN><BR><SPAN CLASS="cmtt-10">! LaTeX Error: Missing \begin{document}.</SPAN>
<DD>Looks like the configuration command was inserted somewhere between <code><SPAN CLASS="cmtt-10">\usepackage[...]{tex4ht}</SPAN></code> and
<code><SPAN CLASS="cmtt-10">\begin{document}</SPAN></code>, in the root source file. Try inserting it after the <code><SPAN CLASS="cmtt-10">\begin{document}</SPAN></code> or, a much nicer approach,
into a separate configuration file.
<!--4494--><p class="noindent"><DT>Foreign content in <SPAN CLASS="cmtt-10"><TITLE>...</TITLE> </SPAN>elements
<DD>Use the <SPAN CLASS="cmtt-10">\Contribute{TITLE}{...} </SPAN>command to redefine for the these elements the harmful macros
that appear in headers of logical units like <code><SPAN CLASS="cmtt-10">\title</SPAN></code> and <code><SPAN CLASS="cmtt-10">\chapter</SPAN></code>. For instance, the definition
<code><SPAN CLASS="cmtt-10">\Contribute{TITLE}{\def\LaTeX{LaTeX}}</SPAN></code> for the source <code><SPAN CLASS="cmtt-10">\title{with \LaTeX}</SPAN></code>.
<!--4504--><p class="indent"> <DT>Problems with argument <SPAN CLASS="cmtt-10">-d... </SPAN>of t4ht
<DD>The specified directory must be augmented by a slash character <code><SPAN CLASS="cmtt-10">/</SPAN></code>.
<!--4508--><p class="indent"> <DT>Truncated and empty gifs for Xfig pictures
<DD>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.
<pre class="Verbatim"><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">\newenvironment{mypic}{\Picture*{}}{\EndPicture}</SPAN><SPAN CLASS="cmtt-10"></SPAN>
<SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">\begin{mypic}</SPAN><SPAN CLASS="cmtt-10">\input{xfig-file}</SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">\end{mypic}</SPAN><SPAN CLASS="cmtt-10"></SPAN>
</pre>
<!--4527--><p class="indent"> <DT>Quality of gifs
<DD>The conversion to gif's is controlled by the script
<pre class="Verbatim"><SPAN CLASS="cmtt-10">Gdvips</SPAN><SPAN CLASS="cmtt-10">-mode</SPAN><SPAN CLASS="cmtt-10">ibmvga</SPAN><SPAN CLASS="cmtt-10">-D</SPAN><SPAN CLASS="cmtt-10">110</SPAN><SPAN CLASS="cmtt-10">-f</SPAN><SPAN CLASS="cmtt-10">%%1</SPAN><SPAN CLASS="cmtt-10">-pp</SPAN><SPAN CLASS="cmtt-10">%%2</SPAN><SPAN CLASS="cmtt-10"></SPAN><SPAN CLASS="cmtt-10">></SPAN><SPAN CLASS="cmtt-10">tex4ht.ps</SPAN><SPAN CLASS="cmtt-10"></SPAN>
<SPAN CLASS="cmtt-10">Gconvert</SPAN><SPAN CLASS="cmtt-10">-crop</SPAN><SPAN CLASS="cmtt-10">0x0</SPAN><SPAN CLASS="cmtt-10">-density</SPAN><SPAN CLASS="cmtt-10">110x110</SPAN><SPAN CLASS="cmtt-10">-transparency</SPAN><SPAN CLASS="cmtt-10">'#FFFFFF'</SPAN><SPAN CLASS="cmtt-10">tex4ht.ps</SPAN><SPAN CLASS="cmtt-10">%%3</SPAN><SPAN CLASS="cmtt-10"></SPAN>
</pre>
<!--4534--><p class="indent"> in tex4ht.env. The quality of the gif's can be improved by replacing `<code><SPAN CLASS="cmtt-10">-mode ibmvga -D 110</SPAN></code>' with another mode
having a better resolution. The Metafont file modes.mf, and maybe also a local.mf file, list possible modes (note,
however, that your platform might not have all of these modes installed). If you'll just remove the
switches `<code><SPAN CLASS="cmtt-10">-mode ibmvga -D 110</SPAN></code>' from the dvips, you'll also likely to get better results due to a higher
resolution of the default setting. The dimensions of the gifs can be changed with the parameter `<code><SPAN CLASS="cmtt-10">-density</SPAN>
<SPAN CLASS="cmtt-10">110x110</SPAN></code>'.
</DL>
</body>
</html>
|