[l2h] Bug in generating LaTeX file for images??

Georg Denk Georg.Denk@infineon.com
Fri, 11 Jan 2002 15:24:26 +0100


Hello,

I have some problems with latex2html 2K.1beta (1.61) regarding 
the generation of the LaTeX file for the images. If I have
the following LaTeX file:

%------- start
\documentclass[12pt]{article}
\begin{document}

Formula for resistance:
\[
	\mathit{value} = 
		\frac{L_{\mathit{eff}}}%
			{W_{\mathit{eff}}}
\]
\end{document}
%------- stop

the '%' behaves somehow unexpected, as the relevant portion in the
images.tex file looks like:

%------- start
% !!! IMAGES START HERE !!!

{\newpage\clearpage
\lthtmlinlinemathA{tex2html_wrap_indisplay16}%
$\displaystyle {\frac{{L_{\mathit{eff}}}%%
			
}{{W_{\mathit{eff}}}}}$%
\lthtmlindisplaymathZ
\lthtmlcheckvsize\clearpage}
%------- stop

But the empty line gives an error during processing images.tex:

Runaway argument?
! Paragraph ended before \frac was complete.
<to be read again> 
                   \par 

and so the images are missing/incorrect. In routine revert_to_raw_tex there
are the lines

    s/$comment_mark(\d+)(\n|$|(\$))/$tmp=$verbatim{$1};$tmp2 = $3;
        '%'.$tmp.(($tmp=~ m!\n$!s)?'':"\n").$tmp2/sego;

which seem to me doing the wrong thing (especially the 
(($tmp=~ m!\n$!s)?'':"\n") part). But as I don't understand perl
as I should, I am quite helpless.

latex2html has been started as:

latex2html -no_math -html_version 3.2,table,math -split +5 -link 5 \
	-toc_depth 5 -info 0 file.tex


Any hints?

Best wishes,

	Georg