GNU Info

Info Node: (texinfo)Sample Texinfo File

(texinfo)Sample Texinfo File


Next: Include Files Prev: Tips Up: Top
Enter node , (file) or (file)node

A Sample Texinfo File
*********************

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


     \input texinfo   @c -*-texinfo-*-
     @c %**start of header
     @setfilename sample.info
     @settitle Sample Document
     @c %**end of header
     
     @ifinfo
     This is a short example of a complete Texinfo file.
     
     Copyright (C) 2002 Free Software Foundation, Inc.
     @end ifinfo
     
     @titlepage
     @comment The title is printed in a large font.
     @title Sample Title
     
     @c The following two commands start the copyright page.
     @page
     @vskip 0pt plus 1filll
     Copyright @copyright{} 2002 Free Software Foundation, Inc.
     @end titlepage
     
     @c Output the table of the contents at the beginning.
     @contents
     
     @ifnottex
     @node Top
     
     This is the top node of a sample document.
     @end ifnottex
     
     @menu
     * First Chapter::    The first chapter is the
                          only chapter in this sample.
     * Concept Index::    This index has two entries.
     @end menu
     
     
     @node    First Chapter
     @chapter First Chapter
     @cindex Chapter, first
     
     This is the contents of the first chapter.
     @cindex Another sample index entry
     
     Here is a numbered list.
     
     @enumerate
     @item
     This is the first item.
     
     @item
     This is the second item.
     @end enumerate
     
     The @code{makeinfo} command transforms a Texinfo source file
     such as this into an Info file or HTML; and @TeX typesets it
     for a printed manual.
     
     
     @node Concept Index
     @unnumbered Concept Index
     
     @printindex cp
     
     @bye


automatically generated by info2www version 1.2.2.9