home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / info / texinfo.info-3 < prev    next >
Encoding:
GNU Info File  |  1996-10-12  |  49.7 KB  |  1,284 lines

  1. This is Info file texinfo.info, produced by Makeinfo-1.64 from the
  2. input file /ade-src/fsf/texinfo/texinfo.texi.
  3.  
  4.   This file documents Texinfo, a documentation system that uses a single
  5. source file to produce both on-line information and a printed manual.
  6.  
  7.   Copyright (C) 1988, 1990, 1991, 1992, 1993, 1995 Free Software
  8. Foundation, Inc.
  9.  
  10.   This is the second edition of the Texinfo documentation,
  11. and is consistent with version 2 of `texinfo.tex'.
  12.  
  13.   Permission is granted to make and distribute verbatim copies of this
  14. manual provided the copyright notice and this permission notice are
  15. preserved on all copies.
  16.  
  17.   Permission is granted to copy and distribute modified versions of this
  18. manual under the conditions for verbatim copying, provided that the
  19. entire resulting derived work is distributed under the terms of a
  20. permission notice identical to this one.
  21.  
  22.   Permission is granted to copy and distribute translations of this
  23. manual into another language, under the above conditions for modified
  24. versions, except that this permission notice may be stated in a
  25. translation approved by the Free Software Foundation.
  26.  
  27. 
  28. File: texinfo.info,  Node: Titlepage & Copyright Page,  Next: The Top Node,  Prev: Info Summary and Permissions,  Up: Beginning a File
  29.  
  30. The Title and Copyright Pages
  31. =============================
  32.  
  33.   A manual's name and author are usually printed on a title page.
  34. Sometimes copyright information is printed on the title page as well;
  35. more often, copyright information is printed on the back of the title
  36. page.
  37.  
  38.   The title and copyright pages appear in the printed manual, but not
  39. in the Info file.  Because of this, it is possible to use several
  40. slightly obscure TeX typesetting commands that cannot be used in an
  41. Info file.  In addition, this part of the beginning of a Texinfo file
  42. contains the text of the copying permissions that will appear in the
  43. printed manual.
  44.  
  45.   *Note Titlepage Copying Permissions: Titlepage Permissions, for the
  46. standard text for the copyright permissions.
  47.  
  48. * Menu:
  49.  
  50. * titlepage::                   Create a title for the printed document.
  51. * titlefont center sp::         The `@titlefont', `@center',
  52.                                   and `@sp' commands.
  53. * title subtitle author::       The `@title', `@subtitle',
  54.                                   and `@author' commands.
  55. * Copyright & Permissions::     How to write the copyright notice and
  56.                                   include copying permissions.
  57. * end titlepage::               Turn on page headings after the title and
  58.                                   copyright pages.
  59. * headings on off::             An option for turning headings on and off
  60.                                   and double or single sided printing.
  61.  
  62. 
  63. File: texinfo.info,  Node: titlepage,  Next: titlefont center sp,  Prev: Titlepage & Copyright Page,  Up: Titlepage & Copyright Page
  64.  
  65. `@titlepage'
  66. ------------
  67.  
  68.   Start the material for the title page and following copyright page
  69. with `@titlepage' on a line by itself and end it with `@end titlepage'
  70. on a line by itself.
  71.  
  72.   The `@end titlepage' command starts a new page and turns on page
  73. numbering. (*Note Page Headings: Headings, for details about how to
  74. generate of page headings.)  All the material that you want to appear
  75. on unnumbered pages should be put between the `@titlepage' and `@end
  76. titlepage' commands.  By using the `@page' command you can force a page
  77. break within the region delineated by the `@titlepage' and `@end
  78. titlepage' commands and thereby create more than one unnumbered page.
  79. This is how the copyright page is produced.  (The `@titlepage' command
  80. might perhaps have been better named the `@titleandadditionalpages'
  81. command, but that would have been rather long!)
  82.  
  83.   When you write a manual about a computer program, you should write the
  84. version of the program to which the manual applies on the title page.
  85. If the manual changes more frequently than the program or is
  86. independent of it, you should also include an edition number(1) (*note
  87. titlepage-Footnotes::) for the manual.  This helps readers keep track
  88. of which manual is for which version of the program.  (The `Top' node
  89. should also contain this information; see *Note `@top': makeinfo top.)
  90.  
  91.   Texinfo provides two methods for creating a title page.  One method
  92. uses the `@titlefont', `@sp', and `@center' commands to generate a
  93. title page in which the words on the page are centered.
  94.  
  95.   The second method uses the `@title', `@subtitle', and `@author'
  96. commands to create a title page with black rules under the title and
  97. author lines and the subtitle text set flush to the right hand side of
  98. the page.  With this method, you do not specify any of the actual
  99. formatting of the title page.  You specify the text you want, and
  100. Texinfo does the formatting.  You may use either method.
  101.  
  102. 
  103. File: texinfo.info,  Node: titlepage-Footnotes,  Up: titlepage
  104.  
  105.   (1)  We have found that it is helpful to refer to versions of manuals
  106. as `editions' and versions of programs as `versions'; otherwise, we
  107. find we are liable to confuse each other in conversation by referring
  108. to both the documentation and the software with the same words.
  109.  
  110. 
  111. File: texinfo.info,  Node: titlefont center sp,  Next: title subtitle author,  Prev: titlepage,  Up: Titlepage & Copyright Page
  112.  
  113. `@titlefont', `@center', and `@sp'
  114. ----------------------------------
  115.  
  116.   You can use the `@titlefont', `@sp', and `@center' commands to create
  117. a title page for a printed document.  (This is the first of the two
  118. methods for creating a title page in Texinfo.)
  119.  
  120.   Use the `@titlefont' command to select a large font suitable for the
  121. title itself.
  122.  
  123.   For example:
  124.  
  125.      @titlefont{Texinfo}
  126.  
  127.   Use the `@center' command at the beginning of a line to center the
  128. remaining text on that line.  Thus,
  129.  
  130.      @center @titlefont{Texinfo}
  131.  
  132. centers the title, which in this example is "Texinfo" printed in the
  133. title font.
  134.  
  135.   Use the `@sp' command to insert vertical space.  For example:
  136.  
  137.      @sp 2
  138.  
  139. This inserts two blank lines on the printed page.  (*Note `@sp': sp,
  140. for more information about the `@sp' command.)
  141.  
  142.   A template for this method looks like this:
  143.  
  144.      @titlepage
  145.      @sp 10
  146.      @center @titlefont{NAME-OF-MANUAL-WHEN-PRINTED}
  147.      @sp 2
  148.      @center SUBTITLE-IF-ANY
  149.      @sp 2
  150.      @center AUTHOR
  151.      ...
  152.      @end titlepage
  153.  
  154.   The spacing of the example fits an 8 1/2 by 11 inch manual.
  155.  
  156. 
  157. File: texinfo.info,  Node: title subtitle author,  Next: Copyright & Permissions,  Prev: titlefont center sp,  Up: Titlepage & Copyright Page
  158.  
  159. `@title', `@subtitle', and `@author'
  160. ------------------------------------
  161.  
  162.   You can use the `@title', `@subtitle', and `@author' commands to
  163. create a title page in which the vertical and horizontal spacing is
  164. done for you automatically.  This contrasts with the method described in
  165. the previous section, in which the `@sp' command is needed to adjust
  166. vertical spacing.
  167.  
  168.   Write the `@title', `@subtitle', or `@author' commands at the
  169. beginning of a line followed by the title, subtitle, or author.
  170.  
  171.   The `@title' command produces a line in which the title is set flush
  172. to the left-hand side of the page in a larger than normal font.  The
  173. title is underlined with a black rule.
  174.  
  175.   The `@subtitle' command sets subtitles in a normal-sized font flush
  176. to the right-hand side of the page.
  177.  
  178.   The `@author' command sets the names of the author or authors in a
  179. middle-sized font flush to the left-hand side of the page on a line
  180. near the bottom of the title page.  The names are underlined with a
  181. black rule that is thinner than the rule that underlines the title.
  182. (The black rule only occurs if the `@author' command line is followed
  183. by an `@page' command line.)
  184.  
  185.   There are two ways to use the `@author' command: you can write the
  186. name or names on the remaining part of the line that starts with an
  187. `@author' command:
  188.  
  189.      @author by Jane Smith and John Doe
  190.  
  191. or you can write the names one above each other by using two (or more)
  192. `@author' commands:
  193.  
  194.      @author Jane Smith
  195.      @author John Doe
  196.  
  197. (Only the bottom name is underlined with a black rule.)
  198.  
  199.   A template for this method looks like this:
  200.  
  201.      @titlepage
  202.      @title NAME-OF-MANUAL-WHEN-PRINTED
  203.      @subtitle SUBTITLE-IF-ANY
  204.      @subtitle SECOND-SUBTITLE
  205.      @author AUTHOR
  206.      @page
  207.      ...
  208.      @end titlepage
  209.  
  210. Contrast this form with the form of a title page written using the
  211. `@sp', `@center', and `@titlefont' commands:
  212.  
  213.      @titlepage
  214.      @sp 10
  215.      @center @titlefont{Name of Manual When Printed}
  216.      @sp 2
  217.      @center Subtitle, If Any
  218.      @sp 1
  219.      @center Second subtitle
  220.      @sp 2
  221.      @center Author
  222.      @page
  223.      ...
  224.      @end titlepage
  225.  
  226. 
  227. File: texinfo.info,  Node: Copyright & Permissions,  Next: end titlepage,  Prev: title subtitle author,  Up: Titlepage & Copyright Page
  228.  
  229. Copyright Page and Permissions
  230. ------------------------------
  231.  
  232.   By international treaty, the copyright notice for a book should be
  233. either on the title page or on the back of the title page.  The
  234. copyright notice should include the year followed by the name of the
  235. organization or person who owns the copyright.
  236.  
  237.   When the copyright notice is on the back of the title page, that page
  238. is customarily not numbered.  Therefore, in Texinfo, the information on
  239. the copyright page should be within `@titlepage' and `@end titlepage'
  240. commands.
  241.  
  242.   Use the `@page' command to cause a page break.  To push the copyright
  243. notice and the other text on the copyright page towards the bottom of
  244. the page, you can write a somewhat mysterious line after the `@page'
  245. command that reads like this:
  246.  
  247.      @vskip 0pt plus 1filll
  248.  
  249. This is a TeX command that is not supported by the Info formatting
  250. commands.  The `@vskip' command inserts whitespace.  The `0pt plus
  251. 1filll' means to put in zero points of mandatory whitespace, and as
  252. much optional whitespace as needed to push the following text to the
  253. bottom of the page.  Note the use of three `l's in the word `filll';
  254. this is the correct usage in TeX.
  255.  
  256.   In a printed manual, the `@copyright{}' command generates a `c'
  257. inside a circle.  (In Info, it generates `(C)'.)  The copyright notice
  258. itself has the following legally defined sequence:
  259.  
  260.      Copyright (C) YEAR COPYRIGHT-OWNER
  261.  
  262.   It is customary to put information on how to get a manual after the
  263. copyright notice, followed by the copying permissions for the manual.
  264.  
  265.   Note that permissions must be given here as well as in the summary
  266. segment within `@ifinfo' and `@end ifinfo' that immediately follows the
  267. header since this text appears only in the printed manual and the
  268. `ifinfo' text appears only in the Info file.
  269.  
  270.   *Note Sample Permissions::, for the standard text.
  271.  
  272. 
  273. File: texinfo.info,  Node: end titlepage,  Next: headings on off,  Prev: Copyright & Permissions,  Up: Titlepage & Copyright Page
  274.  
  275. Heading Generation
  276. ------------------
  277.  
  278.   An `@end titlepage' command on a line by itself not only marks the
  279. end of the title and copyright pages, but also causes TeX to start
  280. generating page headings and page numbers.
  281.  
  282.   To repeat what is said elsewhere,  Texinfo has two standard page
  283. heading formats, one for documents which are printed on one side of
  284. each sheet of paper (single-sided printing), and the other for
  285. documents which are printed on both sides of each sheet (double-sided
  286. printing).  (*Note `@setchapternewpage': setchapternewpage.) You can
  287. specify these formats in different ways:
  288.  
  289.    * The conventional way is to write an `@setchapternewpage' command
  290.      before the title page commands, and then have the `@end titlepage'
  291.      command start generating page headings in the manner desired.
  292.      (*Note `@setchapternewpage': setchapternewpage.)
  293.  
  294.    * Alternatively, you can use the `@headings' command to prevent page
  295.      headings from being generated or to start them for either single or
  296.      double-sided printing.  (Write an `@headings' command immediately
  297.      after the `@end titlepage' command.  *Note The `@headings'
  298.      Command: headings on off, for more information.)
  299.  
  300.    * Or, you may specify your own page heading and footing format.
  301.      *Note Page Headings: Headings, for detailed information about page
  302.      headings and footings.
  303.  
  304.   Most documents are formatted with the standard single-sided or
  305. double-sided format, using `@setchapternewpage odd' for double-sided
  306. printing and no `@setchapternewpage' command for single-sided printing.
  307.  
  308. 
  309. File: texinfo.info,  Node: headings on off,  Prev: end titlepage,  Up: Titlepage & Copyright Page
  310.  
  311. The `@headings' Command
  312. -----------------------
  313.  
  314.   The `@headings' command is rarely used.  It specifies what kind of
  315. page headings and footings to print on each page.  Usually, this is
  316. controlled by the `@setchapternewpage' command.  You need the
  317. `@headings' command only if the `@setchapternewpage' command does not
  318. do what you want, or if you want to turn off pre-defined page headings
  319. prior to defining your own.  Write an `@headings' command immediately
  320. after the `@end titlepage' command.
  321.  
  322.   There are four ways to use the `@headings' command:
  323.  
  324. `@headings off'
  325.      Turn off printing of page headings.
  326.  
  327. `@headings single'
  328.      Turn on page headings appropriate for single-sided printing.
  329.  
  330. `@headings double'
  331. `@headings on'
  332.      Turn on page headings appropriate for double-sided printing.  The
  333.      two commands, `@headings on' and `@headings double', are
  334.      synonymous.
  335.  
  336.   For example, suppose you write `@setchapternewpage off' before the
  337. `@titlepage' command to tell TeX to start a new chapter on the same
  338. page as the end of the last chapter.  This command also causes TeX to
  339. typeset page headers for single-sided printing.  To cause TeX to
  340. typeset for double sided printing, write `@headings double' after the
  341. `@end titlepage' command.
  342.  
  343.   You can stop TeX from generating any page headings at all by writing
  344. `@headings off' on a line of its own immediately after the line
  345. containing the `@end titlepage' command, like this:
  346.  
  347.      @end titlepage
  348.      @headings off
  349.  
  350. The `@headings off' command overrides the `@end titlepage' command,
  351. which would otherwise cause TeX to print page headings.
  352.  
  353.   You can also specify your own style of page heading and footing.
  354. *Note Page Headings: Headings, for more information.
  355.  
  356. 
  357. File: texinfo.info,  Node: The Top Node,  Next: Software Copying Permissions,  Prev: Titlepage & Copyright Page,  Up: Beginning a File
  358.  
  359. The `Top' Node and Master Menu
  360. ==============================
  361.  
  362.   The `Top' node is the node from which you enter an Info file.
  363.  
  364.   A `Top' node should contain a brief description of the Info file and
  365. an extensive, master menu for the whole Info file.  This helps the
  366. reader understand what the Info file is about.  Also, you should write
  367. the version number of the program to which the Info file applies; or,
  368. at least, the edition number.
  369.  
  370.   The contents of the `Top' node should appear only in the Info file;
  371. none of it should appear in printed output, so enclose it between
  372. `@ifinfo' and `@end ifinfo' commands.  (TeX does not print either an
  373. `@node' line or a menu; they appear only in Info; strictly speaking,
  374. you are not required to enclose these parts between `@ifinfo' and `@end
  375. ifinfo', but it is simplest to do so.  *Note Conditionally Visible
  376. Text: Conditionals.)
  377.  
  378. * Menu:
  379.  
  380. * Title of Top Node::           Sketch what the file is about.
  381. * Master Menu Parts::           A master menu has three or more parts.
  382.  
  383. 
  384. File: texinfo.info,  Node: Title of Top Node,  Next: Master Menu Parts,  Prev: The Top Node,  Up: The Top Node
  385.  
  386. `Top' Node Title
  387. ----------------
  388.  
  389.   Sometimes, you will want to place an `@top' sectioning command line
  390. containing the title of the document immediately after the `@node Top'
  391. line (*note The `@top' Sectioning Command: makeinfo top command., for
  392. more information).
  393.  
  394.   For example, the beginning of the Top node of this manual contains an
  395. `@top' sectioning command, a short description, and edition and version
  396. information.  It looks like this:
  397.  
  398.      ...
  399.      @end titlepage
  400.      
  401.      @ifinfo
  402.      @node Top, Copying, (dir), (dir)
  403.      @top Texinfo
  404.      
  405.      Texinfo is a documentation system...
  406.      
  407.      This is edition...
  408.      ...
  409.      @end ifinfo
  410.      
  411.      @menu
  412.      * Copying::                 Texinfo is freely
  413.                                    redistributable.
  414.      * Overview::                What is Texinfo?
  415.      ...
  416.      @end menu
  417.  
  418.   In a `Top' node, the `Previous', and `Up' nodes usually refer to the
  419. top level directory of the whole Info system, which is called `(dir)'.
  420. The `Next' node refers to the first node that follows the main or master
  421. menu, which is usually the copying permissions, introduction, or first
  422. chapter.
  423.  
  424. 
  425. File: texinfo.info,  Node: Master Menu Parts,  Prev: Title of Top Node,  Up: The Top Node
  426.  
  427. Parts of a Master Menu
  428. ----------------------
  429.  
  430.   A "master menu" is a detailed main menu listing all the nodes in a
  431. file.
  432.  
  433.   A master menu is enclosed in `@menu' and `@end menu' commands and
  434. does not appear in the printed document.
  435.  
  436.   Generally, a master menu is divided into parts.
  437.  
  438.    * The first part contains the major nodes in the Texinfo file: the
  439.      nodes for the chapters, chapter-like sections, and the appendices.
  440.  
  441.    * The second part contains nodes for the indices.
  442.  
  443.    * The third and subsequent parts contain a listing of the other,
  444.      lower level nodes, often ordered by chapter.  This way, rather
  445.      than go through an intermediary menu, an inquirer can go directly
  446.      to a particular node when searching for specific information.
  447.      These menu items are not required; add them if you think they are a
  448.      convenience.
  449.  
  450.   Each section in the menu can be introduced by a descriptive line.  So
  451. long as the line does not begin with an asterisk, it will not be
  452. treated as a menu entry.  (*Note Writing a Menu::, for more
  453. information.)
  454.  
  455.   For example, the master menu for this manual looks like the following
  456. (but has many more entries):
  457.  
  458.      @menu
  459.      * Copying::             Texinfo is freely
  460.                                redistributable.
  461.      * Overview::            What is Texinfo?
  462.      * Texinfo Mode::        Special features in GNU Emacs.
  463.      ...
  464.      ...
  465.      * Command and Variable Index::
  466.                              An entry for each @-command.
  467.      * Concept Index::       An entry for each concept.
  468.      
  469.       --- The Detailed Node Listing ---
  470.      
  471.      Overview of Texinfo
  472.      
  473.      * Info Files::          What is an Info file?
  474.      * Printed Manuals::     Characteristics of
  475.                                a printed manual.
  476.      ...
  477.      ...
  478.      
  479.      Using Texinfo Mode
  480.      
  481.      * Info on a Region::    Formatting part of a file
  482.                                for Info.
  483.      ...
  484.      ...
  485.      @end menu
  486.  
  487. 
  488. File: texinfo.info,  Node: Software Copying Permissions,  Prev: The Top Node,  Up: Beginning a File
  489.  
  490. Software Copying Permissions
  491. ============================
  492.  
  493.   If the Texinfo file has a section containing the "General Public
  494. License" and the distribution information and a warranty disclaimer for
  495. the software that is documented, this section usually follows the `Top'
  496. node.  The General Public License is very important to Project GNU
  497. software.  It ensures that you and others will continue to have a right
  498. to use and share the software.
  499.  
  500.   The copying and distribution information and the disclaimer are
  501. followed by an introduction or else by the first chapter of the manual.
  502.  
  503.   Although an introduction is not a required part of a Texinfo file, it
  504. is very helpful.  Ideally, it should state clearly and concisely what
  505. the file is about and who would be interested in reading it.  In
  506. general, an introduction would follow the licensing and distribution
  507. information, although sometimes people put it earlier in the document.
  508. Usually, an introduction is put in an `@unnumbered' section.  (*Note
  509. The `@unnumbered' and `@appendix' Commands: unnumbered & appendix.)
  510.  
  511. 
  512. File: texinfo.info,  Node: Ending a File,  Next: Structuring,  Prev: Beginning a File,  Up: Top
  513.  
  514. Ending a Texinfo File
  515. *********************
  516.  
  517.   The end of a Texinfo file should include the commands that create
  518. indices and generate detailed and summary tables of contents.  And it
  519. must include the `@bye' command that marks the last line processed by
  520. TeX.
  521.  
  522.   For example:
  523.  
  524.      @node    Concept Index,     , Variables Index, Top
  525.      @c        node-name,    next, previous,        up
  526.      @unnumbered Concept Index
  527.      
  528.      @printindex cp
  529.      
  530.      @contents
  531.      @bye
  532.  
  533. * Menu:
  534.  
  535. * Printing Indices & Menus::    How to print an index in hardcopy and
  536.                                   generate index menus in Info.
  537. * Contents::                    How to create a table of contents.
  538. * File End::                    How to mark the end of a file.
  539.  
  540. 
  541. File: texinfo.info,  Node: Printing Indices & Menus,  Next: Contents,  Prev: Ending a File,  Up: Ending a File
  542.  
  543. Index Menus and Printing an Index
  544. =================================
  545.  
  546.   To print an index means to include it as part of a manual or Info
  547. file.  This does not happen automatically just because you use
  548. `@cindex' or other index-entry generating commands in the Texinfo file;
  549. those just cause the raw data for the index to be accumulated.  To
  550. generate an index, you must include the `@printindex' command at the
  551. place in the document where you want the index to appear.  Also, as
  552. part of the process of creating a printed manual, you must run a
  553. program called `texindex' (*note Format/Print Hardcopy::.) to sort the
  554. raw data to produce a sorted index file.  The sorted index file is what
  555. is actually used to print the index.
  556.  
  557.   Texinfo offers six different types of predefined index: the concept
  558. index, the function index, the variables index, the keystroke index, the
  559. program index, and the data type index (*note Predefined Indices::.).
  560. Each index type has a two-letter name: `cp', `fn', `vr', `ky', `pg',
  561. and `tp'.  You may merge indices, or put them into separate sections
  562. (*note Combining Indices::.); or you may define your own indices (*note
  563. Defining New Indices: New Indices.).
  564.  
  565.   The `@printindex' command takes a two-letter index name, reads the
  566. corresponding sorted index file and formats it appropriately into an
  567. index.
  568.  
  569.   The `@printindex' command does not generate a chapter heading for the
  570. index.  Consequently, you should precede the `@printindex' command with
  571. a suitable section or chapter command (usually `@unnumbered') to supply
  572. the chapter heading and put the index into the table of contents.
  573. Precede the `@unnumbered' command with an `@node' line.
  574.  
  575.   For example:
  576.  
  577.      @node Variable Index, Concept Index, Function Index, Top
  578.      @comment    node-name,         next,       previous, up
  579.      @unnumbered Variable Index
  580.      
  581.      @printindex vr
  582.  
  583.      @node     Concept Index,     , Variable Index, Top
  584.      @comment      node-name, next,       previous, up
  585.      @unnumbered Concept Index
  586.      
  587.      @printindex cp
  588.  
  589.      @summarycontents
  590.      @contents
  591.      @bye
  592.  
  593. (Readers often prefer that the concept index come last in a book, since
  594. that makes it easiest to find.)
  595.  
  596. 
  597. File: texinfo.info,  Node: Contents,  Next: File End,  Prev: Printing Indices & Menus,  Up: Ending a File
  598.  
  599. Generating a Table of Contents
  600. ==============================
  601.  
  602.   The `@chapter', `@section', and other structuring commands supply the
  603. information to make up a table of contents, but they do not cause an
  604. actual table to appear in the manual.  To do this, you must use the
  605. `@contents' and `@summarycontents' commands:
  606.  
  607. `@contents'
  608.      Generate a table of contents in a printed manual, including all
  609.      chapters, sections, subsections, etc., as well as appendices and
  610.      unnumbered chapters.  (Headings generated by the `@heading' series
  611.      of commands do not appear in the table of contents.)  The
  612.      `@contents' command should be written on a line by itself.
  613.  
  614. `@shortcontents'
  615. `@summarycontents'
  616.      (`@summarycontents' is a synonym for `@shortcontents'; the two
  617.      commands are exactly the same.)
  618.  
  619.      Generate a short or summary table of contents that lists only the
  620.      chapters (and appendices and unnumbered chapters).  Omit sections,
  621.      subsections and subsubsections.  Only a long manual needs a short
  622.      table of contents in addition to the full table of contents.
  623.  
  624.      Write the `@shortcontents' command on a line by itself right
  625.      *before* the `@contents' command.
  626.  
  627.   The table of contents commands automatically generate a chapter-like
  628. heading at the top of the first table of contents page.  Write the table
  629. of contents commands at the very end of a Texinfo file, just before the
  630. `@bye' command, following any index sections--anything in the Texinfo
  631. file after the table of contents commands will be omitted from the
  632. table of contents.
  633.  
  634.   When you print a manual with a table of contents, the table of
  635. contents are printed last and numbered with roman numerals.  You need
  636. to place those pages in their proper place, after the title page,
  637. yourself.  (This is the only collating you need to do for a printed
  638. manual.  The table of contents is printed last because it is generated
  639. after the rest of the manual is typeset.)
  640.  
  641.   Here is an example of where to write table of contents commands:
  642.  
  643.      INDICES...
  644.      @shortcontents
  645.      @contents
  646.      @bye
  647.  
  648.   Since an Info file uses menus instead of tables of contents, the Info
  649. formatting commands ignore the `@contents' and `@shortcontents'
  650. commands.
  651.  
  652. 
  653. File: texinfo.info,  Node: File End,  Prev: Contents,  Up: Ending a File
  654.  
  655. `@bye' File Ending
  656. ==================
  657.  
  658.   An `@bye' command terminates TeX or Info formatting.  None of the
  659. formatting commands see any of the file following `@bye'.  The `@bye'
  660. command should be on a line by itself.
  661.  
  662.   If you wish, you may follow the `@bye' line with notes. These notes
  663. will not be formatted and will not appear in either Info or a printed
  664. manual; it is as if text after `@bye' were within `@ignore' ... `@end
  665. ignore'.  Also, you may follow the `@bye' line with a local variables
  666. list.  *Note Using Local Variables and the Compile Command:
  667. Compile-Command, for more information.
  668.  
  669. 
  670. File: texinfo.info,  Node: Structuring,  Next: Nodes,  Prev: Ending a File,  Up: Top
  671.  
  672. Chapter Structuring
  673. *******************
  674.  
  675.   The "chapter structuring" commands divide a document into a hierarchy
  676. of chapters, sections, subsections, and subsubsections.  These commands
  677. generate large headings; they also provide information for the table of
  678. contents of a printed manual (*note Generating a Table of Contents:
  679. Contents.).
  680.  
  681.   The chapter structuring commands do not create an Info node structure,
  682. so normally you should put an `@node' command immediately before each
  683. chapter structuring command (*note Nodes::.).  The only time you are
  684. likely to use the chapter structuring commands without using the node
  685. structuring commands is if you are writing a document that contains no
  686. cross references and will never be transformed into Info format.
  687.  
  688.   It is unlikely that you will ever write a Texinfo file that is
  689. intended only as an Info file and not as a printable document.  If you
  690. do, you might still use chapter structuring commands to create a
  691. heading at the top of each node--but you don't need to.
  692.  
  693. * Menu:
  694.  
  695. * Tree Structuring::            A manual is like an upside down tree ...
  696. * Structuring Command Types::   How to divide a manual into parts.
  697. * makeinfo top::                The `@top' command, part of the `Top' node.
  698. * chapter::
  699. * unnumbered & appendix::
  700. * majorheading & chapheading::
  701. * section::
  702. * unnumberedsec appendixsec heading::
  703. * subsection::
  704. * unnumberedsubsec appendixsubsec subheading::
  705. * subsubsection::               Commands for the lowest level sections.
  706. * Raise/lower sections::        How to change commands' hierarchical level.
  707.  
  708. 
  709. File: texinfo.info,  Node: Tree Structuring,  Next: Structuring Command Types,  Prev: Structuring,  Up: Structuring
  710.  
  711. Tree Structure of Sections
  712. ==========================
  713.  
  714.   A Texinfo file is usually structured like a book with chapters,
  715. sections, subsections, and the like.  This structure can be visualized
  716. as a tree (or rather as an upside-down tree) with the root at the top
  717. and the levels corresponding to chapters, sections, subsection, and
  718. subsubsections.
  719.  
  720.   Here is a diagram that shows a Texinfo file with three chapters, each
  721. of which has two sections.
  722.  
  723.                                Top
  724.                                 |
  725.               -------------------------------------
  726.              |                  |                  |
  727.           Chapter 1          Chapter 2          Chapter 3
  728.              |                  |                  |
  729.           --------           --------           --------
  730.          |        |         |        |         |        |
  731.       Section  Section   Section  Section   Section  Section
  732.         1.1      1.2       2.1      2.2       3.1      3.2
  733.  
  734.   In a Texinfo file that has this structure, the beginning of Chapter 2
  735. looks like this:
  736.  
  737.      @node    Chapter 2,  Chapter 3, Chapter 1, top
  738.      @chapter Chapter 2
  739.  
  740.   The chapter structuring commands are described in the sections that
  741. follow; the `@node' and `@menu' commands are described in following
  742. chapters. (*Note Nodes::, and see *Note Menus::.)
  743.  
  744. 
  745. File: texinfo.info,  Node: Structuring Command Types,  Next: makeinfo top,  Prev: Tree Structuring,  Up: Structuring
  746.  
  747. Types of Structuring Command
  748. ============================
  749.  
  750.   The chapter structuring commands fall into four groups or series, each
  751. of which contains structuring commands corresponding to the
  752. hierarchical levels of chapters, sections, subsections, and
  753. subsubsections.
  754.  
  755.   The four groups are the `@chapter' series, the `@unnumbered' series,
  756. the `@appendix' series, and the `@heading' series.
  757.  
  758.   Each command produces titles that have a different appearance on the
  759. printed page or Info file; only some of the commands produce titles
  760. that are listed in the table of contents of a printed book or manual.
  761.  
  762.    * The `@chapter' and `@appendix' series of commands produce numbered
  763.      or lettered entries both in the body of a printed work and in its
  764.      table of contents.
  765.  
  766.    * The `@unnumbered' series of commands produce unnumbered entries
  767.      both in the body of a printed work and in its table of contents.
  768.      The `@top' command, which has a special use, is a member of this
  769.      series (*note `@top': makeinfo top.).
  770.  
  771.    * The `@heading' series of commands produce unnumbered headings that
  772.      do not appear in a table of contents.  The heading commands never
  773.      start a new page.
  774.  
  775.    * The `@majorheading' command produces results similar to using the
  776.      `@chapheading' command but generates a larger vertical whitespace
  777.      before the heading.
  778.  
  779.    * When an `@setchapternewpage' command says to do so, the
  780.      `@chapter', `@unnumbered', and `@appendix' commands start new
  781.      pages in the printed manual; the `@heading' commands do not.
  782.  
  783.   Here are the four groups of chapter structuring commands:
  784.  
  785.                                                             No new pages
  786.      Numbered       Unnumbered       Lettered and numbered  Unnumbered
  787.      In contents    In contents          In contents        Not in contents
  788.      
  789.                     @top                                    @majorheading
  790.      @chapter       @unnumbered          @appendix          @chapheading
  791.      @section       @unnumberedsec       @appendixsec       @heading
  792.      @subsection    @unnumberedsubsec    @appendixsubsec    @subheading
  793.      @subsubsection @unnumberedsubsubsec @appendixsubsubsec @subsubheading
  794.  
  795. 
  796. File: texinfo.info,  Node: makeinfo top,  Next: chapter,  Prev: Structuring Command Types,  Up: Structuring
  797.  
  798. `@top'
  799. ======
  800.  
  801.   The `@top' command is a special sectioning command that you use only
  802. after an `@node Top' line at the beginning of a Texinfo file.  The
  803. `@top' command tells the `makeinfo' formatter which node is the `Top'
  804. node.  It has the same typesetting effect as `@unnumbered' (*note
  805. `@unnumbered': (`@appendix')unnumbered & appendix.).  For detailed
  806. information, see *Note The `@top' Command: makeinfo top command.
  807.  
  808. 
  809. File: texinfo.info,  Node: chapter,  Next: unnumbered & appendix,  Prev: makeinfo top,  Up: Structuring
  810.  
  811. `@chapter'
  812. ==========
  813.  
  814.   `@chapter' identifies a chapter in the document.  Write the command
  815. at the beginning of a line and follow it on the same line by the title
  816. of the chapter.
  817.  
  818.   For example, this chapter in this manual is entitled "Chapter
  819. Structuring"; the `@chapter' line looks like this:
  820.  
  821.      @chapter Chapter Structuring
  822.  
  823.   In TeX, the `@chapter' command creates a chapter in the document,
  824. specifying the chapter title.  The chapter is numbered automatically.
  825.  
  826.   In Info, the `@chapter' command causes the title to appear on a line
  827. by itself, with a line of asterisks inserted underneath.  Thus, in
  828. Info, the above example produces the following output:
  829.  
  830.      Chapter Structuring
  831.      *******************
  832.  
  833. 
  834. File: texinfo.info,  Node: unnumbered & appendix,  Next: majorheading & chapheading,  Prev: chapter,  Up: Structuring
  835.  
  836. `@unnumbered', `@appendix'
  837. ==========================
  838.  
  839.   Use the `@unnumbered' command to create a chapter that appears in a
  840. printed manual without chapter numbers of any kind.  Use the
  841. `@appendix' command to create an appendix in a printed manual that is
  842. labelled by letter instead of by number.
  843.  
  844.   For Info file output, the `@unnumbered' and `@appendix' commands are
  845. equivalent to `@chapter': the title is printed on a line by itself with
  846. a line of asterisks underneath.  (*Note `@chapter': chapter.)
  847.  
  848.   To create an appendix or an unnumbered chapter, write an `@appendix'
  849. or `@unnumbered' command at the beginning of a line and follow it on
  850. the same line by the title, as you would if you were creating a chapter.
  851.  
  852. 
  853. File: texinfo.info,  Node: majorheading & chapheading,  Next: section,  Prev: unnumbered & appendix,  Up: Structuring
  854.  
  855. `@majorheading', `@chapheading'
  856. ===============================
  857.  
  858.   The `@majorheading' and `@chapheading' commands put chapter-like
  859. headings in the body of a document.
  860.  
  861.   However, neither command causes TeX to produce a numbered heading or
  862. an entry in the table of contents; and neither command causes TeX to
  863. start a new page in a printed manual.
  864.  
  865.   In TeX, an `@majorheading' command generates a larger vertical
  866. whitespace before the heading than an `@chapheading' command but is
  867. otherwise the same.
  868.  
  869.   In Info, the `@majorheading' and `@chapheading' commands are
  870. equivalent to `@chapter': the title is printed on a line by itself with
  871. a line of asterisks underneath.  (*Note `@chapter': chapter.)
  872.  
  873. 
  874. File: texinfo.info,  Node: section,  Next: unnumberedsec appendixsec heading,  Prev: majorheading & chapheading,  Up: Structuring
  875.  
  876. `@section'
  877. ==========
  878.  
  879.   In a printed manual, an `@section' command identifies a numbered
  880. section within a chapter.  The section title appears in the table of
  881. contents.  In Info, an `@section' command provides a title for a
  882. segment of text, underlined with `='.
  883.  
  884.   This section is headed with an `@section' command and looks like this
  885. in the Texinfo file:
  886.  
  887.      @section @code{@@section}
  888.  
  889.   To create a section, write the `@section' command at the beginning of
  890. a line and follow it on the same line by the section title.
  891.  
  892.   Thus,
  893.  
  894.      @section This is a section
  895.  
  896. produces
  897.  
  898.      This is a section
  899.      =================
  900.  
  901. in Info.
  902.  
  903. 
  904. File: texinfo.info,  Node: unnumberedsec appendixsec heading,  Next: subsection,  Prev: section,  Up: Structuring
  905.  
  906. `@unnumberedsec', `@appendixsec', `@heading'
  907. ============================================
  908.  
  909.   The `@unnumberedsec', `@appendixsec', and `@heading' commands are,
  910. respectively, the unnumbered, appendix-like, and heading-like
  911. equivalents of the `@section' command.  (*Note `@section': section.)
  912.  
  913. `@unnumberedsec'
  914.      The `@unnumberedsec' command may be used within an unnumbered
  915.      chapter or within a regular chapter or appendix to provide an
  916.      unnumbered section.
  917.  
  918. `@appendixsec'
  919. `@appendixsection'
  920.      `@appendixsection' is a longer spelling of the `@appendixsec'
  921.      command; the two are synonymous.
  922.  
  923.      Conventionally, the `@appendixsec' or `@appendixsection' command
  924.      is used only within appendices.
  925.  
  926. `@heading'
  927.      You may use the `@heading' command anywhere you wish for a
  928.      section-style heading that will not appear in the table of
  929.      contents.
  930.  
  931. 
  932. File: texinfo.info,  Node: subsection,  Next: unnumberedsubsec appendixsubsec subheading,  Prev: unnumberedsec appendixsec heading,  Up: Structuring
  933.  
  934. The `@subsection' Command
  935. =========================
  936.  
  937.   Subsections are to sections as sections are to chapters.  (*Note
  938. `@section': section.)  In Info, subsection titles are underlined with
  939. `-'.  For example,
  940.  
  941.      @subsection This is a subsection
  942.  
  943. produces
  944.  
  945.      This is a subsection
  946.      --------------------
  947.  
  948.   In a printed manual, subsections are listed in the table of contents
  949. and are numbered three levels deep.
  950.  
  951. 
  952. File: texinfo.info,  Node: unnumberedsubsec appendixsubsec subheading,  Next: subsubsection,  Prev: subsection,  Up: Structuring
  953.  
  954. The `@subsection'-like Commands
  955. ===============================
  956.  
  957.   The `@unnumberedsubsec', `@appendixsubsec', and `@subheading'
  958. commands are, respectively, the unnumbered, appendix-like, and
  959. heading-like equivalents of the `@subsection' command.  (*Note
  960. `@subsection': subsection.)
  961.  
  962.   In Info, the `@subsection'-like commands generate a title underlined
  963. with hyphens.  In a printed manual, an `@subheading' command produces a
  964. heading like that of a subsection except that it is not numbered and
  965. does not appear in the table of contents.  Similarly, an
  966. `@unnumberedsubsec' command produces an unnumbered heading like that of
  967. a subsection and an `@appendixsubsec' command produces a
  968. subsection-like heading labelled with a letter and numbers; both of
  969. these commands produce headings that appear in the table of contents.
  970.  
  971. 
  972. File: texinfo.info,  Node: subsubsection,  Next: Raise/lower sections,  Prev: unnumberedsubsec appendixsubsec subheading,  Up: Structuring
  973.  
  974. The `subsub' Commands
  975. =====================
  976.  
  977.   The fourth and lowest level sectioning commands in Texinfo are the
  978. `subsub' commands.  They are:
  979.  
  980. `@subsubsection'
  981.      Subsubsections are to subsections as subsections are to sections.
  982.      (*Note `@subsection': subsection.)  In a printed manual,
  983.      subsubsection titles appear in the table of contents and are
  984.      numbered four levels deep.
  985.  
  986. `@unnumberedsubsubsec'
  987.      Unnumbered subsubsection titles appear in the table of contents of
  988.      a printed manual, but lack numbers.  Otherwise, unnumbered
  989.      subsubsections are the same as subsubsections.  In Info, unnumbered
  990.      subsubsections look exactly like ordinary subsubsections.
  991.  
  992. `@appendixsubsubsec'
  993.      Conventionally, appendix commands are used only for appendices and
  994.      are lettered and numbered appropriately in a printed manual.  They
  995.      also appear in the table of contents.  In Info, appendix
  996.      subsubsections look exactly like ordinary subsubsections.
  997.  
  998. `@subsubheading'
  999.      The `@subsubheading' command may be used anywhere that you need a
  1000.      small heading that will not appear in the table of contents.  In
  1001.      Info, subsubheadings look exactly like ordinary subsubsection
  1002.      headings.
  1003.  
  1004.   In Info,  `subsub' titles are underlined with periods.  For example,
  1005.  
  1006.      @subsubsection This is a subsubsection
  1007.  
  1008. produces
  1009.  
  1010.      This is a subsubsection
  1011.      .......................
  1012.  
  1013. 
  1014. File: texinfo.info,  Node: Raise/lower sections,  Prev: subsubsection,  Up: Structuring
  1015.  
  1016. `@raisesections' and `@lowersections'
  1017. =====================================
  1018.  
  1019.   The `@raisesections' and `@lowersections' commands raise and lower
  1020. the hierarchical level of chapters, sections, subsections and the like.
  1021. The `@raisesections' command changes sections to chapters, subsections
  1022. to sections, and so on.  The `@lowersections' command changes chapters
  1023. to sections, sections to subsections, and so on.
  1024.  
  1025.   An `@lowersections' command is useful if you wish to include text
  1026. that is written as an outer or standalone Texinfo file in another
  1027. Texinfo file as an inner, included file.  If you write the command at
  1028. the beginning of the file, all your `@chapter' commands are formatted
  1029. as if they were `@section' commands, all your `@section' command are
  1030. formatted as if they were `@subsection' commands, and so on.
  1031.  
  1032.   `@raisesections' raises a command one level in the chapter
  1033. structuring hierarchy:
  1034.  
  1035.        Change           To
  1036.      
  1037.      @subsection     @section,
  1038.      @section        @chapter,
  1039.      @heading        @chapheading,
  1040.                etc.
  1041.  
  1042.   `@lowersections' lowers a command one level in the chapter
  1043. structuring hierarchy:
  1044.  
  1045.        Change           To
  1046.      
  1047.      @chapter        @section,
  1048.      @subsection     @subsubsection,
  1049.      @heading        @subheading,
  1050.                etc.
  1051.  
  1052.   An `@raisesections' or `@lowersections' command changes only those
  1053. structuring commands that follow the command in the Texinfo file.
  1054. Write an `@raisesections' or `@lowersections' command on a line of its
  1055. own.
  1056.  
  1057.   An `@lowersections' command cancels an `@raisesections' command, and
  1058. vice versa.
  1059.  
  1060.   Repeated use of the commands continue to raise or lower the
  1061. hierarchical level a step at a time.
  1062.  
  1063.   An attempt to raise above `chapters' reproduces chapter commands; an
  1064. attempt to lower below `subsubsections' reproduces subsubsection
  1065. commands.
  1066.  
  1067. 
  1068. File: texinfo.info,  Node: Nodes,  Next: Menus,  Prev: Structuring,  Up: Top
  1069.  
  1070. Nodes
  1071. *****
  1072.  
  1073.   "Nodes" are the primary segments of a Texinfo file.  They do not
  1074. themselves impose a hierarchic or any other kind of structure on a file.
  1075. Nodes contain "node pointers" that name other nodes, and can contain
  1076. "menus" which are lists of nodes.  In Info, the movement commands can
  1077. carry you to a pointed-to node or to a node listed in a menu.  Node
  1078. pointers and menus provide structure for Info files just as chapters,
  1079. sections, subsections, and the like, provide structure for printed
  1080. books.
  1081.  
  1082. * Menu:
  1083.  
  1084. * Two Paths::                   Different commands to structure
  1085.                                   Info output and printed output.
  1086. * Node Menu Illustration::      A diagram, and sample nodes and menus.
  1087. * node::                        How to write a node, in detail.
  1088. * makeinfo Pointer Creation::   How to create node pointers with `makeinfo'.
  1089.  
  1090. 
  1091. File: texinfo.info,  Node: Two Paths,  Next: Node Menu Illustration,  Prev: Nodes,  Up: Nodes
  1092.  
  1093. Two Paths
  1094. =========
  1095.  
  1096.   The node and menu commands and the chapter structuring commands are
  1097. independent of each other:
  1098.  
  1099.    * In Info, node and menu commands provide structure.  The chapter
  1100.      structuring commands generate headings with different kinds of
  1101.      underlining--asterisks for chapters, hyphens for sections, and so
  1102.      on; they do nothing else.
  1103.  
  1104.    * In TeX, the chapter structuring commands generate chapter and
  1105.      section numbers and tables of contents.  The node and menu
  1106.      commands provide information for cross references; they do nothing
  1107.      else.
  1108.  
  1109.   You can use node pointers and menus to structure an Info file any way
  1110. you want; and you can write a Texinfo file so that its Info output has a
  1111. different structure than its printed output.  However, most Texinfo
  1112. files are written such that the structure for the Info output
  1113. corresponds to the structure for the printed output.  It is not
  1114. convenient to do otherwise.
  1115.  
  1116.   Generally, printed output is structured in a tree-like hierarchy in
  1117. which the chapters are the major limbs from which the sections branch
  1118. out.  Similarly, node pointers and menus are organized to create a
  1119. matching structure in the Info output.
  1120.  
  1121. 
  1122. File: texinfo.info,  Node: Node Menu Illustration,  Next: node,  Prev: Two Paths,  Up: Nodes
  1123.  
  1124. Node and Menu Illustration
  1125. ==========================
  1126.  
  1127.   Here is a copy of the diagram shown earlier that illustrates a Texinfo
  1128. file with three chapters, each of which contains two sections.
  1129.  
  1130.   Note that the "root" is at the top of the diagram and the "leaves"
  1131. are at the bottom.  This is how such a diagram is drawn conventionally;
  1132. it illustrates an upside-down tree.  For this reason, the root node is
  1133. called the `Top' node, and `Up' node pointers carry you closer to the
  1134. root.
  1135.  
  1136.                                Top
  1137.                                 |
  1138.               -------------------------------------
  1139.              |                  |                  |
  1140.           Chapter 1          Chapter 2          Chapter 3
  1141.              |                  |                  |
  1142.           --------           --------           --------
  1143.          |        |         |        |         |        |
  1144.       Section  Section   Section  Section   Section  Section
  1145.         1.1      1.2       2.1      2.2       3.1      3.2
  1146.  
  1147.   Write the beginning of the node for Chapter 2 like this:
  1148.  
  1149.      @node     Chapter 2,  Chapter 3, Chapter 1, top
  1150.      @comment  node-name,  next,      previous,  up
  1151.  
  1152. This `@node' line says that the name of this node is "Chapter 2", the
  1153. name of the `Next' node is "Chapter 3", the name of the `Previous' node
  1154. is "Chapter 1", and the name of the `Up' node is "Top".
  1155.  
  1156.      *Please Note:* `Next' refers to the next node at the same
  1157.      hierarchical level in the manual, not necessarily to the next node
  1158.      within the Texinfo file.  In the Texinfo file, the subsequent node
  1159.      may be at a lower level--a section-level node may follow a
  1160.      chapter-level node, and a subsection-level node may follow a
  1161.      section-level node.  `Next' and `Previous' refer to nodes at the
  1162.      *same* hierarchical level.  (The `Top' node contains the exception
  1163.      to this rule.  Since the `Top' node is the only node at that
  1164.      level, `Next' refers to the first following node, which is almost
  1165.      always a chapter or chapter-level node.)
  1166.  
  1167.   To go to Sections 2.1 and 2.2 using Info, you need a menu inside
  1168. Chapter 2.  (*Note Menus::.)  You would write the menu just before the
  1169. beginning of Section 2.1, like this:
  1170.  
  1171.          @menu
  1172.          * Sect. 2.1::    Description of this section.
  1173.          * Sect. 2.2::
  1174.          @end menu
  1175.  
  1176.   Write the node for Sect. 2.1 like this:
  1177.  
  1178.          @node     Sect. 2.1, Sect. 2.2, Chapter 2, Chapter 2
  1179.          @comment  node-name, next,      previous,  up
  1180.  
  1181.   In Info format, the `Next' and `Previous' pointers of a node usually
  1182. lead to other nodes at the same level--from chapter to chapter or from
  1183. section to section (sometimes, as shown, the `Previous' pointer points
  1184. up); an `Up' pointer usually leads to a node at the level above (closer
  1185. to the `Top' node); and a `Menu' leads to nodes at a level below (closer
  1186. to `leaves').  (A cross reference can point to a node at any level; see
  1187. *Note Cross References::.)
  1188.  
  1189.   Usually, an `@node' command and a chapter structuring command are
  1190. used in sequence, along with indexing commands.  (You may follow the
  1191. `@node' line with a comment line that reminds you which pointer is
  1192. which.)
  1193.  
  1194.   Here is the beginning of the chapter in this manual called "Ending a
  1195. Texinfo File".  This shows an `@node' line followed by a comment line,
  1196. an `@chapter' line, and then by indexing lines.
  1197.  
  1198.      @node    Ending a File, Structuring, Beginning a File, Top
  1199.      @comment node-name,     next,        previous,         up
  1200.      @chapter Ending a Texinfo File
  1201.      @cindex Ending a Texinfo file
  1202.      @cindex Texinfo file ending
  1203.      @cindex File ending
  1204.  
  1205. 
  1206. File: texinfo.info,  Node: node,  Next: makeinfo Pointer Creation,  Prev: Node Menu Illustration,  Up: Nodes
  1207.  
  1208. The `@node' Command
  1209. ===================
  1210.  
  1211.   A "node" is a segment of text that begins at an `@node' command and
  1212. continues until the next `@node' command.  The definition of node is
  1213. different from that for chapter or section.  A chapter may contain
  1214. sections and a section may contain subsections; but a node cannot
  1215. contain subnodes; the text of a node continues only until the next
  1216. `@node' command in the file.  A node usually contains only one chapter
  1217. structuring command, the one that follows the `@node' line.  On the
  1218. other hand, in printed output nodes are used only for cross references,
  1219. so a chapter or section may contain any number of nodes.  Indeed, a
  1220. chapter usually contains several nodes, one for each section,
  1221. subsection, and subsubsection.
  1222.  
  1223.   To create a node, write an `@node' command at the beginning of a
  1224. line, and follow it with four arguments, separated by commas, on the
  1225. rest of the same line.  These arguments are the name of the node, and
  1226. the names of the `Next', `Previous', and `Up' pointers, in that order.
  1227. You may insert spaces before each pointer if you wish; the spaces are
  1228. ignored.  You must write the name of the node, and the names of the
  1229. `Next', `Previous', and `Up' pointers, all on the same line.  Otherwise,
  1230. the formatters fail.  (*note info: (info)Top, for more information
  1231. about nodes in Info.)
  1232.  
  1233.   Usually, you write one of the chapter-structuring command lines
  1234. immediately after an `@node' line--for example, an `@section' or
  1235. `@subsection' line.  (*Note Types of Structuring Command: Structuring
  1236. Command Types.)
  1237.  
  1238.      *Please note:* The GNU Emacs Texinfo mode updating commands work
  1239.      only with Texinfo files in which `@node' lines are followed by
  1240.      chapter structuring lines.  *Note Updating Requirements::.
  1241.  
  1242.   TeX uses `@node' lines to identify the names to use for cross
  1243. references.  For this reason, you must write `@node' lines in a Texinfo
  1244. file that you intend to format for printing, even if you do not intend
  1245. to format it for Info.  (Cross references, such as the one at the end
  1246. of this sentence, are made with `@xref' and its related commands; see
  1247. *Note Cross References::.)
  1248.  
  1249. * Menu:
  1250.  
  1251. * Node Names::                  How to choose node and pointer names.
  1252. * Writing a Node::              How to write an `@node' line.
  1253. * Node Line Tips::              Keep names short.
  1254. * Node Line Requirements::      Keep names unique, without @-commands.
  1255. * First Node::                  How to write a `Top' node.
  1256. * makeinfo top command::        How to use the `@top' command.
  1257. * Top Node Summary::            Write a brief description for readers.
  1258.  
  1259. 
  1260. File: texinfo.info,  Node: Node Names,  Next: Writing a Node,  Prev: node,  Up: node
  1261.  
  1262. Choosing Node and Pointer Names
  1263. -------------------------------
  1264.  
  1265.   The name of a node identifies the node.  The pointers enable you to
  1266. reach other nodes and consist of the names of those nodes.
  1267.  
  1268.   Normally, a node's `Up' pointer contains the name of the node whose
  1269. menu mentions that node.  The node's `Next' pointer contains the name
  1270. of the node that follows that node in that menu and its `Previous'
  1271. pointer contains the name of the node that precedes it in that menu.
  1272. When a node's `Previous' node is the same as its `Up' node, both node
  1273. pointers name the same node.
  1274.  
  1275.   Usually, the first node of a Texinfo file is the `Top' node, and its
  1276. `Up' and `Previous' pointers point to the `dir' file, which contains
  1277. the main menu for all of Info.
  1278.  
  1279.   The `Top' node itself contains the main or master menu for the manual.
  1280. Also, it is helpful to include a brief description of the manual in the
  1281. `Top' node.  *Note First Node::, for information on how to write the
  1282. first node of a Texinfo file.
  1283.  
  1284.