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 <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> 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
 [EMAIL PROTECTED]   TEL(&FAX): +81-257-22-8161
+========================================================+

_______________________________________________
latex2html mailing list
[EMAIL PROTECTED]
http://tug.org/mailman/listinfo/latex2html

Reply via email to