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

  1. This is Info file texi.info, produced by Makeinfo-1.55 from the input
  2. file texi.texi.
  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, 1993 Free Software Foundation,
  9. Inc.
  10.  
  11.    This is the second edition of the Texinfo documentation,
  12. and is consistent with version 2 of `texinfo.tex'.
  13.  
  14.    Permission is granted to make and distribute verbatim copies of this
  15. manual provided the copyright notice and this permission notice are
  16. preserved on all copies.
  17.  
  18.    Permission is granted to copy and distribute modified versions of
  19. this manual under the conditions for verbatim copying, provided that
  20. the entire resulting derived work is distributed under the terms of a
  21. permission notice identical to this one.
  22.  
  23.    Permission is granted to copy and distribute translations of this
  24. manual into another language, under the above conditions for modified
  25. versions, except that this permission notice may be stated in a
  26. translation approved by the Free Software Foundation.
  27.  
  28. 
  29. File: texi.info,  Node: var,  Next: file,  Prev: samp,  Up: Indicating
  30.  
  31. `@var'{METASYNTACTIC-VARIABLE}
  32. ------------------------------
  33.  
  34.    Use the `@var' command to indicate metasyntactic variables.  A
  35. "metasyntactic variable" is something that stands for another piece of
  36. text.  For example, you should use a metasyntactic variable in the
  37. documentation of a function to describe the arguments that are passed
  38. to that function.
  39.  
  40.    Do not use `@var' for the names of particular variables in
  41. programming languages.  These are specific names from a program, so
  42. `@code' is correct for them.  For example, the Lisp variable
  43. `texinfo-tex-command' is not a metasyntactic variable; it is properly
  44. formatted using `@code'.
  45.  
  46.    The effect of `@var' in the Info file is to change the case of the
  47. argument to all upper case; in the printed manual, to italicize it.
  48.  
  49.    For example,
  50.  
  51.      To delete file @var{filename},
  52.      type @code{rm @var{filename}}.
  53.  
  54. produces
  55.  
  56.      To delete file FILENAME, type `rm FILENAME'.
  57.  
  58. (Note that `@var' may appear inside `@code', `@samp', `@file', etc.)
  59.  
  60.    Write a metasyntactic variable all in lower case without spaces, and
  61. use hyphens to make it more readable.  Thus, the Texinfo source for the
  62. illustration of how to begin a Texinfo manual looks like this:
  63.  
  64.      \input texinfo
  65.      @@setfilename @var{info-file-name}
  66.      @@settitle @var{name-of-manual}
  67.  
  68. This produces:
  69.  
  70.      \input texinfo
  71.      @setfilename INFO-FILE-NAME
  72.      @settitle NAME-OF-MANUAL
  73.  
  74.    In some documentation styles, metasyntactic variables are shown with
  75. angle brackets, for example:
  76.  
  77.      ..., type rm <filename>
  78.  
  79. However, that is not the style that Texinfo uses.  (You can, of course,
  80. modify the sources to TeX and the Info formatting commands to output
  81. the `<...>' format if you wish.)
  82.  
  83. 
  84. File: texi.info,  Node: file,  Next: dfn,  Prev: var,  Up: Indicating
  85.  
  86. `@file'{FILE-NAME}
  87. ------------------
  88.  
  89.    Use the `@file' command to indicate text that is the name of a file,
  90. buffer, or directory, or is the name of a node in Info.  You can also
  91. use the command for file name suffixes.  Do not use `@file' for symbols
  92. in a programming language; use `@code'.
  93.  
  94.    Currently, `@file' is equivalent to `@samp' in its effects.  For
  95. example,
  96.  
  97.      The @file{.el} files are in
  98.      the @file{/gnu/emacs/lisp} directory.
  99.  
  100. produces
  101.  
  102.      The `.el' files are in the `/gnu/emacs/lisp' directory.
  103.  
  104. 
  105. File: texi.info,  Node: dfn,  Next: cite,  Prev: file,  Up: Indicating
  106.  
  107. `@dfn'{TERM}
  108. ------------
  109.  
  110.    Use the `@dfn' command to identify the introductory or defining use
  111. of a technical term.  Use the command only in passages whose purpose is
  112. to introduce a term which will be used again or which the reader ought
  113. to know.  Mere passing mention of a term for the first time does not
  114. deserve `@dfn'.  The command generates italics in the printed manual,
  115. and double quotation marks in the Info file.  For example:
  116.  
  117.      Getting rid of a file is called @dfn{deleting} it.
  118.  
  119. produces
  120.  
  121.      Getting rid of a file is called "deleting" it.
  122.  
  123.    As a general rule, a sentence containing the defining occurrence of a
  124. term should be a definition of the term.  The sentence does not need to
  125. say explicitly that it is a definition, but it should contain the
  126. information of a definition--it should make the meaning clear.
  127.  
  128. 
  129. File: texi.info,  Node: cite,  Prev: dfn,  Up: Indicating
  130.  
  131. `@cite'{REFERENCE}
  132. ------------------
  133.  
  134.    Use the `@cite' command for the name of a book that lacks a
  135. companion Info file. The command produces italics in the printed
  136. manual, and quotation marks in the Info file.
  137.  
  138.    (If a book is written in Texinfo, it is better to use a cross
  139. reference command since a reader can easily follow such a reference in
  140. Info.  *Note `@xref': xref.)
  141.  
  142. 
  143. File: texi.info,  Node: Emphasis,  Prev: Indicating,  Up: Marking Text
  144.  
  145. Emphasizing Text
  146. ================
  147.  
  148.    Usually, Texinfo changes the font to mark words in the text
  149. according to what category the words belong to; an example is the
  150. `@code' command.  Most often, this is the best way to mark words.
  151. However, sometimes you will want to emphasize text without indicating a
  152. category.  Texinfo has two commands to do this.  Also, Texinfo has
  153. several commands that specify the font in which TeX will typeset text.
  154. These commands have no affect on Info and only one of them, the `@r'
  155. command, has any regular use.
  156.  
  157. * Menu:
  158.  
  159. * emph & strong::               How to emphasize text in Texinfo.
  160. * Smallcaps::                   How to use the small caps font.
  161. * Fonts::                       Various font commands for printed output.
  162.  
  163. 
  164. File: texi.info,  Node: emph & strong,  Next: Smallcaps,  Up: Emphasis
  165.  
  166. `@emph'{TEXT} and `@strong'{TEXT}
  167. ---------------------------------
  168.  
  169.    The `@emph' and `@strong' commands are for emphasis; `@strong' is
  170. stronger.  In printed output, `@emph' produces *italics* and `@strong'
  171. produces *bold*.
  172.  
  173.    For example,
  174.  
  175.      @quotation
  176.      @strong{Caution:} @code{rm * .[^.]*} removes @emph{all}
  177.      files in the directory.
  178.      @end quotation
  179.  
  180. produces:
  181.  
  182.           *Caution*: `rm * .[^.]*' removes *all*
  183.           files in the directory.
  184.  
  185.    The `@strong' command is seldom used except to mark what is, in
  186. effect, a typographical element, such as the word `Caution' in the
  187. preceding example.
  188.  
  189.    In the Info file, both `@emph' and `@strong' put asterisks around
  190. the text.
  191.  
  192.      *Caution:* Do not use `@emph' or `@strong' with the word `Note';
  193.      Info will mistake the combination for a cross reference.  Use a
  194.      phrase such as *Please note* or *Caution* instead.
  195.  
  196. 
  197. File: texi.info,  Node: Smallcaps,  Next: Fonts,  Prev: emph & strong,  Up: Emphasis
  198.  
  199. `@sc'{TEXT}: The Small Caps Font
  200. --------------------------------
  201.  
  202.    Use the `@sc' command to set text in the printed output in a small
  203. caps font and set text in the Info file in upper case letters.
  204.  
  205.    Write the text between braces in lower case, like this:
  206.  
  207.      The @sc{acm} and @sc{ieee} are technical societies.
  208.  
  209. This produces:
  210.  
  211.      The ACM and IEEE are technical societies.
  212.  
  213.    TeX typesets the small caps font in a manner that prevents the
  214. letters from `jumping out at you on the page'.  This makes small caps
  215. text easier to read than text in all upper case.  The Info formatting
  216. commands set all small caps text in upper case.
  217.  
  218.    If the text between the braces of an `@sc' command is upper case,
  219. TeX typesets in full-size capitals.  Use full-size capitals sparingly.
  220.  
  221.    You may also use the small caps font for a jargon word such as ATO
  222. (a NASA word meaning `abort to orbit').
  223.  
  224.    There are subtleties to using the small caps font with a jargon word
  225. such as CDR, a word used in Lisp programming.  In this case, you should
  226. use the small caps font when the word refers to the second and
  227. subsequent elements of a list (the CDR of the list), but you should use
  228. `@code' when the word refers to the Lisp function of the same spelling.
  229.  
  230. 
  231. File: texi.info,  Node: Fonts,  Prev: Smallcaps,  Up: Emphasis
  232.  
  233. Fonts for Printing, Not Info
  234. ----------------------------
  235.  
  236.    Texinfo provides four font commands that specify font changes in the
  237. printed manual but have no effect in the Info file.  `@i' requests
  238. italic font (in some versions of TeX, a slanted font is used), `@b'
  239. requests bold face, `@t' requests the fixed-width, typewriter-style
  240. font used by `@code', and `@r' requests a roman font, which is the
  241. usual font in which text is printed.  All four commands apply to an
  242. argument that follows, surrounded by braces.
  243.  
  244.    Only the `@r' command has much use: in example programs, you can use
  245. the `@r' command to convert code comments from the fixed-width font to
  246. a roman font.  This looks better in printed output.
  247.  
  248.    For example,
  249.  
  250.      @lisp
  251.      (+ 2 2)    ; @r{Add two plus two.}
  252.      @end lisp
  253.  
  254. produces
  255.  
  256.      (+ 2 2)    ; Add two plus two.
  257.  
  258.    If possible, you should avoid using the other three font commands.
  259. If you need to use one, it probably indicates a gap in the Texinfo
  260. language.
  261.  
  262. 
  263. File: texi.info,  Node: Quotations and Examples,  Next: Lists and Tables,  Prev: Marking Text,  Up: Top
  264.  
  265. Quotations and Examples
  266. ***********************
  267.  
  268.    Quotations and examples are blocks of text consisting of one or more
  269. whole paragraphs that are set off from the bulk of the text and treated
  270. differently.  They are usually indented.
  271.  
  272.    In Texinfo, you always begin a quotation or example by writing an
  273. @-command at the beginning of a line by itself, and end it by writing
  274. an `@end' command that is also at the beginning of a line by itself.
  275. For instance, you begin an example by writing `@example' by itself at
  276. the beginning of a line and end the example by writing `@end example'
  277. on a line by itself, at the beginning of that line.
  278.  
  279. * Menu:
  280.  
  281. * Block Enclosing Commands::    Use different constructs for
  282.                                   different purposes.
  283. * quotation::                   How to write a quotation.
  284. * example::                     How to write an example in a fixed-width font.
  285. * noindent::                    How to prevent paragraph indentation.
  286. * Lisp Example::                How to illustrate Lisp code.
  287. * smallexample & smalllisp::    Forms for the `@smallbook' option.
  288. * display::                     How to write an example in the current font.
  289. * format::                      How to write an example that does not narrow
  290.                                   the margins.
  291. * exdent::                      How to undo the indentation of a line.
  292. * flushleft & flushright::      How to push text flushleft or flushright.
  293. * cartouche::                   How to draw cartouches around examples.
  294.  
  295. 
  296. File: texi.info,  Node: Block Enclosing Commands,  Next: quotation,  Up: Quotations and Examples
  297.  
  298. The Block Enclosing Commands
  299. ============================
  300.  
  301.    Here are commands for quotations and examples:
  302.  
  303. `@quotation'
  304.      Indicate text that is quoted. The text is filled, indented, and
  305.      printed in a roman font by default.
  306.  
  307. `@example'
  308.      Illustrate code, commands, and the like. The text is printed in a
  309.      fixed-width font, and indented but not filled.
  310.  
  311. `@lisp'
  312.      Illustrate Lisp code. The text is printed in a fixed-width font,
  313.      and indented but not filled.
  314.  
  315. `@smallexample'
  316.      Illustrate code, commands, and the like.  Similar to `@example',
  317.      except that in TeX this command typesets text in a smaller font
  318.      for the smaller `@smallbook' format than for the 8.5 by 11 inch
  319.      format.
  320.  
  321. `@smalllisp'
  322.      Illustrate Lisp code.  Similar to `@lisp', except that in TeX this
  323.      command typesets text in a smaller font for the smaller
  324.      `@smallbook' format than for the 8.5 by 11 inch format.
  325.  
  326. `@display'
  327.      Display illustrative text.  The text is indented but not filled,
  328.      and no font is specified (so, by default, the font is roman).
  329.  
  330. `@format'
  331.      Print illustrative text.  The text is not indented and not filled
  332.      and no font is specified (so, by default, the font is roman).
  333.  
  334.    The `@exdent' command is used within the above constructs to undo
  335. the indentation of a line.
  336.  
  337.    The `@flushleft' and `@flushright' commands are used to line up the
  338. left or right margins of unfilled text.
  339.  
  340.    The `@noindent' command may be used after one of the above
  341. constructs to prevent the following text from being indented as a new
  342. paragraph.
  343.  
  344.    You can use the `@cartouche' command within one of the above
  345. constructs to highlight the example or quotation by drawing a box with
  346. rounded corners around it.  (The `@cartouche' command affects only the
  347. printed manual; it has no effect in the Info file; see *Note Drawing
  348. Cartouches Around Examples: cartouche.)
  349.  
  350. 
  351. File: texi.info,  Node: quotation,  Next: example,  Prev: Block Enclosing Commands,  Up: Quotations and Examples
  352.  
  353. `@quotation'
  354. ============
  355.  
  356.    The text of a quotation is processed normally except that:
  357.  
  358.    * the margins are closer to the center of the page, so the whole of
  359.      the quotation is indented;
  360.  
  361.    * the first lines of paragraphs are indented no more than other
  362.      lines;
  363.  
  364.    * in the printed output, interparagraph spacing is reduced.
  365.  
  366.      This is an example of text written between an `@quotation' command
  367.      and an `@end quotation' command.  An `@quotation' command is most
  368.      often used to indicate text that is excerpted from another (real
  369.      or hypothetical) printed work.
  370.  
  371.    Write an `@quotation' command as text on a line by itself.  This
  372. line will disappear from the output.  Mark the end of the quotation
  373. with a line beginning with and containing only `@end quotation'.  The
  374. `@end quotation' line will likewise disappear from the output.  Thus,
  375. the following,
  376.  
  377.      @quotation
  378.      This is
  379.      a foo.
  380.      @end quotation
  381.  
  382. produces
  383.  
  384.      This is a foo.
  385.  
  386. 
  387. File: texi.info,  Node: example,  Next: noindent,  Prev: quotation,  Up: Quotations and Examples
  388.  
  389. `@example'
  390. ==========
  391.  
  392.    The `@example' command is used to indicate an example that is not
  393. part of the running text, such as computer input or output.
  394.  
  395.      This is an example of text written between an
  396.      `@example' command
  397.      and an `@end example' command.
  398.      The text is indented but not filled.
  399.      
  400.      In the printed manual, the text is typeset in a
  401.      fixed-width font, and extra spaces and blank lines are
  402.      significant.  In the Info file, an analogous result is
  403.      obtained by indenting each line with five spaces.
  404.  
  405.    Write an `@example' command at the beginning of a line by itself.
  406. This line will disappear from the output.  Mark the end of the example
  407. with an `@end example' command, also written at the beginning of a line
  408. by itself.  The `@end example' will disappear from the output.
  409.  
  410.    For example,
  411.  
  412.      @example
  413.      mv foo bar
  414.      @end example
  415.  
  416. produces
  417.  
  418.      mv foo bar
  419.  
  420.    Since the lines containing `@example' and `@end example' will
  421. disappear, you should put a blank line before the `@example' and
  422. another blank line after the `@end example'.  (Remember that blank
  423. lines between the beginning `@example' and the ending `@end example'
  424. will appear in the output.)
  425.  
  426.      *Caution:* Do not use tabs in the lines of an example (or anywhere
  427.      else in Texinfo, for that matter)!  TeX treats tabs as single
  428.      spaces, and that is not what they look like.  This is a problem
  429.      with TeX.  (If necessary, in Emacs, you can use `M-x untabify' to
  430.      convert tabs in a region to multiple spaces.)
  431.  
  432.    Examples are often, logically speaking, "in the middle" of a
  433. paragraph, and the text continues after an example should not be
  434. indented.  The `@noindent' command prevents a piece of text from being
  435. indented as if it were a new paragraph.  (*Note noindent::.)
  436.  
  437.    (The `@code' command is used for examples of code that are embedded
  438. within sentences, not set off from preceding and following text.  *Note
  439. `@code': code.)
  440.  
  441. 
  442. File: texi.info,  Node: noindent,  Next: Lisp Example,  Prev: example,  Up: Quotations and Examples
  443.  
  444. `@noindent'
  445. ===========
  446.  
  447.    An example or other inclusion can break a paragraph into segments.
  448. Ordinarily, the formatters indent text that follows an example as a new
  449. paragraph.  However, you can prevent this by writing `@noindent' at the
  450. beginning of a line by itself preceding the continuation text.
  451.  
  452.    For example:
  453.  
  454.      @example
  455.      This is an example
  456.      @end example
  457.      
  458.      @noindent
  459.      This line is not indented.  As you can see, the
  460.      beginning of the line is fully flush left with the line
  461.      that follows after it.  (This whole example is between
  462.      @code{@@display} and @code{@@end display}.)
  463.  
  464. produces
  465.  
  466.           This is an example
  467.      
  468.      
  469.      This line is not indented.  As you can see, the
  470.      beginning of the line is fully flush left with the line
  471.      that follows after it.  (This whole example is between
  472.      `@display' and `@end display'.)
  473.  
  474.    To adjust the number of blank lines properly in the Info file output,
  475. remember that the line containing `@noindent' does not generate a blank
  476. line, and neither does the `@end example' line.
  477.  
  478.    In the Texinfo source file for this manual, each line that says
  479. `produces' is preceded by a line containing `@noindent'.
  480.  
  481.    Do not put braces after an `@noindent' command; they are not
  482. necessary, since `@noindent' is a command used outside of paragraphs
  483. (*note Command Syntax::.).
  484.  
  485. 
  486. File: texi.info,  Node: Lisp Example,  Next: smallexample & smalllisp,  Prev: noindent,  Up: Quotations and Examples
  487.  
  488. `@lisp'
  489. =======
  490.  
  491.    The `@lisp' command is used for Lisp code.  It is synonymous with
  492. the `@example' command.
  493.  
  494.      This is an example of text written between an
  495.      `@lisp' command and an `@end lisp' command.
  496.  
  497.    Use `@lisp' instead of `@example' so as to preserve information
  498. regarding the nature of the example.  This is useful, for example, if
  499. you write a function that evaluates only and all the Lisp code in a
  500. Texinfo file.  Then you can use the Texinfo file as a Lisp library.(1)
  501.  
  502.    Mark the end of `@lisp' with `@end lisp' on a line by itself.
  503.  
  504.    ---------- Footnotes ----------
  505.  
  506.    (1)  It would be straightforward to extend Texinfo to work in a
  507. similar fashion for C, FORTRAN, or other languages.
  508.  
  509. 
  510. File: texi.info,  Node: smallexample & smalllisp,  Next: display,  Prev: Lisp Example,  Up: Quotations and Examples
  511.  
  512. `@smallexample' and `@smalllisp'
  513. ================================
  514.  
  515.    In addition to the regular `@example' and `@lisp' commands, Texinfo
  516. has two other "example-style" commands.  These are the `@smallexample'
  517. and `@smalllisp' commands.  Both these commands are designed for use
  518. with the `@smallbook' command that causes TeX to produce a printed
  519. manual in a 7 by 9.25 inch format rather than the regular 8.5 by 11
  520. inch format.
  521.  
  522.    In TeX, the `@smallexample' and `@smalllisp' commands typeset text
  523. in a smaller font for the smaller `@smallbook' format than for the 8.5
  524. by 11 inch format.  Consequently, many examples containing long lines
  525. fit in a narrower, `@smallbook' page without needing to be shortened.
  526. Both commands typeset in the normal font size when you format for the
  527. 8.5 by 11 inch size; indeed, in this situation, the `@smallexample' and
  528. `@smalllisp' commands are defined to be the `@example' and `@lisp'
  529. commands.
  530.  
  531.    In Info, the `@smallexample' and `@smalllisp' commands are
  532. equivalent to the `@example' and `@lisp' commands, and work exactly the
  533. same.
  534.  
  535.    Mark the end of `@smallexample' or `@smalllisp' with `@end
  536. smallexample' or `@end smalllisp', respectively.
  537.  
  538.      This is an example of text written between `@smallexample' and
  539.      `@end smallexample'.  In Info and in an 8.5 by 11 inch manual,
  540.      this text appears in its normal size; but in a 7 by 9.25 inch manual,
  541.      this text appears in a smaller font.
  542.  
  543.    The `@smallexample' and `@smalllisp' commands make it easier to
  544. prepare smaller format manuals without forcing you to edit examples by
  545. hand to fit them onto narrower pages.
  546.  
  547.    As a general rule, a printed document looks better if you write all
  548. the examples in a chapter consistently in `@example' or in
  549. `@smallexample'.  Only occasionally should you mix the two formats.
  550.  
  551.    *Note Printing "Small" Books: smallbook, for more information about
  552. the `@smallbook' command.
  553.  
  554. 
  555. File: texi.info,  Node: display,  Next: format,  Prev: smallexample & smalllisp,  Up: Quotations and Examples
  556.  
  557. `@display'
  558. ==========
  559.  
  560.    The `@display' command begins a kind of example.  It is like the
  561. `@example' command except that, in a printed manual, `@display' does
  562. not select the fixed-width font.  In fact, it does not specify the font
  563. at all, so that the text appears in the same font it would have
  564. appeared in without the `@display' command.
  565.  
  566.      This is an example of text written between an `@display' command
  567.      and an `@end display' command.  The `@display' command
  568.      indents the text, but does not fill it.
  569.  
  570. 
  571. File: texi.info,  Node: format,  Next: exdent,  Prev: display,  Up: Quotations and Examples
  572.  
  573. `@format'
  574. =========
  575.  
  576.    The `@format' command is similar to `@example' except that, in the
  577. printed manual, `@format' does not select the fixed-width font and does
  578. not narrow the margins.
  579.  
  580. This is an example of text written between an `@format' command
  581. and an `@end format' command.  As you can see
  582. from this example,
  583. the `@format' command does not fill the text.
  584.  
  585. 
  586. File: texi.info,  Node: exdent,  Next: flushleft & flushright,  Prev: format,  Up: Quotations and Examples
  587.  
  588. `@exdent': Undoing a Line's Indentation
  589. =======================================
  590.  
  591.    The `@exdent' command removes any indentation a line might have.
  592. The command is written at the beginning of a line and applies only to
  593. the text that follows the command that is on the same line.  Do not use
  594. braces around the text.  In a printed manual, the text on an `@exdent'
  595. line is printed in the roman font.
  596.  
  597.    `@exdent' is usually used within examples.  Thus,
  598.  
  599.      @example
  600.      This line follows an @@example command.
  601.      @exdent This line is exdented.
  602.      This line follows the exdented line.
  603.      The @@end example comes on the next line.
  604.      @end group
  605.  
  606. produces
  607.  
  608.      This line follows an @example command.
  609. This line is exdented.
  610.      This line follows the exdented line.
  611.      The @end example comes on the next line.
  612.  
  613.    In practice, the `@exdent' command is rarely used.  Usually, you
  614. un-indent text by ending the example and returning the page to its
  615. normal width.
  616.  
  617. 
  618. File: texi.info,  Node: flushleft & flushright,  Next: cartouche,  Prev: exdent,  Up: Quotations and Examples
  619.  
  620. `@flushleft' and `@flushright'
  621. ==============================
  622.  
  623.    The `@flushleft' and `@flushright' commands line up the ends of
  624. lines on the left and right margins of a page, but do not fill the
  625. text.  The commands are written on lines of their own, without braces.
  626. The `@flushleft' and `@flushright' commands are ended by `@end
  627. flushleft' and `@end flushright' commands on lines of their own.
  628.  
  629.    For example,
  630.  
  631.      @flushleft
  632.      This text is
  633.      written flushleft.
  634.      @end flushleft
  635.  
  636. produces
  637.  
  638.      This text is
  639.      written flushleft.
  640.  
  641.    Flushright produces the type of indentation often used in the return
  642. address of letters.
  643.  
  644. For example,
  645.  
  646.      @flushright
  647.      Here is an example of text written
  648.      flushright.  The @code{@flushright} command
  649.      right justifies every line but leaves the
  650.      left end ragged.
  651.      @end flushright
  652.  
  653. produces
  654.  
  655.                                      Here is an example of text written
  656.                                  flushright.  The `@flushright' command
  657.                               right justifies every line but leaves the
  658.                                                        left end ragged.
  659.  
  660. 
  661. File: texi.info,  Node: cartouche,  Prev: flushleft & flushright,  Up: Quotations and Examples
  662.  
  663. Drawing Cartouches Around Examples
  664. ==================================
  665.  
  666.    In a printed manual, the `@cartouche' command draws a box with
  667. rounded corners around its contents.  You can use this command to
  668. further highlight an example or quotation.  For instance, you could
  669. write a manual in which one type of example is surrounded by a cartouche
  670. for emphasis.
  671.  
  672.    The `@cartouche' command affects only the printed manual; it has no
  673. effect in the Info file.
  674.  
  675.    For example,
  676.  
  677.      @example
  678.      @cartouche
  679.      % pwd
  680.      /gnu/lib/emacs/info
  681.      @end cartouche
  682.      @end example
  683.  
  684. surrounds the two-line example with a box with rounded corners, in the
  685. printed manual.
  686.  
  687. 
  688. File: texi.info,  Node: Lists and Tables,  Next: Indices,  Prev: Quotations and Examples,  Up: Top
  689.  
  690. Making Lists and Tables
  691. ***********************
  692.  
  693.    Texinfo has several ways of making lists and two-column tables.
  694. Lists can be bulleted or numbered, while two-column tables can
  695. highlight the items in the first column.
  696.  
  697. * Menu:
  698.  
  699. * Introducing Lists::           Texinfo formats lists for you.
  700. * itemize::                     How to construct a simple list.
  701. * enumerate::                   How to construct a numbered list.
  702. * Two-column Tables::           How to construct a two-column table.
  703.  
  704. 
  705. File: texi.info,  Node: Introducing Lists,  Next: itemize,  Up: Lists and Tables
  706.  
  707. Introducing Lists
  708. =================
  709.  
  710.    Texinfo automatically indents the text in lists or tables, and
  711. numbers an enumerated list.  This last feature is useful if you modify
  712. the list, since you do not need to renumber it yourself.
  713.  
  714.    Numbered lists and tables begin with the appropriate @-command at the
  715. beginning of a line, and end with the corresponding `@end' command on a
  716. line by itself.  The table and itemized-list commands also require that
  717. you write formatting information on the same line as the beginning
  718. @-command.
  719.  
  720.    Begin an enumerated list, for example, with an `@enumerate' command
  721. and end the list with an `@end enumerate' command.  Begin an itemized
  722. list with an `@itemize' command, followed on the same line by a
  723. formatting command such as `@bullet', and end the list with an `@end
  724. itemize' command.
  725.  
  726.    Precede each element of a list with an `@item' or `@itemx' command.
  727.  
  728. Here is an itemized list of the different kinds of table and lists:
  729.  
  730.    * Itemized lists with and without bullets.
  731.  
  732.    * Enumerated lists, using numbers or letters.
  733.  
  734.    * Two-column tables with highlighting.
  735.  
  736. Here is an enumerated list with the same items:
  737.  
  738.   1. Itemized lists with and without bullets.
  739.  
  740.   2. Enumerated lists, using numbers or letters.
  741.  
  742.   3. Two-column tables with highlighting.
  743.  
  744. And here is a two-column table with the same items and their @-commands:
  745.  
  746. `@itemize'
  747.      Itemized lists with and without bullets.
  748.  
  749. `@enumerate'
  750.      Enumerated lists, using numbers or letters.
  751.  
  752. `@table'
  753. `@ftable'
  754. `@vtable'
  755.      Two-column tables with highlighting.
  756.  
  757. 
  758. File: texi.info,  Node: itemize,  Next: enumerate,  Prev: Introducing Lists,  Up: Lists and Tables
  759.  
  760. Making an Itemized List
  761. =======================
  762.  
  763.    The `@itemize' command produces sequences of indented paragraphs,
  764. with a bullet or other mark inside the left margin at the beginning of
  765. each paragraph for which such a mark is desired.
  766.  
  767.    Begin an itemized list by writing `@itemize' at the beginning of a
  768. line.  Follow the command, on the same line, with a character or a
  769. Texinfo command that generates a mark.  Usually, you will write
  770. `@bullet' after `@itemize', but you can use `@minus', or any character
  771. or any special symbol that results in a single character in the Info
  772. file.  (When you write `@bullet' or `@minus' after an `@itemize'
  773. command, you may omit the `{}'.)
  774.  
  775.    Write the text of the indented paragraphs themselves after the
  776. `@itemize', up to another line that says `@end itemize'.
  777.  
  778.    Before each paragraph for which a mark in the margin is desired,
  779. write a line that says just `@item'.  Do not write any other text on
  780. this line.
  781.  
  782.    Usually, you should put a blank line before an `@item'.  This puts a
  783. blank line in the Info file. (TeX inserts the proper interline
  784. whitespace in either case.)  Except when the entries are very brief,
  785. these blank lines make the list look better.
  786.  
  787.    Here is an example of the use of `@itemize', followed by the output
  788. it produces.  Note that `@bullet' produces an `*' in Info and a round
  789. dot in TeX.
  790.  
  791.      @itemize @bullet
  792.      @item
  793.      Some text for foo.
  794.      
  795.      @item
  796.      Some text
  797.      for bar.
  798.      @end itemize
  799.  
  800. This produces:
  801.  
  802.         * Some text for foo.
  803.  
  804.         * Some text for bar.
  805.  
  806.    Itemized lists may be embedded within other itemized lists.  Here is
  807. a list marked with dashes embedded in a list marked with bullets:
  808.  
  809.      @itemize @bullet
  810.      @item
  811.      First item.
  812.      
  813.      @itemize @minus
  814.      @item
  815.      Inner item.
  816.      
  817.      @item
  818.      Second inner item.
  819.      @end itemize
  820.      
  821.      @item
  822.      Second outer item.
  823.      @end itemize
  824.  
  825. This produces:
  826.  
  827.         * First item.
  828.  
  829.              - Inner item.
  830.  
  831.              - Second inner item.
  832.  
  833.         * Second outer item.
  834.  
  835. 
  836. File: texi.info,  Node: enumerate,  Next: Two-column Tables,  Prev: itemize,  Up: Lists and Tables
  837.  
  838. Making a Numbered or Lettered List
  839. ==================================
  840.  
  841.    `@enumerate' is like `@itemize' except that the marks in the left
  842. margin contain successive integers or letters.  (*Note `@itemize':
  843. itemize.)
  844.  
  845.    Write the `@enumerate' command at the beginning of a line.  The
  846. command does not require an argument, but accepts either a number or a
  847. letter as an option.  Without an argument, `@enumerate' starts the list
  848. with the number 1.  With a numeric argument, such as 3, the command
  849. starts the list with that number.  With an upper or lower case letter,
  850. such as `a' or `A', the command starts the list with that letter.
  851.  
  852.    Write the text of the enumerated list in the same way you write an
  853. itemized list: put `@item' on a line of its own before the start of
  854. each paragraph that you want enumerated.  Do not write any other text on
  855. the line beginning with `@item'.
  856.  
  857.    You should put a blank line between entries in the list.  This
  858. generally makes it easier to read the Info file.
  859.  
  860.    Here is an example of `@enumerate' without an argument:
  861.  
  862.      @enumerate
  863.      @item
  864.      Underlying causes.
  865.      
  866.      @item
  867.      Proximate causes.
  868.      @end enumerate
  869.  
  870. This produces:
  871.  
  872.   1. Underlying causes.
  873.  
  874.   2. Proximate causes.
  875.  
  876.    Here is an example with an argument of `3':
  877.  
  878.      @enumerate 3
  879.      @item
  880.      Predisposing causes.
  881.      
  882.      @item
  883.      Precipitating causes.
  884.      
  885.      @item
  886.      Perpetuating causes.
  887.      @end enumerate
  888.  
  889. This produces:
  890.  
  891.   3. Predisposing causes.
  892.  
  893.   4. Precipitating causes.
  894.  
  895.   5. Perpetuating causes.
  896.  
  897.    Here is a brief summary of the alternatives.  The summary is
  898. constructed using `@enumerate' with an argument of `a'.
  899.  
  900.   a. `@enumerate'
  901.  
  902.      Without an argument, produce a numbered list, starting with the
  903.      number 1.
  904.  
  905.   b. `@enumerate POSITIVE-INTEGER'
  906.  
  907.      With a (positive) numeric argument, start a numbered list with that
  908.      number.  You can use this to continue a list that you interrupted
  909.      with other text.
  910.  
  911.   c. `@enumerate UPPER-CASE-LETTER'
  912.  
  913.      With an upper case letter as argument, start a list in which each
  914.      item is marked by a letter, beginning with that upper case letter.
  915.  
  916.   d. `@enumerate LOWER-CASE-LETTER'
  917.  
  918.      With a lower case letter as argument, start a list in which each
  919.      item is marked by a letter, beginning with that lower case letter.
  920.  
  921.    You can also nest enumerated lists, as in an outline.
  922.  
  923. 
  924. File: texi.info,  Node: Two-column Tables,  Prev: enumerate,  Up: Lists and Tables
  925.  
  926. Making a Two-column Table
  927. =========================
  928.  
  929.    `@table' is similar to `@itemize', but the command allows you to
  930. specify a name or heading line for each item.  (*Note `@itemize':
  931. itemize.)  The `@table' command is used to produce two-column tables,
  932. and is especially useful for glossaries and explanatory exhibits.
  933.  
  934. * Menu:
  935.  
  936. * table::                       How to construct a two-column table.
  937. * ftable vtable::               How to construct a two-column table
  938.                                   with automatic indexing.
  939. * itemx::                       How to put more entries in the first column.
  940.  
  941. 
  942. File: texi.info,  Node: table,  Next: ftable vtable,  Up: Two-column Tables
  943.  
  944. Using the `@table' Command
  945. --------------------------
  946.  
  947.    Use the `@table' command to produce two-column tables.
  948.  
  949.    Write the `@table' command at the beginning of a line and follow it
  950. on the same line with an argument that is a Texinfo command such as
  951. `@code', `@samp', `@var', or `@kbd'.  Although these commands are
  952. usually followed by arguments in braces, in this case you use the
  953. command name without an argument because `@item' will supply the
  954. argument.  This command will be applied to the text that goes into the
  955. first column of each item and determines how it will be highlighted.
  956. For example, `@samp' will cause the text in the first column to be
  957. highlighted with an `@samp' command.
  958.  
  959.    You may also choose to use the `@asis' command as an argument to
  960. `@table'.  `@asis' is a command that does nothing; if you use this
  961. command after `@table', TeX and the Info formatting commands output the
  962. first column entries without added highlighting (`as is').
  963.  
  964.    (The `@table' command may work with other commands besides those
  965. listed here.  However, you can only use commands that normally take
  966. arguments in braces.)
  967.  
  968.    Begin each table entry with an `@item' command at the beginning of a
  969. line.  Write the first column text on the same line as the `@item'
  970. command.  Write the second column text on the line following the
  971. `@item' line and on subsequent lines.  (You do not need to type
  972. anything for an empty second column entry.)  You may write as many
  973. lines of supporting text as you wish, even several paragraphs.  But
  974. only text on the same line as the `@item' will be placed in the first
  975. column.
  976.  
  977.    Normally, you should put a blank line before an `@item' line.  This
  978. puts a blank like in the Info file.  Except when the entries are very
  979. brief, a blank line looks better.
  980.  
  981.    The following table, for example, highlights the text in the first
  982. column with an `@samp' command:
  983.  
  984.      @table @samp
  985.      @item foo
  986.      This is the text for
  987.      @samp{foo}.
  988.      
  989.      @item bar
  990.      Text for @samp{bar}.
  991.      @end table
  992.  
  993. This produces:
  994.  
  995. `foo'
  996.      This is the text for `foo'.
  997.  
  998. `bar'
  999.      Text for `bar'.
  1000.  
  1001.    If you want to list two or more named items with a single block of
  1002. text, use the `@itemx' command.  (*Note `@itemx': itemx.)
  1003.  
  1004. 
  1005. File: texi.info,  Node: ftable vtable,  Next: itemx,  Prev: table,  Up: Two-column Tables
  1006.  
  1007. `@ftable' and `@vtable'
  1008. -----------------------
  1009.  
  1010.    The `@ftable' and `@vtable' commands are the same as the `@table'
  1011. command except that `@ftable' automatically enters each of the items in
  1012. the first column of the table into the index of functions and `@vtable'
  1013. automatically enters each of the items in the first column of the table
  1014. into the index of variables.  This simplifies the task of creating
  1015. indices.  Only the items on the same line as the `@item' commands are
  1016. indexed, and they are indexed in exactly the form that they appear on
  1017. that line.  *Note Creating Indices: Indices, for more information about
  1018. indices.
  1019.  
  1020.    Begin a two-column table using `@ftable' or `@vtable' by writing the
  1021. @-command at the beginning of a line, followed on the same line by an
  1022. argument that is a Texinfo command such as `@code', exactly as you
  1023. would for an `@table' command; and end the table with an `@end ftable'
  1024. or `@end vtable' command on a line by itself.
  1025.  
  1026. 
  1027. File: texi.info,  Node: itemx,  Prev: ftable vtable,  Up: Two-column Tables
  1028.  
  1029. `@itemx'
  1030. --------
  1031.  
  1032.    Use the `@itemx' command inside a table when you have two or more
  1033. first column entries for the same item, each of which should appear on
  1034. a line of its own.  Use `@itemx' for all but the first entry.  The
  1035. `@itemx' command works exactly like `@item' except that it does not
  1036. generate extra vertical space above the first column text.
  1037.  
  1038.    For example,
  1039.  
  1040.      @table @code
  1041.      @item upcase
  1042.      @itemx downcase
  1043.      These two functions accept a character or a string as
  1044.      argument, and return the corresponding upper case (lower
  1045.      case) character or string.
  1046.      @end table
  1047.  
  1048. This produces:
  1049.  
  1050. `upcase'
  1051. `downcase'
  1052.      These two functions accept a character or a string as argument,
  1053.      and return the corresponding upper case (lower case) character or
  1054.      string.
  1055.  
  1056. (Note also that this example illustrates multi-line supporting text in
  1057. a two-column table.)
  1058.  
  1059. 
  1060. File: texi.info,  Node: Indices,  Next: Insertions,  Prev: Lists and Tables,  Up: Top
  1061.  
  1062. Creating Indices
  1063. ****************
  1064.  
  1065.    Using Texinfo, you can generate indices without having to sort and
  1066. collate entries manually.  In an index, the entries are listed in
  1067. alphabetical order, together with information on how to find the
  1068. discussion of each entry.  In a printed manual, this information
  1069. consists of page numbers.  In an Info file, this information is a menu
  1070. entry leading to the first node referenced.
  1071.  
  1072.    Texinfo provides several predefined kinds of index: an index for
  1073. functions, an index for variables, an index for concepts, and so on.
  1074. You can combine indices or use them for other than their canonical
  1075. purpose.  If you wish, you can define your own indices.
  1076.  
  1077. * Menu:
  1078.  
  1079. * Index Entries::               Choose different words for index entries.
  1080. * Predefined Indices::          Use different indices for different kinds
  1081.                                   of entry.
  1082. * Indexing Commands::           How to make an index entry.
  1083. * Combining Indices::           How to combine indices.
  1084. * New Indices::                 How to define your own indices.
  1085.  
  1086. 
  1087. File: texi.info,  Node: Index Entries,  Next: Predefined Indices,  Up: Indices
  1088.  
  1089. Making Index Entries
  1090. ====================
  1091.  
  1092.    When you are making index entries, it is good practice to think of
  1093. the different ways people may look for something.  Different people *do
  1094. not* think of the same words when they look something up.  A helpful
  1095. index will have items indexed under all the different words that people
  1096. may use.  For example, one reader may think it obvious that the
  1097. two-letter names for indices should be listed under "Indices,
  1098. two-letter names", since the word "Index" is the general concept.  But
  1099. another reader may remember the specific concept of two-letter names
  1100. and search for the entry listed as "Two letter names for indices".  A
  1101. good index will have both entries and will help both readers.
  1102.  
  1103.    Like typesetting, the construction of an index is a highly skilled,
  1104. professional art, the subtleties of which are not appreciated until you
  1105. need to do it yourself.
  1106.  
  1107.    *Note Printing Indices & Menus::, for information about printing an
  1108. index at the end of a book or creating an index menu in an Info file.
  1109.  
  1110. 
  1111. File: texi.info,  Node: Predefined Indices,  Next: Indexing Commands,  Prev: Index Entries,  Up: Indices
  1112.  
  1113. Predefined Indices
  1114. ==================
  1115.  
  1116.    Texinfo provides six predefined indices:
  1117.  
  1118.    * A "concept index" listing concepts that are discussed.
  1119.  
  1120.    * A "function index" listing functions (such as entry points of
  1121.      libraries).
  1122.  
  1123.    * A "variables index" listing variables (such as global variables of
  1124.      libraries).
  1125.  
  1126.    * A "keystroke index" listing keyboard commands.
  1127.  
  1128.    * A "program index" listing names of programs.
  1129.  
  1130.    * A "data type index" listing data types (such as structures defined
  1131.      in header files).
  1132.  
  1133. Not every manual needs all of these, and most manuals use two or three
  1134. of them.  This manual has two indices: a concept index and an @-command
  1135. index (that is actually the function index but is called a command
  1136. index in the chapter heading).  Two or more indices can be combined
  1137. into one using the `@synindex' or `@syncodeindex' commands.  *Note
  1138. Combining Indices::.
  1139.  
  1140. 
  1141. File: texi.info,  Node: Indexing Commands,  Next: Combining Indices,  Prev: Predefined Indices,  Up: Indices
  1142.  
  1143. Defining the Entries of an Index
  1144. ================================
  1145.  
  1146.    The data to make an index come from many individual indexing commands
  1147. scattered throughout the Texinfo source file.  Each command says to add
  1148. one entry to a particular index; after formatting, the index will give
  1149. the current page number or node name as the reference.
  1150.  
  1151.    An index entry consists of an indexing command at the beginning of a
  1152. line followed, on the rest of the line, by the entry.
  1153.  
  1154.    For example, this section begins with the following five entries for
  1155. the concept index:
  1156.  
  1157.      @cindex Defining indexing entries
  1158.      @cindex Index entries
  1159.      @cindex Entries for an index
  1160.      @cindex Specifying index entries
  1161.      @cindex Creating index entries
  1162.  
  1163.    Each predefined index has its own indexing command--`@cindex' for
  1164. the concept index, `@findex' for the function index, and so on.
  1165.  
  1166.    The usual convention is to capitalize the first word of each index
  1167. entry, unless that word is the name of a function, variable, or other
  1168. such entity that should not be capitalized.  Thus, if you are
  1169. documenting Emacs Lisp, you should usually capitalize entries in the
  1170. concept index, but not those in the function index.  However, if your
  1171. concept index entries are consistently short (one or two words each) it
  1172. may look better for each regular entry to start with a lower case
  1173. letter.  Whichever convention you adapt, please be consistent!
  1174.  
  1175.    By default, entries for a concept index are printed in a small roman
  1176. font and entries for the other indices are printed in a small `@code'
  1177. font.  You may change the way part of an entry is printed with the
  1178. usual Texinfo commands, such as `@file' for file names and `@emph' for
  1179. emphasis (*note Marking Text::.).
  1180.  
  1181.    The six indexing commands for predefined indices are:
  1182.  
  1183. `@cindex CONCEPT'
  1184.      Make an entry in the concept index for CONCEPT.
  1185.  
  1186. `@findex FUNCTION'
  1187.      Make an entry in the function index for FUNCTION.
  1188.  
  1189. `@vindex VARIABLE'
  1190.      Make an entry in the variable index for VARIABLE.
  1191.  
  1192. `@kindex KEYSTROKE'
  1193.      Make an entry in the key index for KEYSTROKE.
  1194.  
  1195. `@pindex PROGRAM'
  1196.      Make an entry in the program index for PROGRAM.
  1197.  
  1198. `@tindex DATA TYPE'
  1199.      Make an entry in the data type index for DATA TYPE.
  1200.  
  1201.      *Caution:* Do not use a colon in an index entry.  In Info, a colon
  1202.      separates the menu entry name from the node name.  An extra colon
  1203.      confuses Info.  *Note The Parts of a Menu: Menu Parts, for more
  1204.      information about the structure of a menu entry.
  1205.  
  1206.    If you write several identical index entries in different places in a
  1207. Texinfo file, the index in the printed manual will list all the pages to
  1208. which those entries refer.  However, the index in the Info file will
  1209. list *only* the node that references the *first* of those index
  1210. entries.  Therefore, it is best to write indices in which each entry
  1211. refers to only one place in the Texinfo file.  Fortunately, this
  1212. constraint is a feature rather than a loss since it means that the index
  1213. will be easy to use.  Otherwise, you could create an index that lists
  1214. several pages for one entry and your reader would not know to which page
  1215. to turn.  If you have two identical entries for one topic, change the
  1216. topics slightly, or qualify them to indicate the difference.
  1217.  
  1218.    You are not actually required to use the predefined indices for their
  1219. canonical purposes.  For example, suppose you wish to index some C
  1220. preprocessor macros.  You could put them in the function index along
  1221. with actual functions, just by writing `@findex' commands for them;
  1222. then, when you print the "Function Index" as an unnumbered chapter, you
  1223. could give it the title `Function and Macro Index' and all will be
  1224. consistent for the reader.  Or you could put the macros in with the
  1225. data types by writing `@tindex' commands for them, and give that index
  1226. a suitable title so the reader will understand.  (*Note Printing
  1227. Indices & Menus::.)
  1228.  
  1229. 
  1230. File: texi.info,  Node: Combining Indices,  Next: New Indices,  Prev: Indexing Commands,  Up: Indices
  1231.  
  1232. Combining Indices
  1233. =================
  1234.  
  1235.    Sometimes you will want to combine two disparate indices such as
  1236. functions and concepts, perhaps because you have few enough of one of
  1237. them that a separate index for them would look silly.
  1238.  
  1239.    You could put functions into the concept index by writing `@cindex'
  1240. commands for them instead of `@findex' commands, and produce a
  1241. consistent manual by printing the concept index with the title
  1242. `Function and Concept Index' and not printing the `Function Index' at
  1243. all; but this is not a robust procedure.  It works only if your
  1244. document is never included as part of another document that is designed
  1245. to have a separate function index; if your document were to be included
  1246. with such a document, the functions from your document and those from
  1247. the other would not end up together.  Also, to make your function names
  1248. appear in the right font in the concept index, you would need to
  1249. enclose every one of them between the braces of `@code'.
  1250.  
  1251. * Menu:
  1252.  
  1253. * syncodeindex::                How to merge two indices, using `@code'
  1254.                                   font for the merged-from index.
  1255. * synindex::                    How to merge two indices, using the
  1256.                                   default font of the merged-to index.
  1257.  
  1258. 
  1259. File: texi.info,  Node: syncodeindex,  Next: synindex,  Up: Combining Indices
  1260.  
  1261. `@syncodeindex'
  1262. ...............
  1263.  
  1264.    When you want to combine functions and concepts into one index, you
  1265. should index the functions with `@findex' and index the concepts with
  1266. `@cindex', and use the `@syncodeindex' command to redirect the function
  1267. index entries into the concept index.
  1268.  
  1269.    The `@syncodeindex' command takes two arguments; they are the name
  1270. of the index to redirect, and the name of the index to redirect it to.
  1271. The template looks like this:
  1272.  
  1273.      @syncodeindex FROM TO
  1274.  
  1275.    For this purpose, the indices are given two-letter names:
  1276.  
  1277. `cp'
  1278.      concept index
  1279.  
  1280. `fn'
  1281.      function index
  1282.  
  1283. `vr'
  1284.      variable index
  1285.  
  1286. `ky'
  1287.      key index
  1288.  
  1289. `pg'
  1290.      program index
  1291.  
  1292. `tp'
  1293.      data type index
  1294.  
  1295.    Write an `@syncodeindex' command before or shortly after the
  1296. end-of-header line at the beginning of a Texinfo file.  For example, to
  1297. merge a function index with a concept index, write the following:
  1298.  
  1299.      @syncodeindex fn cp
  1300.  
  1301. This will cause all entries designated for the function index to merge
  1302. in with the concept index instead.
  1303.  
  1304.    To merge both a variables index and a function index into a concept
  1305. index, write the following:
  1306.  
  1307.      @syncodeindex vr cp
  1308.      @syncodeindex fn cp
  1309.  
  1310.    The `@syncodeindex' command puts all the entries from the `from'
  1311. index (the redirected index) into the `@code' font, overriding whatever
  1312. default font is used by the index to which the entries are now
  1313. directed.  This way, if you direct function names from a function index
  1314. into a concept index, all the function names are printed in the `@code'
  1315. font as you would expect.
  1316.  
  1317. 
  1318. File: texi.info,  Node: synindex,  Prev: syncodeindex,  Up: Combining Indices
  1319.  
  1320. `@synindex'
  1321. ...........
  1322.  
  1323.    The `@synindex' command is nearly the same as the `@syncodeindex'
  1324. command, except that it does not put the `from' index  entries into the
  1325. `@code' font; rather it puts them in the roman font.  Thus, you use
  1326. `@synindex' when you merge a concept index into a function index.
  1327.  
  1328.    *Note Printing Indices & Menus::, for information about printing an
  1329. index at the end of a book or creating an index menu in an Info file.
  1330.  
  1331. 
  1332. File: texi.info,  Node: New Indices,  Prev: Combining Indices,  Up: Indices
  1333.  
  1334. Defining New Indices
  1335. ====================
  1336.  
  1337.    In addition to the predefined indices, you may use the `@defindex'
  1338. and `@defcodeindex' commands to define new indices.  These commands
  1339. create new indexing @-commands with which you mark index entries.  The
  1340. `@defindex 'command is used like this:
  1341.  
  1342.      @defindex NAME
  1343.  
  1344.    The name of an index should be a two letter word, such as `au'.  For
  1345. example:
  1346.  
  1347.      @defindex au
  1348.  
  1349.    This defines a new index, called the `au' index.  At the same time,
  1350. it creates a new indexing command, `@auindex', that you can use to make
  1351. index entries.  Use the new indexing command just as you would use a
  1352. predefined indexing command.
  1353.  
  1354.    For example, here is a section heading followed by a concept index
  1355. entry and two `au' index entries.
  1356.  
  1357.      @section Cognitive Semantics
  1358.      @cindex kinesthetic image schemas
  1359.      @auindex Johnson, Mark
  1360.      @auindex Lakoff, George
  1361.  
  1362. (Evidently, `au' serves here as an abbreviation for "author".) Texinfo
  1363. constructs the new indexing command by concatenating the name of the
  1364. index with `index'; thus, defining an `au' index leads to the automatic
  1365. creation of an `@auindex' command.
  1366.  
  1367.    Use the `@printindex' command to print the index, as you do with the
  1368. predefined indices.  For example:
  1369.  
  1370.      @node Author Index, Subject Index, , Top
  1371.      @unnumbered Author Index
  1372.      
  1373.      @printindex au
  1374.  
  1375.    The `@defcodeindex' is like the `@defindex' command, except that, in
  1376. the printed output, it prints entries in an `@code' font instead of a
  1377. roman font.  Thus, it parallels the `@findex' command rather than the
  1378. `@cindex' command.
  1379.  
  1380.    You should define new indices within or right after the end-of-header
  1381. line of a Texinfo file, before any `@synindex' or `@syncodeindex'
  1382. commands (*note Header::.).
  1383.  
  1384. 
  1385. File: texi.info,  Node: Insertions,  Next: Glyphs,  Prev: Indices,  Up: Top
  1386.  
  1387. Special Insertions
  1388. ******************
  1389.  
  1390.    Texinfo provides several commands for formatting dimensions, for
  1391. inserting single characters that have special meaning in Texinfo, such
  1392. as braces, and for inserting special graphic symbols that do not
  1393. correspond to characters, such as dots and bullets.
  1394.  
  1395. * Menu:
  1396.  
  1397. * Braces Atsigns Periods::      How to insert braces, `@' and periods.
  1398. * dmn::                         How to format a dimension.
  1399. * Dots Bullets::                How to insert dots and bullets.
  1400. * TeX and copyright::           How to insert the TeX logo
  1401.                                   and the copyright symbol.
  1402. * minus::                       How to insert a minus sign.
  1403.  
  1404. 
  1405. File: texi.info,  Node: Braces Atsigns Periods,  Next: dmn,  Up: Insertions
  1406.  
  1407. Inserting `@', Braces, and Periods
  1408. ==================================
  1409.  
  1410.    `@' and curly braces are special characters in Texinfo.  To insert
  1411. these characters so they appear in text, you must put an `@' in front
  1412. of these characters to prevent Texinfo from misinterpreting them.
  1413.  
  1414.    Periods are also special.  Depending on whether the period is inside
  1415. or at the end of a sentence, less or more space is inserted after a
  1416. period in a typeset manual.  Since it is not always possible for
  1417. Texinfo to determine when a period ends a sentence and when it is used
  1418. in an abbreviation, special commands are needed in some circumstances.
  1419. (Usually, Texinfo can guess how to handle periods, so you do not need
  1420. to use the special commands; you just enter a period as you would if
  1421. you were using a typewriter, which means you put two spaces after the
  1422. period, question mark, or exclamation mark that ends a sentence.)
  1423.  
  1424.    Do not put braces after any of these commands; they are not
  1425. necessary.
  1426.  
  1427. * Menu:
  1428.  
  1429. * Inserting An Atsign::
  1430. * Inserting Braces::            How to insert `{' and `}'
  1431. * Controlling Spacing::         How to insert the right amount of space
  1432.                                   after punctuation within a sentence.
  1433.  
  1434.