1*29619d2aSchristosId: INTRODUCTION,v 1.3 2004/04/11 17:56:45 karl Exp 2*29619d2aSchristosGetting started with Texinfo. 3*29619d2aSchristos 4*29619d2aSchristos Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 5*29619d2aSchristos Free Software Foundation, Inc. 6*29619d2aSchristos 7*29619d2aSchristos Copying and distribution of this file, with or without modification, 8*29619d2aSchristos are permitted in any medium without royalty provided the copyright 9*29619d2aSchristos notice and this notice are preserved. 10*29619d2aSchristos 11*29619d2aSchristos 12*29619d2aSchristos 13*29619d2aSchristosGetting Started with Texinfo 14*29619d2aSchristos============================ 15*29619d2aSchristos 16*29619d2aSchristos"Texinfo" is a documentation system that uses a single source file to 17*29619d2aSchristosproduce both on-line information and printed output. Using Texinfo, 18*29619d2aSchristosyou can create a printed document with the normal features of a book, 19*29619d2aSchristosincluding chapters, sections, cross references, and indices. From the 20*29619d2aSchristossame Texinfo source file, you can create a menu-driven, on-line Info 21*29619d2aSchristosfile with nodes, menus, cross references, and indices. 22*29619d2aSchristos 23*29619d2aSchristosThe name of the Texinfo source documentation file is `texinfo.txi'. 24*29619d2aSchristosYou can produce both on-line information and printed output from this 25*29619d2aSchristossource file. The documentation describes Texinfo in detail, including 26*29619d2aSchristoshow to write Texinfo files, how to format them for both hard copy and 27*29619d2aSchristosInfo, and how to install Info files. 28*29619d2aSchristos 29*29619d2aSchristosTo get started, you need to create either a printed manual or an 30*29619d2aSchristoson-line Info file from the `texinfo.txi' file. You do not need to 31*29619d2aSchristoscreate both, although you will probably want both eventually. 32*29619d2aSchristos 33*29619d2aSchristosTo learn how to use Info, read the info documentation. You can do this in 34*29619d2aSchristosone of two ways: using the standalone `info' program, or using Info mode in 35*29619d2aSchristosGNU Emacs. 36*29619d2aSchristos 37*29619d2aSchristos * If you want to use the `info' program, run 38*29619d2aSchristos 39*29619d2aSchristos info -f info-stnd 40*29619d2aSchristos 41*29619d2aSchristos * If you want to use Emacs, start up emacs and type `C-h i' [M-x info]. 42*29619d2aSchristos Follow the instructions to learn how to use Info. 43*29619d2aSchristos 44*29619d2aSchristosAfter learning how to use Info, you can read the Texinfo documentation. 45*29619d2aSchristosUsing the standalone `info', type the following at the shell prompt: 46*29619d2aSchristos 47*29619d2aSchristos info -f texinfo 48*29619d2aSchristos 49*29619d2aSchristosTo use read this manual in Emacs, you first need to edit the Info-directory 50*29619d2aSchristosmenu (the file `dir' in the system info directory) to contain the 51*29619d2aSchristosappropriate node. To learn how to do this, see node: Add in the Info 52*29619d2aSchristosdocumentation. 53*29619d2aSchristos 54*29619d2aSchristosThe Texinfo documentation describes Texinfo in detail; among other things, 55*29619d2aSchristosit tells how to install Info files in the usual manner. (See node: Install 56*29619d2aSchristosan Info File.) 57*29619d2aSchristos 58*29619d2aSchristosThe `info-stnd.info' file describes the standalone Info reader in detail. To 59*29619d2aSchristosread this file, type 60*29619d2aSchristos 61*29619d2aSchristos $ info -f info-stnd 62*29619d2aSchristos 63*29619d2aSchristos 64*29619d2aSchristosTo create a printed manual 65*29619d2aSchristos========================== 66*29619d2aSchristos 67*29619d2aSchristosYou need: 68*29619d2aSchristos 69*29619d2aSchristos * The `tex' program, which typesets the manual using TeX. 70*29619d2aSchristos * The `texinfo.tex' definition file that tells TeX how to typeset 71*29619d2aSchristos a Texinfo file. 72*29619d2aSchristos * The `texindex' program, which sorts the unsorted index files 73*29619d2aSchristos created by TeX. 74*29619d2aSchristos * A printing program such as `lp' or `lpr', 75*29619d2aSchristos * A printer. 76*29619d2aSchristos 77*29619d2aSchristosThis Texinfo distribution package contains `texinfo.tex', the C source 78*29619d2aSchristosfor `texindex', and the handy shell script `texi2dvi'. The `tex' 79*29619d2aSchristosprogram is not part of this distribution, but is available separately. 80*29619d2aSchristos(See `How to Obtain TeX' in the Texinfo documentation.) 81*29619d2aSchristos 82*29619d2aSchristos * Install `tex'. (`texindex' is installed automagically by 83*29619d2aSchristos `make install' in this distribution.) 84*29619d2aSchristos 85*29619d2aSchristos * Move the `texinfo.tex' file to an appropriate directory; the current 86*29619d2aSchristos directory will do. (`/usr/local/lib/tex/inputs' might be a good place. 87*29619d2aSchristos See ``Preparing to Use TeX'' in the Texinfo manual, for more 88*29619d2aSchristos information.) 89*29619d2aSchristos 90*29619d2aSchristosAfter following those instructions, type the following to make the .dvi 91*29619d2aSchristosfiles: 92*29619d2aSchristos 93*29619d2aSchristos $ (cd doc; make dvi) 94*29619d2aSchristos 95*29619d2aSchristosYou can then print the resulting .dvi files with the `lpr' or `lp' 96*29619d2aSchristoscommands, or maybe `dvips'. 97*29619d2aSchristos 98*29619d2aSchristosFor example, the command to print the texinfo.dvi file might be: 99*29619d2aSchristos 100*29619d2aSchristos $ lpr -d texinfo.dvi 101*29619d2aSchristos 102*29619d2aSchristosThe name of the printing command depends on the system; `lpr -d' is 103*29619d2aSchristoscommon, and is illustrated here. You may use a different name for the 104*29619d2aSchristosprinting command. 105*29619d2aSchristos 106*29619d2aSchristosPlease report bugs to bug-texinfo@gnu.org. 107*29619d2aSchristos 108*29619d2aSchristosHappy formatting. 109