[l2h] Re: label and fleqn
Shigeharu TAKENO
shige at iee.niit.ac.jp
Sat Jun 19 14:11:16 CEST 2004
shige 06/19 2004
----------------
I found an answer for my old following problem:
> Date: Tue, 4 Mar 2003 20:41:12 +0900 (JST)
> From: Shigeharu TAKENO <shige at iee.niit.ac.jp>
> To: latex2html at tug.org
> Subject: label and fleqn
>
>
> shige 03/04 2003
> ----------------
>
> I found some strange features of latex2html about \label command
> position and fleqn option.
>
> [1] From the following source:
>
> \documentclass{article}
> \begin{document}
> This is a test. 1
> \begin{equation}
> \label{test1}
> \int_0^1\sin x dx
> \end{equation}
> This is a test. 2
> \begin{equation}
> \int_0^2\sin x dx
> \label{test2}
> \end{equation}
> (\ref{test1}),(\ref{test2})
> \end{document}
>
> latex makes 2 equations with large integral correctly. But by
> latex2html, 1st integral becomes to small.
>
> [2] Using "fleqn" option of documentclass for the above source,
> latex2html fails at making the 2nd image. In fact, images.dvi
> have only 1 page (1 image). Moreover, the 1st equation does not
> seem to be positioned correctly (over the right boundary).
The following patch fixes it (for latex2html.pin 1.71 2004/01/06
23:49:54).
----- from here -----
*** latex2html-2002-2-1/latex2html.pin.orig Thu Jan 8 15:15:01 2004
--- latex2html-2002-2-1/latex2html.pin Sat Jun 19 21:09:39 2004
***************
*** 3496,3502 ****
}
$fullcontents = $contents; # save for later \label search.
# MRO: replaced $* with /m
! $contents =~ s/\n?$labels_rx(\%([^\n]+$|$EOL))?/\n/gm;
local($tmp) = $contents;
$tmp =~ s/^((\\par|\%)?\s*\n)+$//g;
--- 3496,3503 ----
}
$fullcontents = $contents; # save for later \label search.
# MRO: replaced $* with /m
! # $contents =~ s/\n?$labels_rx(\%([^\n]+$|$EOL))?/\n/gm;
! $contents =~ s/\n?\s*$labels_rx(\%([^\n]+$|$EOL))?/\n/gm;
local($tmp) = $contents;
$tmp =~ s/^((\\par|\%)?\s*\n)+$//g;
----- to here -----
+========================================================+
Shigeharu TAKENO NIigata Institute of Technology
kashiwazaki,Niigata 945-1195 JAPAN
shige at iee.niit.ac.jp TEL(&FAX): +81-257-22-8161
+========================================================+
More information about the latex2html
mailing list