shige 03/03 2020 ---------------- "Jacques B. Siboni" wrote: | -- When recompiling solely the slave, all of the 1000 master images are moved to | .old, and the new ones are inserted as imgxxx.gif
This may be a bug of latex2html-2018.3 or later. L2h of such versions do not write image size info 'WIDTH="nnn" HEIGHT="nnn"' in the IMG tag for equations. However, because l2h uses the size info to decide to reuse images in process_undefined_environment(), it can't reuse images made at previous compilation. To workaround the problem, to use latex2html-2018.2 or earlier, or to apply the following patch: ----- From here ----- --- latex2html.pin.ORG 2019-12-29 21:03:41.052544000 +0900 +++ latex2html.pin 2020-03-03 11:39:41.900813000 +0900 @@ -3567,10 +3567,14 @@ # } # quotes will not be there with HTML 2.0 $size =~ s/\"//g if ($HTML_VERSION < 2.2); - if ($size && /\s$size\s/) { + # if ($size && /\s$size\s/) { + # 2020-03-03 shige: + if ($size && /;$size$/) { # Size is OK; recycle it! ++$global_page_num; $_ = $cached ; # ...perhaps restoring the desired size. + # 2020-03-03 shige: + s/;$size$//; s/(${PREFIX}T?img)\d+\.($IMAGE_TYPE|html)/ &rename_html($&,"$1$global_page_num.$2")/geo; } else { @@ -3924,6 +3928,8 @@ sub make_images { local($name, $contents, $raw_contents, $uucontents, $page_num, $uucontents, %page_map, $img); + # 2020-03-03 shige: + local $imgsize; # It is necessary to run LaTeX this early because we need the log file # which contains information used to determine equation alignment if ( $latex_body =~ /newpage/) { @@ -4021,7 +4027,9 @@ $contents = $latex_body{$name}; if ($page_num =~ /^\d+\#\d+$/) { # If it is a page number do { # Extract the page, convert and save it - $img = &extract_image($page_num,$orig_name_map{$page_num}); + # $img = &extract_image($page_num,$orig_name_map{$page_num}); + # 2020-03-03 shige: + ($img, $imgsize) = &extract_image($page_num,$orig_name_map{$page_num}); if ($contents =~ /$htmlimage_rx/) { $uucontents = &special_encoding($env,$2,$contents); } elsif ($contents =~ /$htmlimage_pr_rx/) { @@ -4031,6 +4039,8 @@ } if (($HTML_VERSION >=3.2)||!($contents=~/$order_sensitive_rx/)){ $cached_env_img{$uucontents} = $img; + # 2020-03-03 shige: + if ($imgsize) { $cached_env_img{$uucontents} .= ";$imgsize"; } } else { # Blow it away so it is not saved for next time delete $cached_env_img{$uucontents}; @@ -10271,7 +10281,9 @@ $result .= ">"; # } } - join('',$anch1, $result, $anch2); + # join('',$anch1, $result, $anch2); + # 2020-03-03 shige: + (join('',$anch1, $result, $anch2), $imagesize); } # MRO: added PNG support ----- 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 https://tug.org/mailman/listinfo/latex2html