INTRODUCTION revision 56160
1Getting Started with Texinfo
2============================
3
4"Texinfo" is a documentation system that uses a single source file to
5produce both on-line information and printed output.  Using Texinfo,
6you can create a printed document with the normal features of a book,
7including chapters, sections, cross references, and indices.  From the
8same Texinfo source file, you can create a menu-driven, on-line Info
9file with nodes, menus, cross references, and indices.
10  
11The name of the Texinfo source documentation file is `texinfo.txi'.
12You can produce both on-line information and printed output from this
13source file.  The documentation describes Texinfo in detail, including
14how to write Texinfo files, how to format them for both hard copy and
15Info, and how to install Info files.
16
17To get started, you need to create either a printed manual or an
18on-line Info file from the `texinfo.txi' file.  You do not need to
19create both, although you will probably want both eventually.
20
21To learn how to use Info, read the info documentation.  You can do this in
22one of two ways: using the standalone `info' program, or using Info mode in
23GNU Emacs.
24
25  * If you want to use the `info' program, run
26
27         info -f info-stnd
28
29  * If you want to use Emacs, start up emacs and type `C-h i' [M-x info].
30    Follow the instructions to learn how to use Info.
31
32After learning how to use Info, you can read the Texinfo documentation.
33Using the standalone `info', type the following at the shell prompt:
34
35         info -f texinfo
36
37To use read this manual in Emacs, you first need to edit the Info-directory
38menu (the file `dir' in the system info directory) to contain the
39appropriate node.  To learn how to do this, see node: Add in the Info
40documentation.
41
42The Texinfo documentation describes Texinfo in detail; among other things,
43it tells how to install Info files in the usual manner.  (See node: Install
44an Info File.)
45
46The `info-stnd.info' file describes the standalone Info reader in detail.  To
47read this file, type
48
49         $ info -f info-stnd
50
51
52To create a printed manual
53==========================
54
55You need:
56
57  * The `tex' program, which typesets the manual using TeX.
58  * The `texinfo.tex' definition file that tells TeX how to typeset
59    a Texinfo file.
60  * The `texindex' program, which sorts the unsorted index files
61    created by TeX.
62  * A printing program such as `lp' or `lpr',
63  * A printer.
64
65This Texinfo distribution package contains `texinfo.tex', the C source
66for `texindex', and the handy shell script `texi2dvi'.  The `tex'
67program is not part of this distribution, but is available separately.
68(See `How to Obtain TeX' in the Texinfo documentation.)
69
70  * Install `tex'.  (`texindex' is installed automagically by 
71    `make install' in this distribution.)
72
73  * Move the `texinfo.tex' file to an appropriate directory; the current
74    directory will do.  (`/usr/local/lib/tex/inputs' might be a good place.
75    See ``Preparing to Use TeX'' in the Texinfo manual, for more
76    information.)
77
78After following those instructions, type the following to make the .dvi
79files:
80
81      $ (cd doc; make dvi)
82
83You can then print the resulting .dvi files with the `lpr' or `lp'
84commands, or maybe `dvips'.
85
86For example, the command to print the texinfo.dvi file might be:
87
88      $ lpr -d texinfo.dvi
89
90The name of the printing command depends on the system; `lpr -d' is
91common, and is illustrated here.  You may use a different name for the
92printing command.
93
94Please report bugs to bug-texinfo@gnu.org.
95
96Happy formatting.
97