Every Texinfo file that is to be input to TeX must begin with a
\input
command and contain an @settitle
command:
\input texinfo @settitle name-of-manual
The first command instructs TeX to load the macros it needs to process a Texinfo file and the second command specifies the title of printed manual.
Every Texinfo file must end with a line that terminates TeX processing and forces out unfinished pages:
@bye
Strictly speaking, these three lines are all a Texinfo file needs for
TeX, besides the body. (The @setfilename
line is the only
line that a Texinfo file needs for Info formatting.)
Usually, the file's first line contains an `@c -*-texinfo-*-'
comment that causes Emacs to switch to Texinfo mode when you edit the
file. In addition, the beginning usually includes an
@setfilename
for Info formatting, an @setchapternewpage
command, a title page, a copyright page, and permissions. Besides an
@bye
, the end of a file usually includes indices and a table of
contents.
For more information, see
section @setchapternewpage
,
section Page Headings,
section The Title and Copyright Pages,
section Index Menus and Printing an Index, and
section Generating a Table of Contents.