On Fri, Jun 21, 2019 at 11:52:03AM -0700, Raymond Toy wrote:
> In version 6.6, if you had
> 
> @setfilename foo.info
> 
> all of the html files would be placed in the foo directory with names
> foo_0.html, foo_1.html, and so on.
> 
> With 6.6dev, this isn't true anymore.  The foo directory contains things
> like index.html, section-title-1.html, section-title-2.html, and so on.
> 
> Was this change intentional?  Is it possible to get back the old version?

I think that this change was intentional.  To get back to the old
version, you would need an init file, I believe.  I attach one which
should do what you want, except maybe for the top file.

you can use it with

texi2any --html --init file_names_simple.pm toto.texi

(As a side note, my guess would be that you do not have nodes in your
texinfo file, otherwise you would have seen the "new behaviour" earlier).

> In addition, a very old version of texi2html (was used in Maxima for a long
> time) put the table of contents in foo_toc.html.  This was useful for
> external interfaces to maxima to have a table of contents that could be
> shown.  Right now, the toc is placed in one of the foo_*.html files.

For that, you can set
  -c INLINE_CONTENTS=0

If you want more generally the texi2html style, you can use
 -c TEXI2HTML

-- 
Pat
use strict;

use vars qw($element_file_name);

my $file_nr = -1;

sub filename_simple($$$)
{
  my $converter = shift;
  my $element = shift;
  my $filename = shift;

  my $prefix = $converter->{'document_name'};
  if ($converter->element_is_top($element)) {
    return undef;
  } else {
    $file_nr++;
    return $prefix.'_'.$file_nr.'.'.$converter->get_conf('EXTENSION');
  }
}

$element_file_name = \&filename_simple;

Reply via email to