home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / info / texinfo.i02 < prev    next >
Encoding:
GNU Info File  |  1993-06-12  |  50.4 KB  |  1,280 lines

  1. This is Info file texinfo, produced by Makeinfo-1.47 from the input
  2. file texinfo2.tex.
  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 Free Software Foundation, Inc.
  9.  
  10.    This is the second edition of the Texinfo documentation,
  11. and is consistent with version 2 of `texinfo.tex'.
  12.  
  13.    Permission is granted to make and distribute verbatim copies of this
  14. manual provided the copyright notice and this permission notice are
  15. preserved on all copies.
  16.  
  17.    Permission is granted to copy and distribute modified versions of
  18. this manual under the conditions for verbatim copying, provided that
  19. the entire resulting derived work is distributed under the terms of a
  20. permission notice identical to this one.
  21.  
  22.    Permission is granted to copy and distribute translations of this
  23. manual into another language, under the above conditions for modified
  24. versions, except that this permission notice may be stated in a
  25. translation approved by the Foundation.
  26.  
  27. 
  28. File: texinfo,  Node: Texinfo Mode Overview,  Next: Emacs Editing,  Up: Texinfo Mode
  29.  
  30. Texinfo Mode Overview
  31. =====================
  32.  
  33.    Texinfo mode provides special features for working with Texinfo
  34. files:
  35.  
  36.    * Insert frequently used @commands.
  37.  
  38.    * Automatically create `@node' lines.
  39.  
  40.    * Show the structure of a Texinfo source file.
  41.  
  42.    * Automatically create or update the `Next',
  43.      `Previous', and `Up' pointers of a node.
  44.  
  45.    * Automatically create or update menus.
  46.  
  47.    * Automatically create a master menu.
  48.  
  49.    * Format a part or all of a file for Info.
  50.  
  51.    * Typeset and print part or all of a file.
  52.  
  53.    Perhaps the two most helpful features are those for inserting
  54. frequently used @-commands and for creating node pointers and menus.
  55.  
  56. 
  57. File: texinfo,  Node: Emacs Editing,  Next: Inserting,  Prev: Texinfo Mode Overview,  Up: Texinfo Mode
  58.  
  59. The Usual GNU Emacs Editing Commands
  60. ====================================
  61.  
  62.    In most cases, the usual Text mode commands work the same in Texinfo
  63. mode as they do in Text mode.  Texinfo mode adds new editing commands
  64. and tools to GNU Emacs' general purpose editing features.  The major
  65. difference concerns filling.  In Texinfo mode, the paragraph separation
  66. variable and syntax table are redefined so that Texinfo commands that
  67. should be on lines of their own are not inadvertently included in
  68. paragraphs.  Thus, the `M-q' (`fill-paragraph') command will refill a
  69. paragraph but not mix an indexing command on a line adjacent to it into
  70. the paragraph.
  71.  
  72.    In addition, Texinfo mode sets the `page-delimiter' variable to the
  73. value of `texinfo-chapter-level-regexp'; by default, this is a regular
  74. expression matching the commands for chapters and their equivalents,
  75. such as appendices.  With this value for the page delimiter, you can
  76. jump from chapter title to chapter title with the `C-x ]'
  77. (`forward-page') and `C-x [' (`backward-page') commands and narrow to a
  78. chapter with the `C-x p' (`narrow-to-page') command.  (*Note Pages:
  79. (emacs)Pages, for details about the page commands.)
  80.  
  81.    You may name a Texinfo file however you wish, but the convention is
  82. to end a Texinfo file name with one of the three extensions `.texinfo',
  83. `.texi', or `.tex'.  A longer extension is preferred, since it is
  84. explicit, but a shorter extension may be necessary for operating
  85. systems that limit the length of file names. GNU Emacs automatically
  86. enters Texinfo mode when you visit a file with a `.texinfo' or  `.texi'
  87. extension.  Also, Emacs switches to Texinfo mode when you visit a file
  88. that has `-*-texinfo-*-' in its first line.  If ever you are in another
  89. mode and wish to switch to Texinfo mode, type `M-x texinfo-mode'.
  90.  
  91.    Like all other Emacs features, you can customize or enhance Texinfo
  92. mode as you wish.  In particular, the keybindings are very easy to
  93. change.  The keybindings described here are the default or standard
  94. ones.
  95.  
  96. 
  97. File: texinfo,  Node: Inserting,  Next: Showing the Structure,  Prev: Emacs Editing,  Up: Texinfo Mode
  98.  
  99. Inserting Frequently Used Commands
  100. ==================================
  101.  
  102.    Texinfo mode provides commands to insert various frequently used
  103. @-commands into the buffer.  You can use these commands to save
  104. keystrokes.
  105.  
  106.    The insert commands are invoked by typing `C-c' twice and then the
  107. first letter of the @-command:
  108.  
  109. `C-c C-c c'
  110. `M-x texinfo-insert-@code'
  111.      Insert `@code{}' and put the cursor between the braces.
  112.  
  113. `C-c C-c d'
  114. `M-x texinfo-insert-@dfn'
  115.      Insert `@dfn{}' and put the cursor between the braces.
  116.  
  117. `C-c C-c e'
  118. `M-x texinfo-insert-@end'
  119.      Insert `@end' and attempt to insert the correct following word,
  120.      such as `example' or `table'.  (This command does not handle
  121.      nested lists correctly, but inserts the word appropriate to the
  122.      immediately preceding list.)
  123.  
  124. `C-c C-c i'
  125. `M-x texinfo-insert-@item'
  126.      Insert `@item' and put the cursor at the beginning of the next
  127.      line.
  128.  
  129. `C-c C-c k'
  130. `M-x texinfo-insert-@kbd'
  131.      Insert `@kbd{}' and put the cursor between the braces.
  132.  
  133. `C-c C-c n'
  134. `M-x texinfo-insert-@node'
  135.      Insert `@node' and a comment line listing the sequence for the
  136.      `Next', `Previous', and `Up' nodes. Leave point after the `@node'.
  137.  
  138. `C-c C-c o'
  139. `M-x texinfo-insert-@noindent'
  140.      Insert `@noindent' and put the cursor at the beginning of the next
  141.      line.
  142.  
  143. `C-c C-c s'
  144. `M-x texinfo-insert-@samp'
  145.      Insert `@samp{}' and put the cursor between the braces.
  146.  
  147. `C-c C-c t'
  148. `M-x texinfo-insert-@table'
  149.      Insert `@table' followed by a SPC and leave the cursor after the
  150.      SPC.
  151.  
  152. `C-c C-c v'
  153. `M-x texinfo-insert-@var'
  154.      Insert `@var{}' and put the cursor between the braces.
  155.  
  156. `C-c C-c x'
  157. `M-x texinfo-insert-@example'
  158.      Insert `@example' and put the cursor at the beginning of the next
  159.      line.
  160.  
  161. `C-c C-c {'
  162. `M-x texinfo-insert-braces'
  163.      Insert `{}' and put the cursor between the braces.
  164.  
  165. `C-c C-c }'
  166. `C-c C-c ]'
  167. `M-x up-list'
  168.      Move from between a pair of braces forward past the closing brace.
  169.      Typing `C-c C-c ]' is easier than typing `C-c C-c }', which is,
  170.      however, more mnemonic; hence the two keybindings.  (Also, you can
  171.      move out from between braces by typing `C-f'.)
  172.  
  173.    To put a command such as `@code{...}' around an *existing* word,
  174. position the cursor in front of the word and type `C-u 1 C-c C-c c'. 
  175. This makes it easy to edit existing plain text. The value of the prefix
  176. argument tells Emacs how many words following point to include between
  177. braces--1 for one word, 2 for two words, and so on.  Use a negative
  178. argument to enclose the previous word or words. If you do not specify a
  179. prefix argument, Emacs inserts the @-command string and positions the
  180. cursor between the braces.  This feature works only for those
  181. @-commands that operates on a word or words within one line, such as
  182. `@kbd' and `@var'.
  183.  
  184.    This set of insert commands was created after analyzing the frequency
  185. with which different @-commands are used in the `GNU Emacs Manual' and
  186. the `GDB Manual'.  If you wish to add your own insert commands, you can
  187. bind a keyboard macro to a key, use abbreviations, or extend the code
  188. in `texinfo.el'.
  189.  
  190. 
  191. File: texinfo,  Node: Showing the Structure,  Next: Updating Nodes and Menus,  Prev: Inserting,  Up: Texinfo Mode
  192.  
  193. Showing the Section Structure of a File
  194. =======================================
  195.  
  196.    You can show the section structure of a Texinfo file by using the
  197. `C-c C-s' command (`texinfo-show-structure').  This command shows the
  198. section structure of a Texinfo file by listing the lines that begin
  199. with the @-commands for `@chapter', `@section', and the like.  The
  200. command constructs what amounts to a table of contents.  These lines
  201. are displayed in another buffer called the `*Occur*' buffer.  In that
  202. buffer, you can position the cursor over one of the lines and use the
  203. `C-c C-c' command (`occur-mode-goto-occurrence'), to jump to the
  204. corresponding spot in the Texinfo file.
  205.  
  206. `C-c C-s'
  207. `M-x texinfo-show-structure'
  208.      Show the `@chapter', `@section', and such lines of a Texinfo file.
  209.  
  210. `C-c C-c'
  211. `M-x occur-mode-goto-occurrence'
  212.      Go to the line in the Texinfo file corresponding to the line under
  213.      the cursor in the `*Occur*' buffer.
  214.  
  215.    If you call `texinfo-show-structure' with a prefix argument by
  216. typing `C-u C-c C-s', it will list not only those lines with the
  217. @-commands for `@chapter', `@section', and the like, but also the
  218. `@node' lines.  (This is how the `texinfo-show-structure' command
  219. worked without an argument in the first version of Texinfo.  It was
  220. changed because `@node' lines clutter up the `*Occur*' buffer and are
  221. usually not needed.)  You can use `texinfo-show-structure' with a prefix
  222. argument to check whether the `Next', `Previous', and `Up' pointers of
  223. an `@node' line are correct.
  224.  
  225.    Often, when you are working on a manual, you will be interested only
  226. in the structure of the current chapter.  In this case, you can mark
  227. off the region of the buffer that you are interested in with the `C-x
  228. n' (`narrow-to-region') command and `texinfo-show-structure' will work
  229. on only that region.  To see the whole buffer again, use `C-x w'
  230. (`widen'). (*Note Narrowing: (emacs)Narrowing, for more information
  231. about the narrowing commands.)
  232.  
  233.    In addition to providing the `texinfo-show-structure' command,
  234. Texinfo mode sets the value of the page delimiter variable to match the
  235. chapter-level @-commands.  This enables you to use the `C-x ]'
  236. (`forward-page') and `C-x [' (`backward-page') commands to move forward
  237. and backward by chapter, and to use the `C-x p' (`narrow-to-page')
  238. command to narrow to a chapter. *Note Pages: (emacs)Pages, for more
  239. information about the page commands.
  240.  
  241. 
  242. File: texinfo,  Node: Updating Nodes and Menus,  Next: Info Formatting,  Prev: Showing the Structure,  Up: Texinfo Mode
  243.  
  244. Updating Nodes and Menus
  245. ========================
  246.  
  247.    Texinfo mode provides commands for automatically creating or updating
  248. menus and node pointers.  The commands are called "update" commands
  249. because their most frequent use is for updating a Texinfo file after
  250. you have worked on it; but you can use them to insert the `Next',
  251. `Previous', and `Up' pointers into an `@node' line that has none and to
  252. create menus in a file that has none.
  253.  
  254.    If you do not use the updating commands, you need to write menus and
  255. node pointers by hand, which is a tedious task.
  256.  
  257. * Menu:
  258.  
  259. * Updating Commands::           Five major updating commands.
  260. * Updating Requirements::       How to structure a Texinfo file for
  261.                                   using the updating command.
  262. * Other Updating Commands::     How to indent descriptions, insert
  263.                                   missing nodes lines, and update
  264.                                   nodes in sequence.
  265.  
  266. 
  267. File: texinfo,  Node: Updating Commands,  Next: Updating Requirements,  Up: Updating Nodes and Menus
  268.  
  269. The Updating Commands
  270. ---------------------
  271.  
  272.    You can use the updating commands
  273.  
  274.    * to insert or update the `Next', `Previous', and `Up' pointers of a
  275.      node,
  276.  
  277.    * to insert or update the menu for a section, and
  278.  
  279.    * to create a master menu for a Texinfo source file.
  280.  
  281.    You can also use the commands to update all the nodes and menus in a
  282. region or in a whole Texinfo file.
  283.  
  284.    The updating commands work only with conventional Texinfo files,
  285. which are structured hierarchically like books.  In such files, a
  286. structuring command line must follow closely after each `@node' line,
  287. except for the `Top' `@node' line.  (A "structuring command line" is a
  288. line beginning with `@chapter', `@section', or other similar command.)
  289.  
  290.    You can write the structuring command line on the line that follows
  291. immediately after an `@node' line or else on the line that follows
  292. after a single `@comment' line or a single `@ifinfo' line.  You cannot
  293. interpose more than one line between the `@node' line and the
  294. structuring command line; and you may interpose only an `@comment' line
  295. or an `@ifinfo' line.
  296.  
  297.    Commands which work on a whole buffer require that the `Top' node be
  298. followed by a node with an `@chapter' or equivalent-level command. Note
  299. that the menu updating commands will not create a main or master menu
  300. for a Texinfo file that has only `@chapter'-level nodes!  The menu
  301. updating commands only create menus *within* nodes for lower level
  302. nodes.  To create a menu of chapters, you must provide a `Top' node.
  303.  
  304.    The menu updating commands remove menu entries that refer to other
  305. Info files since they do not refer to nodes within the current buffer. 
  306. This is a deficiency.  Rather than use menu entries, you can use cross
  307. references to refer to other Info files.  None of the updating commands
  308. affect cross references.
  309.  
  310.    Texinfo mode has five updating commands that are used most often: two
  311. are for updating the node pointers or menu of a single node (or a
  312. region); two are for updating every node pointer and menu in a file;
  313. and one, the `texinfo-master-menu' command, is for creating a master
  314. menu for a complete file, and optionally, for updating every node and
  315. menu in the whole Texinfo file.
  316.  
  317.    The `texinfo-master-menu' command is the primary command:
  318.  
  319. `C-c C-u m'
  320. `M-x texinfo-master-menu'
  321.      Create or update a master menu that includes all the other menus
  322.      (incorporating the descriptions from pre-existing menus, if any).
  323.  
  324.      With an argument (prefix argument, `C-u,' if interactive), first
  325.      create or update all the nodes and all the regular menus in the
  326.      buffer before constructing the master menu.  (*Note The Top Node
  327.      and Master Menu: The Top Node, for more about a master menu.)
  328.  
  329.      For `texinfo-master-menu' to work, the Texinfo file must have a
  330.      `Top' node and at least one subsequent node.
  331.  
  332.      After extensively editing a Texinfo file, you can type the
  333.      following:
  334.  
  335.           C-u M-x texinfo-master-menu
  336.      or
  337.           C-u C-c C-u m
  338.  
  339.      This updates all the nodes and menus completely and all at once.
  340.  
  341.    The other major updating commands do smaller jobs and are designed
  342. for the person  who updates nodes and menus as he or she writes a
  343. Texinfo file.
  344.  
  345.    The commands are:
  346.  
  347. `C-c C-u C-n'
  348. `M-x texinfo-update-node'
  349.      Insert the `Next', `Previous', and `Up' pointers for the node that
  350.      point is within (i.e., for the `@node' line preceding point).  If
  351.      the `@node' line has pre-existing `Next', `Previous', or `Up'
  352.      pointers in it, the old pointers are removed and new ones inserted.
  353.      With an argument (prefix argument, `C-u', if interactive), this
  354.      command updates all `@node' lines in the region (which is the text
  355.      between point and mark).
  356.  
  357. `C-c C-u C-m'
  358. `M-x texinfo-make-menu'
  359.      Create or update the menu in the node that point is within. With
  360.      an argument (`C-u' as prefix argument, if interactive), the
  361.      command makes or updates menus for the nodes which are either
  362.      within or a part of the region.
  363.  
  364.      Whenever `texinfo-make-menu' updates an existing menu, the
  365.      descriptions from that menu are incorporated into the new menu. 
  366.      This is done by copying descriptions from the existing menu to the
  367.      entries in the new menu that have the same node names.  If the
  368.      node names are different, the descriptions are not copied to the
  369.      new menu.
  370.  
  371. `C-c C-u C-e'
  372. `M-x texinfo-every-node-update'
  373.      Insert or update the `Next', `Previous', and `Up' pointers for
  374.      every node in the buffer.
  375.  
  376. `C-c C-u C-a'
  377. `M-x texinfo-all-menus-update'
  378.      Create or update all the menus in the buffer.  With an argument
  379.      (`C-u' as prefix argument, if interactive), first insert or update
  380.      all the node pointers before working on the menus.
  381.  
  382.      If a master menu exists, the `texinfo-all-menus-update' command
  383.      updates it; but the command does not create a new master menu if
  384.      none already exists.  (Use the `texinfo-master-menu' command for
  385.      that.)
  386.  
  387.      When working on a document that does not merit a master menu, you
  388.      can type the following:
  389.  
  390.           C-u C-c C-u C-a
  391.      or
  392.           C-u M-x texinfo-all-menus-update
  393.  
  394.      This updates all the nodes and menus.
  395.  
  396.    The `texinfo-column-for-description' variable specifies the column
  397. to which menu descriptions are indented.  By default, the value is 32
  398. although it is often useful to reduce it to as low as 24.  You can set
  399. the variable with the `M-x edit-options' command (*note Editing
  400. Variable Values: (emacs)Edit Options.) or with the `M-x set-variable'
  401. command (*note Examining and Setting Variables: (emacs)Examining.).
  402.  
  403.    Also, the `texinfo-indent-menu-description' command may be used to
  404. indent existing menu descriptions to a specified column.  Finally, if
  405. you wish, you can use the `texinfo-insert-node-lines' command to insert
  406. missing `@node' lines into a file.  (*Note Other Updating Commands::,
  407. for more information.)
  408.  
  409. 
  410. File: texinfo,  Node: Updating Requirements,  Next: Other Updating Commands,  Prev: Updating Commands,  Up: Updating Nodes and Menus
  411.  
  412. Updating Requirements
  413. ---------------------
  414.  
  415.    To use the updating commands, you must organize the Texinfo file
  416. hierarchically with chapters, sections, subsections, and the like. When
  417. you construct the hierarchy of the manual, do not `jump down' more than
  418. one level at a time: you can follow the `Top' node with a chapter, but
  419. not with a section; you can follow a chapter with a section, but not
  420. with a subsection.  However, you may `jump up' any number of levels at
  421. one time--for example, from a subsection to a chapter.
  422.  
  423.    Each `@node' line, with the exception of the line for the `Top'
  424. node, must be followed by a line with a structuring command such as
  425. `@chapter', `@section', or `@unnumberedsubsec'.
  426.  
  427.    Each `@node' line/structuring-command line combination must look
  428. either like this:
  429.  
  430.      @node     Comments,  Minimum, Conventions, Overview
  431.      @comment  node-name, next,    previous,    up
  432.      @section Comments
  433.  
  434.    or like this (without the `@comment' line):
  435.  
  436.      @node Comments, Minimum, Conventions, Overview
  437.      @section Comments
  438.  
  439. In this example, `Comments' is the name of both the node and the
  440. section.  The next node is called `Minimum' and the previous node is
  441. called `Conventions'.  The `Comments' section is within the `Overview'
  442. node, which is specified by the `Up' pointer.  (Instead of an
  443. `@comment' line, you can write an `@ifinfo' line.)
  444.  
  445.    If a file has a `Top' node, it must be called `top' or `Top' and be
  446. the first node in the file.
  447.  
  448.    The menu updating commands create a menu of sections within a
  449. chapter, a menu of subsections within a section, and so on.  This means
  450. that you must have a `Top' node if you want a menu of chapters.
  451.  
  452.    Incidentally, the `makeinfo' command will create an Info file for a
  453. hierarchically organized Texinfo file that lacks `Next', `Previous' and
  454. `Up' pointers.  Thus, if you can be sure that your Texinfo file will be
  455. formatted with `makeinfo', you have no need for the `update node'
  456. commands.  (*Note Creating an Info File: Create an Info File, for more
  457. information about `makeinfo'.)  However, both `makeinfo' and the
  458. `texinfo-format-...' commands require that you insert menus in the file.
  459.  
  460. 
  461. File: texinfo,  Node: Other Updating Commands,  Prev: Updating Requirements,  Up: Updating Nodes and Menus
  462.  
  463. Other Updating Commands
  464. -----------------------
  465.  
  466.    In addition to the five major updating commands, Texinfo mode
  467. possesses several less frequently used updating commands:
  468.  
  469. `M-x texinfo-insert-node-lines'
  470.      Insert `@node' lines before the `@chapter', `@section', and other
  471.      sectioning commands wherever they are missing throughout a region
  472.      in a Texinfo file.
  473.  
  474.      With an argument (`C-u' as prefix argument, if interactive), the
  475.      `texinfo-insert-node-lines' command not only inserts `@node' lines
  476.      but also inserts the chapter or section titles as the names of the
  477.      corresponding nodes.  In addition, it inserts the titles as node
  478.      names in pre-existing `@node' lines that lack names.  Since node
  479.      names should be more concise than section or chapter titles, you
  480.      must manually edit node names so inserted.
  481.  
  482.      For example, the following marks a whole buffer as a region and
  483.      inserts `@node' lines and titles throughout:
  484.  
  485.           C-x h C-u M-x texinfo-insert-node-lines
  486.  
  487. `M-x texinfo-multiple-files-update'
  488.      Update nodes and menus in a document built from several separate
  489.      files. With `C-u' as a prefix argument, create and insert a master
  490.      menu in the outer file.  With `C-u 2' as a numeric prefix
  491.      argument, first update all the menus and all the `Next',
  492.      `Previous', and `Up' pointers of all the included files before
  493.      creating and inserting a master menu in the outer file.  The
  494.      `texinfo-multiple-files-update' command is described in the
  495.      appendix on `@include' files. *Note 
  496.      `texinfo-multiple-files-update': texinfo-multiple-files-update.
  497.  
  498. `M-x texinfo-indent-menu-description'
  499.      Indent every description in the menu following point to the
  500.      specified column.  You can use this command to give yourself more
  501.      space for descriptions.  With an argument (`C-u' as prefix
  502.      argument, if interactive), the `texinfo-indent-menu-description'
  503.      command indents every description in every menu in the region. 
  504.      However, this command does not indent the second and subsequent
  505.      lines of a multi-line description.
  506.  
  507. `M-x texinfo-sequential-node-update'
  508.      Insert the names of the nodes immediately following and preceding
  509.      the current node as the `Next' or `Previous' pointers regardless
  510.      of those nodes' hierarchical level.  This means that the `Next'
  511.      node of a subsection may well be the next chapter.  Sequentially
  512.      ordered nodes are useful for novels and other documents that you
  513.      read through sequentially.  (However, in Info, the `g* RET'
  514.      command lets you look through the file sequentially, so
  515.      sequentially ordered nodes are not strictly necessary.)  With an
  516.      argument (prefix argument, if interactive), the
  517.      `texinfo-sequential-node-update' command sequentially updates all
  518.      the nodes in the region.
  519.  
  520. 
  521. File: texinfo,  Node: Info Formatting,  Next: Printing,  Prev: Updating Nodes and Menus,  Up: Texinfo Mode
  522.  
  523. Formatting for Info
  524. ===================
  525.  
  526.    Texinfo mode provides several commands for formatting part or all of
  527. a Texinfo file for Info.  Often, when you are writing a document, you
  528. want to format only part of a file--that is, a region.
  529.  
  530.    You can use either the `texinfo-format-region' or the
  531. `makeinfo-region' command to format a region:
  532.  
  533. `C-c C-e C-r'
  534. `M-x texinfo-format-region'
  535. `C-c C-m C-r'
  536. `M-x makeinfo-region'
  537.      Format the current region for Info.
  538.  
  539.    You can use either the `texinfo-format-buffer' or the
  540. `makeinfo-buffer' command to format a whole buffer:
  541.  
  542. `C-c C-e C-b'
  543. `M-x texinfo-format-buffer'
  544. `C-c C-m C-b'
  545. `M-x makeinfo-buffer'
  546.      Format the current buffer for Info.
  547.  
  548.      For example, after writing a Texinfo file, you can type the
  549.      following:
  550.  
  551.           C-u C-c C-u m
  552.      or
  553.           C-u M-x texinfo-master-menu
  554.  
  555.      This updates all the nodes and menus.  Then type the following to
  556.      create an Info file:
  557.  
  558.           C-c C-m C-b
  559.      or
  560.           M-x makeinfo-buffer
  561.  
  562.    For the Info formatting commands to work, the file *must* include a
  563. line that has `@setfilename' in its header.
  564.  
  565.    Not all systems support the `makeinfo'-based formatting commands.
  566.  
  567.    *Note Create an Info File::, for details about Info formatting.
  568.  
  569. 
  570. File: texinfo,  Node: Printing,  Next: Texinfo Mode Summary,  Prev: Info Formatting,  Up: Texinfo Mode
  571.  
  572. Formatting and Printing
  573. =======================
  574.  
  575.    Typesetting and printing a Texinfo file is a multi-step process in
  576. which you first create a file for printing (called a DVI file), and
  577. then print the file.  Optionally, you may also create indices.  To do
  578. this, you must run the `texindex' command after first running the `tex'
  579. command; and then you must run the `tex' command again.
  580.  
  581.    Often, when you are writing a document, you want to typeset and print
  582. only part of a file to see what it will look like.  You can use the
  583. `texinfo-tex-region' and related commands for this purpose.  Use the
  584. `texinfo-tex-buffer' command to format all of a buffer.
  585.  
  586. `C-c C-t C-r'
  587. `M-x texinfo-tex-region'
  588.      Run TeX on the region.
  589.  
  590. `C-c C-t C-b'
  591. `M-x texinfo-tex-buffer'
  592.      Run TeX on the buffer.
  593.  
  594. `C-c C-t C-i'
  595. `M-x texinfo-texindex'
  596.      Run `texindex' to sort the indices of a Texinfo file formatted with
  597.      `texinfo-tex-region' or `texinfo-tex-buffer'.  You must run the
  598.      `tex' command a second time after sorting the raw index files.
  599.  
  600. `C-c C-t C-p'
  601. `M-x texinfo-tex-print'
  602.      Print the file (or the part of the file) previously formatted with
  603.      `texinfo-tex-buffer' or `texinfo-tex-region'.
  604.  
  605. For `texinfo-tex-region' or `texinfo-tex-buffer' to work, the file
  606. *must* start with a `\input texinfo' line and must include an
  607. `@settitle' line.  The file must end with `@bye' on a line by itself. 
  608. (When you use `texinfo-tex-region', you must surround the `@settitle'
  609. line with start-of-header and end-of-header lines.)
  610.  
  611.    *Note Format/Print Hardcopy::, for a description of the other TeX
  612. related commands, such as `tex-show-print-queue'.
  613.  
  614. 
  615. File: texinfo,  Node: Texinfo Mode Summary,  Prev: Printing,  Up: Texinfo Mode
  616.  
  617. Texinfo Mode Summary
  618. ====================
  619.  
  620.    In Texinfo mode, each set of commands has default keybindings that
  621. begin with the same keys.  All the commands that are custom-created for
  622. Texinfo mode begin with `C-c'.  The keys that follow are arranged
  623. mnemonically.
  624.  
  625. Insert Commands
  626. ---------------
  627.  
  628.    The insert commands are invoked by typing `C-c' twice and then the
  629. first letter of the @-command to be inserted.  (It might make more
  630. sense mnemonically to use `C-c C-i', for `custom insert', but `C-c C-c'
  631. is quick to type.)
  632.  
  633.      C-c C-c c       Insert `@code'.
  634.      C-c C-c d       Insert `@dfn'.
  635.      C-c C-c e       Insert `@end'.
  636.      C-c C-c i       Insert `@item'.
  637.      C-c C-c n       Insert `@node'.
  638.      C-c C-c s       Insert `@samp'.
  639.      C-c C-c v       Insert `@var'.
  640.      C-c C-c {       Insert braces.
  641.      C-c C-c ]
  642.      C-c C-c }       Move out of enclosing braces.
  643.  
  644. Show Structure
  645. --------------
  646.  
  647.    The `texinfo-show-structure' command is often used within a narrowed
  648. region.
  649.  
  650.      C-c C-s         List all the headings.
  651.  
  652. The Master Update Command
  653. -------------------------
  654.  
  655.    The `texinfo-master-menu' command creates a master menu; and can be
  656. used to update every node and menu in a file as well.
  657.  
  658.      C-c C-u m
  659.      M-x texinfo-master-menu
  660.                      Create or update a master menu.
  661.      
  662.      C-u C-c C-u m
  663.                      With `C-u' as a prefix argument, first
  664.                      create or update all nodes and regular
  665.                      menus, and then create a master menu.
  666.  
  667. Update Pointers
  668. ---------------
  669.  
  670.    The update pointer commands are invoked by typing `C-c C-u' and then
  671. either `C-n' for `texinfo-update-node' or `C-e' for
  672. `texinfo-every-node-update'.
  673.  
  674.      C-c C-u C-n     Update a node.
  675.      C-c C-u C-e     Update every node in the buffer.
  676.  
  677. Update Menus
  678. ------------
  679.  
  680.    Invoke the  update menu commands by typing `C-c C-u' and then either
  681. `C-m' for `texinfo-make-menu' or `C-a' for `texinfo-all-menus-update'. 
  682. To update both nodes and menus at the same time, precede `C-c C-u C-a'
  683. with `C-u'.
  684.  
  685.      C-c C-u C-m     Make or update a menu.
  686.      
  687.      C-c C-u C-a     Make or update all
  688.                      menus in a buffer.
  689.      
  690.      C-u C-c C-u C-a With `C-u' as a prefix argument,
  691.                      first create or update all nodes and
  692.                      then create or update all menus.
  693.  
  694. Format for Info
  695. ---------------
  696.  
  697.    The Info formatting commands that are written in Emacs Lisp are
  698. invoked by typing `C-c C-e' and then either `C-r' for a region or `C-b'
  699. for the whole buffer.
  700.  
  701.    The Info formatting commands that are written in C and based on the
  702. `makeinfo' program are invoked by typing `C-c C-m' and then either
  703. `C-r' for a region or `C-b' for the whole buffer.
  704.  
  705.  
  706. Use the `texinfo-format...' commands:
  707.  
  708.      C-c C-e C-r     Format the region.
  709.      C-c C-e C-b     Format the buffer.
  710.  
  711. Use `makeinfo':
  712.  
  713.      C-c C-m C-r     Format the region.
  714.      C-c C-m C-b     Format the buffer.
  715.      C-c C-m C-l     Recenter the `makeinfo' output buffer.
  716.      C-c C-m C-k     Kill the `makeinfo' formatting job.
  717.  
  718. Typeset and Print
  719. -----------------
  720.  
  721.    The TeX typesetting and printing commands are invoked by typing `C-c
  722. C-t' and then another control command: `C-r' for `texinfo-tex-region',
  723. `C-b' for `texinfo-tex-buffer', and so on.
  724.  
  725.      C-c C-t C-r     Run TeX on the region.
  726.      C-c C-t C-b     Run TeX on the buffer.
  727.      C-c C-t C-i     Run `texindex'.
  728.      C-c C-t C-p     Print the DVI file.
  729.      C-c C-t C-q     Show the print queue.
  730.      C-c C-t C-d     Delete a job from the print queue.
  731.      C-c C-t C-k     Kill the current TeX formatting job.
  732.      C-c C-t C-x     Quit a currently stopped TeX formatting job.
  733.      C-c C-t C-l     Recenter the output buffer.
  734.  
  735. Other Updating Commands
  736. -----------------------
  737.  
  738.    The `other updating commands' do not have standard keybindings
  739. because they are rarely used.
  740.  
  741.      M-x texinfo-insert-node-lines
  742.                      Insert missing `@node' lines in region.
  743.                      With `C-u' as a prefix argument,
  744.                      use section titles as node names.
  745.      
  746.      M-x texinfo-multiple-files-update
  747.                      Update a multi-file document.
  748.                      With `C-u 2' as a prefix argument,
  749.                      create or update all nodes and menus
  750.                      in all included files first.
  751.      
  752.      M-x texinfo-indent-menu-description
  753.                      Indent descriptions.
  754.      
  755.      M-x texinfo-sequential-node-update
  756.                      Insert node pointers in strict sequence.
  757.  
  758. 
  759. File: texinfo,  Node: Beginning a File,  Next: Ending a File,  Prev: Texinfo Mode,  Up: Top
  760.  
  761. Beginning a Texinfo File
  762. ************************
  763.  
  764.    Certain pieces of information must be provided at the beginning of a
  765. Texinfo file, such as the name of the file and the title of the
  766. document.
  767.  
  768. * Menu:
  769.  
  770. * Four Parts::                  Four parts begin a Texinfo file.
  771. * Sample Beginning::            Here is a sample beginning for a Texinfo file.
  772. * Header::                      The very beginning of a Texinfo file.
  773. * Info Summary and Permissions::  Summary and copying permissions for Info.
  774. * Titlepage & Copyright Page::  Creating the title and copyright pages.
  775. * The Top Node::                Creating the `Top' node and master menu.
  776. * Software Copying Conditions::  Ensure that you and others continue to
  777.                                   have the right to use and share software.
  778.  
  779. 
  780. File: texinfo,  Node: Four Parts,  Next: Sample Beginning,  Up: Beginning a File
  781.  
  782. Four Parts Begin a File
  783. =======================
  784.  
  785.    Generally, the beginning of a Texinfo file has four parts:
  786.  
  787.   1. The header, delimited by special comment lines, that includes the
  788.      commands for naming the Texinfo file and telling TeX what
  789.      definitions' file to use when processing the Texinfo file.
  790.  
  791.   2. A short statement of what the file is about, with a copyright
  792.      notice and copying permissions.  This is enclosed in `@ifinfo' and
  793.      `@end ifinfo' commands so that the formatters place it only in the
  794.      Info file.
  795.  
  796.   3. A title page and copyright page, with a copyright notice and
  797.      copying permissions.  This is enclosed between `@titlepage' and
  798.      `@end titlepage' commands.  The title and copyright page appear
  799.      only in the printed manual.
  800.  
  801.   4. The `Top' node that contains a menu for the whole Info file.  The
  802.      contents of this node appear only in the Info file.
  803.  
  804.    Also, optionally, you may include the copying conditions for a
  805. program and a warranty disclaimer.  The copying section will be
  806. followed by an introduction or else by the first chapter of the manual.
  807.  
  808.    Since the copyright notice and copying permissions for the Texinfo
  809. document (in contrast to the copying permissions for a program) are in
  810. parts that appear only in the Info file or only in the printed manual,
  811. this information must be given twice.
  812.  
  813. 
  814. File: texinfo,  Node: Sample Beginning,  Next: Header,  Prev: Four Parts,  Up: Beginning a File
  815.  
  816. Sample Texinfo File Beginning
  817. =============================
  818.  
  819.    The following sample shows what is needed.
  820.  
  821.      \input texinfo   @c -*-texinfo-*-
  822.      @c %**start of header
  823.      @setfilename NAME-OF-INFO-FILE
  824.      @settitle NAME-OF-MANUAL
  825.      @setchapternewpage odd
  826.      @c %**end of header
  827.      
  828.      @ifinfo
  829.      This file documents ...
  830.      
  831.      Copyright @copyright{} YEAR  COPYRIGHT-OWNER
  832.      
  833.      Permission is granted to ...
  834.      @end ifinfo
  835.      
  836.      @c  This title page illustrates only one of the
  837.      @c  two methods of forming a title page.
  838.      
  839.      @titlepage
  840.      @title NAME-OF-MANUAL-WHEN-PRINTED
  841.      @subtitle SUBTITLE-IF-ANY
  842.      @subtitle SECOND-SUBTITLE
  843.      @author AUTHOR
  844.      
  845.      @c  The following two commands
  846.      @c  start the copyright page.
  847.      @page
  848.      @vskip 0pt plus 1filll
  849.      Copyright @copyright{} YEAR COPYRIGHT-OWNER
  850.      
  851.      Published by ...
  852.      
  853.      Permission is granted to ...
  854.      @end titlepage
  855.      
  856.      @node Top, Overview, (dir), (dir)
  857.      
  858.      @ifinfo
  859.      This document describes ...
  860.      
  861.      This document applies to version ...
  862.      of the program named ...
  863.      @end ifinfo
  864.      
  865.      @menu
  866.      * Copying::          Your rights and freedoms.
  867.      * First Chapter::    Getting started ...
  868.      * Second Chapter::              ...
  869.        ...
  870.        ...
  871.      @end menu
  872.      
  873.      @node    First Chapter, Second Chapter, top,      top
  874.      @comment node-name,     next,           previous, up
  875.      @chapter First Chapter
  876.      @cindex Index entry for First Chapter
  877.  
  878. 
  879. File: texinfo,  Node: Header,  Next: Info Summary and Permissions,  Prev: Sample Beginning,  Up: Beginning a File
  880.  
  881. The Texinfo File Header
  882. =======================
  883.  
  884.    Texinfo files start with at least three lines that provide Info and
  885. TeX with necessary information.  These are the `\input texinfo' line,
  886. the `@settitle' line, and the `@setfilename' line.  If you want to run
  887. TeX on just a part of the Texinfo File, you must write the `@settitle'
  888. and `@setfilename' lines between start-of-header and end-of-header
  889. lines.
  890.  
  891.    Thus, the beginning of a Texinfo file looks like this:
  892.  
  893.      \input texinfo   @c -*-texinfo-*-
  894.      @setfilename sample.info
  895.      @settitle Sample Document
  896.  
  897. or else like this:
  898.  
  899.      \input texinfo   @c -*-texinfo-*-
  900.      @c %**start of header
  901.      @setfilename sample.info
  902.      @settitle Sample Document
  903.      @c %**end of header
  904.  
  905. * Menu:
  906.  
  907. * First Line::                  The first line of a Texinfo file.
  908. * Start of Header::             Formatting a region requires this.
  909. * setfilename::                 Tell Info the name of the Info file.
  910. * settitle::                    Create a title for the printed work.
  911. * setchapternewpage::           Start chapters on right-hand pages.
  912. * paragraphindent::             An option to specify paragraph indentation.
  913. * End of Header::               Formatting a region requires this.
  914.  
  915. 
  916. File: texinfo,  Node: First Line,  Next: Start of Header,  Up: Header
  917.  
  918. The First Line of a Texinfo File
  919. --------------------------------
  920.  
  921.    Every Texinfo file that is to be the top-level input to TeX must
  922. begin with a line that looks like this:
  923.  
  924.      \input texinfo   @c -*-texinfo-*-
  925.  
  926. This line serves two functions:
  927.  
  928.   1. When the file is processed by TeX, the `\input texinfo' command
  929.      tells TeX to load the macros needed for processing a Texinfo file.
  930.      These are in a file called `texinfo.tex', which is usually located
  931.      in the `/usr/lib/tex/macros' directory.  TeX uses the backslash,
  932.      `\', to mark the beginning of a command, just as Texinfo uses `@'.
  933.       The `texinfo.tex' file causes the switch from `\' to `@'; before
  934.      the switch occurs, TeX requires `\', which is why it appears at
  935.      the beginning of the file.
  936.  
  937.   2. When the file is edited in GNU Emacs, the `-*-texinfo-*-' mode
  938.      specification tells Emacs to use Texinfo mode.
  939.  
  940. 
  941. File: texinfo,  Node: Start of Header,  Next: setfilename,  Prev: First Line,  Up: Header
  942.  
  943. Start of Header
  944. ---------------
  945.  
  946.    You should write a start-of-header line on the second line of a
  947. Texinfo file.  Follow the start-of-header line with `@setfilename' and
  948. `@settitle' lines and, optionally, with other command lines, such as
  949. `@smallbook' or `@footnotestyle'; and then by an end-of-header line
  950. (*note End of Header::.).
  951.  
  952.    With these lines, you can format part of a Texinfo file for Info or
  953. typeset part for printing.
  954.  
  955.    A start-of-header line looks like this:
  956.  
  957.      @c %**start of header
  958.  
  959.    The odd string of characters, `%**', is to ensure that no other
  960. comment is accidentally taken for a start-of-header line.
  961.  
  962. 
  963. File: texinfo,  Node: setfilename,  Next: settitle,  Prev: Start of Header,  Up: Header
  964.  
  965. `@setfilename'
  966. --------------
  967.  
  968.    In order to be made into an Info file, a Texinfo file must contain a
  969. line that looks like this:
  970.  
  971.      @setfilename INFO-FILE-NAME
  972.  
  973. Write the `@setfilename' command at the beginning of a line and follow
  974. it on the same line by the Info file name.  Do not write anything else
  975. on the line; anything on the line after the command is considered part
  976. of the file name, including a comment.
  977.  
  978.    The `@setfilename' line specifies the name of the Info file to be
  979. generated.  This name should be different from the name of the Texinfo
  980. file.  The convention is to write a name with a `.info' extension, to
  981. produce an Info file name such as `texinfo.info'.
  982.  
  983.    Some operating systems cannot handle long file names.  You can run
  984. into a problem even when the file name you specify is itself short
  985. enough. This occurs because the Info formatters split a long Info file
  986. into short indirect subfiles, and name them by appending `-1', `-2',
  987. ..., `-10', `-11', and so on, to the original file name.  (*Note Tag
  988. Files and Split Files: Tag and Split Files.)  The subfile name
  989. `texinfo.info-10', for example, is too long for some systems; so the
  990. Info file name for this document is actually `texinfo' rather than
  991. `texinfo.info'.
  992.  
  993.    The Info formatting commands ignore everything written before the
  994. `@setfilename' line, which is why the very first line of the file (the
  995. `\input' line) does not need to be commented out. The `@setfilename'
  996. line is ignored when you typeset a printed manual.
  997.  
  998. 
  999. File: texinfo,  Node: settitle,  Next: setchapternewpage,  Prev: setfilename,  Up: Header
  1000.  
  1001. `@settitle'
  1002. -----------
  1003.  
  1004.    In order to be made into a printed manual, a Texinfo file must
  1005. contain a line that looks like this:
  1006.  
  1007.      @settitle TITLE
  1008.  
  1009. Write the `@settitle' command at the beginning of a line and follow it
  1010. on the same line by the title.  This tells TeX the title to use in a
  1011. header or footer.  Do not write anything else on the line; anything on
  1012. the line after the command is considered part of the title, including a
  1013. comment.
  1014.  
  1015.    Conventionally, TeX formats a Texinfo file for double-sided output
  1016. so as to print the title in the left-hand (even-numbered) page headings
  1017. and the current chapter titles in the right-hand (odd-numbered) page
  1018. headings.  (TeX learns the title of each chapter from each `@chapter'
  1019. command.)  Page footers are not printed.
  1020.  
  1021.    Even if you are printing in a single-sided style, TeX looks for an
  1022. `@settitle' command line, in case you include the manual title in the
  1023. heading.
  1024.  
  1025.    The `@settitle' command should precede everything that generates
  1026. actual output in TeX.
  1027.  
  1028.    Although the title in the `@settitle' command is usually the same as
  1029. the title on the title page, it does not affect the title as it appears
  1030. on the title page.  Thus, the two do not need not match exactly;  and
  1031. the title in the `@settitle' command can be a shortened or expanded
  1032. version of the title as it appears on the title page (*note
  1033. `@titlepage': titlepage.).
  1034.  
  1035.    TeX prints page headings only for that text that comes after the
  1036. `@end titlepage' command in the Texinfo file, or that comes after an
  1037. `@headings' command that turns on headings. (*Note The `@headings'
  1038. Command: headings on off, for more information.)
  1039.  
  1040.    You may, if you wish, create your own, customized headings and
  1041. footings.  *Note Page Headings: Headings, for a detailed discussion of
  1042. this process.
  1043.  
  1044. 
  1045. File: texinfo,  Node: setchapternewpage,  Next: paragraphindent,  Prev: settitle,  Up: Header
  1046.  
  1047. `@setchapternewpage'
  1048. --------------------
  1049.  
  1050.    In a book or a manual, text is usually printed on both sides of the
  1051. paper, chapters start on right-hand pages, and right-hand pages have
  1052. odd numbers.  But in short reports, text often is printed only on one
  1053. side of the paper.  Also in short reports, chapters sometimes do not
  1054. start on new pages, but are printed on the same page as the end of the
  1055. preceding chapter, after a small amount of vertical whitespace.
  1056.  
  1057.    You can use the `@setchapternewpage' command with various arguments
  1058. to specify how TeX should start chapters and whether it should typeset
  1059. pages for printing on one or both sides of the paper (single-sided or
  1060. double-sided printing).
  1061.  
  1062.    Write the `@setchapternewpage' command at the beginning of a line
  1063. followed by its argument.
  1064.  
  1065.    For example, you would write the following to cause each chapter to
  1066. start on a fresh odd-numbered page:
  1067.  
  1068.      @setchapternewpage odd
  1069.  
  1070.    You can specify one of three alternatives with the
  1071. `@setchapternewpage' command:
  1072.  
  1073. `@setchapternewpage off'
  1074.      Cause TeX to typeset a new chapter on the same page as the last
  1075.      chapter, after skipping some vertical whitespace.  Also, cause TeX
  1076.      to format page headers for single-sided printing. (You can
  1077.      override the headers format with the `@headings double' command;
  1078.      see *Note The `@headings' Command: headings on off.)
  1079.  
  1080. `@setchapternewpage on'
  1081.      Cause TeX to start new chapters on new pages and to typeset page
  1082.      headers for single-sided printing.  This is the form most often
  1083.      used for short reports.
  1084.  
  1085.      This alternative is the default.
  1086.  
  1087. `@setchapternewpage odd'
  1088.      Cause TeX to start new chapters on new, odd-numbered pages
  1089.      (right-handed pages) and to typeset for double-sided printing. 
  1090.      This is the form most often used for books and manuals.
  1091.  
  1092. Texinfo does not have an `@setchapternewpage even' command.
  1093.  
  1094. (You can countermand or modify an `@setchapternewpage' command with an
  1095. `@headings' command.  *Note The `@headings' Command: headings on off.)
  1096.  
  1097.    At the beginning of a manual or book, pages are not numbered--for
  1098. example, the title and copyright pages of a book are not numbered. By
  1099. convention, table of contents pages are numbered with roman numerals
  1100. and not in sequence with the rest of the document.
  1101.  
  1102.    Since an Info file does not have pages, the `@setchapternewpage'
  1103. command has no effect on it.
  1104.  
  1105.    Usually, you do not write an `@setchapternewpage' command for
  1106. single-sided printing, but accept the default which is to typeset for
  1107. single-sided printing and to start new chapters on new pages.  Usually,
  1108. you write an `@setchapternewpage odd' command for double-sided printing.
  1109.  
  1110. 
  1111. File: texinfo,  Node: paragraphindent,  Next: End of Header,  Prev: setchapternewpage,  Up: Header
  1112.  
  1113. Paragraph Indenting
  1114. -------------------
  1115.  
  1116.    The Info formatting commands may insert spaces at the beginning of
  1117. the first line of each paragraph, thereby indenting that paragraph.  You
  1118. can use the `@paragraphindent' command to specify the indentation. 
  1119. Write an `@paragraphindent' command at the beginning of a line followed
  1120. by either `asis' or a number.  The template is:
  1121.  
  1122.      @paragraphindent INDENT
  1123.  
  1124.    The Info formatting commands indent according to the value of INDENT:
  1125.  
  1126.    * If the value of INDENT is `asis', the Info formatting commands do
  1127.      not change the existing indentation.
  1128.  
  1129.    * If the value of INDENT is 0, the Info formatting commands delete
  1130.      existing indentation.
  1131.  
  1132.    * If the value of INDENT is greater than 0, the Info formatting
  1133.      commands indent the paragraph by that number of spaces.
  1134.  
  1135.    The default value of INDENT is `asis'.
  1136.  
  1137.    Write the `@paragraphindent' command before or shortly after the
  1138. end-of-header line at the beginning of a Texinfo file.  (If you write
  1139. the command between the start-of-header and end-of-header lines, the
  1140. region formatting commands indent paragraphs as specified.)
  1141.  
  1142.    A peculiarity of the `texinfo-format-buffer' and
  1143. `texinfo-format-region' commands is that they do not indent (nor fill)
  1144. paragraphs that contain `@w' or `@*' commands. *Note Refilling
  1145. Paragraphs::, for a detailed description of what goes on.
  1146.  
  1147. 
  1148. File: texinfo,  Node: End of Header,  Prev: paragraphindent,  Up: Header
  1149.  
  1150. End of Header
  1151. -------------
  1152.  
  1153.    Follow the header lines with an end-of-header line. An end-of-header
  1154. line looks like this:
  1155.  
  1156.      @c %**end of header
  1157.  
  1158.    If you include the `@setchapternewpage' command between the
  1159. start-of-header and end-of-header lines, TeX will typeset a region as
  1160. that command specifies.  Similarly, if you include an `@smallbook'
  1161. command between the start-of-header and end-of-header lines, TeX will
  1162. typeset a region in the "small" book format.
  1163.  
  1164.    The reason for the odd string of characters (`%**') is so that the
  1165. `texinfo-tex-region' command does not accidentally find something that
  1166. it should not when it is looking for the header.
  1167.  
  1168.    The start-of-header line and the end-of-header line are Texinfo mode
  1169. variables that you can change.
  1170.  
  1171. 
  1172. File: texinfo,  Node: Info Summary and Permissions,  Next: Titlepage & Copyright Page,  Prev: Header,  Up: Beginning a File
  1173.  
  1174. Summary and Copying Permissions for Info
  1175. ========================================
  1176.  
  1177.    The title page and the copyright page appear only in the printed
  1178. copy of the manual; therefore, the same information must be inserted in
  1179. a section that appears only in the Info file.  This section usually
  1180. contains a brief description of the contents of the Info file, a
  1181. copyright notice, and copying permissions.
  1182.  
  1183.    The copyright notice should read:
  1184.  
  1185.      Copyright YEAR COPYRIGHT-OWNER
  1186.  
  1187. and be put on a line by itself.
  1188.  
  1189.    Standard text for the copyright permissions is contained in an
  1190. appendix to this manual; see *Note `ifinfo' Copying Permissions: ifinfo
  1191. Permissions, for the complete text.
  1192.  
  1193.    The permissions text appears in an Info file *before* the first
  1194. node.  This mean that a reader does *not* see this text when reading
  1195. the file using Info, except when using the advanced Info command `g *'.
  1196.  
  1197. 
  1198. File: texinfo,  Node: Titlepage & Copyright Page,  Next: The Top Node,  Prev: Info Summary and Permissions,  Up: Beginning a File
  1199.  
  1200. The Title and Copyright Pages
  1201. =============================
  1202.  
  1203.    A manual's name and author are usually printed on a title page.
  1204. Sometimes copyright information is printed on the title page as well;
  1205. more often, copyright information is printed on the back of the title
  1206. page.
  1207.  
  1208.    The title and copyright pages appear in the printed manual, but not
  1209. in the Info file.  Because of this, it is possible to use several
  1210. slightly obscure TeX typesetting commands that cannot be used in an
  1211. Info file. In addition, this part of the beginning of a Texinfo file
  1212. contains the text of the copying permissions that will appear in the
  1213. printed manual.
  1214.  
  1215.    *Note Titlepage Copying Permissions: Titlepage Permissions, for the
  1216. standard text for the copyright permissions.
  1217.  
  1218. * Menu:
  1219.  
  1220. * titlepage::                   Create a title for the printed document.
  1221. * titlefont center sp::         The `@titlefont', `@center',
  1222.                                   and `@sp' commands.
  1223. * title subtitle author::       The `@title', `@subtitle',
  1224.                                   and `@author' commands.
  1225. * Copyright & Permissions::     How to write the copyright notice and
  1226.                                   include copying permissions.
  1227. * end titlepage::               Turn on page headings after the title and
  1228.                                   copyright pages.
  1229. * headings on off::             An option for turning headings on and off
  1230.                                   and double or single sided printing.
  1231.  
  1232. 
  1233. File: texinfo,  Node: titlepage,  Next: titlefont center sp,  Up: Titlepage & Copyright Page
  1234.  
  1235. `@titlepage'
  1236. ------------
  1237.  
  1238.    Start the material for the title page and following copyright page
  1239. with `@titlepage' on a line by itself and end it with `@end titlepage'
  1240. on a line by itself.
  1241.  
  1242.    The `@end titlepage' command starts a new page and turns on page
  1243. numbering. (*Note Page Headings: Headings, for details about how to
  1244. generate of page headings.)  All the material that you want to appear
  1245. on unnumbered pages should be put between the `@titlepage' and `@end
  1246. titlepage' commands.  By using the `@page' command you can force a page
  1247. break within the region delineated by the `@titlepage' and `@end
  1248. titlepage' commands and thereby create more than one unnumbered page. 
  1249. This is how the copyright page is produced.  (The `@titlepage' command
  1250. might perhaps have been better named the `@titleandadditionalpages'
  1251. command, but that would have been rather long!)
  1252.  
  1253.    When you write a manual about a computer program, you should write
  1254. the version of the program to which the manual applies on the title
  1255. page.  If the manual changes more frequently than the program or is
  1256. independent of it, you should also include an edition number(1) for the
  1257. manual.  This helps readers keep track of which manual is for which
  1258. version of the program.  (The `Top' node should also contain this
  1259. information; see *Note  `@top': makeinfo top.)
  1260.  
  1261.    Texinfo provides two methods for creating a title page.  One method
  1262. uses the `@titlefont', `@sp', and `@center' commands to generate a
  1263. title page in which the words on the page are centered.
  1264.  
  1265.    The second method uses the `@title', `@subtitle', and `@author'
  1266. commands to create a title page with black rules under the title and
  1267. author lines and the subtitle text set flush to the right hand side of
  1268. the page.  With this method, you do not specify any of the actual
  1269. formatting of the title page.  You specify the text you want, and
  1270. Texinfo does the formatting.  You may use either method.
  1271.  
  1272.    ---------- Footnotes ----------
  1273.  
  1274.    (1)  We have found that it is helpful to refer to versions of
  1275. manuals as `editions' and versions of programs as `versions';
  1276. otherwise, we find we are liable to confuse each other in conversation
  1277. by referring to both the documentation and the software with the same
  1278. words.
  1279.  
  1280.