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