Discussion:
[l2h] Sourcing internals.pl fails
Arne Wichmann
2018-09-25 11:34:47 UTC
Permalink
Hi...

When I do

\label{Admin}

I get a file named internals.pl, which is required through latex2html. This
fails because . is not in @INC .

Thanks for latex2html!

AW
--
[...] If you don't want to be restricted, don't agree to it. If you are
coerced, comply as much as you must to protect yourself, just don't support
it. Noone can free you but yourself. (crag, on Debian Planet)
Arne Wichmann (***@saar.de)
Shigeharu TAKENO
2018-09-27 01:44:52 UTC
Permalink
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
***@iee.niit.ac.jp TEL(&FAX): +81-257-22-8161
+========================================================+

Loading...