home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / texinfo-3.1-bin.lha / info / texi.info-2 (.txt) < prev    next >
GNU Info File  |  1994-02-24  |  51KB  |  975 lines

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