[l2h] LaTeX2HTML-2K for Win32: thanks, and a question

Alan Bridle abridle@nrao.edu
Fri, 02 Mar 2001 10:07:27 -0500


Ross Moore wrote:
> 
> > I have recently installed latex2html-2K.1beta and MiKTeX 2.0 on
> > a PC running Windows NT4, following the excellent instructions
> > in the guide written by Luis Seidel Gomez de Quero and Steve
> > Mayer (version 1.4 February 2000).  I am running ActivePerl
> > 5.6.0.623.
> 
> Is there an easy URL for this, to link to from various L2H sites?

I got ActivePerl for Windows from

http://www.activestate.com/Products/ActivePerl/download.html

> 
> > I normally process my LaTeX files to .dvi keeping any included
> > .eps graphics in the same input directory as my .tex source.
> > When converting the same .eps graphics into .gif images,
> > latex2html-2K.1beta is looking for them only in the output
> > subdirectory (where it writes images.tex), not in the input
> > directory. This makes it necessary to copy the .eps input files
> > into the output subdirectory before running latex2html, or to
> > run it with $NO_SUBDIR = 1; (both work around the issue, but
> > running with the default settings and all of my .tex and .eps
> > files in the same input directory fails because latex2html
> > cannot find the .eps files during the image conversion step).
> 
> Are you using  \includegraphics from the graphics/graphicx
> LaTeX packages ?
> This has code to take into account that extra directory level.

No, I was using the epsf.sty and calling the files with epsffile.
I saw that you had an epsfig.perl that says it implements epsf.sty, 
so I was soldiering on with it.

I think the "problem" in the Win32 version arises when latex2html 
runs LaTeX on images.tex, which is in the subdirectory if you have 
set $NO_SUBDIR = 0;  At that point it needs to "remember" that the 
.eps graphics were in the home directory.  It still works fine for 
me if I have pre-copied the .eps files to the subdirectory, or if I 
use $NO_SUBDIR = 1;, so I am sure this is a path problem.  But I am 
not very familiar with Perl or with the innards of latex2html so 
I'm leery of trying to hack on this myself.  

I'll experiment with \includegraphics to see if that also works around 
this ok.  It would of course be nice for the vanilla epsf call also 
to work in Win32 with latex2html and $NO_SUBDIR = 0;  

> 
> You can set environment variables within the .latex2html-init
> file for your job. (Certainly this works for Unix; with NT, I don't
> have the relevant experience, sorry.)
> 

Which environment variable would I set in order to address this?

Thank you very much for the quick response.  

Alan Bridle