I’m trying to learn Texinfo to write a book.
I started from the sample file here.
As far as I understand from this page Contents is created automatically. And it works for the PDF output.
But I don’t see the Contents or Index on the HTML output.
By "Contents" I mean a page like this.
Also, I’m using makeinfo —html file-name.texi
but on this page they recommend texi2any
. When I try texi2any —html file-name.texi
I get "no such command error".
(I'm using emacs Texinfo Minor Mode.)
I copy my Texfinfo file below:
@title Sample Title
@page
@vskip 0pt plus 1filll
@insertcopying
@end titlepage
@c Output the table of the contents at the beginning.
@contents
@ifnottex
@node Top
@top GNU Sample
@insertcopying
@end ifnottex
@menu
* First Chapter:: The first chapter is the
only chapter in this sample.
* Second Chapter::
* Third Chapter::
* Index:: Complete index.
@end menu
@node First Chapter
@chapter First Chapter
@cindex chapter, first
This is the first chapter.
@cindex index entry, another
Here is a numbered list.
@enumerate
@item
This is the first item.
@item
This is the second item.
@end enumerate
@node Second Chapter
@chapter Second Chapter
This is the second chapter
@node Third Chapter
@chapter Third Chapter
This is the third chapter
@node Index
@unnumbered Index
@printindex cp
@bye