[l2h] Problems with segmentation of a document

Greg Gamble Greg Gamble <gregg@csee.uq.edu.au>
Sat, 27 Mar 1999 11:54:55 +1000 (EST)


On Fri, 26 Mar 1999, Torsten Wellner wrote:
> Hallo,
> 
> I have a document in book style and I have defined several levels of
> segmentation. My latex document starts with a "\chapter" command and it
> follow some "\section" commands. If I translate the latex document with
> the latex2html parser ("Version 98.1p1 release (March 2nd, 1998) ") I
> get twice the first section. And I suppose this is the reason for some
> errors and warnings displayed by the debug option.
> 
> What can I do to avoid this behaviour?

Do you have RedHat 5.? Linux? If so, the following may fix your problem
... it did for me ... I forget who suggested it originally ...

in the Perl file `latex2html' of the 98.1p1 distribution 
in `sub write_string_out' add the line 

        close SINPUT;

after

    unless ($pid = fork) {

(which is line 1563, for me).

  Regards,
  Greg Gamble
___________________________________________________________________
Greg Gamble   __________________        mailto:gregg@csee.uq.edu.au
Centre for Discrete Mathematics & Computing    Tel: +61-7 336 52425
Department of Computer Science                 Fax: +61-7 336 54999
      & Electrical Engineering     http://www.csee.uq.edu.au/~gregg
The University of Queensland, Queensland 4072 AUSTRALIA
___________________________________________________________________