[l2h] Double Read of Init Files Bug

Michael L. Hall Michael L. Hall" <Hall@lanl.gov
Thu, 5 Oct 2000 11:13:26 -0600 (MDT)


Greetings, all:

I've discovered a rather insidious bug. It's caused when you have a 
.latex2html-init file in both your home directory and the current
working directory. This situation happens since you might want to
override your default version (in your home directory) with a version
specific to the file you're l2h'ing.

In this case, L2H seems to read in both but only use one, according to
the output log:

Note: Loading /home/hall/.latex2html-init
Note: Loading ./.latex2html-init
Note: Initialising with file: .latex2html-init

However, when I do this with a -t flag to change the title, the title
does not change. I think it's being redefined with a double read of
init files, but I haven't looked "under the hood" to see what's really
happening.

Here's an abbreviated output to show you what I'm talking about. I've
only left in what I consider to be the pertinent parts:

-----------------------------------------------------------------
First, the version that messes up:

galt% rm ../resume/*

galt% cp ~/.latex2html-init .

galt% latex2html -t "Michael L. Hall's Resume" -nomath -html_version 4.0,math -dir ../resume resume.tex
Note: Loading /home/hall/.latex2html-init
Note: Loading ./.latex2html-init
Note: Initialising with file: .latex2html-init
This is LaTeX2HTML Version 99.2beta8 (1.42)

[snip]

Translating ...
0/10:top of resume: for resume.html

[snip]

galt% grep TITLE ../resume/index.html
<TITLE>resume</TITLE>

-----------------------------------------------------------------
Next, the version that works (only difference is removal of
./.latex2html-init):

galt% rm ../resume/*

galt% rm .latex2html-init

galt% latex2html -t "Michael L. Hall's Resume" -nomath -html_version 4.0,math -dir ../resume resume.tex
Note: Loading /home/hall/.latex2html-init
Note: Initialising with file: /home/hall/.latex2html-init
This is LaTeX2HTML Version 99.2beta8 (1.42)

[snip]

Translating ...
0/10:top of resume:"Michael L. Hall's Resume" for resume.html

[snip]

galt% grep TITLE ../resume/index.html
<TITLE>Michael L. Hall's Resume</TITLE>

-----------------------------------------------------------------



As always, thanks for your efforts in developing this useful program!

Cheers,

-Mike

============================================================================
Dr. Michael L. Hall               <mailto:Hall@lanl.gov>               
Los Alamos National Laboratory    <http://www.lanl.gov/home/Hall>      
P.O. Box 1663, MS-D409            Research: computational physics, radiation 
Los Alamos, NM 87545              transport, heat pipes, numerical modeling, 
ph: 505-665-4312                  fluid dynamics, magnetohydrodynamics       
============================================================================