I have some difficulties to build a text file as clean as a pdf file or html file
(In the pdf-file there is no clickable link in the index) .
I have tried several methods (texi2any (GNU texinfo) 6.7 fedora 34)
:
%.txt: %.tex
makeinfo --no-header -D'TXT 1' --no-split -o$*.txt $<
%.txt2: %.tex
makeinfo -D'TXT 1' --plaintext --no-split -o$*.txt2 $<
- get the title.
- get the copyright and author.
- suppress a menu entry that shows up in the index.
- get the title : "table of contents" along with the content.
\input texinfo @c -*-texinfo-*-
@set title chess-ec-4.2.2
@set subtitle  Manuel d'utilisation 1.0
@set author Marc Dechico
@c %**start of header
@setfilename chess-ec_fr.info
@documentlanguage fr_FR
@settitle  Manuel d'utilisation 1.0 pour chess-ec-4.2.2
@c %**end of header
@copying
Copyright @copyright{} 2022 Marc Dechico
@end copying
@c If your manual is published on paper by the FSF, it should include
@c the standard FSF Front-Cover and Back-Cover Texts, as given in
@c maintain.texi.
@dircategory gameplaying
@direntry
* chess-ec_fr:                Manuel utilisateur.
@end direntry
@titlepage
@title @value{title}
@subtitle @value{subtitle}
@author  @value{author}
@insertcopying
@end titlepage
@ifset TXT
Table des matières
@end ifset
@c Output the table of content 
@contents
@ifnottex
@node Top
@ifclear TXT
@top Manuel utilisateurs pour chess-ec-4.2.2
@end ifclear
@end ifnottex
@ifnottex
@menu
* Installer avec linux::       Installer à partir d'un fichier rpm ou tar.
* Installer avec Windows::     Installer à partir d'un fichier tar et Cygwin.
* Index::	               Index de mots clef.
@end menu
@end ifnottex
@node Installer avec linux
@chapter Installer avec linux
@cindex  Linux
ooo
@node Installer avec rpm
@section Installer avec rpm
@cindex rpm
ooo
@node Installer avec tar
@section Installer avec tar
@cindex tar
ooo
@node Installer avec Windows
@chapter Installer avec Windows
@cindex Windows
ooo
@node Index
@unnumbered Index
@printindex cp
@bye
 
