[l2h] Re: latex2html
Ross Moore
ross@ics.mq.edu.au
Tue, 11 Dec 2001 08:33:29 +1100 (EST)
> Hello,
>
> Thanks for the prompt response. I changed the temporary dirctory
> as you suggested, it worked a step forward, but still had
> problems. The script of the execution of latex2html
> is attached below, could you take a look
> again? It looks like I am one step away from getting the thing
> works. Thanks.
>
> ps. I also noticed at the bottom it says "unkown command xing".
> Why is that? (xing is my last name).
It's definitely part of the problem.
The use of *both* `\' and `/' as directory delimiters
is screwing up the works.
At some point, \xing has been put into the file in a place
that doesn't result in any output, but nevertheless
LaTeX2HTML think it needs to be expanded as a macro.
That's only a minor thing.
The major problem is related to
>
> Error (Unlink): Unlink "TMP\l2h326335" failed: No such file or directory
> at C:\TEXUTILS\L2H\BIN/latex2html.bat line 9043
>
>
> Files: l2h326335 in C:\xing\test\TMP are still in use.
This *cleanup* is happening much too soon.
It is supposed to be done *after* the image-generation has been
completed, not before.
This call to pnmcrop fails, perhaps because some of the files have been
removed already ...
> GS>showpage
> GS>quit
>
> AFPL Ghostscript 7.03 (2001-10-20)
> Copyright (C) 2001 artofcode LLC, Benicia, CA. All rights reserved.
> This software comes with NO WARRANTY: see the file PUBLIC for details.
> GS>GS>>>showpage, press <return> to continue<<
> GS>>>showpage, press <return> to continue<<
Strange that Ghostscript has apparently been called twice here.
> GS>Running "C:\TEXUTILS\NETPBM\BIN\pnmcrop.exe < c:\xing\l2h223001\p319973.pnm > c:\xing\l2h223001\p319973.t01"
> Bad command or file name
> pstoimg.bat: Error: "C:\TEXUTILS\NETPBM\BIN\pnmcrop.exe < c:\xing\l2h223001\p319973.pnm > c:\xing\l2h223001\p319973.t01" produced empty file
Is this running in the shell, or within Ghostscript ?
Does the directory \xing\l2h223001 still exist at this point ?
You should be able to hack around the problem by redefining the &cleanup
subroutine within a .latex2html-init file.
Simply insert a line:
sub cleanup {}
But then you will need to remove the temporary directory yourself,
or just leave it lying around, taking up disk space.
Someone more experienced with your platform/OS will need to examine
more closely why things seem to be happening in the wrong order.
I cannot do this easily myself.
(Needless to say, this problem does not occur on other platforms,
though it has been reported before, for Windows 2000.)
Hope this helps,
Ross Moore