shige 09/06 2017
----------------

latex2html converts the \small command to <SMALL class="SMALL">,
and the effect quits at the \normalsize command by putting
</SMALL>.

The \scriptsize command is translated to <SMALL CLASS="SCRIPTSIZE">
similarly, but the effect is not quited at the \normalsize command.

This is for a pattern matching bug ("scriptsize" may match "sc"
included in $fontchange_rx). The following patch may fix the
problem.

----- From here -----
--- latex2html-2017.2/latex2html.pin.ORG        2017-06-07 14:48:49.000000000 
+0900
+++ latex2html-2017.2/latex2html.pin    2017-07-04 19:49:26.956183000 +0900
@@ -4907,7 +4907,7 @@
                    $cmd_trans =~ m|</.*$|;
                    $pc_after = $` . $pc_after unless ($` =~ /^<>/);
                    push(@$open_tags_R, $cmd)
-                       if ($cmd =~ 
/$fontchange_rx|$fontweight_rx|$sizechange_rx/o);
+                       if ($cmd =~ 
/$sizechange_rx|$fontchange_rx|$fontweight_rx/o);
                }
            } elsif ($mathentity) {
 #print "\nM-ENT:$mathentity :  ";
@@ -12371,12 +12371,12 @@
        $closures .= $post unless ($pre =~ /^<>/);
        print STDOUT "\n</$next>" if $VERBOSITY > 2;
 
-       if ($next =~ /$fontchange_rx/) {
+       if ($next =~ /$sizechange_rx/) {
+           # discard it
+       } elsif ($next =~ /$fontchange_rx/) {
            $font = $next unless ($font);
        } elsif ($next =~ /$fontweight_rx/) {
            $fontwt = $next unless ($fontwt);
-       } elsif ($next =~ /$sizechange_rx/) {
-           # discard it
        } else {
            unshift (@tags, $next);
            print STDOUT "\n<<$next>" if $VERBOSITY > 2;
----- To here -----

+========================================================+
 Shigeharu TAKENO     NIigata Institute of Technology
                       kashiwazaki,Niigata 945-1195 JAPAN
 sh...@iee.niit.ac.jp   TEL(&FAX): +81-257-22-8161
+========================================================+
_______________________________________________
latex2html mailing list
latex2html@tug.org
http://tug.org/mailman/listinfo/latex2html

Reply via email to