[l2h] comment line in equation environment with amsmath package

Shigeharu TAKENO shige at iee.niit.ac.jp
Tue Sep 28 12:51:43 CEST 2004


shige 09/28 2004
----------------

With amsmath package, the equation environment including a 
comment line may be translated to a strange image, which include
a string "<tex2htmlcommentmark>". The following patch fixes it.
(latex2html-2002-2-1.)

----- From -----
*** styles/more_amsmath.perl.ORG	Sat Dec  2 15:15:01 2000
--- styles/more_amsmath.perl	Tue Sep 28 13:53:37 2004
***************
*** 97,104 ****
      $*=0;
      if ($labels) {
  	$labels =~ s/$anchor_mark/$tag/o;
! 	($labels , $scan);
!     } else { ($tag , $scan) }
  }
  
  $outer_math_rx = "(fl|x|xx)?align(at)?|multline|gather|(sub)?equation";
--- 97,109 ----
      $*=0;
      if ($labels) {
  	$labels =~ s/$anchor_mark/$tag/o;
! # shige 09/28 2004
! #	($labels , $scan);
!     }
! #    } else { ($tag , $scan) }
!     $scan =~ s/($comment_mark\d+) /$1\n/g;
!     if ($labels) { ($labels , $scan); }
!     else { ($tag , $scan); }			   
  }
  
  $outer_math_rx = "(fl|x|xx)?align(at)?|multline|gather|(sub)?equation";
----- 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