[l2h] Sourcing internals.pl fails
Shigeharu TAKENO
shige at iee.niit.ac.jp
Thu Sep 27 03:44:52 CEST 2018
shige 09/27 2018
----------------
Arne Wichmann wrote:
| When I do
|
| \label{Admin}
|
| I get a file named internals.pl, which is required through latex2html. This
| fails because . is not in @INC .
This is because of perl 5.26 or later. To solve the problem, to
use latex2html-2018 which is available on
https://www.ctan.org/tex-archive/support/latex2html
or, to apply the following patch to your latex2html.
----- From here -----
--- latex2html-2017.2/latex2html.pin 2017-01-24 02:14:25.000000000 +0900
+++ latex2html-2018/latex2html.pin 2018-02-02 01:52:36.000000000 +0900
@@ -2285,7 +2295,13 @@
&process_aux_file
if $SHOW_SECTION_NUMBERS || /\\(caption|(html|hyper)?((eq)?ref|cite))/;
- require ("${PREFIX}internals.pl") if (-f "${PREFIX}internals.pl");
+ if (-f "${PREFIX}internals.pl") {
+ my $file = "${PREFIX}internals.pl";
+ if ($file !~ /^\Q$dd\E/) {
+ $file = ".$dd$file";
+ }
+ require ($file);
+ }
#JCL(jcl-del)
&make_single_cmd_rx;
#
@@ -9197,6 +9279,9 @@
$print_dir = $this_dir.$dd unless ($print_dir);
if (-f "$this_dir$dd${PREFIX}images.pl") {
print STDOUT "Reusing directory $print_dir:\n";
+ if ($this_dir !~ /^\Q$dd\E/) {
+ $this_dir = ".$dd$this_dir";
+ }
local($key);
require("$this_dir$dd${PREFIX}images.pl");
}
----- 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