Next: , Up: Sample Texinfo Files   [Contents][Index]

C.1 Short Sample

Here is a complete, short sample Texinfo file, without any commentary. You can see this file, with comments, in the first chapter. See Short Sample.

In a nutshell: The makeinfo program transforms a Texinfo source file such as this into an Info file or HTML; and TeX typesets it for a printed manual.

\input texinfo   @c -*-texinfo-*-
@c %**start of header
@settitle Sample Manual 1.0
@c %**end of header

This is a short example of a complete Texinfo file.

Copyright @copyright{} 2015 Free Software Foundation, Inc.
@end copying

@title Sample Title
@vskip 0pt plus 1filll
@end titlepage

@c Output the table of the contents at the beginning.

@node Top
@top GNU Sample

This manual is for GNU Sample
(version @value{VERSION}, @value{UPDATED}).
@end ifnottex

* First Chapter::    The first chapter is the
                      only chapter in this sample.
* 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.

This is the first item.

This is the second item.
@end enumerate

@node Index
@unnumbered Index

@printindex cp