home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / gnu / texinfo-3.1-bin.lha / info / texi.info-7 (.txt) < prev    next >
GNU Info File  |  1994-02-24  |  51KB  |  950 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: Footnotes,  Next: Conditionals,  Prev: Definition Commands,  Up: Top
  21. Footnotes
  22. *********
  23.    A "footnote" is for a reference that documents or elucidates the
  24. primary text.(1)
  25.    In Texinfo, footnotes are created with the `@footnote' command.
  26. This command is followed immediately by a left brace, then by the text
  27. of the footnote, and then by a terminating right brace.  The template
  28.      @footnote{TEXT}
  29.    Footnotes may be of any length, but are usually short.
  30.    For example, this clause is followed by a sample footnote(2); in the
  31. Texinfo source, it looks like this:
  32.      ...a sample footnote @footnote{Here is the sample
  33.      footnote.}; in the Texinfo source...
  34.    In a printed manual or book, the reference mark for a footnote is a
  35. small, superscripted number; the text of the footnote is written at the
  36. bottom of the page, below a horizontal line.
  37.    In Info, the reference mark for a footnote is a pair of parentheses
  38. with the footnote number between them, like this: `(1)'.
  39.    Info has two footnote styles, which determine where the text of the
  40. footnote is located:
  41.    * In the `End' node style, all the footnotes for a single node are
  42.      placed at the end of that node.  The footnotes are separated from
  43.      the rest of the node by a line of dashes with the word `Footnotes'
  44.      within it.  Each footnote begins with an `(N)' reference mark.
  45.      Here is an example of a single footnote in the end of node style:
  46.            --------- Footnotes ---------
  47.           
  48.           (1)  Here is a sample footnote.
  49.    * In the `Separate' node style, all the footnotes for a single node
  50.      are placed in an automatically constructed node of their own.  In
  51.      this style, a "footnote reference" follows each `(N)' reference
  52.      mark in the body of the node.  The footnote reference is actually
  53.      a cross reference which you use to reach the footnote node.
  54.      The name of the node containing the footnotes is constructed by
  55.      appending `-Footnotes' to the name of the node that contains the
  56.      footnotes. (Consequently, the footnotes' node for the `Footnotes'
  57.      node is `Footnotes-Footnotes'!)  The footnotes' node has an `Up'
  58.      node pointer that leads back to its parent node.
  59.      Here is how the first footnote in this manual looks after being
  60.      formatted for Info in the separate node style:
  61.           File: texinfo.info  Node: Overview-Footnotes, Up: Overview
  62.           
  63.           (1) Note that the first syllable of "Texinfo" is
  64.           pronounced like "speck", not "hex". ...
  65.    A Texinfo file may be formatted into an Info file with either
  66. footnote style.
  67.    Use the `@footnotestyle' command to specify an Info file's footnote
  68. style.  Write this command at the beginning of a line followed by an
  69. argument, either `end' for the end node style or `separate' for the
  70. separate node style.
  71.    For example,
  72.      @footnotestyle end
  73.      @footnotestyle separate
  74.    Write an `@footnotestyle' command before or shortly after the
  75. end-of-header line at the beginning of a Texinfo file.  (If you include
  76. the `@footnotestyle' command between the start-of-header and
  77. end-of-header lines, the region formatting commands will format
  78. footnotes as specified.)
  79.    If you do not specify a footnote style, the formatting commands use
  80. their default style.  Currently, `makeinfo' uses the `end' style, while
  81. `texinfo-format-buffer' and `texinfo-format-region' use the `separate'
  82. style.
  83.    This chapter contains two footnotes.
  84.    ---------- Footnotes ----------
  85.    (1)  A footnote should complement or expand upon the primary text,
  86. but a reader should not need to read a footnote to understand the
  87. primary text.  For a thorough discussion of footnotes, see `The Chicago
  88. Manual of Style', which is published by the University of Chicago Press.
  89.    (2)  Here is the sample footnote.
  90. File: texi.info,  Node: Conditionals,  Next: Format/Print Hardcopy,  Prev: Footnotes,  Up: Top
  91. Conditionally Visible Text
  92. **************************
  93.    Sometimes it is good to use different text for a printed manual and
  94. its corresponding Info file.  In this case, you can use the
  95. "conditional commands" to specify which text is for the printed manual
  96. and which is for the Info file.
  97. * Menu:
  98. * Conditional Commands::        How to specify text for Info or TeX.
  99. * Using Ordinary TeX Commands::  You can use any and all TeX commands.
  100. * set clear value::             How to designate which text to format (for
  101.                                   both Info and TeX); and how to set a
  102.                                   flag to a string that you can insert.
  103. File: texi.info,  Node: Conditional Commands,  Next: Using Ordinary TeX Commands,  Up: Conditionals
  104. Using `@ifinfo' and `@iftex'
  105. ============================
  106.    `@ifinfo' begins segments of text that should be ignored by TeX when
  107. it typesets the printed manual.  The segment of text appears only in
  108. the Info file.  The `@ifinfo' command should appear on a line by
  109. itself;  end the Info-only text with a line containing `@end ifinfo' by
  110. itself.  At the beginning of a Texinfo file, the Info permissions are
  111. contained within a region marked by `@ifinfo' and `@end ifinfo'. (*Note
  112. Info Summary and Permissions::.)
  113.    The `@iftex' and `@end iftex' commands are similar to the `@ifinfo'
  114. and `@end ifinfo' commands, except that they specify text that will
  115. appear in the printed manual but not in the Info file.
  116.    For example,
  117.      @iftex
  118.      This text will appear only in the printed manual.
  119.      @end iftex
  120.      
  121.      @ifinfo
  122.      However, this text will appear only in Info.
  123.      @end ifinfo
  124. The preceding example produces the following line:
  125.    However, this text will appear only in Info.
  126. Note how you only see one of the two lines, depending on whether you
  127. are reading the Info version or the printed version of this manual.
  128.    The `@titlepage' command is a special variant of `@iftex' that is
  129. used for making the title and copyright pages of the printed manual.
  130. (*Note `@titlepage': titlepage.)
  131. File: texi.info,  Node: Using Ordinary TeX Commands,  Next: set clear value,  Prev: Conditional Commands,  Up: Conditionals
  132. Using Ordinary TeX Commands
  133. ===========================
  134.    Inside a region delineated by `@iftex' and `@end iftex', you can
  135. embed some PlainTeX commands.  Info will ignore these commands since
  136. they are only in that part of the file which is seen by TeX.  You can
  137. write the TeX commands as you would write them in a normal TeX file,
  138. except that you must replace the `\' used by TeX with an `@'.  For
  139. example, in the `@titlepage' section of a Texinfo file, you can use the
  140. TeX command `@vskip' to format the copyright page.  (The `@titlepage'
  141. command causes Info to ignore the region automatically, as it does with
  142. the `@iftex' command.)
  143.    However, many features of PlainTeX will not work, as they are
  144. overridden by features of Texinfo.
  145.    You can enter PlainTeX completely, and use `\' in the TeX commands,
  146. by delineating a region with the `@tex' and `@end tex' commands.  (The
  147. `@tex' command also causes Info to ignore the region, like the `@iftex'
  148. command.)
  149.    For example, here is a mathematical expression written in PlainTeX:
  150.      @tex
  151.      $$ \chi^2 = \sum_{i=1}^N
  152.                \left (y_i - (a + b x_i)
  153.                \over \sigma_i\right)^2 $$
  154.      @end tex
  155. The output of this example will appear only in a printed manual.  If
  156. you are reading this in Info, you will not see anything after this
  157. paragraph.
  158. File: texi.info,  Node: set clear value,  Prev: Using Ordinary TeX Commands,  Up: Conditionals
  159. `@set', `@clear', and `@value'
  160. ==============================
  161.    You can direct the Texinfo formatting commands to format or ignore
  162. parts of a Texinfo file with the `@set', `@clear', `@ifset', and
  163. `@ifclear' commands.
  164.    In addition, you can use the `@set FLAG' command to set the value of
  165. FLAG to a string of characters; and use `@value{FLAG}' to insert that
  166. string.  You can use `@set', for example, to set a date and use
  167. `@value' to insert the date in several places in the Texinfo file.
  168. * Menu:
  169. * ifset ifclear::               Format a region if a flag is set.
  170. * value::                       Replace a flag with a string.
  171. * value Example::               An easy way to update edition information.
  172. File: texi.info,  Node: ifset ifclear,  Next: value,  Up: set clear value
  173. `@ifset' and `@ifclear'
  174. -----------------------
  175.    When a FLAG is set, the Texinfo formatting commands format text
  176. between subsequent pairs of `@ifset FLAG' and `@end ifset' commands.
  177. When the FLAG is cleared, the Texinfo formatting commands do *not*
  178. format the text.
  179.    Use the `@set FLAG' command to turn on, or "set", a FLAG; a "flag"
  180. can be any single word.  The format for the command looks like this:
  181.      @set FLAG
  182.    Write the conditionally formatted text between `@ifset FLAG' and
  183. `@end ifset' commands, like this:
  184.      @ifset FLAG
  185.      CONDITIONAL-TEXT
  186.      @end ifset
  187.    For example, you can create one document that has two variants, such
  188. as a manual for a `large' and `small' model:
  189.      You can use this machine to dig up shrubs
  190.      without hurting them.
  191.      
  192.      @set large
  193.      
  194.      @ifset large
  195.      It can also dig up fully grown trees.
  196.      @end ifset
  197.      
  198.      Remember to replant promptly ...
  199. In the example, the formatting commands will format the text between
  200. `@ifset large' and `@end ifset' because the `large' flag is set.
  201.    Use the `@clear FLAG' command to turn off, or "clear", a flag.
  202. Clearing a flag is the opposite of setting a flag.  The command looks
  203. like this:
  204.      @clear FLAG
  205. Write the command on a line of its own.
  206.    When FLAG is cleared, the Texinfo formatting commands do *not*
  207. format the text between `@ifset FLAG' and `@end ifset'; that text is
  208. ignored and does not appear in either printed or Info output.
  209.    For example, if you clear the flag of the preceding example by
  210. writing an `@clear large' command after the `@set large' command (but
  211. before the conditional text), then the Texinfo formatting commands
  212. ignore the text between the `@ifset large' and `@end ifset' commands.
  213. In the formatted output, that text does not appear; in both printed and
  214. Info output, you see only the lines that say, "You can use this machine
  215. to dig up shrubs without hurting them.  Remember to replant promptly
  216. ...".
  217.    If a flag is cleared with an `@clear FLAG' command, then the
  218. formatting commands format text between subsequent pairs of `@ifclear'
  219. and `@end ifclear' commands.  But if the flag is set with `@set FLAG',
  220. then the formatting commands do *not* format text between an `@ifclear'
  221. and an `@end ifclear' command; rather, they ignore that text.  An
  222. `@ifclear' command looks like this:
  223.      @ifclear FLAG
  224.    In brief, the commands are:
  225. `@set FLAG'
  226.      Tell the Texinfo formatting commands that FLAG is set.
  227. `@clear FLAG'
  228.      Tell the Texinfo formatting commands that FLAG is cleared.
  229. `@ifset FLAG'
  230.      If FLAG is set, tell the Texinfo formatting commands to format the
  231.      text up to the following `@end ifset' command.
  232.      If FLAG is cleared, tell the Texinfo formatting commands to ignore
  233.      text up to the following `@end ifset' command.
  234. `@ifclear FLAG'
  235.      If FLAG is set, tell the Texinfo formatting commands to ignore the
  236.      text up to the following `@end ifclear' command.
  237.      If FLAG is cleared, tell the Texinfo formatting commands to format
  238.      the text up to the following `@end ifclear' command.
  239. File: texi.info,  Node: value,  Next: value Example,  Prev: ifset ifclear,  Up: set clear value
  240. `@value'
  241. --------
  242.    You can use the `@set' command to specify a value for a flag, which
  243. is expanded by the `@value' command.  The value is a string a
  244. characters.
  245.    Write the `@set' command like this:
  246.      @set foo This is a string.
  247. This sets the value of `foo' to "This is a string."
  248.    The Texinfo formatters replace an `@value{FLAG}' command with the
  249. string to which FLAG is set.
  250.    Thus, when `foo' is set as shown above, the Texinfo formatters
  251. convert
  252.      @value{foo}
  253.      This is a string.
  254.    You can write an `@value' command within a paragraph; but you must
  255. write an `@set' command on a line of its own.
  256.    If you write the `@set' command like this:
  257.      @set foo
  258. without specifying a string, the value of `foo' is an empty string.
  259.    If you clear a previously set flag with an `@clear FLAG' command, a
  260. subsequent `@value{flag}' command is invalid and the string is replaced
  261. with an error message that says `{No value for "FLAG"}'.
  262.    For example, if you set `foo' as follows:
  263.      @set how-much very, very, very
  264. then the formatters transform
  265.      It is a @value{how-much} wet day.
  266.      It is a very, very, very wet day.
  267.    If you write
  268.      @clear how-much
  269. then the formatters transform
  270.      It is a @value{how-much} wet day.
  271.      It is a {No value for "how-much"} wet day.
  272. File: texi.info,  Node: value Example,  Prev: value,  Up: set clear value
  273. `@value' Example
  274. ----------------
  275.    You can use the `@value' command to limit the number of places you
  276. need to change when you record an update to a manual.  Here is how it
  277. is done in `The GNU Make Manual':
  278. Set the flags:
  279.      @set EDITION 0.35 Beta
  280.      @set VERSION 3.63 Beta
  281.      @set UPDATED 14 August 1992
  282.      @set UPDATE-MONTH August 1992
  283. Write text for the first `@ifinfo' section, for people reading the
  284. Texinfo file:
  285.      This is Edition @value{EDITION},
  286.      last updated @value{UPDATED},
  287.      of @cite{The GNU Make Manual},
  288.      for @code{make}, Version @value{VERSION}.
  289. Write text for the title page, for people reading the printed manual:
  290.      @title GNU Make
  291.      @subtitle A Program for Directing Recompilation
  292.      @subtitle Edition @value{EDITION}, ...
  293.      @subtitle @value{UPDATE-MONTH}
  294. (On a printed cover, a date listing the month and the year looks less
  295. fussy than a date listing the day as well as the month and year.)
  296. Write text for the Top node, for people reading the Info file:
  297.      This is Edition @value{EDITION}
  298.      of the @cite{GNU Make Manual},
  299.      last updated @value{UPDATED}
  300.      for @code{make} Version @value{VERSION}.
  301.    After you format the manual, the text in the first `@ifinfo' section
  302. looks like this:
  303.      This is Edition 0.35 Beta, last updated 14 August 1992,
  304.      of `The GNU Make Manual', for `make', Version 3.63 Beta.
  305.    When you update the manual, change only the values of the flags; you
  306. do not need to rewrite the three sections.
  307. File: texi.info,  Node: Format/Print Hardcopy,  Next: Create an Info File,  Prev: Conditionals,  Up: Top
  308. Format and Print Hardcopy
  309. *************************
  310.    There are three major shell commands for making a printed manual
  311. from a Texinfo file: one for converting the Texinfo file into a file
  312. that will be printed, a second for sorting indices, and a third for
  313. printing the formatted document.  When you use the shell commands, you
  314. can either work directly in the operating system shell or work within a
  315. shell inside GNU Emacs.
  316.    If you are using GNU Emacs, you can use commands provided by Texinfo
  317. mode instead of shell commands.  In addition to the three commands to
  318. format a file, sort the indices, and print the result, Texinfo mode
  319. offers key bindings for commands to recenter the output buffer, show the
  320. print queue, and delete a job from the print queue.
  321. * Menu:
  322. * Use TeX::                     Use TeX to format for hardcopy.
  323. * Shell Format & Print::        How to format and print a hardcopy manual
  324.                                  with shell commands.
  325. * Within Emacs::                How to format and print from an Emacs shell.
  326. * Texinfo Mode Printing::       How to format and print in Texinfo mode.
  327. * Compile-Command::             How to print using Emacs's compile command.
  328. * Requirements Summary::        TeX formatting requirements summary.
  329. * Preparing for TeX::           What you need to do to use TeX.
  330. * Overfull hboxes::             What are and what to do with overfull hboxes.
  331. * smallbook::                   How to print small format books and manuals.
  332. * A4 Paper::                    How to print on European A4 paper.
  333. * Cropmarks and Magnification::  How to print marks to indicate the size
  334.                                 of pages and how to print scaled up output.
  335. File: texi.info,  Node: Use TeX,  Next: Shell Format & Print,  Up: Format/Print Hardcopy
  336. Use TeX
  337. =======
  338.    The typesetting program called TeX is used for formatting a Texinfo
  339. file.  TeX is a very powerful typesetting program and, if used right,
  340. does an exceptionally good job.  *Note How to Obtain TeX: Obtaining
  341. TeX, for information on how to obtain TeX.
  342.    The `makeinfo', `texinfo-format-region', and `texinfo-format-buffer'
  343. commands read the very same @-commands in the Texinfo file as does TeX,
  344. but process them differently to make an Info file; see *Note Create an
  345. Info File::.
  346. File: texi.info,  Node: Shell Format & Print,  Next: Within Emacs,  Prev: Use TeX,  Up: Format/Print Hardcopy
  347. Format and Print Using Shell Commands
  348. =====================================
  349.    Format the Texinfo file with the shell command `tex' followed by the
  350. name of the Texinfo file.  This produces a formatted DVI file as well
  351. as several auxiliary files containing indices, cross references, etc.
  352. The DVI file (for "DeVice Independent" file) can be printed on a wide
  353. variety of printers.
  354.    The `tex' formatting command itself does not sort the indices; it
  355. writes an output file of unsorted index data.  This is a misfeature of
  356. TeX.  Hence, to generate a printed index, you first need a sorted index
  357. to work from.  The `texindex' command sorts indices.  (The source file
  358. `texindex.c' comes as part of the standard GNU distribution and is
  359. usually installed when Emacs is installed.)
  360.    The `tex' formatting command outputs unsorted index files under
  361. names that obey a standard convention.  These names are the name of
  362. your main input file to the `tex' formatting command, with everything
  363. after the first period thrown away, and the two letter names of indices
  364. added at the end.  For example, the raw index output files for the
  365. input file `foo.texinfo' would be `foo.cp', `foo.vr', `foo.fn',
  366. `foo.tp', `foo.pg' and `foo.ky'.  Those are exactly the arguments to
  367. give to `texindex'.
  368.    Or else, you can use `??' as "wild-cards" and give the command in
  369. this form:
  370.      texindex foo.??
  371. This command will run `texindex' on all the unsorted index files,
  372. including any that you have defined yourself using `@defindex' or
  373. `@defcodeindex'.  (You may execute `texindex foo.??' even if there are
  374. similarly named files with two letter extensions that are not index
  375. files, such as `foo.el'.  The `texindex' command reports but otherwise
  376. ignores such files.)
  377.    For each file specified, `texindex' generates a sorted index file
  378. whose name is made by appending `s' to the input file name.  The
  379. `@printindex' command knows to look for a file of that name.
  380. `texindex' does not alter the raw index output file.
  381.    After you have sorted the indices, you need to rerun the `tex'
  382. formatting command on the Texinfo file.  This regenerates a formatted
  383. DVI file with up-to-date index entries.(1)
  384.    To summarize, this is a three step process:
  385.   1. Run the `tex' formatting command on the Texinfo file.  This
  386.      generates the formatted DVI file as well as the raw index files
  387.      with two letter extensions.
  388.   2. Run the shell command `texindex' on the raw index files to sort
  389.      them.  This creates the corresponding sorted index files.
  390.   3. Rerun the `tex' formatting command on the Texinfo file.  This
  391.      regenerates a formatted DVI file with the index entries in the
  392.      correct order.  This second run also corrects the page numbers for
  393.      the cross references.  (The tables of contents are always correct.)
  394.    You need not run `texindex' each time after you run the `tex'
  395. formatting.  If you do not, on the next run, the `tex' formatting
  396. command will use whatever sorted index files happen to exist from the
  397. previous use of `texindex'.  This is usually OK while you are debugging.
  398.    Rather than type the `tex' and `texindex' commands yourself, you can
  399. use `texi2dvi'.  This shell script is designed to simplify the
  400. `tex'--`texindex'--`tex' sequence by figuring out whether index files
  401. and DVI files are up-to-date.  It runs `texindex' and `tex' only when
  402. necessary.
  403.    The syntax for `texi2dvi' is like this (where `%' is the shell
  404. prompt):
  405.      % texi2dvi FILENAME...
  406.    Finally, you can print the DVI file with the DVI print command.  The
  407. precise command to use depends on the system; `lpr -d' is common.  The
  408. DVI print command may require a file name without any extension or with
  409. a `.dvi' extension.
  410.    The following commands, for example, sort the indices, format, and
  411. print the `Bison Manual' (where `%' is the shell prompt):
  412.      % tex bison.texinfo
  413.      % texindex bison.??
  414.      % tex bison.texinfo
  415.      % lpr -d bison.dvi
  416. (Remember that the shell commands may be different at your site; but
  417. these are commonly used versions.)
  418.    ---------- Footnotes ----------
  419.    (1)  If you use more than one index and have cross references to an
  420. index other than the first, you must run `tex' *three times* to get
  421. correct output: once to generate raw index data; again (after
  422. `texindex') to output the text of the indices and determine their true
  423. page numbers; and a third time to output correct page numbers in cross
  424. references to them.  However, cross references to indices are rare.
  425. File: texi.info,  Node: Within Emacs,  Next: Texinfo Mode Printing,  Prev: Shell Format & Print,  Up: Format/Print Hardcopy
  426. From an Emacs Shell ...
  427. =======================
  428.    You can give formatting and printing commands from a shell within GNU
  429. Emacs.  To create a shell within Emacs, type `M-x shell'.  In this
  430. shell, you can format and print the document.  *Note How to Format and
  431. Print Using Shell Commands: Shell Format & Print, for details.
  432.    You can switch to and from the shell buffer while `tex' is running
  433. and do other editing.  If you are formatting a long document on a slow
  434. machine, this can be very convenient.
  435.    You can also use `texi2dvi' from an Emacs shell.  For example, here
  436. is how to use `texi2dvi' to format and print `Using and Porting GNU CC'
  437. from a shell within Emacs (where `%' is the shell prompt):
  438.      % texi2dvi gcc.texinfo
  439.      % lpr -d gcc.dvi
  440.    *Note Texinfo Mode Printing::, for more information about formatting
  441. and printing in Texinfo mode.
  442. File: texi.info,  Node: Texinfo Mode Printing,  Next: Compile-Command,  Prev: Within Emacs,  Up: Format/Print Hardcopy
  443. Formatting and Printing in Texinfo Mode
  444. =======================================
  445.    Texinfo mode provides several predefined key commands for TeX
  446. formatting and printing.  These include commands for sorting indices,
  447. looking at the printer queue, killing the formatting job, and
  448. recentering the display of the buffer in which the operations occur.
  449. `C-c C-t C-r'
  450. `M-x texinfo-tex-region'
  451.      Run TeX on the current region.
  452. `C-c C-t C-b'
  453. `M-x texinfo-tex-buffer'
  454.      Run TeX on the current buffer.
  455. `C-c C-t C-i'
  456. `M-x texinfo-texindex'
  457.      Sort the indices of a Texinfo file that have been formatted with
  458.      `texinfo-tex-region' or `texinfo-tex-buffer'.
  459. `C-c C-t C-p'
  460. `M-x texinfo-tex-print'
  461.      Print a DVI file that was made with `texinfo-tex-region' or
  462.      `texinfo-tex-buffer'.
  463. `C-c C-t C-q'
  464. `M-x texinfo-show-tex-print-queue'
  465.      Show the print queue.
  466. `C-c C-t C-d'
  467. `M-x texinfo-delete-from-tex-print-queue'
  468.      Delete a job from the print queue; you will be prompted for the job
  469.      number shown by a preceding `C-c C-t C-q' command
  470.      (`texinfo-show-tex-print-queue').
  471. `C-c C-t C-k'
  472. `M-x texinfo-kill-tex-job'
  473.      Kill either the currently running TeX job that has been started by
  474.      `texinfo-tex-region' or `texinfo-tex-buffer', or any other process
  475.      running in the Texinfo shell buffer.
  476. `C-c C-t C-x'
  477. `M-x texinfo-quit-tex-job'
  478.      Quit a TeX formatting job that has stopped because of an error by
  479.      sending an x to it.  When you do this, TeX preserves a record of
  480.      what it did in a `.log' file.
  481. `C-c C-t C-l'
  482. `M-x texinfo-recenter-tex-output-buffer'
  483.      Redisplay the shell buffer in which the TeX printing and formatting
  484.      commands are run to show its most recent output.
  485.    Thus, the usual sequence of commands for formatting a buffer is as
  486. follows (with comments to the right):
  487.      C-c C-t C-b             Run TeX on the buffer.
  488.      C-c C-t C-i             Sort the indices.
  489.      C-c C-t C-b             Rerun TeX to regenerate indices.
  490.      C-c C-t C-p             Print the DVI file.
  491.      C-c C-t C-q             Display the printer queue.
  492.    The Texinfo mode TeX formatting commands start a subshell in Emacs
  493. called the `*texinfo-tex-shell*'.  The `texinfo-tex-command',
  494. `texinfo-texindex-command', and `tex-dvi-print-command' commands are
  495. all run in this shell.
  496.    You can watch the commands operate in the `*texinfo-tex-shell*'
  497. buffer, and you can switch to and from and use the
  498. `*texinfo-tex-shell*' buffer as you would any other shell buffer.
  499.    The formatting and print commands depend on the values of several
  500. variables.  The default values are:
  501.           Variable                            Default value
  502.      
  503.      texinfo-tex-command                       "tex"
  504.      texinfo-texindex-command                  "texindex"
  505.      texinfo-tex-shell-cd-command              "cd"
  506.      texinfo-tex-dvi-print-command             "lpr -d"
  507.      texinfo-show-tex-queue-command            "lpq"
  508.      texinfo-delete-from-print-queue-command   "lprm"
  509.      texinfo-start-of-header                   "%**start"
  510.      texinfo-end-of-header                     "%**end"
  511.      texinfo-tex-trailer                       "@bye"
  512.    The default values of both the `texinfo-tex-command' and the
  513. `texinfo-texindex-command' variables are set in the `texnfo-tex.el'
  514. file.
  515.    You can change the values of these variables with the `M-x
  516. edit-options' command (*note Editing Variable Values: (emacs)Edit
  517. Options.), with the `M-x set-variable' command (*note Examining and
  518. Setting Variables: (emacs)Examining.), or with your `.emacs'
  519. initialization file (*note Init File: (emacs)Init File.).
  520. File: texi.info,  Node: Compile-Command,  Next: Requirements Summary,  Prev: Texinfo Mode Printing,  Up: Format/Print Hardcopy
  521. Using the Local Variables List
  522. ==============================
  523.    Yet another way to apply the TeX formatting command to a Texinfo
  524. file is to put that command in a "local variables list" at the end of
  525. the Texinfo file.  You can then specify the TeX formatting command as a
  526. `compile-command' and have Emacs run the TeX formatting command by
  527. typing `M-x compile'.  This creates a special shell called the
  528. `*compilation buffer*' in which Emacs runs the compile command.  For
  529. example, at the end of the `gdb.texinfo' file, after the `@bye', you
  530. would put the following:
  531.      @c Local Variables:
  532.      @c compile-command: "tex gdb.texinfo"
  533.      @c End:
  534. This technique is most often used by programmers who also compile
  535. programs this way; see *Note Compilation: (emacs)Compilation.
  536. File: texi.info,  Node: Requirements Summary,  Next: Preparing for TeX,  Prev: Compile-Command,  Up: Format/Print Hardcopy
  537. TeX Formatting Requirements Summary
  538. ===================================
  539.    Every Texinfo file that is to be input to TeX must begin with a
  540. `\input' command and contain an `@settitle' command:
  541.      \input texinfo
  542.      @settitle NAME-OF-MANUAL
  543. The first command instructs TeX to load the macros it needs to process
  544. a Texinfo file and the second command specifies the title of printed
  545. manual.
  546.    Every Texinfo file must end with a line that terminates TeX
  547. processing and forces out unfinished pages:
  548.      @bye
  549.    Strictly speaking, these three lines are all a Texinfo file needs for
  550. TeX, besides the body.  (The `@setfilename' line is the only line that
  551. a Texinfo file needs for Info formatting.)
  552.    Usually, the file's first line contains an `@c -*-texinfo-*-'
  553. comment that causes Emacs to switch to Texinfo mode when you edit the
  554. file.  In addition, the beginning usually includes an `@setfilename'
  555. for Info formatting, an `@setchapternewpage' command, a title page, a
  556. copyright page, and permissions.  Besides an `@bye', the end of a file
  557. usually includes indices and a table of contents.
  558. For more information, see
  559. *Note `@setchapternewpage': setchapternewpage,
  560. *Note Page Headings: Headings,
  561. *Note Titlepage & Copyright Page::,
  562. *Note Printing Indices & Menus::, and
  563. *Note Contents::.
  564. File: texi.info,  Node: Preparing for TeX,  Next: Overfull hboxes,  Prev: Requirements Summary,  Up: Format/Print Hardcopy
  565. Preparing to Use TeX
  566. ====================
  567. TeX needs to know where to find the `texinfo.tex' file that you have
  568. told it to input with the `\input texinfo' command at the beginning of
  569. the first line.  The `texinfo.tex' file tells TeX how to handle
  570. @-commands.  (`texinfo.tex' is included in the standard GNU
  571. distributions.)
  572.    Usually, the `texinfo.tex' file is put in the default directory that
  573. contains TeX macros (the `/usr/lib/tex/macros' directory) when GNU
  574. Emacs or other GNU software is installed.  In this case, TeX will find
  575. the file and you do not need to do anything special.  Alternatively,
  576. you can put `texinfo.tex' in the directory in which the Texinfo source
  577. file is located, and TeX will find it there.
  578.    However, you may want to specify the location of the `\input' file
  579. yourself.  One way to do this is to write the complete path for the file
  580. after the `\input' command.  Another way is to set the `TEXINPUTS'
  581. environment variable in your `.cshrc' or `.profile' file.  The
  582. `TEXINPUTS' environment variable will tell TeX where to find the
  583. `texinfo.tex' file and any other file that you might want TeX to use.
  584.    Whether you use a `.cshrc' or `.profile' file depends on whether you
  585. use `csh', `sh', or `bash' for your shell command interpreter.  When
  586. you use `csh', it looks to the `.cshrc' file for initialization
  587. information, and when you use `sh' or `bash', it looks to the
  588. `.profile' file.
  589.    In a `.cshrc' file, you could use the following `csh' command
  590. sequence:
  591.      setenv TEXINPUTS .:/usr/me/mylib:/usr/lib/tex/macros
  592.    In a `.profile' file, you could use the following `sh' command
  593. sequence:
  594.      TEXINPUTS=.:/usr/me/mylib:/usr/lib/tex/macros
  595.      export TEXINPUTS
  596. This would cause TeX to look for `\input' file first in the current
  597. directory, indicated by the `.', then in a hypothetical user's
  598. `me/mylib' directory, and finally in the system library.
  599. File: texi.info,  Node: Overfull hboxes,  Next: smallbook,  Prev: Preparing for TeX,  Up: Format/Print Hardcopy
  600. Overfull "hboxes"
  601. =================
  602.    TeX is sometimes unable to typeset a line without extending it into
  603. the right margin.  This can occur when TeX comes upon what it
  604. interprets as a long word that it cannot hyphenate, such as an
  605. electronic mail network address or a very long title.  When this
  606. happens, TeX prints an error message like this:
  607.      Overfull \hbox (20.76302pt too wide)
  608. (In TeX, lines are in "horizontal boxes", hence the term, "hbox".  The
  609. backslash, `\', is the TeX equivalent of `@'.)
  610.    TeX also provides the line number in the Texinfo source file and the
  611. text of the offending line, which is marked at all the places that TeX
  612. knows how to hyphenate words.  *Note Catching Errors with TeX
  613. Formatting: Debugging with TeX, for more information about typesetting
  614. errors.
  615.    If the Texinfo file has an overfull hbox, you can rewrite the
  616. sentence so the overfull hbox does not occur, or you can decide to
  617. leave it.  A small excursion into the right margin often does not
  618. matter and may not even be noticeable.
  619.    However, unless told otherwise, TeX will print a large, ugly, black
  620. rectangle beside the line that contains the overful hbox.  This is so
  621. you will notice the location of the problem if you are correcting a
  622. draft.
  623.    To prevent such a monstrosity from marring your final printout, write
  624. the following in the beginning of the Texinfo file on a line of its own,
  625. before the `@titlepage' command:
  626.      @finalout
  627. File: texi.info,  Node: smallbook,  Next: A4 Paper,  Prev: Overfull hboxes,  Up: Format/Print Hardcopy
  628. Printing "Small" Books
  629. ======================
  630.    By default, TeX typesets pages for printing in an 8.5 by 11 inch
  631. format.  However, you can direct TeX to typeset a document in a 7 by
  632. 9.25 inch format that is suitable for bound books by inserting the
  633. following command on a line by itself at the beginning of the Texinfo
  634. file, before the title page:
  635.      @smallbook
  636. (Since regular sized books are often about 7 by 9.25 inches, this
  637. command might better have been called the `@regularbooksize' command,
  638. but it came to be called the `@smallbook' command by comparison to the
  639. 8.5 by 11 inch format.)
  640.    If you write the `@smallbook' command between the start-of-header
  641. and end-of-header lines, the Texinfo mode TeX region formatting
  642. command, `texinfo-tex-region', will format the region in "small" book
  643. size (*note Start of Header::.).
  644.    The Free Software Foundation distributes printed copies of `The GNU
  645. Emacs Manual' and other manuals in the "small" book size.  *Note
  646. `@smallexample' and `@smalllisp': smallexample & smalllisp, for
  647. information about commands that make it easier to produce examples for
  648. a smaller manual.
  649. File: texi.info,  Node: A4 Paper,  Next: Cropmarks and Magnification,  Prev: smallbook,  Up: Format/Print Hardcopy
  650. Printing on A4 Paper
  651. ====================
  652.    You can tell TeX to typeset a document for printing on European size
  653. A4 paper with the `@afourpaper' command.  Write the command on a line
  654. by itself between `@iftex' and `@end iftex' lines near the beginning of
  655. the Texinfo file, before the title page:
  656.    For example, this is how you would write the header for this manual:
  657.      \input texinfo    @c -*-texinfo-*-
  658.      @c %**start of header
  659.      @setfilename texinfo
  660.      @settitle Texinfo
  661.      @syncodeindex vr fn
  662.      @iftex
  663.      @afourpaper
  664.      @end iftex
  665.      @c %**end of header
  666. File: texi.info,  Node: Cropmarks and Magnification,  Prev: A4 Paper,  Up: Format/Print Hardcopy
  667. Cropmarks and Magnification
  668. ===========================
  669.    You can attempt to direct TeX to print cropmarks at the corners of
  670. pages with the `@cropmarks' command.  Write the `@cropmarks' command on
  671. a line by itself between `@iftex' and `@end iftex' lines near the
  672. beginning of the Texinfo file, before the title page, like this:
  673.      @iftex
  674.      @cropmarks
  675.      @end iftex
  676.    This command is mainly for printers that typeset several pages on one
  677. sheet of film; but you can attempt to use it to mark the corners of a
  678. book set to 7 by 9.25 inches with the `@smallbook' command.  (Printers
  679. will not produce cropmarks for regular sized output that is printed on
  680. regular sized paper.)  Since different printing machines work in
  681. different ways, you should explore the use of this command with a
  682. spirit of adventure.  You may have to redefine the command in the
  683. `texinfo.tex' definitions file.
  684.    You can attempt to direct TeX to typeset pages larger or smaller than
  685. usual with the `\mag' TeX command.  Everything that is typeset is
  686. scaled proportionally larger or smaller.  (`\mag' stands for
  687. "magnification".)  This is *not* a Texinfo @-command, but is a PlainTeX
  688. command that is prefixed with a backslash.  You have to write this
  689. command between `@tex' and `@end tex' (*note Using Ordinary TeX
  690. Commands: Using Ordinary TeX Commands.).
  691.    Follow the `\mag' command with an `=' and then a number that is 1000
  692. times the magnification you desire.  For example, to print pages at 1.2
  693. normal size, write the following near the beginning of the Texinfo
  694. file, before the title page:
  695.      @tex
  696.      \mag=1200
  697.      @end tex
  698.    With some printing technologies, you can print normal-sized copies
  699. that look better than usual by using a larger-than-normal master.
  700.    Depending on your system, `\mag' may not work or may work only at
  701. certain magnifications.  Be prepared to experiment.
  702. File: texi.info,  Node: Create an Info File,  Next: Install an Info File,  Prev: Format/Print Hardcopy,  Up: Top
  703. Creating an Info File
  704. *********************
  705.    `makeinfo' is a utility that converts a Texinfo file into an Info
  706. file; `texinfo-format-region' and `texinfo-format-buffer' are GNU Emacs
  707. functions that do the same.
  708.    A Texinfo file must possess an `@setfilename' line near its
  709. beginning, otherwise the Info formatting commands will fail.
  710.    For information on installing the Info file in the Info system, see
  711. *Note Install an Info File::.
  712. * Menu:
  713. * makeinfo advantages::         `makeinfo' provides better error checking.
  714. * Invoking makeinfo::            How to run `makeinfo' from a shell.
  715. * makeinfo options::            Specify fill-column and other options.
  716. * Pointer Validation::          How to check that pointers point somewhere.
  717. * makeinfo in Emacs::           How to run `makeinfo' from Emacs.
  718. * texinfo-format commands::     Two Info formatting commands written
  719.                                   in Emacs Lisp are an alternative
  720.                                   to `makeinfo'.
  721. * Batch Formatting::            How to format for Info in Emacs Batch mode.
  722. * Tag and Split Files::         How tagged and split files help Info
  723.                                   to run better.
  724. File: texi.info,  Node: makeinfo advantages,  Next: Invoking makeinfo,  Up: Create an Info File
  725. `makeinfo' Preferred
  726. ====================
  727.    The `makeinfo' utility creates an Info file from a Texinfo source
  728. file more quickly than either of the Emacs formatting commands and
  729. provides better error messages.  We recommend it.  `makeinfo' is a C
  730. program that is independent of Emacs.  You do not need to run Emacs to
  731. use `makeinfo', which means you can use `makeinfo' on machines that are
  732. too small to run Emacs. You can run `makeinfo' in any one of three
  733. ways: from an operating system shell, from a shell inside Emacs, or by
  734. typing a key command in Texinfo mode in Emacs.
  735.    The `texinfo-format-region' and the `texinfo-format-buffer' commands
  736. are useful if you cannot run `makeinfo'.  Also, in some circumstances,
  737. they format short regions or buffers more quickly than `makeinfo'.
  738. File: texi.info,  Node: Invoking makeinfo,  Next: makeinfo options,  Prev: makeinfo advantages,  Up: Create an Info File
  739. Invoking `makeinfo' from a Shell
  740. ================================
  741.    To create an Info file from a Texinfo file, type `makeinfo' followed
  742. by the name of the Texinfo file.  Thus, to create the Info file for
  743. Bison, type the following at the shell prompt (where `%' is the prompt):
  744.      % makeinfo bison.texinfo
  745.    (You can run a shell inside Emacs by typing `M-x shell'.)
  746.    Sometimes you will want to specify options.  For example, if you wish
  747. to discover which version of `makeinfo' you are using, type:
  748.      % makeinfo --version
  749.    *Note makeinfo options::, for more information.
  750. File: texi.info,  Node: makeinfo options,  Next: Pointer Validation,  Prev: Invoking makeinfo,  Up: Create an Info File
  751. Options for `makeinfo'
  752. ======================
  753.    The `makeinfo' command takes a number of options.  Most often,
  754. options are used to set the value of the fill column and specify the
  755. footnote style.  Each command line option is a word preceded by `--'(1)
  756. or a letter preceded by `-'.  You can use abbreviations for the option
  757. names as long as they are unique.
  758.    For example, you could use the following command to create an Info
  759. file for `bison.texinfo' in which each line is filled to only 68
  760. columns (where `%' is the prompt):
  761.      % makeinfo --fill-column=68 bison.texinfo
  762.    You can write two or more options in sequence, like this:
  763.      % makeinfo --no-split --fill-column=70 ...
  764. This would keep the Info file together as one possibly very long file
  765. and would also set the fill column to 70.
  766.    The options are:
  767. `-D VAR'
  768.      Cause VAR to be defined.  This is equivalent to `@set VAR' in the
  769.      Texinfo file.
  770. `--error-limit LIMIT'
  771.      Set the maximum number of errors that `makeinfo' will report
  772.      before exiting (on the assumption that continuing would be
  773.      useless).  The default number of errors that can be reported before
  774.      `makeinfo' gives up is 100.
  775. `--fill-column WIDTH'
  776.      Specify the maximum number of columns in a line; this is the
  777.      right-hand edge of a line.  Paragraphs that are filled will be
  778.      filled to this width.  (Filling is the process of breaking up and
  779.      connecting lines so that lines are the same length as or shorter
  780.      than the number specified as the fill column.  Lines are broken
  781.      between words.) The default value for `fill-column' is 72.
  782. `--footnote-style STYLE'
  783.      Set the footnote style to STYLE, either `end' for the end node
  784.      style or `separate' for the separate node style.  The value set by
  785.      this option overrides the value set in a Texinfo file by an
  786.      `@footnotestyle' command.  When the footnote style is `separate',
  787.      `makeinfo' makes a new node containing the footnotes found in the
  788.      current node.  When the footnote style is `end', `makeinfo' places
  789.      the footnote references at the end of the current node.
  790. `-I DIR'
  791.      Add `dir' to the directory search list for finding files that are
  792.      included using the `@include' command.  By default, `makeinfo'
  793.      searches only the current directory.
  794. `--no-headers'
  795.      Do not include menus or node lines in the output.  This results in
  796.      an ASCII file that you cannot read in Info since it does not
  797.      contain the requisite nodes or menus; but you can print such a
  798.      file in a single, typewriter-like font and produce acceptable
  799.      output.
  800. `--no-split'
  801.      Suppress the splitting stage of `makeinfo'.  Normally, large
  802.      output files (where the size is greater than 70k bytes) are split
  803.      into smaller subfiles, each one approximately 50k bytes.  If you
  804.      specify `--no-split', `makeinfo' will not split up the output file.
  805. `--no-pointer-validate'
  806. `--no-validate'
  807.      Suppress the pointer-validation phase of `makeinfo'.  Normally,
  808.      after a Texinfo file is processed, some consistency checks are
  809.      made to ensure that cross references can be resolved, etc.  *Note
  810.      Pointer Validation::.
  811. `--no-warn'
  812.      Suppress the output of warning messages.  This does *not* suppress
  813.      the output of error messages, only warnings.  You might want this
  814.      if the file you are creating has examples of Texinfo cross
  815.      references within it, and the nodes that are referenced do not
  816.      actually exist.
  817. `--no-number-footnotes'
  818.      Supress automatic footnote numbering.  By default, `makeinfo'
  819.      numbers each footnote sequentially in a single node, resetting the
  820.      current footnote number to 1 at the start of each node.
  821. `--output FILE'
  822. `-o FILE'
  823.      Specify that the output should be directed to FILE and not to the
  824.      file name specified in the `@setfilename' command found in the
  825.      Texinfo source.  FILE can be the special token `-', which specifies
  826.      standard output.
  827. `--paragraph-indent INDENT'
  828.      Set the paragraph indentation style to INDENT.  The value set by
  829.      this option overrides the value set in a Texinfo file by an
  830.      `@paragraphindent' command.  The value of INDENT is interpreted as
  831.      follows:
  832.         * If the value of INDENT is `asis', do not change the existing
  833.           indentation at the starts of paragraphs.
  834.         * If the value of INDENT is zero, delete any existing
  835.           indentation.
  836.         * If the value of INDENT is greater than zero, indent each
  837.           paragraph by that number of spaces.
  838. `--reference-limit LIMIT'
  839.      Set the value of the number of references to a node that
  840.      `makeinfo' will make without reporting a warning.  If a node has
  841.      more than this number of references in it, `makeinfo' will make the
  842.      references but also report a warning.
  843. `-U VAR'
  844.      Cause VAR to be undefined.  This is equivalent to `@clear VAR' in
  845.      the Texinfo file.
  846. `--verbose'
  847.      Cause `makeinfo' to display messages saying what it is doing.
  848.      Normally, `makeinfo' only outputs messages if there are errors or
  849.      warnings.
  850. `--version'
  851.      Report the version number of this copy of `makeinfo'.
  852.    ---------- Footnotes ----------
  853.    (1)  `--' has replaced `+', the old introductory character, to
  854. maintain POSIX.2 compatibility without losing long-named options.
  855. File: texi.info,  Node: Pointer Validation,  Next: makeinfo in Emacs,  Prev: makeinfo options,  Up: Create an Info File
  856. Pointer Validation
  857. ==================
  858.    `makeinfo' will check the validity of the final Info file unless you
  859. suppress pointer-validation by using the `--no-pointer-validation'
  860. option.  Mostly, this means ensuring that nodes you have referenced
  861. really exist.  Here is a complete list of what is checked:
  862.   1. If a `Next', `Previous', or `Up' node reference is a reference to a
  863.      node in the current file and is not an external reference such as
  864.      to `(dir)', then the referenced node must exist.
  865.   2. In every node, if the `Previous' node is different from the `Up'
  866.      node, then the `Previous' node must also be pointed to by a `Next'
  867.      node.
  868.   3. Every node except the `Top' node must have an `Up' pointer.
  869.   4. The node referenced by an `Up' pointer must contain a reference to
  870.      the current node in some manner other than through a `Next'
  871.      reference.  This includes menu entries and cross references.
  872.   5. If the `Next' reference of a node is not the same as the `Next'
  873.      reference of the `Up' reference, then the node referenced by the
  874.      `Next' pointer must have a `Previous' pointer that points back to
  875.      the current node.  This rule allows the last node in a section to
  876.      point to the first node of the next chapter.
  877. File: texi.info,  Node: makeinfo in Emacs,  Next: texinfo-format commands,  Prev: Pointer Validation,  Up: Create an Info File
  878. Running `makeinfo' inside Emacs
  879. ===============================
  880.    You can run `makeinfo' in GNU Emacs Texinfo mode by using either the
  881. `makeinfo-region' or the `makeinfo-buffer' commands.  In Texinfo mode,
  882. the commands are bound to `C-c C-m C-r' and `C-c C-m C-b' by default.
  883. `C-c C-m C-r'
  884. `M-x makeinfo-region'
  885.      Format the current region for Info.
  886. `C-c C-m C-b'
  887. `M-x makeinfo-buffer'
  888.      Format the current buffer for Info.
  889.    When you invoke either `makeinfo-region' or `makeinfo-buffer', Emacs
  890. prompts for a file name, offering the name of the visited file as the
  891. default.  You can edit the default file name in the minibuffer if you
  892. wish, before typing RET to start the `makeinfo' process.
  893.    The Emacs `makeinfo-region' and `makeinfo-buffer' commands run the
  894. `makeinfo' program in a temporary shell buffer.  If `makeinfo' finds
  895. any errors, Emacs displays the error messages in the temporary buffer.
  896.    You can parse the error messages by typing `C-x `' (`next-error').
  897. This causes Emacs to go to and position the cursor on the line in the
  898. Texinfo source that `makeinfo' thinks caused the error.  *Note Running
  899. `make' or Compilers Generally: (emacs)Compilation, for more information
  900. about using the `next-error' command.
  901.    In addition, you can kill the shell in which the `makeinfo' command
  902. is running or make the shell buffer display its most recent output.
  903. `C-c C-m C-k'
  904. `M-x makeinfo-kill-job'
  905.      Kill the currently running job created by `makeinfo-region' or
  906.      `makeinfo-buffer'.
  907. `C-c C-m C-l'
  908. `M-x makeinfo-recenter-output-buffer'
  909.      Redisplay the `makeinfo' shell buffer to display its most recent
  910.      output.
  911. (Note that the parallel commands for killing and recentering a TeX job
  912. are `C-c C-t C-k' and `C-c C-t C-l'.  *Note Texinfo Mode Printing::.)
  913.    You can specify options for `makeinfo' by setting the
  914. `makeinfo-options' variable with either the `M-x edit-options' or the
  915. `M-x set-variable' command, or by setting the variable in your `.emacs'
  916. initialization file.
  917.    For example, you could write the following in your `.emacs' file:
  918.      (setq makeinfo-options
  919.            "--paragraph-indent=0 --no-split
  920.             --fill-column=70 --verbose")
  921. For more information, see
  922. *Note Editing Variable Values: (emacs)Edit Options,
  923. *Note Examining and Setting Variables: (emacs)Examining,
  924. *Note Init File: (emacs)Init File, and
  925. *Note Options for `makeinfo': makeinfo options.
  926. File: texi.info,  Node: texinfo-format commands,  Next: Batch Formatting,  Prev: makeinfo in Emacs,  Up: Create an Info File
  927. The `texinfo-format...' Commands
  928. ================================
  929. In GNU Emacs in Texinfo mode, you can format part or all of a Texinfo
  930. file with the `texinfo-format-region' command.  This formats the
  931. current region and displays the formatted text in a temporary buffer
  932. called `*Info Region*'.
  933.    Similarly, you can format a buffer with the `texinfo-format-buffer'
  934. command.  This command creates a new buffer and generates the Info file
  935. in it.  Typing `C-x C-s' will save the Info file under the name
  936. specified by the `@setfilename' line which must be near the beginning
  937. of the Texinfo file.
  938. `C-c C-e C-r'
  939. ``texinfo-format-region''
  940.      Format the current region for Info.
  941. `C-c C-e C-b'
  942. ``texinfo-format-buffer''
  943.      Format the current buffer for Info.
  944.    The `texinfo-format-region' and `texinfo-format-buffer' commands
  945. provide you with some error checking, and other functions can provide
  946. you with further help in finding formatting errors.  These procedures
  947. are described in an appendix; see *Note Catching Mistakes::.  However,
  948. the `makeinfo' program is often faster and provides better error
  949. checking (*note makeinfo in Emacs::.).
  950.