Hi

I am sure once again, this is something easy for you all
but beyond my understanding of texinfo. There are
differences in the generated index.html files per manual.
Some of this may be because of our init files being not
quite right.

I am just trying to get them reasonably close. I don't care about
dead on matching - just no stupid duplication or too many hacks.
I am happy learning to live with slightly different and more standard
output. :)

texi2html produces something like this:

==================
Library Name
[Top]     [Contents]     [Index]     [ ? ]     [Library]
<hr>
Title
List of Chapters (one level deep)
<hr>
[Top]     [Contents]     [Index]     [ ? ]     [Library]
This document was generated....
Copyright ...
==================

texi2any produces something like this:

==================
Library Name
Title
Table of Contents (to at least 4 levels - that may be our deepest)
Next: List of Figures, Previous: (dir), Up: (dir) [Contents][Index][Directory]
<hr>
Title
List of Chapters (one level deep)
<hr>
Next: List of Figures, Previous: (dir), Up: (dir) [Contents][Index][Directory]
==================

Some obvious questions:

+ What do I need to do to eliminate the second Table of Contents that
is one level deep? And one of the <hr> and Navigation lines?

+ What is the texi2any equivalent of this?

$PRE_BODY_CLOSE =
'Copyright &copy; 1988-2013
<A HREF="http://www.oarcorp.com"; target="Text Frame">OAR Corporation</A>
';

+ Why isn't there a "generated by texi2... " message at the bottom?

The invocation is:

texi2any --html -D use-html --split node -c MENU_ENTRY_COLON= -c NODE_NAME_IN_MENU=0 -c USE_NODES=0 -o c_user/ --init-file=../texi2any_init -I /home/joel/rtems-4.11-work/rtems//doc/user -I /home/joel/rtems-4.11-work/rtems//doc -I .. -I . /home/joel/rtems-4.11-work/rtems//doc/user/c_user.texi

The texi2any init file is:

===========================
set_from_init_file ('AFTER_BODY_OPEN',
'<A HREF="http://www.rtems.com";  target="Text Frame">
<IMG align=right BORDER=0 SRC="../images/rtems_logo.jpg" ALT="RTEMS
Logo">   </A>
<H1>RTEMS @VERSION@ On-Line Library</H1>
');

texinfo_register_handler('setup', \&add_button);

my $button_text = '[<a href="../index.html">Directory</a>]';
sub add_button($)
{
  my $self = shift;
  foreach my $button_type ('SECTION_BUTTONS', 'CHAPTER_BUTTONS',
                           'MISC_BUTTONS', 'TOP_BUTTONS') {
    my $buttons = $self->get_conf($button_type);
    push @$buttons, \$button_text;
  }
  return 1;
}
===========================

Thanks in advance.

--
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherr...@oarcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985


Reply via email to