home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 4 / FreshFish_May-June1994.bin / bbs / gnu / texinfo-3.1-bin.lha / info / texi.info-3 < prev    next >
Encoding:
GNU Info File  |  1994-02-24  |  48.7 KB  |  1,263 lines

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