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

  1. This is Info file info.info, produced by Makeinfo-1.55 from the input
  2. file info.texi.
  3.  
  4.    This file describes how to use Info, the on-line, menu-driven GNU
  5. documentation system.
  6.  
  7.    Copyright (C) 1989, 1992 Free Software Foundation, Inc.
  8.  
  9.    Permission is granted to make and distribute verbatim copies of this
  10. manual provided the copyright notice and this permission notice are
  11. preserved on all copies.
  12.  
  13.    Permission is granted to copy and distribute modified versions of
  14. this manual under the conditions for verbatim copying, provided that
  15. the entire resulting derived work is distributed under the terms of a
  16. permission notice identical to this one.
  17.  
  18.    Permission is granted to copy and distribute translations of this
  19. manual into another language, under the above conditions for modified
  20. versions, except that this permission notice may be stated in a
  21. translation approved by the Free Software Foundation.
  22.  
  23. 
  24. File: info.info,  Node: Top,  Next: Getting Started,  Prev: (dir),  Up: (dir)
  25.  
  26. Info: An Introduction
  27. *********************
  28.  
  29.    Info is a program for reading documentation, which you are using now.
  30.  
  31.    To learn how to use Info, type the command `h'.  It brings you to a
  32. programmed instruction sequence.
  33.  
  34.    To learn advanced Info commands, type `n' twice.  This brings you to
  35. `Info for Experts', skipping over the .  `Getting Started' chapter.
  36.  
  37. * Menu:
  38.  
  39. * Getting Started::
  40. * Advanced Info::
  41. * Create an Info File::
  42.  
  43. 
  44. File: info.info,  Node: Getting Started,  Next: Advanced Info,  Prev: Top,  Up: Top
  45.  
  46. Getting Started
  47. ***************
  48.  
  49.    This first part of the Info manual describes how to get around inside
  50. of Info.  The second part of the manual describes various advanced Info
  51. commands, and how to write an Info as distinct from a Texinfo file.
  52. The third part is about how to generate Info files from Texinfo files.
  53.  
  54. * Menu:
  55.  
  56. * Help-Small-Screen::   Starting Info on a Small Screen
  57. * Help::                How to use Info
  58. * Help-P::              Returning to the Previous node
  59. * Help-^L::             The Space, Rubout, B and ^L commands.
  60. * Help-M::              Menus
  61. * Help-Adv::            Some advanced Info commands
  62. * Help-Q::              Quitting Info
  63.  
  64. 
  65. File: info.info,  Node: Help-Small-Screen,  Next: Help,  Up: Getting Started
  66.  
  67. Starting Info on a Small Screen
  68. ===============================
  69.  
  70.    Since your terminal has an unusually small number of lines on its
  71. screen, it is necessary to give you special advice at the beginning.
  72.  
  73.    If you see the text `--All----' at near the bottom right corner of
  74. the screen, it means the entire text you are looking at fits on the
  75. screen.  If you see `--Top----' instead, it means that there is more
  76. text below that does not fit.  To move forward through the text and see
  77. another screen full, press the Space bar, SPC.  To move back up, press
  78. the key labeled `Rubout' or `Delete' or DEL.
  79.  
  80.    Here are 40 lines of junk, so you can try SPC and DEL and see what
  81. they do.  At the end are instructions of what you should do next.
  82.  
  83.    This is line 17
  84. This is line 18
  85. This is line 19
  86. This is line 20
  87. This is line 21
  88. This is line 22
  89. This is line 23
  90. This is line 24
  91. This is line 25
  92. This is line 26
  93. This is line 27
  94. This is line 28
  95. This is line 29
  96. This is line 30
  97. This is line 31
  98. This is line 32
  99. This is line 33
  100. This is line 34
  101. This is line 35
  102. This is line 36
  103. This is line 37
  104. This is line 38
  105. This is line 39
  106. This is line 40
  107. This is line 41
  108. This is line 42
  109. This is line 43
  110. This is line 44
  111. This is line 45
  112. This is line 46
  113. This is line 47
  114. This is line 48
  115. This is line 49
  116. This is line 50
  117. This is line 51
  118. This is line 52
  119. This is line 53
  120. This is line 54
  121. This is line 55
  122. This is line 56
  123. If you have managed to get here, go back to the beginning with DEL, and
  124. come back here again, then you understand SPC and DEL.  So now type an
  125. `n'--just one character; do not type the quotes and do not type the
  126. Return key, RET, afterward--to get to the normal start of the course.
  127.  
  128. 
  129. File: info.info,  Node: Help,  Next: Help-P,  Prev: Help-Small-Screen,  Up: Getting Started
  130.  
  131. How to use Info
  132. ===============
  133.  
  134.    You are talking to the program Info, for reading documentation.
  135.  
  136.    Right now you are looking at one "Node" of Information.  A node
  137. contains text describing a specific topic at a specific level of
  138. detail.  This node's topic is "how to use Info".
  139.  
  140.    The top line of a node is its "header".  This node's header (look at
  141. it now) says that it is the node named `Help' in the file `info'.  It
  142. says that the `Next' node after this one is the node called `Help-P'.
  143. An advanced Info command lets you go to any node whose name you know.
  144.  
  145.    Besides a `Next', a node can have a `Previous' or an `Up'.  This
  146. node has a `Previous' but no `Up', as you can see.
  147.  
  148.    Now it is time to move on to the `Next' node, named `Help-P'.
  149.  
  150.    >> Type `n' to move there.  Type just one character;    do not type
  151. the quotes and do not type a RET afterward.
  152.  
  153.    `>>' in the margin means it is really time to try a command.
  154.  
  155. 
  156. File: info.info,  Node: Help-P,  Next: Help-^L,  Prev: Help,  Up: Getting Started
  157.  
  158. Returning to the Previous node
  159. ==============================
  160.  
  161.    This node is called `Help-P'.  The `Previous' node, as you see, is
  162. `Help', which is the one you just came from using the `n' command.
  163. Another `n' command now would take you to the next node, `Help-^L'.
  164.  
  165.    >> But do not do that yet.  First, try the `p' command, which takes
  166.  you to the `Previous' node.  When you get there, you can do an    `n'
  167. again to return here.
  168.  
  169.    This all probably seems insultingly simple so far, but *do not* be
  170. led into skimming.  Things will get more complicated soon.  Also, do
  171. not try a new command until you are told it is time to.  Otherwise, you
  172. may make Info skip past an important warning that was coming up.
  173.  
  174.    >> Now do an `n' to get to the node `Help-^L' and learn more.
  175.  
  176. 
  177. File: info.info,  Node: Help-^L,  Next: Help-M,  Prev: Help-P,  Up: Getting Started
  178.  
  179. The Space, Rubout, B and ^L commands.
  180. =====================================
  181.  
  182.    This node's header tells you that you are now at node `Help-^L', and
  183. that `p' would get you back to `Help-P'.  The node's title is
  184. underlined; it says what the node is about (most nodes have titles).
  185.  
  186.    This is a big node and it does not all fit on your display screen.
  187. You can tell that there is more that is not visible because you can see
  188. the string `--Top-----' rather than `--All----' near the bottom right
  189. corner of the screen.
  190.  
  191.    The SPC, DEL and `b' commands exist to allow you to "move around" in
  192. a node that does not all fit on the screen at once.  SPC moves forward,
  193. to show what was below the bottom of the screen.  DEL moves backward,
  194. to show what was above the top of the screen (there is not anything
  195. above the top until you have typed some spaces).
  196.  
  197.    >> Now try typing a SPC (afterward, type a DEL to return here).
  198.  
  199.    When you type the SPC, the two lines that were at the bottom of the
  200. screen appear at the top, followed by more lines.  DEL takes the two
  201. lines from the top and moves them to the bottom, *usually*, but if
  202. there are not a full screen's worth of lines above them they may not
  203. make it all the way to the bottom.
  204.  
  205.    If you type a SPC when there is no more to see, it rings the bell
  206. and otherwise does nothing.  The same goes for a DEL when the header of
  207. the node is visible.
  208.  
  209.    If your screen is ever garbaged, you can tell Info to print it out
  210. again by typing `C-l' (`Control-L', that is--hold down "Control" and
  211. type an L or `l').
  212.  
  213.    >> Type `C-l' now.
  214.  
  215.    To move back to the beginning of the node you are on, you can type a
  216. lot of DELs.  You can also type simply `b' for beginning.
  217.  
  218.    >> Try that now.  (I have put in enough verbiage to make sure you are
  219.   not on the first screenful now).  Then come back, typing SPC
  220. several times.
  221.  
  222.    You have just learned a considerable number of commands.  If you
  223. want to use one but have trouble remembering which, you should type a ?
  224. which prints out a brief list of commands.  When you are finished
  225. looking at the list, make it go away by typing a SPC.
  226.  
  227.    >> Type a ? now.  After it finishes, type a SPC.
  228.  
  229.    (If you are using the standalone Info reader, type `l' to return
  230. here.)
  231.  
  232.    From now on, you will encounter large nodes without warning, and
  233. will be expected to know how to use SPC and DEL to move around in them
  234. without being told.  Since not all terminals have the same size screen,
  235. it would be impossible to warn you anyway.
  236.  
  237.    >> Now type `n' to see the description of the `m' command.
  238.  
  239. 
  240. File: info.info,  Node: Help-M,  Next: Help-Adv,  Prev: Help-^L,  Up: Getting Started
  241.  
  242. Menus
  243. =====
  244.  
  245.    Menus and the `m' command
  246.  
  247.    With only the `n' and `p' commands for moving between nodes, nodes
  248. are restricted to a linear sequence.  Menus allow a branching
  249. structure.  A menu is a list of other nodes you can move to.  It is
  250. actually just part of the text of the node formatted specially so that
  251. Info can interpret it.  The beginning of a menu is always identified by
  252. a line which starts with `* Menu:'.  A node contains a menu if and only
  253. if it has a line in it which starts that way.  The only menu you can
  254. use at any moment is the one in the node you are in.  To use a menu in
  255. any other node, you must move to that node first.
  256.  
  257.    After the start of the menu, each line that starts with a `*'
  258. identifies one subtopic.  The line usually contains a brief name for
  259. the subtopic (followed by a `:'), the name of the node that talks about
  260. that subtopic, and optionally some further description of the subtopic.
  261. Lines in the menu that do not start with a `*' have no special
  262. meaning--they are only for the human reader's benefit and do not define
  263. additional subtopics.  Here is an example:
  264.  
  265.      * Foo:  FOO's Node      This tells about FOO
  266.  
  267.    The subtopic name is Foo, and the node describing it is `FOO's Node'.
  268. The rest of the line is just for the reader's Information.  [[ But this
  269. line is not a real menu item, simply because there is no line above it
  270. which starts with `* Menu:'.]]
  271.  
  272.    When you use a menu to go to another node (in a way that will be
  273. described soon), what you specify is the subtopic name, the first thing
  274. in the menu line.  Info uses it to find the menu line, extracts the
  275. node name from it, and goes to that node.  The reason that there is
  276. both a subtopic name and a node name is that the node name must be
  277. meaningful to the computer and may therefore have to be ugly looking.
  278. The subtopic name can be chosen just to be convenient for the user to
  279. specify.  Often the node name is convenient for the user to specify and
  280. so both it and the subtopic name are the same.  There is an
  281. abbreviation for this:
  282.  
  283.      * Foo::   This tells about FOO
  284.  
  285. This means that the subtopic name and node name are the same; they are
  286. both `Foo'.
  287.  
  288.    >> Now use SPCs to find the menu in this node, then come back to
  289. the front with a `b'.  As you see, a menu is actually visible in    its
  290. node.  If you cannot find a menu in a node by looking at it,    then
  291. the node does not have a menu and the `m' command is not    available.
  292.  
  293.    The command to go to one of the subnodes is `m'--but *do not do it
  294. yet!*  Before you use `m', you must understand the difference between
  295. commands and arguments.  So far, you have learned several commands that
  296. do not need arguments.  When you type one, Info processes it and is
  297. instantly ready for another command.  The `m' command is different: it
  298. is incomplete without the "name of the subtopic".  Once you have typed
  299. `m', Info tries to read the subtopic name.
  300.  
  301.    Now look for the line containing many dashes near the bottom of the
  302. screen.  There is one more line beneath that one, but usually it is
  303. blank If it is empty, Info is ready for a command, such as `n' or `b'
  304. or SPC or `m'.  If that line contains text ending in a colon, it mean
  305. Info is trying to read the "argument" to a command.  At such times,
  306. commands do not work, because Info tries to use them as the argument.
  307. You must either type the argument and finish the command you started,
  308. or type `Control-g' to cancel the command.  When you have done one of
  309. those things, the line becomes blank again.
  310.  
  311.    The command to go to a subnode via a menu is `m'.  After you type
  312. the `m', the line at the bottom of the screen says `Menu item: '.  You
  313. must then type the name of the subtopic you want, and end it with a RET.
  314.  
  315.    You can abbreviate the subtopic name.  If the abbreviation is not
  316. unique, the first matching subtopic is chosen.  Some menus put the
  317. shortest possible abbreviation for each subtopic name in capital
  318. letters, so you can see how much you need to type.  It does not matter
  319. whether you use upper case or lower case when you type the subtopic.
  320. You should not put any spaces at the end, or inside of the item name,
  321. except for one space where a space appears in the item in the menu.
  322.  
  323.    Here is a menu to give you a chance to practice.
  324.  
  325.    * Menu:       The menu starts here.
  326.  
  327.    This menu givs you three ways of going to one place, Help-FOO.
  328.  
  329.    * Foo:  Help-FOO.       A node you can visit for fun.
  330. * Bar:  Help-FOO.       Strange!  two ways to get to the same place.
  331. * Help-FOO::            And yet another!
  332. >>  Now type just an `m' and see what happens:
  333.  
  334.    Now you are "inside" an `m' command.  Commands cannot be used now;
  335. the next thing you will type must be the name of a subtopic.
  336.  
  337.    You can change your mind about doing the `m' by typing Control-g.
  338.  
  339.    >> Try that now;  notice the bottom line clear.
  340.  
  341.    >> Then type another `m'.
  342.  
  343.    >> Now type `BAR' item name.  Do not type RET yet.
  344.  
  345.    While you are typing the item name, you can use the DEL character to
  346. cancel one character at a time if you make a mistake.
  347.  
  348.    >> Type one to cancel the `R'.  You could type another `R' to
  349. replace it.  You do not have to, since `BA' is a valid abbreviation.
  350.  
  351.    >> Now you are ready to go.  Type a RET.
  352.  
  353.    After visiting Help-FOO, you should return here.
  354.  
  355.    >> Type `n' to see more commands.
  356.  
  357.    Here is another way to get to  Help-FOO, a menu.  You can ignore this
  358. if you want, or else try it (but then please come back to here).
  359.  
  360. * Menu:
  361.  
  362. * Help-FOO::
  363.  
  364. 
  365. File: info.info,  Node: Help-FOO,  Up: Help-M
  366.  
  367. The `u' command
  368. ---------------
  369.  
  370.    Congratulations!  This is the node `Help-FOO'.  Unlike the other
  371. nodes you have seen, this one has an `Up': `Help-M', the node you just
  372. came from via the `m' command.  This is the usual convention--the nodes
  373. you reach from a menu have `Up' nodes that lead back to the menu.
  374. Menus move Down in the tree, and `Up' moves Up.  `Previous', on the
  375. other hand, is usually used to "stay on the same level but go backwards"
  376.  
  377.    You can go back to the node `Help-M' by typing the command `u' for
  378. "Up".  That puts you at the *front* of the node--to get back to where
  379. you were reading you have to type some SPCs.
  380.  
  381.    >> Now type `u' to move back up to `Help-M'.
  382.  
  383. 
  384. File: info.info,  Node: Help-Adv,  Next: Help-Q,  Prev: Help-M,  Up: Getting Started
  385.  
  386. Some advanced Info commands
  387. ===========================
  388.  
  389.    The course is almost over, so please stick with it to the end.
  390.  
  391.    If you have been moving around to different nodes and wish to
  392. retrace your steps, the `l' command (`l' for "last") will do that, one
  393. node at a time.  If you have been following directions, an `l' command
  394. now will get you back to `Help-M'.  Another `l' command would undo the
  395. `u' and get you back to `Help-FOO'.  Another `l' would undo the `m' and
  396. get you back to `Help-M'.
  397.  
  398.    >> Try typing three `l''s, pausing in between to see what each
  399. `l' does.
  400.  
  401.    Then follow directions again and you will end up back here.
  402.  
  403.    Note the difference between `l' and `p': `l' moves to where *you*
  404. last were, whereas `p' always moves to the node which the header says
  405. is the `Previous' node (from this node, to `Help-M').
  406.  
  407.    The `d' command gets you instantly to the Directory node.  This
  408. node, which is the first one you saw when you entered Info, has a menu
  409. which leads (directly, or indirectly through other menus), to all the
  410. nodes that exist.
  411.  
  412.    >> Try doing a `d', then do an `l' to return here (yes,    *do*
  413. return).
  414.  
  415.    Sometimes, in Info documentation, you will see a cross reference.
  416. Cross references look like this: *Note Cross: Help-Cross.  That is a
  417. real, live cross reference which is named `Cross' and points at the
  418. node named `Help-Cross'.
  419.  
  420.    If you wish to follow a cross reference, you must use the `f'
  421. command.  The `f' must be followed by the cross reference name (in this
  422. case, `Cross').  You can use DEL to edit the name, and if you change
  423. your mind about following any reference you can use `Control-g' to
  424. cancel the command.
  425.  
  426.    Completion is available in the `f' command; you can complete among
  427. all the cross reference names in the current node.
  428.  
  429.    >> Type `f', followed by `Cross', and a RET.
  430.  
  431.    To get a list of all the cross references in the current node, you
  432. can type `?' after an `f'.  The `f' continues to await a cross
  433. reference name even after printing the list, so if you do not actually
  434. want to follow a reference you should type a `Control-g' to cancel the
  435. `f'.
  436.  
  437.    >> Type "f?" to get a list of the footnotes in this node.  Then type
  438. a    `Control-g' and see how the `f' gives up.
  439.  
  440.    >> Now type `n' to see the last node of the course.
  441.  
  442. 
  443. File: info.info,  Node: Help-Cross,  Up: Help-Adv
  444.  
  445. The node reached by the cross reference in Info
  446. -----------------------------------------------
  447.  
  448.    This is the node reached by the cross reference named `Cross'.
  449.  
  450.    While this node is specifically intended to be reached by a cross
  451. reference, most cross references lead to nodes that "belong" someplace
  452. else far away in the structure of Info.  So you cannot expect the
  453. footnote to have a `Next', `Previous' or `Up' pointing back to where
  454. you came from.  In general, the `l' (el) command is the only way to get
  455. back there.
  456.  
  457.    >> Type `l' to return to the node where the cross reference was.
  458.  
  459. 
  460. File: info.info,  Node: Help-Q,  Prev: Help-Adv,  Up: Getting Started
  461.  
  462. Quitting Info
  463. =============
  464.  
  465.    To get out of Info, back to what you were doing before, type `q' for
  466. "Quit".
  467.  
  468.    This is the end of the course on using Info.  There are some other
  469. commands that are not essential or are meant for experienced users;
  470. they are useful, and you can find them by looking in the directory for
  471. documentation on Info.  Finding them will be a good exercise in using
  472. Info in the usual manner.
  473.  
  474.    >> Type `d' to go to the Info directory node; then type    `mInfo'
  475. and RET, to get to the node about Info    and see what other help is
  476. available.
  477.  
  478. 
  479. File: info.info,  Node: Advanced Info,  Next: Create an Info File,  Prev: Getting Started,  Up: Top
  480.  
  481. Info for Experts
  482. ****************
  483.  
  484.    This chapter describes various advanced Info commands, and how to
  485. write an Info as distinct from a Texinfo file.  (However, in most
  486. cases, writing a Texinfo file is better, since you can use it *both* to
  487. generate an Info file and to make a printed manual.  *Note Overview of
  488. Texinfo: (texinfo)Top.)
  489.  
  490. * Menu:
  491.  
  492. * Expert::              Advanced Info commands: g, s, e, and 1 - 5.
  493. * Add::                 Describes how to add new nodes to the hierarchy.
  494.                           Also tells what nodes look like.
  495. * Menus::               How to add to or create menus in Info nodes.
  496. * Cross-refs::          How to add cross-references to Info nodes.
  497. * Tags::                How to make tag tables for Info files.
  498. * Checking::            Checking an Info File
  499.  
  500. 
  501. File: info.info,  Node: Expert,  Next: Add,  Up: Advanced Info
  502.  
  503. Advanced Info Commands
  504. ======================
  505.  
  506.    `g', `s', `1', - `5', and `e'
  507.  
  508.    If you know a node's name, you can go there by typing `g', the name,
  509. and RET.  Thus, `gTopRET' would go to the node called `Top' in this
  510. file (its directory node).  `gExpertRET' would come back here.
  511.  
  512.    Unlike `m', `g' does not allow the use of abbreviations.
  513.  
  514.    To go to a node in another file, you can include the filename in the
  515. node name by putting it at the front, in parentheses.  Thus,
  516. `g(dir)TopRET' would go to the Info Directory node, which is node `Top'
  517. in the file `dir'.
  518.  
  519.    The node name `*' specifies the whole file.  So you can look at all
  520. of the current file by typing `g*RET' or all of any other file with
  521. `g(FILENAME)RET'.
  522.  
  523.    The `s' command allows you to search a whole file for a string.  It
  524. switches to the next node if and when that is necessary.  You type `s'
  525. followed by the string to search for, terminated by RET.  To search for
  526. the same string again, just `s' followed by RET will do.  The file's
  527. nodes are scanned in the order they are in in the file, which has no
  528. necessary relationship to the order that they may be in in the tree
  529. structure of menus and `next' pointers.  But normally the two orders
  530. are not very different.  In any case, you can always do a `b' to find
  531. out what node you have reached, if the header is not visible (this can
  532. happen, because `s' puts your cursor at the occurrence of the string,
  533. not at the beginning of the node).
  534.  
  535.    If you grudge the system each character of type-in it requires, you
  536. might like to use the commands `1', `2', `3', `4', and `5'.  They are
  537. short for the `m' command together with an argument.  "1", "2", "3",
  538. "4", and "5".  `1' goes through the first item in the current node's
  539. menu; `2' goes through the second item, etc.  Note that numbers larger
  540. than 5 are not allowed.  If the item you want is that far down, you are
  541. better off using an abbreviation for its name than counting.
  542.  
  543.    The Info command `e' changes from Info mode to an ordinary Emacs
  544. editing mode, so that you can edit the text of the current node.  Type
  545. `C-c C-c' to switch back to Info.  The `e' command is allowed only if
  546. the variable `Info-enable-edit' is non-`nil'.
  547.  
  548. 
  549. File: info.info,  Node: Add,  Next: Menus,  Prev: Expert,  Up: Advanced Info
  550.  
  551. Adding a new node to Info
  552. =========================
  553.  
  554.    To add a new topic to the list in the directory, you must:
  555.  
  556.   1. Create a node, in some file, to document that topic.
  557.  
  558.   2. Put that topic in the menu in the directory.  *Note Menu: Menus.
  559.  
  560.    The new node can live in an existing documentation file, or in a new
  561. one.  It must have a ^_ character before it (invisible to the user;
  562. this node has one but you cannot see it), and it ends with either a ^_,
  563. a ^L, or the end of file.  Note: If you put in a ^L to end a new node,
  564. be sure that there is a ^_ after it to start the next one, since ^L
  565. cannot *start* a node.  Also, a nicer way to make a node boundary be a
  566. page boundary as well is to put a ^L *right after* the ^_.
  567.  
  568.    The ^_ starting a node must be followed by a newline or a ^L
  569. newline, after which comes the node's header line.  The header line
  570. must give the node's name (by which Info finds it), and state the names
  571. of the `Next', `Previous', and `Up' nodes (if there are any).  As you
  572. can see, this node's `Up' node is the node `Top', which points at all
  573. the documentation for Info.  The `Next' node is `Menus'.
  574.  
  575.    The keywords "Node", "Previous", "Up" and "Next", may appear in any
  576. order, anywhere in the header line, but the recommended order is the
  577. one in this sentence.  Each keyword must be followed by a colon, spaces
  578. and tabs, and then the appropriate name.  The name may be terminated
  579. with a tab, a comma, or a newline.  A space does not end it; node names
  580. may contain spaces.  The case of letters in the names is insignificant.
  581.  
  582.    A node name has two forms.  A node in the current file is named by
  583. what appears after the `Node: ' in that node's first line.  For
  584. example, this node's name is `Add'.  A node in another file is named by
  585. `(FILENAME)NODE-WITHIN-FILE', as in `(info)Add' for this node.  If the
  586. file name is relative, it is taken starting from the standard Info file
  587. directory of your site.  The name `(FILENAME)Top' can be abbreviated to
  588. just `(FILENAME)'.  By convention, the name `Top' is used for the
  589. "highest" node in any single file--the node whose `Up' points out of
  590. the file.  The Directory node is `(dir)'.  The `Top' node of a document
  591. file listed in the Directory should have an `Up: (dir)' in it.
  592.  
  593.    The node name `*' is special: it refers to the entire file.  Thus,
  594. `g*' shows you the whole current file.  The use of the node `*' is to
  595. make it possible to make old-fashioned, unstructured files into nodes
  596. of the tree.
  597.  
  598.    The `Node:' name, in which a node states its own name, must not
  599. contain a filename, since Info when searching for a node does not
  600. expect one to be there.  The `Next', `Previous' and `Up' names may
  601. contain them.  In this node, since the `Up' node is in the same file,
  602. it was not necessary to use one.
  603.  
  604.    Note that the nodes in this file have a file name in the header
  605. line.  The file names are ignored by Info, but they serve as comments
  606. to help identify the node for the user.
  607.  
  608. 
  609. File: info.info,  Node: Menus,  Next: Cross-refs,  Prev: Add,  Up: Advanced Info
  610.  
  611. How to Create Menus
  612. ===================
  613.  
  614.    Any node in the Info hierarchy may have a "menu"--a list of subnodes.
  615. The `m' command searches the current node's menu for the topic which it
  616. reads from the terminal.
  617.  
  618.    A menu begins with a line starting with `* Menu:'.  The rest of the
  619. line is a comment.  After the starting line, every line that begins
  620. with a `* ' lists a single topic.  The name of the topic-the argument
  621. that the user must give to the `m' command to select this topic--comes
  622. right after the star and space, and is followed by a colon, spaces and
  623. tabs, and the name of the node which discusses that topic.  The node
  624. name, like node names following `Next', `Previous' and `Up', may be
  625. terminated with a tab, comma, or newline; it may also be terminated
  626. with a period.
  627.  
  628.    If the node name and topic name are the same, than rather than
  629. giving the name twice, the abbreviation `* NAME::' may be used (and
  630. should be used, whenever possible, as it reduces the visual clutter in
  631. the menu).
  632.  
  633.    It is considerate to choose the topic names so that they differ from
  634. each other very near the beginning--this allows the user to type short
  635. abbreviations.  In a long menu, it is a good idea to capitalize the
  636. beginning of each item name which is the minimum acceptable
  637. abbreviation for it (a long menu is more than 5 or so entries).
  638.  
  639.    The nodes listed in a node's menu are called its "subnodes", and it
  640. is their "superior".  They should each have an `Up:' pointing at the
  641. superior.  It is often useful to arrange all or most of the subnodes in
  642. a sequence of `Next' and `Previous' pointers so that someone who wants
  643. to see them all need not keep revisiting the Menu.
  644.  
  645.    The Info Directory is simply the menu of the node `(dir)Top'--that
  646. is, node `Top' in file `.../info/dir'.  You can put new entries in that
  647. menu just like any other menu.  The Info Directory is *not* the same as
  648. the file directory called `info'.  It happens that many of Info's files
  649. live on that file directory, but they do not have to; and files on that
  650. directory are not automatically listed in the Info Directory node.
  651.  
  652.    Also, although the Info node graph is claimed to be a "hierarchy",
  653. in fact it can be *any* directed graph.  Shared structures and pointer
  654. cycles are perfectly possible, and can be used if they are appropriate
  655. to the meaning to be expressed.  There is no need for all the nodes in
  656. a file to form a connected structure.  In fact, this file has two
  657. connected components.  You are in one of them, which is under the node
  658. `Top'; the other contains the node `Help' which the `h' command goes
  659. to.  In fact, since there is no garbage collector, nothing terrible
  660. happens if a substructure is not pointed to, but such a substructure is
  661. rather useless since nobody can ever find out that it exists.
  662.  
  663. 
  664. File: info.info,  Node: Cross-refs,  Next: Tags,  Prev: Menus,  Up: Advanced Info
  665.  
  666. Creating Cross References
  667. =========================
  668.  
  669.    A cross reference can be placed anywhere in the text, unlike a menu
  670. item which must go at the front of a line.  A cross reference looks
  671. like a menu item except that it has `*note' instead of `*'.  It
  672. *cannot* be terminated by a `)', because `)''s are so often part of
  673. node names.  If you wish to enclose a cross reference in parentheses,
  674. terminate it with a period first.  Here are two examples of cross
  675. references pointers:
  676.  
  677.      *Note details: commands.  (See *note 3: Full Proof.)
  678.  
  679.    They are just examples.  The places they "lead to" do not really
  680. exist!
  681.  
  682. 
  683. File: info.info,  Node: Tags,  Next: Checking,  Prev: Cross-refs,  Up: Advanced Info
  684.  
  685. Tag Tables for Info Files
  686. =========================
  687.  
  688.    You can speed up the access to nodes of a large Info file by giving
  689. it a tag table.  Unlike the tag table for a program, the tag table for
  690. an Info file lives inside the file itself and is used automatically
  691. whenever Info reads in the file.
  692.  
  693.    To make a tag table, go to a node in the file using Emacs Info mode
  694. and type `M-x Info-tagify'.  Then you must use `C-x C-s' to save the
  695. file.
  696.  
  697.    Once the Info file has a tag table, you must make certain it is up
  698. to date.  If, as a result of deletion of text, any node moves back more
  699. than a thousand characters in the file from the position recorded in
  700. the tag table, Info will no longer be able to find that node.  To
  701. update the tag table, use the `Info-tagify' command again.
  702.  
  703.    An Info file tag table appears at the end of the file and looks like
  704. this:
  705.  
  706.      ^_
  707.      Tag Table:
  708.      File: info, Node: Cross-refs^?21419
  709.      File: info,  Node: Tags^?22145
  710.      ^_
  711.      End Tag Table
  712.  
  713. Note that it contains one line per node, and this line contains the
  714. beginning of the node's header (ending just after the node name), a DEL
  715. character, and the character position in the file of the beginning of
  716. the node.
  717.  
  718. 
  719. File: info.info,  Node: Checking,  Prev: Tags,  Up: Advanced Info
  720.  
  721. Checking an Info File
  722. =====================
  723.  
  724.    When creating an Info file, it is easy to forget the name of a node
  725. when you are making a pointer to it from another node.  If you put in
  726. the wrong name for a node, this is not detected until someone tries to
  727. go through the pointer using Info.  Verification of the Info file is an
  728. automatic process which checks all pointers to nodes and reports any
  729. pointers which are invalid.  Every `Next', `Previous', and `Up' is
  730. checked, as is every menu item and every cross reference.  In addition,
  731. any `Next' which does not have a `Previous' pointing back is reported.
  732. Only pointers within the file are checked, because checking pointers to
  733. other files would be terribly slow.  But those are usually few.
  734.  
  735.    To check an Info file, do `M-x Info-validate' while looking at any
  736. node of the file with Emacs Info mode.
  737.  
  738. 
  739. File: info.info,  Node: Create an Info File,  Prev: Advanced Info,  Up: Top
  740.  
  741. Creating an Info File from a Makeinfo file
  742. ******************************************
  743.  
  744.    `makeinfo' is a utility that converts a Texinfo file into an Info
  745. file; `texinfo-format-region' and `texinfo-format-buffer' are GNU Emacs
  746. functions that do the same.
  747.  
  748.    *Note Creating an Info File: (texinfo)Create an Info File, to learn
  749. how to create an Info file from a Texinfo file.
  750.  
  751.    *Note Overview of Texinfo: (texinfo)Top, to learn how to write a
  752. Texinfo file.
  753.  
  754.  
  755. 
  756. Tag Table:
  757. Node: Top913
  758. Node: Getting Started1431
  759. Node: Help-Small-Screen2179
  760. Node: Help3921
  761. Node: Help-P4949
  762. Node: Help-^L5811
  763. Node: Help-M8462
  764. Node: Help-FOO14030
  765. Node: Help-Adv14766
  766. Node: Help-Cross17148
  767. Node: Help-Q17794
  768. Node: Advanced Info18434
  769. Node: Expert19330
  770. Node: Add21601
  771. Node: Menus24635
  772. Node: Cross-refs27509
  773. Node: Tags28211
  774. Node: Checking29510
  775. Node: Create an Info File30434
  776. 
  777. End Tag Table
  778.