home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / info / texinfo.i09 < prev    next >
Encoding:
GNU Info File  |  1993-06-12  |  50.4 KB  |  1,222 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: Titlepage Permissions,  Prev: ifinfo Permissions,  Up: Sample Permissions
  29.  
  30. Titlepage Copying Permissions
  31. =============================
  32.  
  33.    In the `@titlepage' section of the Texinfo file, the standard Free
  34. Software Foundation copying permission notice follows the copyright
  35. notice and publishing information.  The standard phrasing is as follows:
  36.  
  37.      Permission is granted to make and distribute verbatim
  38.      copies of this manual provided the copyright notice and
  39.      this permission notice are preserved on all copies.
  40.      
  41.      Permission is granted to copy and distribute modified
  42.      versions of this manual under the conditions for
  43.      verbatim copying, provided also that the sections
  44.      entitled ``Distribution'' and ``General Public License''
  45.      are included exactly as in the original, and provided
  46.      that the entire resulting derived work is distributed
  47.      under the terms of a permission notice identical to this
  48.      one.
  49.      
  50.      Permission is granted to copy and distribute
  51.      translations of this manual into another language, under
  52.      the above conditions for modified versions, except that
  53.      the sections entitled ``Distribution'' and ``General
  54.      Public License'' may be included in a translation
  55.      approved by the author instead of in the original
  56.      English.
  57.  
  58. 
  59. File: texinfo,  Node: Include Files,  Next: Headings,  Prev: Sample Permissions,  Up: Top
  60.  
  61. Include Files
  62. *************
  63.  
  64.    When TeX or an Info formatting command sees an `@include' command in
  65. a Texinfo file, it processes the contents of the file named by the
  66. command and incorporates them into the DVI or Info file being created. 
  67. Index entries from the included file are incorporated into the indices
  68. of the output file.
  69.  
  70.    Include files let you keep a single large document as a collection of
  71. conveniently small parts.
  72.  
  73. * Menu:
  74.  
  75. * Using Include Files::         How to use the `@include' command.
  76. * texinfo-multiple-files-update::  How to create and update nodes and
  77.                                   menus when using included files.
  78. * Include File Requirements::   What `texinfo-multiple-files-update' expects.
  79. * Sample Include File::         A sample outer file with included files
  80.                                   within it; and a sample included file.
  81. * Include Files Evolution::     How use of the `@include' command
  82.                                   has changed over time.
  83.  
  84. 
  85. File: texinfo,  Node: Using Include Files,  Next: texinfo-multiple-files-update,  Up: Include Files
  86.  
  87. How to Use Include Files
  88. ========================
  89.  
  90.    To include another file within a Texinfo file, write the `@include'
  91. command at the beginning of a line and follow it on the same line by
  92. the name of a file to be included.  For example:
  93.  
  94.      @include buffers.texi
  95.  
  96.    An included file should simply be a segment of text that you expect
  97. to be included as is into the overall or "outer" Texinfo file; it
  98. should not contain the standard beginning and end parts of a Texinfo
  99. file.  In particular, you should not start an included file with a line
  100. saying `\input texinfo'; if you do, that phrase is inserted into the
  101. output file as is.  Likewise, you should not end an included file with
  102. an `@bye' command; that command will stop TeX processing immediately.
  103.  
  104.    In the past, you were required to write an `@setfilename' line at the
  105. beginning of an included file, but no longer.  Now, it does not matter
  106. whether you write such a line.  If an `@setfilename' line exists in an
  107. included file, it is ignored.
  108.  
  109.    Conventionally, an included file begins with an `@node' line that is
  110. followed by an `@chapter' line.  Each included file is one chapter. 
  111. This makes it easy to use the regular node and menu creating and
  112. updating commands to create the node pointers and menus within the
  113. included file.  However, the simple Emacs node and menu creating and
  114. updating commands do not work with multiple Texinfo files.  Thus you
  115. cannot use these commands to fill in the `Next', `Previous', and `Up'
  116. pointers of the `@node' line that begins the included file.  Also, you
  117. cannot use the regular commands to create a master menu for the whole
  118. file.  Either you must insert the menus and the `Next', `Previous', and
  119. `Up' pointers by hand, or you must use the GNU Emacs Texinfo mode
  120. command, `texinfo-multiple-files-update', that is designed for
  121. `@include' files.
  122.  
  123. 
  124. File: texinfo,  Node: texinfo-multiple-files-update,  Next: Include File Requirements,  Prev: Using Include Files,  Up: Include Files
  125.  
  126. `texinfo-multiple-files-update'
  127. ===============================
  128.  
  129.    GNU Emacs Texinfo mode provides the `texinfo-multiple-files-update'
  130. command.  This command creates or updates `Next', `Previous', and `Up'
  131. pointers of included files as well as those in the outer or overall
  132. Texinfo file, and it creates or updates a main menu in the outer file.
  133. Depending whether you call it with optional arguments, the command
  134. updates only the pointers in the first `@node' line of the included
  135. files or all of them:
  136.  
  137. `M-x texinfo-multiple-files-update'
  138.      Called without any arguments:
  139.  
  140.         - Create or update the `Next', `Previous', and `Up' pointers of
  141.           the first `@node' line in each file included in an outer or
  142.           overall Texinfo file.
  143.  
  144.         - Create or update the `Top' level node pointers of the outer or
  145.           overall file.
  146.  
  147.         - Create or update a main menu in the outer file.
  148.  
  149. `C-u M-x texinfo-multiple-files-update'
  150.      Called with `C-u' as a prefix argument:
  151.  
  152.         - Create or update pointers in the first `@node' line in each
  153.           included file.
  154.  
  155.         - Create or update the `Top' level node pointers of the outer
  156.           file.
  157.  
  158.         - Create and insert a master menu in the outer file.  The
  159.           master menu is made from all the menus in all the included
  160.           files.
  161.  
  162. `C-u 8 M-x texinfo-multiple-files-update'
  163.      Called with a numeric prefix argument, such as `C-u 8':
  164.  
  165.         - Create or update *all* the `Next', `Previous', and `Up'
  166.           pointers of all the included files.
  167.  
  168.         - Create or update *all* the menus of all the included files.
  169.  
  170.         - Create or update the `Top' level node pointers of the outer or
  171.           overall file.
  172.  
  173.         - And then create a master menu in the outer file.  This is
  174.           similar to invoking `texinfo-master-menu' with an argument
  175.           when you are working with just one file.
  176.  
  177. Note the use of the prefix argument in interactive use: with a regular
  178. prefix argument, just `C-u', the `texinfo-multiple-files-update'
  179. command inserts a master menu; with a numeric prefix argument, such as
  180. `C-u 8', the command updates *every* pointer and menu in *all* the
  181. files and then inserts a master menu.
  182.  
  183. 
  184. File: texinfo,  Node: Include File Requirements,  Next: Sample Include File,  Prev: texinfo-multiple-files-update,  Up: Include Files
  185.  
  186. Include File Requirements
  187. =========================
  188.  
  189.    If you plan to use the `texinfo-multiple-files-update' command, the
  190. outer Texinfo file that lists included files within it should contain
  191. nothing but the beginning and end parts of a Texinfo file, and a number
  192. of `@include' commands listing the included files.  It should not even
  193. include indices, which should be listed in an included file of their
  194. own.
  195.  
  196.    Moreover, each of the included files must contain exactly one highest
  197. level node (conventionally, `@chapter' or equivalent), and this node
  198. must be the first node in the included file. Furthermore, each of these
  199. highest level nodes in each included file must be at the same
  200. hierarchical level in the file structure. Usually, each is an
  201. `@chapter', an `@appendix', or an `@unnumbered' node.  Thus, normally,
  202. each included file contains one, and only one, chapter or
  203. equivalent-level node.
  204.  
  205.    The outer file should contain only *one* node, the `Top' node.  It
  206. should *not* contain any nodes besides the single `Top' node.  The
  207. `texinfo-multiple-files-update' command will not process them.
  208.  
  209. 
  210. File: texinfo,  Node: Sample Include File,  Next: Include Files Evolution,  Prev: Include File Requirements,  Up: Include Files
  211.  
  212. Sample File with `@include'
  213. ===========================
  214.  
  215.    Here is an example of a complete outer Texinfo file with `@include'
  216. files within it before running `texinfo-multiple-files-update', which
  217. would insert a main or master menu:
  218.  
  219.      \input texinfo @c -*-texinfo-*-
  220.      @setfilename  include-example.info
  221.      @settitle Include Example
  222.      
  223.      @setchapternewpage odd
  224.      @titlepage
  225.      @sp 12
  226.      @center @titlefont{Include Example}
  227.      @sp 2
  228.      @center by Whom Ever
  229.      
  230.      @page
  231.      @vskip 0pt plus 1filll
  232.      Copyright @copyright{} 1990 Free Software Foundation, Inc.
  233.      @end titlepage
  234.      
  235.      @ifinfo
  236.      @node Top, First, (dir), (dir)
  237.      @top Master Menu
  238.      @end ifinfo
  239.      
  240.      @include foo.texinfo
  241.      @include bar.texinfo
  242.      @include concept-index.texinfo
  243.      
  244.      @summarycontents
  245.      @contents
  246.      
  247.      @bye
  248.  
  249.    An included file, such as `foo.texinfo', might look like this:
  250.  
  251.      @node First, Second, , Top
  252.      @chapter First Chapter
  253.      
  254.      Contents of first chapter ...
  255.  
  256.    The full contents of `concept-index.texinfo' might be as simple as
  257. this:
  258.  
  259.      @node Concept Index, , Second, Top
  260.      @unnumbered Concept Index
  261.      
  262.      @printindex cp
  263.  
  264.    The outer Texinfo source file for `The GNU Emacs Lisp Reference
  265. Manual' is named `elisp.texi'.  This outer file contains a master menu
  266. with 417 entries and a list of 41 `@include' files.
  267.  
  268. 
  269. File: texinfo,  Node: Include Files Evolution,  Prev: Sample Include File,  Up: Include Files
  270.  
  271. Evolution of Include Files
  272. ==========================
  273.  
  274.    When Info was first created, it was customary to create many small
  275. Info files on one subject.  Each Info file was formatted from its own
  276. Texinfo source file.  This custom meant that Emacs did not need to make
  277. a large buffer to hold the whole of a large Info file when someone
  278. wanted information; instead, Emacs allocated just enough memory for the
  279. small Info file that contained the particular information sought.  This
  280. way, Emacs could avoid wasting memory.
  281.  
  282.    References from one file to another were made by referring to the
  283. file name as well as the node name. (*Note Referring to Other Info
  284. Files: Other Info Files.  Also, see *Note  `@xref' with Four and Five
  285. Arguments: Four and Five Arguments.)
  286.  
  287.    Include files were designed primarily as a way to create a single,
  288. large printed manual out of several smaller Info files.  In a printed
  289. manual, all the references were within the same document, so TeX could
  290. automatically determine the references' page numbers.  The Info
  291. formatting commands used include files only for creating joint indices;
  292. each of the individual Texinfo files had to be formatted for Info
  293. individually.  (Each, therefore, required its own `@setfilename' line.)
  294.  
  295.    However, because large Info files are now split automatically, it is
  296. no longer necessary to keep them small.
  297.  
  298.    Nowadays, multiple Texinfo files are used mostly for large documents,
  299. such as `The GNU Emacs Lisp Reference Manual', and for projects in
  300. which several different people write different sections of a document
  301. simultaneously.
  302.  
  303.    In addition, the Info formatting commands have been extended to work
  304. with the `@include' command so as to create a single large Info file
  305. that is split into smaller files if necessary.  This means that you can
  306. write menus and cross references without naming the different Texinfo
  307. files.
  308.  
  309. 
  310. File: texinfo,  Node: Headings,  Next: Catching Mistakes,  Prev: Include Files,  Up: Top
  311.  
  312. Page Headings
  313. *************
  314.  
  315.    Most printed manuals contain headings along the top of every page
  316. except the title and copyright pages.  Some manuals also contain
  317. footings.  (Headings and footings have no meaning to Info, which is not
  318. paginated.)
  319.  
  320. * Menu:
  321.  
  322. * Headings Introduced::         Conventions for using page headings.
  323. * Heading Format::              Standard page heading formats.
  324. * Heading Choice::              How to specify the type of page heading.
  325. * Custom Headings::             How to create your own headings and footings.
  326.  
  327. 
  328. File: texinfo,  Node: Headings Introduced,  Next: Heading Format,  Up: Headings
  329.  
  330. Headings Introduced
  331. ===================
  332.  
  333.    Texinfo provides standard page heading formats for manuals that are
  334. printed on one side of each sheet of paper and for manuals that are
  335. printed on both sides of the paper.  Usually, you will use one or other
  336. of these formats, but you can specify your own format, if you wish.
  337.  
  338.    In addition, you can specify whether chapters should begin on a new
  339. page, or merely continue the same page as the previous chapter; and if
  340. chapters begin on new pages, you can specify whether they must be
  341. odd-numbered pages.
  342.  
  343.    By convention, a book is printed on both sides of each sheet of
  344. paper. When you open a book, the right-hand page is odd-numbered, and
  345. chapters begin on right-hand pages--a preceding left-hand page is left
  346. blank if necessary.  Reports, however, are often printed on just one
  347. side of paper, and chapters begin on a fresh page immediately following
  348. the end of the preceding chapter.  In short or informal reports,
  349. chapters often do not begin on a new page at all, but are separated
  350. from the preceding text by a small amount of whitespace.
  351.  
  352.    The `@setchapternewpage' command controls whether chapters begin on
  353. new pages, and whether one of the standard heading formats is used. In
  354. addition, Texinfo has several heading and footing commands that you can
  355. use to generate your own heading and footing formats.
  356.  
  357.    In Texinfo, headings and footings are single lines at the tops and
  358. bottoms of pages; you cannot create multiline headings or footings.
  359. Each header or footer line is divided into three parts: a left part, a
  360. middle part, and a right part.  Any part, or a whole line, may be left
  361. blank.  Text for the left part of a header or footer line is set
  362. flushleft; text for the middle part is centered; and, text for the
  363. right part is set flushright.
  364.  
  365. 
  366. File: texinfo,  Node: Heading Format,  Next: Heading Choice,  Prev: Headings Introduced,  Up: Headings
  367.  
  368. Standard Heading Formats
  369. ========================
  370.  
  371.    Texinfo provides two standard heading formats, one for manuals
  372. printed on one side of each sheet of paper, and the other for manuals
  373. printed on both sides of the paper.
  374.  
  375.    By default, nothing is specified for the footing of a Texinfo file,
  376. so the footing remains blank.
  377.  
  378.    The standard format for single-sided printing consists of a header
  379. line in which the left-hand part contains the name of the chapter, the
  380. central part is blank, and the right-hand part contains the page number.
  381.  
  382.    The single-sided page looks like this:
  383.  
  384.         _______________________
  385.        |                       |
  386.        | chapter   page number |
  387.        |                       |
  388.        | Start of text ...     |
  389.        | ...                   |
  390.        |                       |
  391.  
  392.    The standard format for two-sided printing depends on whether the
  393. page number is even or odd.  By convention, even-numbered pages are on
  394. the left- and odd-numbered pages are on the right.  (TeX will adjust the
  395. widths of the left- and right-hand margins.  Usually, widths are
  396. correct, but during double-sided printing, it is wise to check that
  397. pages will bind properly--sometimes a printer will produce output in
  398. which the even-numbered pages have a larger right-hand margin than the
  399. odd-numbered pages.)
  400.  
  401.    In the standard double-sided format, the left part of the left-hand
  402. (even-numbered) page contains the page number, the central part is
  403. blank, and the right part contains the title (specified by the
  404. `@settitle' command).  The left part of the right-hand (odd-numbered)
  405. page contains the name of the chapter, the central part is blank, and
  406. the right part contains the page number.
  407.  
  408.    The two pages, side by side as in an open book, look like this:
  409.  
  410.         _______________________     _______________________
  411.        |                       |   |                       |
  412.        | page number     title |   | chapter   page number |
  413.        |                       |   |                       |
  414.        | Start of text ...     |   | More  text ...        |
  415.        | ...                   |   | ...                   |
  416.        |                       |   |                       |
  417.  
  418. The chapter name is preceded by the word `Chapter', the chapter number
  419. and a colon.  This makes it easier to keep track of where you are in
  420. the manual.
  421.  
  422. 
  423. File: texinfo,  Node: Heading Choice,  Next: Custom Headings,  Prev: Heading Format,  Up: Headings
  424.  
  425. Specifying the Type of Heading
  426. ==============================
  427.  
  428.    TeX does not begin to generate page headings for a standard Texinfo
  429. file until it reaches the `@end titlepage' command.  Thus, the title
  430. and copyright pages are not numbered.  The `@end titlepage' command
  431. causes TeX to begin to generate page headings according to a standard
  432. format specified by the `@setchapternewpage' command that precedes the
  433. `@titlepage' section.
  434.  
  435.    There are four possibilities:
  436.  
  437. No `@setchapternewpage' command
  438.      Cause TeX to specify the single-sided heading format, with chapters
  439.      on new pages. This is the same as `@setchapternewpage on'.
  440.  
  441. `@setchapternewpage on'
  442.      Specify the single-sided heading format, with chapters on new
  443.      pages.
  444.  
  445. `@setchapternewpage off'
  446.      Cause TeX to start a new chapter on the same page as the last page
  447.      of the preceding chapter, after skipping some vertical whitespace.
  448.       Also cause TeX to typeset for single-sided printing.  (You can
  449.      override the headers format with the `@headings double' command;
  450.      see *Note The `@headings' Command: headings on off.)
  451.  
  452. `@setchapternewpage odd'
  453.      Specify the double-sided heading format, with chapters on new
  454.      pages.
  455.  
  456. Texinfo lacks an `@setchapternewpage even' command.
  457.  
  458. 
  459. File: texinfo,  Node: Custom Headings,  Prev: Heading Choice,  Up: Headings
  460.  
  461. How to Make Your Own Headings
  462. =============================
  463.  
  464.    You can use the standard headings provided with Texinfo or specify
  465. your own.
  466.  
  467.    Texinfo provides six commands for specifying headings and footings. 
  468. The `@everyheading' command and `@everyfooting' command generate page
  469. headers and footers that are the same for both even- and odd-numbered
  470. pages. The `@evenheading' command and `@evenfooting' command generate
  471. headers and footers for even-numbered (left-hand) pages; and the
  472. `@oddheading' command and `@oddfooting' command generate headers and
  473. footers for odd-numbered (right-hand) pages.
  474.  
  475.    Write custom heading specifications in the Texinfo file immediately
  476. after the `@end titlepage' command.  Enclose your specifications
  477. between `@iftex' and `@end iftex' commands since the
  478. `texinfo-format-buffer' command may not recognize them.  Also, you must
  479. cancel the predefined heading commands with the `@headings off' command
  480. before defining your own specifications.
  481.  
  482.    Here is how to tell TeX to place the chapter name at the left, the
  483. page number in the center, and the date at the right of every header
  484. for both even- and odd-numbered pages:
  485.  
  486.      @iftex
  487.      @headings off
  488.      @everyheading @thischapter @| @thispage @| @today{}
  489.      @end iftex
  490.  
  491. You need to divide the left part from the central part and the central
  492. part from the right had part by inserting `@|' between parts.
  493. Otherwise, the specification command will not be able to tell where the
  494. text for one part ends and the next part begins.
  495.  
  496.    Each part can contain text or @-commands.  The text is printed as if
  497. the part were within an ordinary paragraph in the body of the page. 
  498. The @-commands replace themselves with the page number, date, chapter
  499. name, or whatever.
  500.  
  501.    Here are the six heading and footing commands:
  502.  
  503. `@everyheading LEFT @| CENTER @| RIGHT'
  504. `@everyfooting LEFT @| CENTER @| RIGHT'
  505.      The `every' commands specify the format for both even- and
  506.      odd-numbered pages.  These commands are for documents that are
  507.      printed on one side of each sheet of paper, or for documents in
  508.      which you want symmetrical headers or footers.
  509.  
  510. `@evenheading LEFT @| CENTER @| RIGHT'
  511. `@oddheading  LEFT @| CENTER @| RIGHT'
  512. `@evenfooting LEFT @| CENTER @| RIGHT'
  513. `@oddfooting  LEFT @| CENTER @| RIGHT'
  514.      The `even' and `odd' commands specify the format for even-numbered
  515.      pages and odd-numbered pages.  These commands are for books and
  516.      manuals that are printed on both sides of each sheet of paper.
  517.  
  518.    Use the `@this...' series of @-commands to provide the names of
  519. chapters and sections and the page number.  You can use the `@this...'
  520. commands in the left, center, or right portions of headers and footers,
  521. or anywhere else in a Texinfo file so long as they are between `@iftex'
  522. and `@end iftex' commands.
  523.  
  524.    Here are the `@this...' commands:
  525.  
  526. `@thispage'
  527.      Expands to the current page number.
  528.  
  529. `@thischaptername'
  530.      Expands to the name of the current chapter.
  531.  
  532. `@thischapter'
  533.      Expands to the number and name of the current chapter, in the
  534.      format `Chapter 1: Title'.
  535.  
  536. `@thistitle'
  537.      Expands to the name of the document, as specified by the
  538.      `@settitle' command.
  539.  
  540. `@thisfile'
  541.      For `@include' files only: expands to the name of the current
  542.      `@include' file.  If the current Texinfo source file is not an
  543.      `@include' file, this command has no effect.  This command does
  544.      *not* provide the name of the current Texinfo source file unless
  545.      it is an `@include' file.  (*Note Include Files::, for more
  546.      information about `@include' files.)
  547.  
  548. You can also use the `@today{}' command, which expands to the current
  549. date, in `1 Jan 1900' format.
  550.  
  551.    Other @-commands and text are printed in a header or footer just as
  552. if they were in the body of a page.  It is useful to incorporate text,
  553. particularly when you are writing drafts:
  554.  
  555.      @iftex
  556.      @headings off
  557.      @everyheading @emph{Draft!} @| @thispage @| @thischapter
  558.      @everyfooting @| @| Version: 0.27: @today{}
  559.      @end iftex
  560.  
  561.    Beware of overlong titles: they may overlap another part of the
  562. header or footer and blot it out.
  563.  
  564. 
  565. File: texinfo,  Node: Catching Mistakes,  Next: Refilling Paragraphs,  Prev: Headings,  Up: Top
  566.  
  567. Formatting Mistakes
  568. *******************
  569.  
  570.    Besides mistakes in the content of your documentation, there are two
  571. kinds of mistake you can make with Texinfo:  you can make mistakes with
  572. @-commands, and you can make mistakes with the structure of the nodes
  573. and chapters.
  574.  
  575.    Emacs has two tools for catching the @-command mistakes and two for
  576. catching structuring mistakes.
  577.  
  578.    For finding problems with @-commands, you can run TeX or a region
  579. formatting command on the region that has a problem; indeed, you can
  580. run these commands on each region as you write it.
  581.  
  582.    For finding problems with the structure of nodes and chapters, you
  583. can use `C-c C-s' (`texinfo-show-structure') and the related `occur'
  584. command and you can use the `M-x Info-validate' command.
  585.  
  586. * Menu:
  587.  
  588. * makeinfo preferred::          `makeinfo' finds errors.
  589. * Debugging with Info::         How to catch errors with Info formatting.
  590. * Debugging with TeX::          How to catch errors with TeX formatting.
  591. * Using texinfo-show-structure::  How to use `texinfo-show-structure'.
  592. * Using occur::                 How to list all lines containing a pattern.
  593. * Running Info-Validate::       How to find badly referenced nodes.
  594.  
  595. 
  596. File: texinfo,  Node: makeinfo preferred,  Next: Debugging with Info,  Up: Catching Mistakes
  597.  
  598. `makeinfo' Find Errors
  599. ======================
  600.  
  601.    The `makeinfo' program does an excellent job of catching errors and
  602. reporting them--far better than `texinfo-format-region' or
  603. `texinfo-format-buffer'.  In addition, the various functions for
  604. automatically creating and updating node pointers and menus remove many
  605. opportunities for human error.
  606.  
  607.    If you can, use the updating commands to create and insert pointers
  608. and menus.  These prevent many errors.  Then use `makeinfo' (or its
  609. Texinfo mode manifestations, `makeinfo-region' and `makeinfo-buffer')
  610. to format your file and check for other errors.  This is the best way
  611. to work with Texinfo.  But if you cannot use `makeinfo', or your
  612. problem is very puzzling, then you may want to use the tools described
  613. in this appendix.
  614.  
  615. 
  616. File: texinfo,  Node: Debugging with Info,  Next: Debugging with TeX,  Prev: makeinfo preferred,  Up: Catching Mistakes
  617.  
  618. Catching Errors with Info Formatting
  619. ====================================
  620.  
  621.    After you have written part of a Texinfo file, you can use the
  622. `texinfo-format-region' or the `makeinfo-region' command to see whether
  623. the region formats properly.
  624.  
  625.    Most likely, however, you are reading this section because for some
  626. reason you cannot use the `makeinfo-region' command; therefore, the
  627. rest of this section presumes that you are using
  628. `texinfo-format-region'.
  629.  
  630.    If you have made a mistake with an @-command,
  631. `texinfo-format-region' will stop processing at or after the error and
  632. display an error message.  To see where in the buffer the error
  633. occurred, switch to the `*Info Region*' buffer; the cursor will be in a
  634. position that is after the location of the error.  Also, the text will
  635. not be formatted after the place where the error occurred (or more
  636. precisely, where it was detected).
  637.  
  638.    For example, if you accidentally end a menu with the command `@end
  639. menus' with an `s' on the end, instead of with `@end menu', you will
  640. see an error message that says:
  641.  
  642.      @end menus is not handled by texinfo
  643.  
  644. The cursor will stop at the point in the buffer where the error occurs,
  645. or not long after it.  The buffer will look like this:
  646.  
  647.      ---------- Buffer: *Info Region* ----------
  648.      * Menu:
  649.      
  650.      * Using texinfo-show-structure::  How to use
  651.                                        `texinfo-show-structure'
  652.                                        to catch mistakes.
  653.      * Running Info-Validate::         How to check for
  654.                                        unreferenced nodes.
  655.      @end menus
  656.      -!-
  657.      ---------- Buffer: *Info Region* ----------
  658.  
  659.    The `texinfo-format-region' command sometimes provides slightly odd
  660. error messages.  For example, the following cross reference fails to
  661. format:
  662.  
  663.      (@xref{Catching Mistakes, for more info.)
  664.  
  665. In this case, `texinfo-format-region' detects the missing closing brace
  666. but displays a message that says `Unbalanced parentheses' rather than
  667. `Unbalanced braces'.  This is because the formatting command looks for
  668. mismatches between braces as if they were parentheses.
  669.  
  670.    Sometimes `texinfo-format-region' fails to detect mistakes.  For
  671. example, in the following, the closing brace is swapped with the
  672. closing parenthesis:
  673.  
  674.      (@xref{Catching Mistakes), for more info.}
  675.  
  676. Formatting produces:
  677.      (*Note for more info.: Catching Mistakes)
  678.  
  679.    The only way for you to detect this error is to realize that the
  680. reference should have looked like this:
  681.  
  682.      (*Note Catching Mistakes::, for more info.)
  683.  
  684.    Incidentally, if you are reading this node in Info and type `f RET'
  685. (`Info-follow-reference'), you will generate an error message that says:
  686.  
  687.      No such node: "Catching Mistakes) The only way ...
  688.  
  689. This is because Info perceives the example of the error as the first
  690. cross reference in this node and if you type a RET immediately after
  691. typing the Info `f' command, Info will attempt to go to the referenced
  692. node.  If you type `f catch TAB RET', Info will complete the node name
  693. of the correctly written example and take you to the `Catching
  694. Mistakes' node.  (If you try this, you can return from the `Catching
  695. Mistakes' node by typing `l' (`Info-last').)
  696.  
  697. 
  698. File: texinfo,  Node: Debugging with TeX,  Next: Using texinfo-show-structure,  Prev: Debugging with Info,  Up: Catching Mistakes
  699.  
  700. Catching Errors with TeX Formatting
  701. ===================================
  702.  
  703.    You can also catch mistakes when you format a file with TeX.
  704.  
  705.    Usually, you will want to do this after you have run
  706. `texinfo-format-buffer' (or, better, `makeinfo-buffer') on the same
  707. file, because `texinfo-format-buffer' sometimes displays error messages
  708. that make more sense than TeX.  (*Note Debugging with Info::, for more
  709. information.)
  710.  
  711.    For example, TeX was run on a Texinfo file, part of which is shown
  712. here:
  713.  
  714.      ---------- Buffer: texinfo.texi ----------
  715.      name of the texinfo file as an extension.  The
  716.      @samp{??} are `wildcards' that cause the shell to
  717.      substitute all the raw index files.  (@xref{sorting
  718.      indices, for more information about sorting
  719.      indices.)@refill
  720.      ---------- Buffer: texinfo.texi ----------
  721.  
  722. (The cross reference lacks a closing brace.) TeX produced the following
  723. output, after which it stopped:
  724.  
  725.      ---------- Buffer: *texinfo-tex-shell* ----------
  726.      Runaway argument?
  727.      {sorting indices, for more information about sorting
  728.      indices.) @refill @ETC.
  729.      ! Paragraph ended before @xref was complete.
  730.      <to be read again>
  731.                         @par
  732.      l.27
  733.      
  734.      ?
  735.      ---------- Buffer: *texinfo-tex-shell* ----------
  736.  
  737.    In this case, TeX produced an accurate and understandable error
  738. message:
  739.  
  740.      Paragraph ended before @xref was complete.
  741.  
  742. `@par' is an internal TeX command of no relevance to Texinfo. `l.27'
  743. means that TeX detected the problem on line 27 of the Texinfo file. 
  744. The `?' is the prompt TeX uses in this circumstance.
  745.  
  746.    Unfortunately, TeX is not always so helpful, and sometimes you must
  747. truly be a Sherlock Holmes to discover what went wrong.
  748.  
  749.    In any case, if you run into a problem like this, you can do one of
  750. three things.
  751.  
  752.   1. You can tell TeX to continue running and ignore just this error by
  753.      typing RET at the `?' prompt.
  754.  
  755.   2. You can tell TeX to continue running and to ignore all errors as
  756.      best it can by typing `r RET' at the `?' prompt.
  757.  
  758.      This is often the best thing to do.  However, beware: the one error
  759.      may produce a cascade of additional error messages as its
  760.      consequences are felt through the rest of the file.  (To stop TeX
  761.      when it is producing such an avalanche of error messages, type
  762.      `C-d' (or `C-c C-d', if you running a shell inside Emacs.))
  763.  
  764.   3. You can tell TeX to stop this run by typing `x RET' at the `?'
  765.      prompt.
  766.  
  767.    Please note that if you are running TeX inside Emacs, you need to
  768. switch to the shell buffer and line at which TeX offers the `?' prompt.
  769.  
  770.    Sometimes TeX will format a file without producing error messages
  771. even though there is a problem.  This usually occurs if a command is
  772. not ended but TeX is able to continue processing anyhow.  For example,
  773. if you fail to end an itemized list with the `@end itemize' command,
  774. TeX will write a DVI file that you can print out.  The only error
  775. message that TeX will give you is the somewhat mysterious comment that
  776.  
  777.      (@end occurred inside a group at level 1)
  778.  
  779. However, if you print the DVI file, you will find that the text of the
  780. file that follows the itemized list is entirely indented as if it were
  781. part of the last item in the itemized list.  The error message is the
  782. way TeX says that it expected to find an `@end' command somewhere in
  783. the file; but that it could not determine where it was needed.
  784.  
  785.    Another source of notoriously hard-to-find errors is a missing `@end
  786. group' command.  If you ever are stumped by incomprehensible errors,
  787. look for a missing `@end group' command first.
  788.  
  789.    If the Texinfo file lacks header lines, TeX may stop in the
  790. beginning of its run and display output that looks like the following.
  791. The `*' indicates that TeX is waiting for input.
  792.  
  793.      This is TeX, Version 2.0 for Berkeley UNIX
  794.      (preloaded format=plain-cm 87.10.25)
  795.      (test.texinfo [1])
  796.      *
  797.  
  798. In this case, simply type `\end RET' after the asterisk.  Then write
  799. the header lines in the Texinfo file and run the TeX command again.
  800. (Note the use of the backslash, `\'.  TeX uses `\' instead of `@'; and
  801. in this circumstance, you are working directly with TeX not with
  802. Texinfo.)
  803.  
  804. 
  805. File: texinfo,  Node: Using texinfo-show-structure,  Next: Using occur,  Prev: Debugging with TeX,  Up: Catching Mistakes
  806.  
  807. Using `texinfo-show-structure'
  808. ==============================
  809.  
  810.    It is not always easy to keep track of the nodes, chapters,
  811. sections, and subsections of a Texinfo file.  This is especially true
  812. if you are revising or adding to a Texinfo file that someone else has
  813. written.
  814.  
  815.    In GNU Emacs, in Texinfo mode, the `texinfo-show-structure' command
  816. lists all the lines that begin with the @-commands that specify the
  817. structure: `@chapter', `@section', `@appendix', and so on.  With an
  818. argument (`C-u' as prefix argument, if interactive), the command also
  819. shows the `@node' lines.  The `texinfo-show-structure' command is bound
  820. to `C-c C-s' in Texinfo mode, by default.
  821.  
  822.    The lines are displayed in a buffer called the `*Occur*' buffer. For
  823. example, when `texinfo-show-structure' was run on an earlier version of
  824. this appendix, it produced the following:
  825.  
  826.      Lines matching "^@\\(chapter \\|sect\\|sub\\|unnum\\|major\\|
  827.      heading \\|appendix\\)" in buffer texinfo.texi.
  828.        4:@appendix Formatting Mistakes
  829.       52:@appendixsec Catching Errors with Info Formatting
  830.      222:@appendixsec Catching Errors with @TeX{} Formatting
  831.      338:@appendixsec Using @code{texinfo-show-structure}
  832.      407:@appendixsubsec Using @code{occur}
  833.      444:@appendixsec Finding Badly Referenced Nodes
  834.      513:@appendixsubsec Running @code{Info-validate}
  835.      573:@appendixsubsec Splitting a File Manually
  836.  
  837.    This says that lines 4, 52, and 222 of `texinfo.texi' begin with the
  838. `@appendix', `@appendixsec', and `@appendixsec' commands respectively. 
  839. If you move your cursor into the `*Occur*' window, you can position the
  840. cursor over one of the lines and use the `C-c C-c' command
  841. (`occur-mode-goto-occurrence'), to jump to the corresponding spot in
  842. the Texinfo file.  *Note Using Occur: (emacs)Other Repeating Search,
  843. for more information about `occur-mode-goto-occurrence'.
  844.  
  845.    The first line in the `*Occur*' window describes the "regular
  846. expression" specified by TEXINFO-HEADING-PATTERN.  This regular
  847. expression is the pattern that `texinfo-show-structure' looks for.
  848. *Note Using Regular Expressions: (emacs)Regexps, for more information.
  849.  
  850.    When you invoke the `texinfo-show-structure' command, Emacs will
  851. display the structure of the whole buffer.  If you want to see the
  852. structure of just a part of the buffer, of one chapter, for example,
  853. use the `C-x n' (`narrow-to-region') command to mark the region. 
  854. (*Note Narrowing: (emacs)Narrowing.)  This is how the example used
  855. above was generated.  (To see the whole buffer again, use `C-x w'
  856. (`widen').)
  857.  
  858.    If you call `texinfo-show-structure' with a prefix argument by
  859. typing `C-u C-c C-s', it will list lines beginning with `@node' as well
  860. as the lines beginning with the @-sign commands for `@chapter',
  861. `@section', and the like.
  862.  
  863.    You can remind yourself of the structure of a Texinfo file by
  864. looking at the list in the `*Occur*' window; and if you have mis-named
  865. a node or left out a section, you can correct the mistake.
  866.  
  867. 
  868. File: texinfo,  Node: Using occur,  Next: Running Info-Validate,  Prev: Using texinfo-show-structure,  Up: Catching Mistakes
  869.  
  870. Using `occur'
  871. =============
  872.  
  873.    Sometimes the `texinfo-show-structure' command produces too much
  874. information.  Perhaps you want to remind yourself of the overall
  875. structure of a Texinfo file, and are overwhelmed by the detailed list
  876. produced by `texinfo-show-structure'.  In this case, you can use the
  877. `occur' command directly.  To do this, type
  878.  
  879.      `M-x occur'
  880.  
  881. and then, when prompted, type a "regexp", a regular expression for the
  882. pattern you want to match.  (*Note Regular Expressions: (
  883. emacs)Regexps.)  The `occur' command works from the current location of
  884. the cursor in the buffer to the end of the buffer.  If you want to run
  885. `occur' on the whole buffer, place the cursor at the beginning of the
  886. buffer.
  887.  
  888.    For example, to see all the lines that contain the word `@chapter'
  889. in them, just type `@chapter'.  This will produce a list of the
  890. chapters.  It will also list all the sentences with `@chapter' in the
  891. middle of the line.
  892.  
  893.    If you want to see only those lines that start with the word
  894. `@chapter', type `^@chapter' when prompted by `occur'.  If you want to
  895. see all the lines that end with a word or phrase, end the last word
  896. with a `$'; for example, `catching mistakes$'.  This can be helpful
  897. when you want to see all the nodes that are part of the same chapter or
  898. section and therefore have the same `Up' pointer.
  899.  
  900.    *Note Using Occur: (emacs)Other Repeating Search, for more
  901. information.
  902.  
  903. 
  904. File: texinfo,  Node: Running Info-Validate,  Prev: Using occur,  Up: Catching Mistakes
  905.  
  906. Finding Badly Referenced Nodes
  907. ==============================
  908.  
  909.    You can use the `Info-validate' command to check whether any of the
  910. `Next', `Previous', `Up' or other node pointers fail to point to a
  911. node.  This command checks that every node pointer points to an
  912. existing node.  The `Info-validate' command works only on Info files,
  913. not on Texinfo files.
  914.  
  915.    The `makeinfo' program validates pointers automatically, so you do
  916. not need to use the `Info-validate' command if you are using
  917. `makeinfo'.  You only may need to use `Info-validate' if you are unable
  918. to run `makeinfo' and instead must create an Info file using
  919. `texinfo-format-region' or `texinfo-format-buffer', or if you write an
  920. Info file from scratch.
  921.  
  922. * Menu:
  923.  
  924. * Using Info-validate::         How to run `Info-validate'.
  925. * Unsplit::                     How to create an unsplit file.
  926. * Tagifying::                   How to tagify a file.
  927. * Splitting::                   How to split a file manually.
  928.  
  929. 
  930. File: texinfo,  Node: Using Info-validate,  Next: Unsplit,  Up: Running Info-Validate
  931.  
  932. Running `Info-validate'
  933. -----------------------
  934.  
  935.    To use `Info-validate', visit the Info file you wish to check and
  936. type:
  937.  
  938.      M-x Info-validate
  939.  
  940. (Note that the `Info-validate' command requires an upper case `I'.  You
  941. may also need to create a tag table before running `Info-validate'. 
  942. *Note Tagifying::.)
  943.  
  944.    If your file is valid, you will receive a message that says "File
  945. appears valid".  However, if you have a pointer that does not point to
  946. a node, error messages will be displayed in a buffer called `*problems
  947. in info file*'.
  948.  
  949.    For example, `Info-validate' was run on a test file that contained
  950. only the first node of this manual.  One of the messages said:
  951.  
  952.      In node "Overview", invalid Next: Texinfo Mode
  953.  
  954. This meant that the node called `Overview' had a `Next' pointer that
  955. did not point to anything (which was true in this case, since the test
  956. file had only one node in it).
  957.  
  958.    Now suppose we add a node named `Texinfo Mode' to our test case but
  959. we do not specify a `Previous' for this node.  Then we will get the
  960. following error message:
  961.  
  962.      In node "Texinfo Mode", should have Previous: Overview
  963.  
  964. This is because every `Next' pointer should be matched by a `Previous'
  965. (in the node where the `Next' points) which points back.
  966.  
  967.    `Info-validate' also checks that all menu entries and cross
  968. references point to actual nodes.
  969.  
  970.    Note that `Info-validate' requires a tag table and does not work
  971. with files that have been split.  (The `texinfo-format-buffer' command
  972. automatically splits files larger than 100,000 bytes.)  In order to use
  973. `Info-validate' on a large file, you must run `texinfo-format-buffer'
  974. with an argument so that it does not split the Info file; and you must
  975. create a tag table for the unsplit file.
  976.  
  977. 
  978. File: texinfo,  Node: Unsplit,  Next: Tagifying,  Prev: Using Info-validate,  Up: Running Info-Validate
  979.  
  980. Creating an Unsplit File
  981. ------------------------
  982.  
  983.    You can run `Info-validate' only on a single Info file that has a
  984. tag table.  The command will not work on the indirect subfiles that are
  985. generated when a master file is split.  If you have a large file
  986. (longer than 70,000 bytes or so), you need to run the
  987. `texinfo-format-buffer' or `makeinfo-buffer' command in such a way that
  988. it does not create indirect subfiles.  You will also need to create a
  989. tag table for the Info file.  After you have done this, you can run
  990. `Info-validate' and look for badly referenced nodes.
  991.  
  992.    The first step is to create an unsplit Info file.  To prevent
  993. `texinfo-format-buffer' from splitting a Texinfo file into smaller Info
  994. files, give a prefix to the `M-x texinfo-format-buffer' command:
  995.  
  996.      C-u  M-x texinfo-format-buffer
  997.  
  998. or else
  999.  
  1000.      C-u C-c C-e C-b
  1001.  
  1002. When you do this, Texinfo will not split the file and will not create a
  1003. tag table for it.
  1004.  
  1005. 
  1006. File: texinfo,  Node: Tagifying,  Next: Splitting,  Prev: Unsplit,  Up: Running Info-Validate
  1007.  
  1008. Tagifying a File
  1009. ----------------
  1010.  
  1011.    After creating an unsplit Info file, you must create a tag table for
  1012. it.  Visit the Info file you wish to tagify and type:
  1013.  
  1014.      M-x Info-tagify
  1015.  
  1016. (Note the upper case I in `Info-tagify'.)  This creates an Info file
  1017. with a tag table that you can validate.
  1018.  
  1019.    The third step is to validate the Info file:
  1020.  
  1021.      M-x Info-validate
  1022.  
  1023. (Note the upper case I in `Info-validate'.) In brief, the steps are:
  1024.  
  1025.      C-u M-x texinfo-format-buffer
  1026.      M-x Info-tagify
  1027.      M-x Info-validate
  1028.  
  1029.    After you have validated the node structure, you can rerun
  1030. `texinfo-format-buffer' in the normal way so it will construct a tag
  1031. table and split the file automatically, or you can make the tag table
  1032. and split the file manually.
  1033.  
  1034. 
  1035. File: texinfo,  Node: Splitting,  Prev: Tagifying,  Up: Running Info-Validate
  1036.  
  1037. Splitting a File Manually
  1038. -------------------------
  1039.  
  1040.    You should split a large file or else let the
  1041. `texinfo-format-buffer' or `makeinfo-buffer' command do it for you
  1042. automatically.  (Generally you will let one of the formatting commands
  1043. do this job for you.  *Note Create an Info File::.)
  1044.  
  1045.    The split-off files are called the indirect subfiles.
  1046.  
  1047.    Info files are split to save memory.  With smaller files, Emacs does
  1048. not have make such a large buffer to hold the information.
  1049.  
  1050.    If an Info file has more than 30 nodes, you should also make a tag
  1051. table for it. *Note Using Info-validate::, for information about
  1052. creating a tag table.  (Again, tag tables are usually created
  1053. automatically by the formatting command; you only need to create a tag
  1054. table yourself if you are doing the job manually.  Most likely, you
  1055. will do this for a large, unsplit file on which you have run
  1056. `Info-validate'.)
  1057.  
  1058.    Visit the Info file you wish to tagify and split and type the two
  1059. commands:
  1060.  
  1061.      M-x Info-tagify
  1062.      M-x Info-split
  1063.  
  1064. (Note that the `I' in `Info' is upper case.)
  1065.  
  1066.    When you use the `Info-split' command, the buffer is modified into a
  1067. (small) Info file which lists the indirect subfiles.  This file should
  1068. be saved in place of the original visited file.  The indirect subfiles
  1069. are written in the same directory the original file is in, with names
  1070. generated by appending `-' and a number to the original file name.
  1071.  
  1072.    The primary file still functions as an Info file, but it contains
  1073. just the tag table and a directory of subfiles.
  1074.  
  1075. 
  1076. File: texinfo,  Node: Refilling Paragraphs,  Next: Command Syntax,  Prev: Catching Mistakes,  Up: Top
  1077.  
  1078. Refilling Paragraphs
  1079. ********************
  1080.  
  1081.    The `@refill' command refills and, optionally, indents the first
  1082. line of a paragraph.(1) The `@refill' command is no longer important,
  1083. but we describe it here because you once needed it.  You will see it in
  1084. many old Texinfo files.
  1085.  
  1086.    Without refilling, paragraphs containing long @-constructs may look
  1087. bad after formatting because the formatter removes @-commands and
  1088. shortens some lines more than others.  In the past, neither the
  1089. `texinfo-format-region' command nor the `texinfo-format-buffer' command
  1090. refilled paragraphs automatically.  The `@refill' command had to be
  1091. written at the end of every paragraph to cause these formatters to fill
  1092. them.  (Both TeX and `makeinfo' have always refilled paragraphs
  1093. automatically.)  Now, all the Info formatters automatically fill and
  1094. indent those paragraphs that need to be filled and indented.
  1095.  
  1096.    The `@refill' command causes `texinfo-format-region' and
  1097. `texinfo-format-buffer' to refill a paragraph in the Info file *after*
  1098. all the other processing has been done.  For this reason, you can not
  1099. use `@refill' with a paragraph containing either `@*' or `@w{ ... }'
  1100. since the refilling action will override those two commands.
  1101.  
  1102.    The `texinfo-format-region' and `texinfo-format-buffer' commands now
  1103. automatically append `@refill' to the end of each paragraph that should
  1104. be filled.  They do not append `@refill' to the ends of paragraphs that
  1105. contain `@*' or `@w{ ...}' and therefore do not refill or indent them.
  1106.  
  1107.    ---------- Footnotes ----------
  1108.  
  1109.    (1)  Perhaps the command should have been called the
  1110. `@refillandindent' command, but `@refill' is shorter and the name was
  1111. chosen before indenting was possible.
  1112.  
  1113. 
  1114. File: texinfo,  Node: Command Syntax,  Next: Obtaining TeX,  Prev: Refilling Paragraphs,  Up: Top
  1115.  
  1116. @-Command Syntax
  1117. ****************
  1118.  
  1119.    The character `@' is used to start special Texinfo commands. (It has
  1120. the same meaning that `\' has in PlainTeX.)  Texinfo has four types of
  1121. @-command:
  1122.  
  1123. 1. Non-alphabetic commands.
  1124.      These commands consist of an @ followed by a punctuation mark or
  1125.      other character that is not part of the alphabet.  Non-alphabetic
  1126.      commands are almost always part of the text within a paragraph,
  1127.      and never take any argument.  The two characters (@ and the other
  1128.      one) are complete in themselves; none is followed by braces.  The
  1129.      non-alphabetic commands are: `@.', `@:', `@*', `@@', `@{', and
  1130.      `@}'.
  1131.  
  1132. 2. Alphabetic commands that do not require arguments.
  1133.      These commands start with @ followed by a word followed by left-
  1134.      and right-hand braces.  These commands insert special symbols in
  1135.      the document; they do not require arguments.  For example,
  1136.      `@dots{}' => `...', `@equiv{}' => `==', `@TeX{}' => `TeX', and
  1137.      `@bullet{}' => `*'.
  1138.  
  1139. 3. Alphabetic commands that require arguments within braces.
  1140.      These commands start with @ followed by a letter or a word,
  1141.      followed by an argument within braces.  For example, the command
  1142.      `@dfn' indicates the introductory or defining use of a term; it is
  1143.      used as follows: `In Texinfo, @@-commands are @dfn{mark-up}
  1144.      commands.'
  1145.  
  1146. 4. Alphabetic commands that occupy an entire line.
  1147.      These commands occupy an entire line.  The line starts with @,
  1148.      followed by the name of the command (a word); for example,
  1149.      `@center' or `@cindex'.  If no argument is needed, the word is
  1150.      followed by the end of the line.  If there is an argument, it is
  1151.      separated from the command name by a space.  Braces are not used.
  1152.  
  1153.    Thus, the alphabetic commands fall into classes that have different
  1154. argument syntaxes.  You cannot tell to which class a command belongs by
  1155. the appearance of its name, but you can tell by the command's meaning:
  1156. if the command stands for a glyph, it is in class 2 and does not
  1157. require an argument; if it makes sense to use the command together with
  1158. other text as part of a paragraph, the command is in class 3 and must
  1159. be followed by an argument in braces; otherwise, it is in class 4 and
  1160. uses the rest of the line as its argument.
  1161.  
  1162.    The purpose of having a different syntax for commands of classes 3
  1163. and 4 is to make Texinfo files easier to read, and also to help the GNU
  1164. Emacs paragraph and filling commands work properly.  There is only one
  1165. exception to this rule: the command `@refill', which is always used at
  1166. the end of a paragraph immediately following the final period or other
  1167. punctuation character.  `@refill' takes no argument and does *not*
  1168. require braces.  `@refill' never confuses the Emacs paragraph commands
  1169. because it cannot appear at the beginning of a line.
  1170.  
  1171. 
  1172. File: texinfo,  Node: Obtaining TeX,  Next: New Features,  Prev: Command Syntax,  Up: Top
  1173.  
  1174. How to Obtain TeX
  1175. *****************
  1176.  
  1177.    TeX is freely redistributable.  You can obtain TeX for Unix systems
  1178. from the University of Washington for a distribution fee.
  1179.  
  1180.    To order a full distribution, send $200.00 for a 1/2-inch 9-track
  1181. 1600 bpi (`tar' or `cpio') tape reel, or $210.00 for a 1/4-inch 4-track
  1182. QIC-24 (`tar' or `cpio') cartridge, to:
  1183.  
  1184.      Northwest Computing Support Center
  1185.      DR-10, Thomson Hall 35
  1186.      University of Washington
  1187.      Seattle, Washington 98195
  1188.  
  1189. Please make checks payable to the University of Washington.
  1190.  
  1191.    Prepaid orders are preferred but purchase orders are acceptable;
  1192. however, purchase orders carry an extra charge of $10.00, to pay for
  1193. processing.
  1194.  
  1195.    Overseas sites: please add to the base cost $20.00 for shipment via
  1196. air parcel post, or $30.00 for shipment via courier.
  1197.  
  1198.    Please check with the Northwest Computing Support Center at the
  1199. University of Washington for current prices and formats:
  1200.  
  1201.      telephone:  (206) 543-6259
  1202.      email:      elisabet@max.u.washington.edu
  1203.  
  1204. 
  1205. File: texinfo,  Node: New Features,  Next: Command and Variable Index,  Prev: Obtaining TeX,  Up: Top
  1206.  
  1207. Second Edition Features
  1208. ***********************
  1209.  
  1210.    The second edition of the Texinfo manual describes more than 20 new
  1211. Texinfo mode commands and more than 50 previously undocumented Texinfo
  1212. @-commands.  This edition is more than twice the length of the first
  1213. edition.
  1214.  
  1215.    Here is a brief description of the new commands.
  1216.  
  1217. * Menu:
  1218.  
  1219. * New Texinfo Mode Commands::   The updating commands are especially useful.
  1220. * New Commands::                Many newly described @-commands.
  1221.  
  1222.