@database texinfo.guide

@Master /ade-src/fsf/texinfo/texinfo.texi

@Width 72


This is the AmigaGuideŽ  file texinfo.guide, produced by Makeinfo-1.64 from 
the input file /ade-src/fsf/texinfo/texinfo.texi.

  This file documents Texinfo, a documentation system that uses a single
source file to produce both on-line information and a printed manual.

  Copyright (C) 1988, 1990, 1991, 1992, 1993, 1995 Free Software
Foundation, Inc.

  This is the second edition of the Texinfo documentation,
and is consistent with version 2 of @{b}texinfo.tex@{ub}.

  Permission is granted to make and distribute verbatim copies of this
manual provided the copyright notice and this permission notice are
preserved on all copies.

  Permission is granted to copy and distribute modified versions of this
manual under the conditions for verbatim copying, provided that the
entire resulting derived work is distributed under the terms of a
permission notice identical to this one.

  Permission is granted to copy and distribute translations of this
manual into another language, under the above conditions for modified
versions, except that this permission notice may be stated in a
translation approved by the Free Software Foundation.


@Node Main "texinfo.guide"
@Next "Copying"
@Prev "(dir)"
@Toc "(dir)"

Texinfo
*******

  Texinfo is a documentation system that uses a single source file to
produce both on-line information and printed output.

  The first part of this master menu lists the major nodes in this Info
document, including the @-command and concept indices.  The rest of the
menu lists all the lower level nodes in the document.

  This is Edition 2.21 of the Texinfo documentation, 7 June 1995, for
Texinfo Version Three.


 @{" Copying                   " Link "Copying"}  Your rights.
 @{" Overview                  " Link "Overview"}  Texinfo in brief.
 @{" Texinfo Mode              " Link "Texinfo Mode"}  How to use Texinfo mode.
 @{" Beginning a File          " Link "Beginning a File"}  What is at the beginning of a Texinfo file?
 @{" Ending a File             " Link "Ending a File"}  What is at the end of a Texinfo file?
 @{" Structuring               " Link "Structuring"}  How to create chapters, sections, subsections,
                                  appendices, and other parts.
 @{" Nodes                     " Link "Nodes"}  How to write nodes.
 @{" Menus                     " Link "Menus"}  How to write menus.
 @{" Cross References          " Link "Cross References"}  How to write cross references.
 @{" Marking Text              " Link "Marking Text"}  How to mark words and phrases as code,
                                  keyboard input, meta-syntactic
                                  variables, and the like.
 @{" Quotations and Examples   " Link "Quotations and Examples"}  How to write quotations, examples, etc.
 @{" Lists and Tables          " Link "Lists and Tables"}  How to write lists and tables.
 @{" Indices                   " Link "Indices"}  How to create indices.
 @{" Insertions                " Link "Insertions"}  How to insert @-signs, braces, etc.
 @{" Glyphs                    " Link "Glyphs"}  How to indicate results of evaluation,
                                  expansion of macros, errors, etc.
 @{" Breaks                    " Link "Breaks"}  How to force and prevent line and page breaks.
 @{" Definition Commands       " Link "Definition Commands"}  How to describe functions and the like
                                  in a uniform manner.
 @{" Footnotes                 " Link "Footnotes"}  How to write footnotes.
 @{" Conditionals              " Link "Conditionals"}  How to specify text for either TeX or Info.
 @{" Format-Print Hardcopy     " Link "Format-Print Hardcopy"}  How to convert a Texinfo file to a file
                                  for printing and how to print that file.
 @{" Create an Info File       " Link "Create an Info File"}  Convert a Texinfo file into an Info file.
 @{" Install an Info File      " Link "Install an Info File"}  Make an Info file accessible to users.
 @{" Command List              " Link "Command List"}  All the Texinfo @-commands.
 @{" Tips                      " Link "Tips"}  Hints on how to write a Texinfo document.
 @{" Sample Texinfo File       " Link "Sample Texinfo File"}  A sample Texinfo file to look at.
 @{" Sample Permissions        " Link "Sample Permissions"}  Tell readers they have the right to copy
                                  and distribute.
 @{" Include Files             " Link "Include Files"}  How to incorporate other Texinfo files.
 @{" Headings                  " Link "Headings"}  How to write page headings and footings.
 @{" Catching Mistakes         " Link "Catching Mistakes"}  How to find formatting mistakes.
 @{" Refilling Paragraphs      " Link "Refilling Paragraphs"}  All about paragraph refilling.
 @{" Command Syntax            " Link "Command Syntax"}  A description of @-Command syntax.
 @{" Obtaining TeX             " Link "Obtaining TeX"}  How to Obtain TeX.
 @{" New Features              " Link "New Features"}  Texinfo second edition features.
 @{" Command and Variable Index " Link "Command and Variable Index"}  A menu containing commands and variables.
 @{" Concept Index             " Link "Concept Index"}  A menu covering many topics.

 -- The Detailed Node Listing --

Overview of Texinfo

 @{" Using Texinfo             " Link "Using Texinfo"}  Create a conventional printed book
                                  or an Info file.
 @{" Info Files                " Link "Info Files"}  What is an Info file?
 @{" Printed Books             " Link "Printed Books"}  Characteristics of a printed book or manual.
 @{" Formatting Commands       " Link "Formatting Commands"}  @-commands are used for formatting.
 @{" Conventions               " Link "Conventions"}  General rules for writing a Texinfo file.
 @{" Comments                  " Link "Comments"}  How to write comments and mark regions that
                                  the formatting commands will ignore.
 @{" Minimum                   " Link "Minimum"}  What a Texinfo file must have.
 @{" Six Parts                 " Link "Six Parts"}  Usually, a Texinfo file has six parts.
 @{" Short Sample              " Link "Short Sample"}  A short sample Texinfo file.
 @{" Acknowledgements          " Link "Acknowledgements"}  

Using Texinfo Mode

 @{" Texinfo Mode Overview     " Link "Texinfo Mode Overview"}  How Texinfo mode can help you.
 @{" Emacs Editing             " Link "Emacs Editing"}  Texinfo mode adds to GNU Emacs' general
                                  purpose editing features.
 @{" Inserting                 " Link "Inserting"}  How to insert frequently used @-commands.
 @{" Showing the Structure     " Link "Showing the Structure"}  How to show the structure of a file.
 @{" Updating Nodes and Menus  " Link "Updating Nodes and Menus"}  How to update or create new nodes and menus.
 @{" Info Formatting           " Link "Info Formatting"}  How to format for Info.
 @{" Printing                  " Link "Printing"}  How to format and print part or all of a file.
 @{" Texinfo Mode Summary      " Link "Texinfo Mode Summary"}  Summary of all the Texinfo mode commands.

Updating Nodes and Menus

 @{" Updating Commands         " Link "Updating Commands"}  Five major updating commands.
 @{" Updating Requirements     " Link "Updating Requirements"}  How to structure a Texinfo file for
                                  using the updating command.
 @{" Other Updating Commands   " Link "Other Updating Commands"}  How to indent descriptions, insert
                                  missing nodes lines, and update
                                  nodes in sequence.

Beginning a Texinfo File

 @{" Four Parts                " Link "Four Parts"}  Four parts begin a Texinfo file.
 @{" Sample Beginning          " Link "Sample Beginning"}  Here is a sample beginning for a Texinfo file.
 @{" Header                    " Link "Header"}  The very beginning of a Texinfo file.
 @{" Info Summary and Permissions " Link "Info Summary and Permissions"}  Summary and copying permissions for Info.
 @{" Titlepage & Copyright Page " Link "Titlepage & Copyright Page"}  Creating the title and copyright pages.
 @{" The Top Node              " Link "The Top Node"}  Creating the `Top' node and master menu.
 @{" Software Copying Permissions " Link "Software Copying Permissions"}  Ensure that you and others continue to
                                  have the right to use and share software.

The Texinfo File Header

 @{" First Line                " Link "First Line"}  The first line of a Texinfo file.
 @{" Start of Header           " Link "Start of Header"}  Formatting a region requires this.
 @{" setfilename               " Link "setfilename"}  Tell Info the name of the Info file.
 @{" settitle                  " Link "settitle"}  Create a title for the printed work.
 @{" setchapternewpage         " Link "setchapternewpage"}  Start chapters on right-hand pages.
 @{" paragraphindent           " Link "paragraphindent"}  An option to specify paragraph indentation.
 @{" End of Header             " Link "End of Header"}  Formatting a region requires this.

The Title and Copyright Pages

 @{" titlepage                 " Link "titlepage"}  Create a title for the printed document.
 @{" titlefont center sp       " Link "titlefont center sp"}  The @{b} @titlefont@{ub}, @{b} @center@{ub},
                                  and @{b} @sp@{ub} commands.
 @{" title subtitle author     " Link "title subtitle author"}  The @{b} @title@{ub}, @{b} @subtitle@{ub},
                                  and @{b} @author@{ub} commands.
 @{" Copyright & Permissions   " Link "Copyright & Permissions"}  How to write the copyright notice and
                                  include copying permissions.
 @{" end titlepage             " Link "end titlepage"}  Turn on page headings after the title and
                                  copyright pages.
 @{" headings on off           " Link "headings on off"}  An option for turning headings on and off
                                  and double or single sided printing.

The `Top' Node and Master Menu

 @{" Title of Top Node         " Link "Title of Top Node"}  Sketch what the file is about.
 @{" Master Menu Parts         " Link "Master Menu Parts"}  A master menu has three or more parts.

Ending a Texinfo File

 @{" Printing Indices & Menus  " Link "Printing Indices & Menus"}  How to print an index in hardcopy and
                                  generate index menus in Info.
 @{" Contents                  " Link "Contents"}  How to create a table of contents.
 @{" File End                  " Link "File End"}  How to mark the end of a file.

Chapter Structuring

 @{" Tree Structuring          " Link "Tree Structuring"}  A manual is like an upside down tree ...
 @{" Structuring Command Types " Link "Structuring Command Types"}  How to divide a manual into parts.
 @{" makeinfo top              " Link "makeinfo top"}  The @{b} @top@{ub} command, part of the `Top' node.
 @{" chapter                   " Link "chapter"}  
 @{" unnumbered & appendix     " Link "unnumbered & appendix"}  
 @{" majorheading & chapheading " Link "majorheading & chapheading"}  
 @{" section                   " Link "section"}  
 @{" unnumberedsec appendixsec heading " Link "unnumberedsec appendixsec heading"}  
 @{" subsection                " Link "subsection"}  
 @{" unnumberedsubsec appendixsubsec subheading " Link "unnumberedsubsec appendixsubsec subheading"}  
 @{" subsubsection             " Link "subsubsection"}  Commands for the lowest level sections.
 @{" Raise-lower sections      " Link "Raise-lower sections"}  How to change commands' hierarchical level.

Nodes

 @{" Two Paths                 " Link "Two Paths"}  Different commands to structure
                                  Info output and printed output.
 @{" Node Menu Illustration    " Link "Node Menu Illustration"}  A diagram, and sample nodes and menus.
 @{" node                      " Link "node"}  How to write a node, in detail.
 @{" makeinfo Pointer Creation " Link "makeinfo Pointer Creation"}  How to create node pointers with @{b}makeinfo@{ub}.

The @{b} @node@{ub} Command

 @{" Node Names                " Link "Node Names"}  How to choose node and pointer names.
 @{" Writing a Node            " Link "Writing a Node"}  How to write an @{b} @node@{ub} line.
 @{" Node Line Tips            " Link "Node Line Tips"}  Keep names short.
 @{" Node Line Requirements    " Link "Node Line Requirements"}  Keep names unique, without @-commands.
 @{" First Node                " Link "First Node"}  How to write a `Top' node.
 @{" makeinfo top command      " Link "makeinfo top command"}  How to use the @{b} @top@{ub} command.
 @{" Top Node Summary          " Link "Top Node Summary"}  Write a brief description for readers.

Menus

 @{" Menu Location             " Link "Menu Location"}  Put a menu in a short node.
 @{" Writing a Menu            " Link "Writing a Menu"}  What is a menu?
 @{" Menu Parts                " Link "Menu Parts"}  A menu entry has three parts.
 @{" Less Cluttered Menu Entry " Link "Less Cluttered Menu Entry"}  Two part menu entry.
 @{" Menu Example              " Link "Menu Example"}  Two and three part menu entries.
 @{" Other Info Files          " Link "Other Info Files"}  How to refer to a different Info file.

Cross References

 @{" References                " Link "References"}  What cross references are for.
 @{" Cross Reference Commands  " Link "Cross Reference Commands"}  A summary of the different commands.
 @{" Cross Reference Parts     " Link "Cross Reference Parts"}  A cross reference has several parts.
 @{" xref                      " Link "xref"}  Begin a reference with `See' ...
 @{" Top Node Naming           " Link "Top Node Naming"}  How to refer to the beginning of another file.
 @{" ref                       " Link "ref"}  A reference for the last part of a sentence.
 @{" pxref                     " Link "pxref"}  How to write a parenthetical cross reference.
 @{" inforef                   " Link "inforef"}  How to refer to an Info-only file.

@{b} @xref@{ub}

 @{" Reference Syntax          " Link "Reference Syntax"}  What a reference looks like and requires.
 @{" One Argument              " Link "One Argument"}  @{b} @xref@{ub} with one argument.
 @{" Two Arguments             " Link "Two Arguments"}  @{b} @xref@{ub} with two arguments.
 @{" Three Arguments           " Link "Three Arguments"}  @{b} @xref@{ub} with three arguments.
 @{" Four and Five Arguments   " Link "Four and Five Arguments"}  @{b} @xref@{ub} with four and five arguments.

Marking Words and Phrases

 @{" Indicating                " Link "Indicating"}  How to indicate definitions, files, etc.
 @{" Emphasis                  " Link "Emphasis"}  How to emphasize text.

Indicating Definitions, Commands, etc.

 @{" Useful Highlighting       " Link "Useful Highlighting"}  Highlighting provides useful information.
 @{" code                      " Link "code"}  How to indicate code.
 @{" kbd                       " Link "kbd"}  How to show keyboard input.
 @{" key                       " Link "key"}  How to specify keys.
 @{" samp                      " Link "samp"}  How to show a literal sequence of characters.
 @{" var                       " Link "var"}  How to indicate a metasyntactic variable.
 @{" file                      " Link "file"}  How to indicate the name of a file.
 @{" dfn                       " Link "dfn"}  How to specify a definition.
 @{" cite                      " Link "cite"}  How to refer to a book that is not in Info.

Emphasizing Text

 @{" emph & strong             " Link "emph & strong"}  How to emphasize text in Texinfo.
 @{" Smallcaps                 " Link "Smallcaps"}  How to use the small caps font.
 @{" Fonts                     " Link "Fonts"}  Various font commands for printed output.
 @{" Customized Highlighting   " Link "Customized Highlighting"}  How to define highlighting commands.

Quotations and Examples

 @{" Block Enclosing Commands  " Link "Block Enclosing Commands"}  Use different constructs for
                                  different purposes.
 @{" quotation                 " Link "quotation"}  How to write a quotation.
 @{" example                   " Link "example"}  How to write an example in a fixed-width font.
 @{" noindent                  " Link "noindent"}  How to prevent paragraph indentation.
 @{" Lisp Example              " Link "Lisp Example"}  How to illustrate Lisp code.
 @{" smallexample & smalllisp  " Link "smallexample & smalllisp"}  Forms for the @{b} @smallbook@{ub} option.
 @{" display                   " Link "display"}  How to write an example in the current font.
 @{" format                    " Link "format"}  How to write an example that does not narrow
                                  the margins.
 @{" exdent                    " Link "exdent"}  How to undo the indentation of a line.
 @{" flushleft & flushright    " Link "flushleft & flushright"}  How to push text flushleft or flushright.
 @{" cartouche                 " Link "cartouche"}  How to draw cartouches around examples.

Making Lists and Tables

 @{" Introducing Lists         " Link "Introducing Lists"}  Texinfo formats lists for you.
 @{" itemize                   " Link "itemize"}  How to construct a simple list.
 @{" enumerate                 " Link "enumerate"}  How to construct a numbered list.
 @{" Two-column Tables         " Link "Two-column Tables"}  How to construct a two-column table.

Making a Two-column Table

 @{" table                     " Link "table"}  How to construct a two-column table.
 @{" ftable vtable             " Link "ftable vtable"}  How to construct a two-column table
                                  with automatic indexing.
 @{" itemx                     " Link "itemx"}  How to put more entries in the first column.

Creating Indices

 @{" Index Entries             " Link "Index Entries"}  Choose different words for index entries.
 @{" Predefined Indices        " Link "Predefined Indices"}  Use different indices for different kinds
                                  of entry.
 @{" Indexing Commands         " Link "Indexing Commands"}  How to make an index entry.
 @{" Combining Indices         " Link "Combining Indices"}  How to combine indices.
 @{" New Indices               " Link "New Indices"}  How to define your own indices.

Combining Indices

 @{" syncodeindex              " Link "syncodeindex"}  How to merge two indices, using @{b} @code@{ub}
                                  font for the merged-from index.
 @{" synindex                  " Link "synindex"}  How to merge two indices, using the
                                  default font of the merged-to index.

Special Insertions

 @{" Braces Atsigns Periods    " Link "Braces Atsigns Periods"}  How to insert braces, @{b} @@{ub} and periods.
 @{" dmn                       " Link "dmn"}  How to format a dimension.
 @{" Dots Bullets              " Link "Dots Bullets"}  How to insert dots and bullets.
 @{" TeX and copyright         " Link "TeX and copyright"}  How to insert the TeX logo
                                  and the copyright symbol.
 @{" minus                     " Link "minus"}  How to insert a minus sign.
 @{" math                      " Link "math"}  How to format a mathematical expression.

Inserting @{b} @@{ub}, Braces, and Periods

 @{" Inserting An Atsign       " Link "Inserting An Atsign"}  
 @{" Inserting Braces          " Link "Inserting Braces"}  How to insert @{b}{@{ub} and @{b}}@{ub}
 @{" Controlling Spacing       " Link "Controlling Spacing"}  How to insert the right amount of space
                                  after punctuation within a sentence.

Inserting Ellipsis, Dots, and Bullets

 @{" dots                      " Link "dots"}  How to insert dots ...
 @{" bullet                    " Link "bullet"}  How to insert a bullet.

Inserting TeX and the Copyright Symbol

 @{" tex                       " Link "tex"}  How to insert the TeX logo.
 @{" copyright symbol          " Link "copyright symbol"}  How to use @{b} @copyright@{ub} {}.

Glyphs for Examples

 @{" Glyphs Summary            " Link "Glyphs Summary"}  
 @{" result                    " Link "result"}  How to show the result of expression.
 @{" expansion                 " Link "expansion"}  How to indicate an expansion.
 @{" Print Glyph               " Link "Print Glyph"}  How to indicate printed output.
 @{" Error Glyph               " Link "Error Glyph"}  How to indicate an error message.
 @{" Equivalence               " Link "Equivalence"}  How to indicate equivalence.
 @{" Point Glyph               " Link "Point Glyph"}  How to indicate the location of point.

Making and Preventing Breaks

 @{" Break Commands            " Link "Break Commands"}  Cause and prevent splits.
 @{" Line Breaks               " Link "Line Breaks"}  How to force a single line to use two lines.
 @{" w                         " Link "w"}  How to prevent unwanted line breaks.
 @{" sp                        " Link "sp"}  How to insert blank lines.
 @{" page                      " Link "page"}  How to force the start of a new page.
 @{" group                     " Link "group"}  How to prevent unwanted page breaks.
 @{" need                      " Link "need"}  Another way to prevent unwanted page breaks.

Definition Commands

 @{" Def Cmd Template          " Link "Def Cmd Template"}  How to structure a description using a
                                  definition command.
 @{" Optional Arguments        " Link "Optional Arguments"}  How to handle optional and repeated arguments.
 @{" deffnx                    " Link "deffnx"}  How to group two or more `first' lines.
 @{" Def Cmds in Detail        " Link "Def Cmds in Detail"}  All the definition commands.
 @{" Def Cmd Conventions       " Link "Def Cmd Conventions"}  Conventions for writing definitions.
 @{" Sample Function Definition " Link "Sample Function Definition"}  

The Definition Commands

 @{" Functions Commands        " Link "Functions Commands"}  Commands for functions and similar entities.
 @{" Variables Commands        " Link "Variables Commands"}  Commands for variables and similar entities.
 @{" Typed Functions           " Link "Typed Functions"}  Commands for functions in typed languages.
 @{" Typed Variables           " Link "Typed Variables"}  Commands for variables in typed languages.
 @{" Abstract Objects          " Link "Abstract Objects"}  Commands for object-oriented programming.
 @{" Data Types                " Link "Data Types"}  The definition command for data types.

Footnotes

 @{" Footnote Commands         " Link "Footnote Commands"}  How to write a footnote in Texinfo.
 @{" Footnote Styles           " Link "Footnote Styles"}  Controlling how footnotes appear in Info.

Conditionally Visible Text

 @{" Conditional Commands      " Link "Conditional Commands"}  How to specify text for Info or TeX.
 @{" Using Ordinary TeX Commands " Link "Using Ordinary TeX Commands"}  You can use any and all TeX commands.
 @{" set clear value           " Link "set clear value"}  How to designate which text to format (for
                                  both Info and TeX); and how to set a
                                  flag to a string that you can insert.

@{b} @set@{ub}, @{b} @clear@{ub}, and @{b} @value@{ub}

 @{" ifset ifclear             " Link "ifset ifclear"}  Format a region if a flag is set.
 @{" value                     " Link "value"}  Replace a flag with a string.
 @{" value Example             " Link "value Example"}  An easy way to update edition information.

Format and Print Hardcopy

 @{" Use TeX                   " Link "Use TeX"}  Use TeX to format for hardcopy.
 @{" Format with tex-texindex  " Link "Format with tex-texindex"}  How to format in a shell.
 @{" Format with texi2dvi      " Link "Format with texi2dvi"}  A simpler way to use the shell.
 @{" Print with lpr            " Link "Print with lpr"}  How to print.
 @{" Within Emacs              " Link "Within Emacs"}  How to format and print from an Emacs shell.
 @{" Texinfo Mode Printing     " Link "Texinfo Mode Printing"}  How to format and print in Texinfo mode.
 @{" Compile-Command           " Link "Compile-Command"}  How to print using Emacs's compile command.
 @{" Requirements Summary      " Link "Requirements Summary"}  TeX formatting requirements summary.
 @{" Preparing for TeX         " Link "Preparing for TeX"}  What you need to do to use TeX.
 @{" Overfull hboxes           " Link "Overfull hboxes"}  What are and what to do with overfull hboxes.
 @{" smallbook                 " Link "smallbook"}  How to print small format books and manuals.
 @{" A4 Paper                  " Link "A4 Paper"}  How to print on European A4 paper.
 @{" Cropmarks and Magnification " Link "Cropmarks and Magnification"}  How to print marks to indicate the size
                                of pages and how to print scaled up output.

Creating an Info File

 @{" makeinfo advantages       " Link "makeinfo advantages"}  @{b}makeinfo@{ub} provides better error checking.
 @{" Invoking makeinfo         " Link "Invoking makeinfo"}  How to run @{b}makeinfo@{ub} from a shell.
 @{" makeinfo options          " Link "makeinfo options"}  Specify fill-column and other options.
 @{" Pointer Validation        " Link "Pointer Validation"}  How to check that pointers point somewhere.
 @{" makeinfo in Emacs         " Link "makeinfo in Emacs"}  How to run @{b}makeinfo@{ub} from Emacs.
 @{" texinfo-format commands   " Link "texinfo-format commands"}  Two Info formatting commands written
                                  in Emacs Lisp are an alternative
                                  to @{b}makeinfo@{ub}.
 @{" Batch Formatting          " Link "Batch Formatting"}  How to format for Info in Emacs Batch mode.
 @{" Tag and Split Files       " Link "Tag and Split Files"}  How tagged and split files help Info
                                  to run better.

Installing an Info File

 @{" Directory file            " Link "Directory file"}  The top level menu for all Info files.
 @{" New Info File             " Link "New Info File"}  Listing a new info file.
 @{" Other Info Directories    " Link "Other Info Directories"}  How to specify Info files that are
                                  located in other directories.

Sample Permissions

 @{" Inserting Permissions     " Link "Inserting Permissions"}  How to put permissions in your document.
 @{" ifinfo Permissions        " Link "ifinfo Permissions"}  Sample @{b}ifinfo@{ub} copying permissions.
 @{" Titlepage Permissions     " Link "Titlepage Permissions"}  Sample Titlepage copying permissions.

Include Files

 @{" Using Include Files       " Link "Using Include Files"}  How to use the @{b} @include@{ub} command.
 @{" texinfo-multiple-files-update " Link "texinfo-multiple-files-update"}  How to create and update nodes and
                                  menus when using included files.
 @{" Include File Requirements " Link "Include File Requirements"}  What @{b}texinfo-multiple-files-update@{ub} expects.
 @{" Sample Include File       " Link "Sample Include File"}  A sample outer file with included files
                                  within it; and a sample included file.
 @{" Include Files Evolution   " Link "Include Files Evolution"}  How use of the @{b} @include@{ub} command
                                  has changed over time.

Page Headings

 @{" Headings Introduced       " Link "Headings Introduced"}  Conventions for using page headings.
 @{" Heading Format            " Link "Heading Format"}  Standard page heading formats.
 @{" Heading Choice            " Link "Heading Choice"}  How to specify the type of page heading.
 @{" Custom Headings           " Link "Custom Headings"}  How to create your own headings and footings.

Formatting Mistakes

 @{" makeinfo preferred        " Link "makeinfo preferred"}  @{b}makeinfo@{ub} finds errors.
 @{" Debugging with Info       " Link "Debugging with Info"}  How to catch errors with Info formatting.
 @{" Debugging with TeX        " Link "Debugging with TeX"}  How to catch errors with TeX formatting.
 @{" Using texinfo-show-structure " Link "Using texinfo-show-structure"}  How to use @{b}texinfo-show-structure@{ub}.
 @{" Using occur               " Link "Using occur"}  How to list all lines containing a pattern.
 @{" Running Info-Validate     " Link "Running Info-Validate"}  How to find badly referenced nodes.

Finding Badly Referenced Nodes

 @{" Using Info-validate       " Link "Using Info-validate"}  How to run @{b}Info-validate@{ub}.
 @{" Unsplit                   " Link "Unsplit"}  How to create an unsplit file.
 @{" Tagifying                 " Link "Tagifying"}  How to tagify a file.
 @{" Splitting                 " Link "Splitting"}  How to split a file manually.

Second Edition Features

 @{" New Texinfo Mode Commands " Link "New Texinfo Mode Commands"}  The updating commands are especially useful.
 @{" New Commands              " Link "New Commands"}  Many newly described @-commands.


@EndNode

@Node "Copying" "texinfo.guide/Copying"
@Next "Overview"
@Prev "Main"
@Toc "Main"

Texinfo Copying Conditions
**************************

  The programs currently being distributed that relate to Texinfo
include portions of GNU Emacs, plus other separate programs (including
@{b}makeinfo@{ub}, @{b}info@{ub}, @{b}texindex@{ub}, and @{b}texinfo.tex@{ub}).  These programs are
@{i}free@{ui}; this means that everyone is free to use them and free to
redistribute them on a free basis.  The Texinfo-related programs are
not in the public domain; they are copyrighted and there are
restrictions on their distribution, but these restrictions are designed
to permit everything that a good cooperating citizen would want to do.
What is not allowed is to try to prevent others from further sharing
any version of these programs that they might get from you.

  Specifically, we want to make sure that you have the right to give
away copies of the programs that relate to Texinfo, that you receive
source code or else can get it if you want it, that you can change these
programs or use pieces of them in new free programs, and that you know
you can do these things.

  To make sure that everyone has such rights, we have to forbid you to
deprive anyone else of these rights.  For example, if you distribute
copies of the Texinfo related programs, you must give the recipients all
the rights that you have.  You must make sure that they, too, receive or
can get the source code.  And you must tell them their rights.

  Also, for our own protection, we must make certain that everyone finds
out that there is no warranty for the programs that relate to Texinfo.
If these programs are modified by someone else and passed on, we want
their recipients to know that what they have is not what we distributed,
so that any problems introduced by others will not reflect on our
reputation.

  The precise conditions of the licenses for the programs currently
being distributed that relate to Texinfo are found in the General Public
Licenses that accompany them.


@EndNode

@Node "Overview" "texinfo.guide/Overview"
@Next "Texinfo Mode"
@Prev "Copying"
@Toc "Main"

Overview of Texinfo
*******************

  @{i}Texinfo@{ui} (1)@{"Overview-Footnotes" Link "Overview-Footnotes"} is a documentation system that uses a
single source file to produce both on-line information and printed
output.  This means that instead of writing two different documents,
one for the on-line help or other on-line information and the other for
a typeset manual or other printed work, you need write only one
document.  When the work is revised, you need revise only one document.
(You can read the on-line information, known as an @{i}Info file@{ui}, with an
Info documentation-reading program.)


 @{" Using Texinfo             " Link "Using Texinfo"}  Create a conventional printed book
                                  or an Info file.
 @{" Info Files                " Link "Info Files"}  What is an Info file?
 @{" Printed Books             " Link "Printed Books"}  Characteristics of a printed book or manual.
 @{" Formatting Commands       " Link "Formatting Commands"}  @-commands are used for formatting.
 @{" Conventions               " Link "Conventions"}  General rules for writing a Texinfo file.
 @{" Comments                  " Link "Comments"}  How to write comments and mark regions that
                                  the formatting commands will ignore.
 @{" Minimum                   " Link "Minimum"}  What a Texinfo file must have.
 @{" Six Parts                 " Link "Six Parts"}  Usually, a Texinfo file has six parts.
 @{" Short Sample              " Link "Short Sample"}  A short sample Texinfo file.
 @{" Acknowledgements          " Link "Acknowledgements"} 


@EndNode

@Node "Overview-Footnotes" "texinfo.guide/Overview-Footnotes"
@Toc "Overview"

  (1)  Note that the first syllable of "Texinfo" is pronounced like
"speck", not "hex".  This odd pronunciation is derived from, but is not
the same as, the pronunciation of TeX.  In the word TeX, the @{b}X@{ub} is
actually the Greek letter "chi" rather than the English letter "ex".
Pronounce TeX as if the @{b}X@{ub} were the last sound in the name `Bach'; but
pronounce Texinfo as if the @{b}x@{ub} were a `k'.  Spell "Texinfo" with a
capital "T" and write the other letters in lower case.


@EndNode

@Node "Using Texinfo" "texinfo.guide/Using Texinfo"
@Next "Info Files"
@Prev "Overview"
@Toc "Overview"

Using Texinfo
=============

  Using Texinfo, you can create a printed document with the normal
features of a book, including chapters, sections, cross references, and
indices.  From the same Texinfo source file, you can create a
menu-driven, on-line Info file with nodes, menus, cross references, and
indices.  You can, if you wish, make the chapters and sections of the
printed document correspond to the nodes of the on-line information;
and you use the same cross references and indices for both the Info
file and the printed work.  `The GNU Emacs Manual' is a good example of
a Texinfo file, as is this manual.

  To make a printed document, you process a Texinfo source file with the
TeX typesetting program.  This creates a @{i}dvi@{ui} file that you can typeset
and print as a book or report.  (Note that the Texinfo language is
completely different from TeX's usual language, PlainTeX, which Texinfo
replaces.)  If you do not have TeX, but do have @{b}troff@{ub} or @{b}nroff@{ub}, you can
use the @{b}texi2roff@{ub} program instead.

  To make an Info file, you process a Texinfo source file with the
@{b}makeinfo@{ub} utility or Emacs's @{b}texinfo-format-buffer@{ub} command; this
creates an Info file that you can install on-line.

  TeX and @{b}texi2roff@{ub} work with many types of printer; similarly, Info
works with almost every type of computer terminal.  This power makes
Texinfo a general purpose system, but brings with it a constraint,
which is that a Texinfo file may contain only the customary
"typewriter" characters (letters, numbers, spaces, and punctuation
marks) but no special graphics.

  A Texinfo file is a plain @{i}ascii@{ui} file containing text and @{i} @-commands@{ui}
(words preceded by an @{b} @@{ub}) that tell the typesetting and formatting
programs what to do.  You may edit a Texinfo file with any text editor;
but it is especially convenient to use GNU Emacs since that editor has
a special mode, called Texinfo mode, that provides various
Texinfo-related features.  (See @{"Texinfo Mode" Link "Texinfo Mode"}.)

  Before writing a Texinfo source file, you should become familiar with
the Info documentation reading program and learn about nodes, menus,
cross references, and the rest.  (See @{"info" Link "info/Top"}, for more information.)

  You can use Texinfo to create both on-line help and printed manuals;
moreover, Texinfo is freely redistributable.  For these reasons, Texinfo
is the format in which documentation for GNU utilities and libraries is
written.


@EndNode

@Node "Info Files" "texinfo.guide/Info Files"
@Next "Printed Books"
@Prev "Using Texinfo"
@Toc "Overview"

Info files
==========

  An Info file is a Texinfo file formatted so that the Info
documentation reading program can operate on it.  (@{b}makeinfo@{ub} and
@{b}texinfo-format-buffer@{ub} are two commands that convert a Texinfo file
into an Info file.)

  Info files are divided into pieces called @{i}nodes@{ui}, each of which
contains the discussion of one topic.  Each node has a name, and
contains both text for the user to read and pointers to other nodes,
which are identified by their names.  The Info program displays one node
at a time, and provides commands with which the user can move to other
related nodes.

  See @{"info" Link "info/Top"}, for more information about using Info.

  Each node of an Info file may have any number of child nodes that
describe subtopics of the node's topic.  The names of child nodes are
listed in a @{i}menu@{ui} within the parent node; this allows you to use certain
Info commands to move to one of the child nodes.  Generally, an Info
file is organized like a book.  If a node is at the logical level of a
chapter, its child nodes are at the level of sections; likewise, the
child nodes of sections are at the level of subsections.

  All the children of any one parent are linked together in a
bidirectional chain of `Next' and `Previous' pointers.  The `Next'
pointer provides a link to the next section, and the `Previous' pointer
provides a link to the previous section.  This means that all the nodes
that are at the level of sections within a chapter are linked together.
Normally the order in this chain is the same as the order of the
children in the parent's menu.  Each child node records the parent node
name as its `Up' pointer.  The last child has no `Next' pointer, and the
first child has the parent both as its `Previous' and as its `Up'
pointer.(1)@{"Info Files-Footnotes" Link "Info Files-Footnotes"}

  The book-like structuring of an Info file into nodes that correspond
to chapters, sections, and the like is a matter of convention, not a
requirement.  The `Up', `Previous', and `Next' pointers of a node can
point to any other nodes, and a menu can contain any other nodes.
Thus, the node structure can be any directed graph.  But it is usually
more comprehensible to follow a structure that corresponds to the
structure of chapters and sections in a printed book or report.

  In addition to menus and to `Next', `Previous', and `Up' pointers,
Info provides pointers of another kind, called references, that can be
sprinkled throughout the text.  This is usually the best way to
represent links that do not fit a hierarchical structure.

  Usually, you will design a document so that its nodes match the
structure of chapters and sections in the printed output.  But there
are times when this is not right for the material being discussed.
Therefore, Texinfo uses separate commands to specify the node structure
for the Info file and the section structure for the printed output.

  Generally, you enter an Info file through a node that by convention is
called @{b}Top@{ub}.  This node normally contains just a brief summary of the
file's purpose, and a large menu through which the rest of the file is
reached.  From this node, you can either traverse the file
systematically by going from node to node, or you can go to a specific
node listed in the main menu, or you can search the index menus and
then go directly to the node that has the information you want.

  If you want to read through an Info file in sequence, as if it were a
printed manual, you can get the whole file with the advanced Info
command @{b}g* RET@{ub}.  (See @{"Advanced Info commands" Link "info/Expert"}.)

  The @{b}dir@{ub} file in the @{b}info@{ub} directory serves as the departure point for
the whole Info system.  From it, you can reach the `Top' nodes of each
of the documents in a complete Info system.


@EndNode

@Node "Info Files-Footnotes" "texinfo.guide/Info Files-Footnotes"
@Toc "Info Files"

  (1)  In some documents, the first child has no `Previous' pointer.
Occasionally, the last child has the node name of the next following
higher level node as its `Next' pointer.


@EndNode

@Node "Printed Books" "texinfo.guide/Printed Books"
@Next "Formatting Commands"
@Prev "Info Files"
@Toc "Overview"

Printed Books
=============

  A Texinfo file can be formatted and typeset as a printed book or
manual.  To do this, you need TeX, a powerful, sophisticated typesetting
program written by Donald Knuth.(1)@{"Printed Books-Footnotes" Link "Printed Books-Footnotes"}

  A Texinfo-based book is similar to any other typeset, printed work: it
can have a title page, copyright page, table of contents, and preface,
as well as chapters, numbered or unnumbered sections and subsections,
page headers, cross references, footnotes, and indices.

  You can use Texinfo to write a book without ever having the intention
of converting it into on-line information.  You can use Texinfo for
writing a printed novel, and even to write a printed memo, although
this latter application is not recommended since electronic mail is so
much easier.

  TeX is a general purpose typesetting program.  Texinfo provides a
file called @{b}texinfo.tex@{ub} that contains information (definitions or
@{i}macros@{ui}) that TeX uses when it typesets a Texinfo file.
(@{b}texinfo.tex@{ub} tells TeX how to convert the Texinfo @-commands to TeX
commands, which TeX can then process to create the typeset document.)
@{b}texinfo.tex@{ub} contains the specifications for printing a document.

  Most often, documents are printed on 8.5 inch by 11 inch pages (216mm
by 280mm; this is the default size), but you can also print for 7 inch
by 9.25 inch pages (178mm by 235mm; the @{b} @smallbook@{ub} size) or on
European A4 size paper (@{b} @afourpaper@{ub}).  (See @{"Printing "Small" Books" Link "smallbook"}.
Also, see See @{"Printing on A4 Paper" Link "A4 Paper"}.)

  By changing the parameters in @{b}texinfo.tex@{ub}, you can change the size of
the printed document.  In addition, you can change the style in which
the printed document is formatted; for example, you can change the
sizes and fonts used, the amount of indentation for each paragraph, the
degree to which words are hyphenated, and the like.  By changing the
specifications, you can make a book look dignified, old and serious, or
light-hearted, young and cheery.

  TeX is freely distributable.  It is written in a dialect of Pascal
called WEB and can be compiled either in Pascal or (by using a
conversion program that comes with the TeX distribution) in C.  (See
@{"TeX Mode" Link "emacs/TeX Mode"}, for information about TeX.)

  TeX is very powerful and has a great many features.  Because a
Texinfo file must be able to present information both on a
character-only terminal in Info form and in a typeset book, the
formatting commands that Texinfo supports are necessarily limited.

  See @{"How to Obtain TeX" Link "Obtaining TeX"}.


@EndNode

@Node "Printed Books-Footnotes" "texinfo.guide/Printed Books-Footnotes"
@Toc "Printed Books"

  (1)  You can also use the @{b}texi2roff@{ub} program if you do not have TeX;
since Texinfo is designed for use with TeX, @{b}texi2roff@{ub} is not described
here.  @{b}texi2roff@{ub} is part of the standard GNU distribution.


@EndNode

@Node "Formatting Commands" "texinfo.guide/Formatting Commands"
@Next "Conventions"
@Prev "Printed Books"
@Toc "Overview"

@-commands
==========

  In a Texinfo file, the commands that tell TeX how to typeset the
printed manual and tell @{b}makeinfo@{ub} and @{b}texinfo-format-buffer@{ub} how to
create an Info file are preceded by @{b} @@{ub}; they are called @{i} @-commands@{ui}.
For example, @{b} @node@{ub} is the command to indicate a node and @{b} @chapter@{ub} is
the command to indicate the start of a chapter.

     @{i}Please note:@{ui} All the @-commands, with the exception of the @{b} @TeX{}@{ub}
     command, must be written entirely in lower case.

  The Texinfo @-commands are a strictly limited set of constructs.  The
strict limits make it possible for Texinfo files to be understood both
by TeX and by the code that converts them into Info files.  You can
display Info files on any terminal that displays alphabetic and numeric
characters.  Similarly, you can print the output generated by TeX on a
wide variety of printers.

  Depending on what they do or what
arguments(1)@{"Formatting Commands-Footnotes" Link "Formatting Commands-Footnotes"}
they take, you need to write @-commands on lines of their own or as
part of sentences:

   @{b}*@{ub} Write a command such as @{b} @noindent@{ub} at the beginning of a line as
     the only text on the line.  (@{b} @noindent@{ub} prevents the beginning of
     the next line from being indented as the beginning of a paragraph.)

   @{b}*@{ub} Write a command such as @{b} @chapter@{ub} at the beginning of a line
     followed by the command's arguments, in this case the chapter
     title, on the rest of the line.  (@{b} @chapter@{ub} creates chapter
     titles.)

   @{b}*@{ub} Write a command such as @{b} @dots{}@{ub} wherever you wish but usually
     within a sentence. (@{b} @dots{}@{ub} creates dots ...)

   @{b}*@{ub} Write a command such as @{b} @code{SAMPLE-CODE}@{ub} wherever you wish (but
     usually within a sentence) with its argument, SAMPLE-CODE in this
     example, between the braces.  (@{b} @code@{ub} marks text as being code.)

   @{b}*@{ub} Write a command such as @{b} @example@{ub} at the beginning of a line of
     its own; write the body-text on following lines; and write the
     matching @{b} @end@{ub} command, @{b} @end example@{ub} in this case, at the
     beginning of a line of its own after the body-text. (@{b} @example@{ub} ...
     @{b} @end example@{ub} indents and typesets body-text as an example.)

As a general rule, a command requires braces if it mingles among other
text; but it does not need braces if it starts a line of its own.  The
non-alphabetic commands, such as @{b} @:@{ub}, are exceptions to the rule; they
do not need braces.

  As you gain experience with Texinfo, you will rapidly learn how to
write the different commands: the different ways to write commands make
it easier to write and read Texinfo files than if all commands followed
exactly the same syntax.  (For details about @-command syntax, see See
@{"@-Command Syntax" Link "Command Syntax"}.)


@EndNode

@Node "Formatting Commands-Footnotes" "texinfo.guide/Formatting Commands-Footnotes"
@Toc "Formatting Commands"

  (1)  The word @{i}argument@{ui} comes from the way it is used in mathematics
and does not refer to a disputation between two people; it refers to the
information presented to the command.  According to the `Oxford English
Dictionary', the word derives from the Latin for @{i}to make clear, prove@{ui};
thus it came to mean `the evidence offered as proof', which is to say,
`the information offered', which led to its mathematical meaning.  In
its other thread of derivation, the word came to mean `to assert in a
manner against which others may make counter assertions', which led to
the meaning of `argument' as a disputation.


@EndNode

@Node "Conventions" "texinfo.guide/Conventions"
@Next "Comments"
@Prev "Formatting Commands"
@Toc "Overview"

General Syntactic Conventions
=============================

  All @{i}ascii@{ui} printing characters except @{b} @@{ub}, @{b}{@{ub} and @{b}}@{ub} can appear in a
Texinfo file and stand for themselves.  @{b} @@{ub} is the escape character
which introduces commands.  @{b}{@{ub} and @{b}}@{ub} should be used only to surround
arguments to certain commands.  To put one of these special characters
into the document, put an @{b} @@{ub} character in front of it, like this: @{b} @@@{ub}, @{b}
@{@{ub}, and @{b} @}@{ub}.

  It is customary in TeX to use doubled single-quote characters to
begin and end quotations: ` ` and ' ' (but without a space between the
two single-quote characters).  This convention should be followed in
Texinfo files.  TeX converts doubled single-quote characters to left-
and right-hand doubled quotation marks and Info converts doubled
single-quote characters to @{i}ascii@{ui} double-quotes: ` ` and ' ' to " .

  Use three hyphens in a row, @{b}---@{ub}, for a dash--like this.  In TeX, a
single or even a double hyphen produces a printed dash that is shorter
than the usual typeset dash. Info reduces three hyphens to two for
display on the screen.

  To prevent a paragraph from being indented in the printed manual, put
the command @{b} @noindent@{ub} on a line by itself before the paragraph.

  If you mark off a region of the Texinfo file with the @{b} @iftex@{ub} and
@{b} @end iftex@{ub} commands, that region will appear only in the printed
copy; in that region, you can use certain commands borrowed from
PlainTeX that you cannot use in Info.  Likewise, if you mark off a
region with the @{b} @ifinfo@{ub} and @{b} @end ifinfo@{ub} commands, that region will
appear only in the Info file; in that region, you can use Info commands
that you cannot use in TeX.  (See @{"Conditionals" Link "Conditionals"}.)

     @{i}Caution:@{ui} Do not use tabs in a Texinfo file!  TeX uses
     variable-width fonts, which means that it cannot predefine a tab
     to work in all circumstances.  Consequently, TeX treats tabs like
     single spaces, and that is not what they look like.

     To avoid this problem, Texinfo mode causes GNU Emacs to insert
     multiple spaces when you press the TAB key.

     Also, you can run @{b}untabify@{ub} in Emacs to convert tabs in a region to
     multiple spaces.


@EndNode

@Node "Comments" "texinfo.guide/Comments"
@Next "Minimum"
@Prev "Conventions"
@Toc "Overview"

Comments
========

  You can write comments in a Texinfo file that will not appear in
either the Info file or the printed manual by using the @{b} @comment@{ub}
command (which may be abbreviated to @{b} @c@{ub}).  Such comments are for the
person who reads the Texinfo file.  All the text on a line that follows
either @{b} @comment@{ub} or @{b} @c@{ub} is a comment; the rest of the line does not
appear in either the Info file or the printed manual. (Often, you can
write the @{b} @comment@{ub} or @{b} @c@{ub} in the middle of a line, and only the text
that follows after the @{b} @comment@{ub} or @{b} @c@{ub} command does not appear; but
some commands, such as @{b} @settitle@{ub} and @{b} @setfilename@{ub}, work on a whole
line.  You cannot use @{b} @comment@{ub} or @{b} @c@{ub} in a line beginning with such a
command.)

  You can write long stretches of text that will not appear in either
the Info file or the printed manual by using the @{b} @ignore@{ub} and @{b} @end
ignore@{ub} commands.  Write each of these commands on a line of its own,
starting each command at the beginning of the line.  Text between these
two commands does not appear in the processed output.  You can use @{b}
@ignore@{ub} and @{b} @end ignore@{ub} for writing comments.  Often, @{b} @ignore@{ub} and @{b}
@end ignore@{ub} is used to enclose a part of the copying permissions that
applies to the Texinfo source file of a document, but not to the Info
or printed version of the document.


@EndNode

@Node "Minimum" "texinfo.guide/Minimum"
@Next "Six Parts"
@Prev "Comments"
@Toc "Overview"

What a Texinfo File Must Have
=============================

  By convention, the names of Texinfo files end with one of the
extensions @{b}.texinfo@{ub}, @{b}.texi@{ub}, or @{b}.tex@{ub}.  The longer extension is preferred
since it describes more clearly to a human reader the nature of the
file.  The shorter extensions are for operating systems that cannot
handle long file names.

  In order to be made into a printed manual and an Info file, a Texinfo
file @{i}must@{ui} begin with lines like this:

     \input texinfo
     @setfilename INFO-FILE-NAME
     @settitle NAME-OF-MANUAL

The contents of the file follow this beginning, and then you @{i}must@{ui} end a
Texinfo file with a line like this:

     @bye

The @{b}\input texinfo@{ub} line tells TeX to use the @{b}texinfo.tex@{ub} file, which
tells TeX how to translate the Texinfo @-commands into TeX typesetting
commands.  (Note the use of the backslash, @{b}\ @{ub}; this is correct for
TeX.)  The @{b} @setfilename@{ub} line provides a name for the Info file and the
@{b} @settitle@{ub} line specifies a title for the page headers (or footers)
of the printed manual.

  The @{b} @bye@{ub} line at the end of the file on a line of its own tells the
formatters that the file is ended and to stop formatting.

  Usually, you will not use quite such a spare format, but will include
mode setting and start-of-header and end-of-header lines at the
beginning of a Texinfo file, like this:

     \input texinfo   @c -*-texinfo-*-
     @c %**start of header
     @setfilename INFO-FILE-NAME
     @settitle NAME-OF-MANUAL
     @c %**end of header

In the first line, @{b}-*-texinfo-*-@{ub} causes Emacs to switch into Texinfo
mode when you edit the file.

  The @{b} @c@{ub} lines which surround the @{b} @setfilename@{ub} and @{b} @settitle@{ub} lines
are optional, but you need them in order to run TeX or Info on just
part of the file.  (See @{"Start of Header" Link "Start of Header"}, for more information.)

  Furthermore, you will usually provide a Texinfo file with a title
page, indices, and the like.  But the minimum, which can be useful for
short documents, is just the three lines at the beginning and the one
line at the end.


@EndNode

@Node "Six Parts" "texinfo.guide/Six Parts"
@Next "Short Sample"
@Prev "Minimum"
@Toc "Overview"

Six Parts of a Texinfo File
===========================

  Generally, a Texinfo file contains more than the minimal beginning
and end--it usually contains six parts:

1. Header
     The @{i}Header@{ui} names the file, tells TeX which definitions' file to
     use, and performs other "housekeeping" tasks.

2. Summary Description and Copyright
     The @{i}Summary Description and Copyright@{ui} segment describes the
     document and contains the copyright notice and copying permissions
     for the Info file.  The segment must be enclosed between @{b} @ifinfo@{ub}
     and @{b} @end ifinfo@{ub} commands so that the formatters place it only in
     the Info file.

3. Title and Copyright
     The @{i}Title and Copyright@{ui} segment contains the title and copyright
     pages and copying permissions for the printed manual.  The segment
     must be enclosed between @{b} @titlepage@{ub} and @{b} @end titlepage@{ub} commands.
     The title and copyright page appear only in the printed manual.

4. `Top' Node and Master Menu
     The @{i}Master Menu@{ui} contains a complete menu of all the nodes in the
     whole Info file.  It appears only in the Info file, in the `Top'
     node.

5. Body
     The @{i}Body@{ui} of the document may be structured like a traditional book
     or encyclopedia or it may be free form.

6. End
     The @{i}End@{ui} contains commands for printing indices and generating the
     table of contents, and the @{b} @bye@{ub} command on a line of its own.


@EndNode

@Node "Short Sample" "texinfo.guide/Short Sample"
@Next "Acknowledgements"
@Prev "Six Parts"
@Toc "Overview"

A Short Sample Texinfo File
===========================

  Here is a complete but very short Texinfo file, in 6 parts.  The first
three parts of the file, from @{b}\input texinfo@{ub} through to @{b} @end
titlepage@{ub}, look more intimidating than they are.  Most of the
material is standard boilerplate; when you write a manual, simply
insert the names for your own manual in this segment. (See
@{"Beginning a File" Link "Beginning a File"}.)

In the following, the sample text is @{i}indented@{ui}; comments on it are not.
The complete file, without any comments, is shown in See
@{"Sample Texinfo File" Link "Sample Texinfo File"}.

Part 1: Header
--------------

The header does not appear in either the Info file or the
printed output.  It sets various parameters, including the
name of the Info file and the title used in the header.

     \input texinfo   @c -*-texinfo-*-
     @c %**start of header
     @setfilename sample.info
     @settitle Sample Document
     @c %**end of header
     
     @setchapternewpage odd

Part 2: Summary Description and Copyright
-----------------------------------------

The summary description and copyright segment does not
appear in the printed document.

     @ifinfo
     This is a short example of a complete Texinfo file.
     
     Copyright @copyright{} 1990 Free Software Foundation, Inc.
     @end ifinfo

Part 3: Titlepage and Copyright
-------------------------------

The titlepage segment does not appear in the Info file.

     @titlepage
     @sp 10
     @comment The title is printed in a large font.
     @center @titlefont{Sample Title}
     
     @c The following two commands start the copyright page.
     @page
     @vskip 0pt plus 1filll
     Copyright @copyright{} 1990 Free Software Foundation, Inc.
     @end titlepage

Part 4: `Top' Node and Master Menu
----------------------------------

The `Top' node contains the master menu for the Info file.
Since a printed manual uses a table of contents rather than
a menu, the master menu appears only in the Info file.

     @node    Top,       First Chapter, (dir),    (dir)
     @comment node-name, next,          previous, up

     @menu
     * First Chapter::    The first chapter is the
                          only chapter in this sample.
     * Concept Index::    This index has two entries.
     @end menu

Part 5:  The Body of the Document
---------------------------------

The body segment contains all the text of the document, but not the
indices or table of contents.  This example illustrates a node and a
chapter containing an enumerated list.

     @node    First Chapter, Concept Index, Top,      Top
     @comment node-name,     next,          previous, up
     @chapter First Chapter
     @cindex Sample index entry
     
     This is the contents of the first chapter.
     @cindex Another sample index entry
     
     Here is a numbered list.
     
     @enumerate
     @item
     This is the first item.
     
     @item
     This is the second item.
     @end enumerate
     
     The @code{makeinfo} and @code{texinfo-format-buffer}
     commands transform a Texinfo file such as this into
     an Info file; and @TeX{} typesets it for a printed
     manual.

Part 6: The End of the Document
-------------------------------

The end segment contains commands both for generating an index in a node
and unnumbered chapter of its own and for generating the table of
contents; and it contains the @{b} @bye@{ub} command that marks the end of the
document.

     @node    Concept Index,    ,  First Chapter, Top
     @comment node-name,    next,  previous,      up
     @unnumbered Concept Index
     
     @printindex cp
     
     @contents
     @bye

The Results
-----------

  Here is what the contents of the first chapter of the sample look
like:

     This is the contents of the first chapter.

     Here is a numbered list.

       1. This is the first item.

       2. This is the second item.

     The @{b}makeinfo@{ub} and @{b}texinfo-format-buffer@{ub} commands transform a
     Texinfo file such as this into an Info file; and TeX typesets it
     for a printed manual.


@EndNode

@Node "Acknowledgements" "texinfo.guide/Acknowledgements"
@Prev "Short Sample"
@Toc "Overview"

Acknowledgements
================

  Richard M. Stallman wrote Edition 1.0 of this manual.
Robert J. Chassell revised and extended it, starting with Edition 1.1.

  Our thanks go out to all who helped improve this work, particularly to
Francois Pinard and David D. Zuhn, who tirelessly recorded and reported
mistakes and obscurities; our special thanks go to Melissa Weisshaus
for her frequent and often tedious reviews of nearly similar editions.
Our mistakes are our own.

  Please send suggestions and corrections to:

     Internet address:
         bug-texinfo@prep.ai.mit.edu

Please include the manual's edition number in your messages.


@EndNode

@Node "Texinfo Mode" "texinfo.guide/Texinfo Mode"
@Next "Beginning a File"
@Prev "Overview"
@Toc "Main"

Using Texinfo Mode
******************

  You may edit a Texinfo file with any text editor you choose.  A
Texinfo file is no different from any other @{i}ascii@{ui} file.  However, GNU
Emacs comes with a special mode, called Texinfo mode, that provides
Emacs commands and tools to help ease your work.

  This chapter describes features of GNU Emacs' Texinfo mode but not any
features of the Texinfo formatting language.  If you are reading this
manual straight through from the beginning, you may want to skim through
this chapter briefly and come back to it after reading succeeding
chapters which describe the Texinfo formatting language in detail.


 @{" Texinfo Mode Overview     " Link "Texinfo Mode Overview"}  How Texinfo mode can help you.
 @{" Emacs Editing             " Link "Emacs Editing"}  Texinfo mode adds to GNU Emacs' general
                                  purpose editing features.
 @{" Inserting                 " Link "Inserting"}  How to insert frequently used @-commands.
 @{" Showing the Structure     " Link "Showing the Structure"}  How to show the structure of a file.
 @{" Updating Nodes and Menus  " Link "Updating Nodes and Menus"}  How to update or create new nodes and menus.
 @{" Info Formatting           " Link "Info Formatting"}  How to format for Info.
 @{" Printing                  " Link "Printing"}  How to format and print part or all of a file.
 @{" Texinfo Mode Summary      " Link "Texinfo Mode Summary"}  Summary of all the Texinfo mode commands.


@EndNode

@Node "Texinfo Mode Overview" "texinfo.guide/Texinfo Mode Overview"
@Next "Emacs Editing"
@Prev "Texinfo Mode"
@Toc "Texinfo Mode"

Texinfo Mode Overview
=====================

  Texinfo mode provides special features for working with Texinfo files:

   @{b}*@{ub} Insert frequently used @-commands.

   @{b}*@{ub} Automatically create @{b} @node@{ub} lines.

   @{b}*@{ub} Show the structure of a Texinfo source file.

   @{b}*@{ub} Automatically create or update the `Next',
     `Previous', and `Up' pointers of a node.

   @{b}*@{ub} Automatically create or update menus.

   @{b}*@{ub} Automatically create a master menu.

   @{b}*@{ub} Format a part or all of a file for Info.

   @{b}*@{ub} Typeset and print part or all of a file.

  Perhaps the two most helpful features are those for inserting
frequently used @-commands and for creating node pointers and menus.


@EndNode

@Node "Emacs Editing" "texinfo.guide/Emacs Editing"
@Next "Inserting"
@Prev "Texinfo Mode Overview"
@Toc "Texinfo Mode"

The Usual GNU Emacs Editing Commands
====================================

  In most cases, the usual Text mode commands work the same in Texinfo
mode as they do in Text mode.  Texinfo mode adds new editing commands
and tools to GNU Emacs' general purpose editing features.  The major
difference concerns filling.  In Texinfo mode, the paragraph separation
variable and syntax table are redefined so that Texinfo commands that
should be on lines of their own are not inadvertently included in
paragraphs.  Thus, the @{b}M-q@{ub} (@{b}fill-paragraph@{ub}) command will refill a
paragraph but not mix an indexing command on a line adjacent to it into
the paragraph.

  In addition, Texinfo mode sets the @{b}page-delimiter@{ub} variable to the
value of @{b}texinfo-chapter-level-regexp@{ub}; by default, this is a regular
expression matching the commands for chapters and their equivalents,
such as appendices.  With this value for the page delimiter, you can
jump from chapter title to chapter title with the @{b}C-x ]@{ub} (@{b}forward-page@{ub})
and @{b}C-x [@{ub} (@{b}backward-page@{ub}) commands and narrow to a chapter with the @{b}C-x
p@{ub} (@{b}narrow-to-page@{ub}) command.  (See @{"Pages" Link "emacs/Pages"}, for details about the page
commands.)

  You may name a Texinfo file however you wish, but the convention is to
end a Texinfo file name with one of the three extensions @{b}.texinfo@{ub},
@{b}.texi@{ub}, or @{b}.tex@{ub}.  A longer extension is preferred, since it is
explicit, but a shorter extension may be necessary for operating
systems that limit the length of file names.  GNU Emacs automatically
enters Texinfo mode when you visit a file with a @{b}.texinfo@{ub} or  @{b}.texi@{ub}
extension.  Also, Emacs switches to Texinfo mode when you visit a file
that has @{b}-*-texinfo-*-@{ub} in its first line.  If ever you are in another
mode and wish to switch to Texinfo mode, type @{b}M-x texinfo-mode@{ub}.

  Like all other Emacs features, you can customize or enhance Texinfo
mode as you wish.  In particular, the keybindings are very easy to
change.  The keybindings described here are the default or standard
ones.


@EndNode

@Node "Inserting" "texinfo.guide/Inserting"
@Next "Showing the Structure"
@Prev "Emacs Editing"
@Toc "Texinfo Mode"

Inserting Frequently Used Commands
==================================

  Texinfo mode provides commands to insert various frequently used
@-commands into the buffer.  You can use these commands to save
keystrokes.

  The insert commands are invoked by typing @{b}C-c@{ub} twice and then the
first letter of the @-command:

@{b}C-c C-c c@{ub}
@{b}M-x texinfo-insert-@code@{ub}
     Insert @{b} @code{}@{ub} and put the cursor between the braces.

@{b}C-c C-c d@{ub}
@{b}M-x texinfo-insert-@dfn@{ub}
     Insert @{b} @dfn{}@{ub} and put the cursor between the braces.

@{b}C-c C-c e@{ub}
@{b}M-x texinfo-insert-@end@{ub}
     Insert @{b} @end@{ub} and attempt to insert the correct following word,
     such as @{b}example@{ub} or @{b}table@{ub}.  (This command does not handle nested
     lists correctly, but inserts the word appropriate to the
     immediately preceding list.)

@{b}C-c C-c i@{ub}
@{b}M-x texinfo-insert-@item@{ub}
     Insert @{b} @item@{ub} and put the cursor at the beginning of the next line.

@{b}C-c C-c k@{ub}
@{b}M-x texinfo-insert-@kbd@{ub}
     Insert @{b} @kbd{}@{ub} and put the cursor between the braces.

@{b}C-c C-c n@{ub}
@{b}M-x texinfo-insert-@node@{ub}
     Insert @{b} @node@{ub} and a comment line listing the sequence for the
     `Next', `Previous', and `Up' nodes.  Leave point after the @{b} @node@{ub}.

@{b}C-c C-c o@{ub}
@{b}M-x texinfo-insert-@noindent@{ub}
     Insert @{b} @noindent@{ub} and put the cursor at the beginning of the next
     line.

@{b}C-c C-c s@{ub}
@{b}M-x texinfo-insert-@samp@{ub}
     Insert @{b} @samp{}@{ub} and put the cursor between the braces.

@{b}C-c C-c t@{ub}
@{b}M-x texinfo-insert-@table@{ub}
     Insert @{b} @table@{ub} followed by a SPC and leave the cursor after the
     SPC.

@{b}C-c C-c v@{ub}
@{b}M-x texinfo-insert-@var@{ub}
     Insert @{b} @var{}@{ub} and put the cursor between the braces.

@{b}C-c C-c x@{ub}
@{b}M-x texinfo-insert-@example@{ub}
     Insert @{b} @example@{ub} and put the cursor at the beginning of the next
     line.

@{b}C-c C-c {@{ub}
@{b}M-x texinfo-insert-braces@{ub}
     Insert @{b}{}@{ub} and put the cursor between the braces.

@{b}C-c C-c }@{ub}
@{b}C-c C-c ]@{ub}
@{b}M-x up-list@{ub}
     Move from between a pair of braces forward past the closing brace.
     Typing @{b}C-c C-c ]@{ub} is easier than typing @{b}C-c C-c }@{ub}, which is,
     however, more mnemonic; hence the two keybindings.  (Also, you can
     move out from between braces by typing @{b}C-f@{ub}.)

  To put a command such as @{b} @code{...}@{ub} around an @{i}existing@{ui} word,
position the cursor in front of the word and type @{b}C-u 1 C-c C-c c@{ub}.
This makes it easy to edit existing plain text.  The value of the
prefix argument tells Emacs how many words following point to include
between braces--1 for one word, 2 for two words, and so on.  Use a
negative argument to enclose the previous word or words.  If you do not
specify a prefix argument, Emacs inserts the @-command string and
positions the cursor between the braces.  This feature works only for
those @-commands that operate on a word or words within one line, such
as @{b} @kbd@{ub} and @{b} @var@{ub}.

  This set of insert commands was created after analyzing the frequency
with which different @-commands are used in the `GNU Emacs Manual' and
the `GDB Manual'.  If you wish to add your own insert commands, you can
bind a keyboard macro to a key, use abbreviations, or extend the code
in @{b}texinfo.el@{ub}.

  @{b}C-c C-c C-d@{ub} (@{b}texinfo-start-menu-description@{ub}) is an insert command
that works differently from the other insert commands.  It inserts a
node's section or chapter title in the space for the description in a
menu entry line.  (A menu entry has three parts, the entry name, the
node name, and the description.  Only the node name is required, but a
description helps explain what the node is about.  See
@{"The Parts of a Menu" Link "Menu Parts"}.)

  To use @{b}texinfo-start-menu-description@{ub}, position point in a menu entry
line and type @{b}C-c C-c C-d@{ub}.  The command looks for and copies the title
that goes with the node name, and inserts the title as a description;
it positions point at beginning of the inserted text so you can edit
it.  The function does not insert the title if the menu entry line
already contains a description.

  This command is only an aid to writing descriptions; it does not do
the whole job.  You must edit the inserted text since a title tends to
use the same words as a node name but a useful description uses
different words.


@EndNode

@Node "Showing the Structure" "texinfo.guide/Showing the Structure"
@Next "Updating Nodes and Menus"
@Prev "Inserting"
@Toc "Texinfo Mode"

Showing the Section Structure of a File
=======================================

  You can show the section structure of a Texinfo file by using the @{b}C-c
C-s@{ub} command (@{b}texinfo-show-structure@{ub}).  This command shows the section
structure of a Texinfo file by listing the lines that begin with the
@-commands for @{b} @chapter@{ub}, @{b} @section@{ub}, and the like.  It constructs what
amounts to a table of contents.  These lines are displayed in another
buffer called the @{b}*Occur*@{ub} buffer.  In that buffer, you can position the
cursor over one of the lines and use the @{b}C-c C-c@{ub} command
(@{b}occur-mode-goto-occurrence@{ub}), to jump to the corresponding spot in
the Texinfo file.

@{b}C-c C-s@{ub}
@{b}M-x texinfo-show-structure@{ub}
     Show the @{b} @chapter@{ub}, @{b} @section@{ub}, and such lines of a Texinfo file.

@{b}C-c C-c@{ub}
@{b}M-x occur-mode-goto-occurrence@{ub}
     Go to the line in the Texinfo file corresponding to the line under
     the cursor in the @{b}*Occur*@{ub} buffer.

  If you call @{b}texinfo-show-structure@{ub} with a prefix argument by typing
@{b}C-u C-c C-s@{ub}, it will list not only those lines with the @-commands
for @{b} @chapter@{ub}, @{b} @section@{ub}, and the like, but also the @{b} @node@{ub} lines.
(This is how the @{b}texinfo-show-structure@{ub} command worked without an
argument in the first version of Texinfo.  It was changed because @{b} @node@{ub}
lines clutter up the @{b}*Occur*@{ub} buffer and are usually not needed.)  You
can use @{b}texinfo-show-structure@{ub} with a prefix argument to check whether
the `Next', `Previous', and `Up' pointers of an @{b} @node@{ub} line are correct.

  Often, when you are working on a manual, you will be interested only
in the structure of the current chapter.  In this case, you can mark
off the region of the buffer that you are interested in by using the
@{b}C-x n n@{ub} (@{b}narrow-to-region@{ub}) command and @{b}texinfo-show-structure@{ub} will
work on only that region.  To see the whole buffer again, use @{b}C-x n w@{ub}
(@{b}widen@{ub}).  (See @{"Narrowing" Link "emacs/Narrowing"}, for more information about the narrowing
commands.)

  In addition to providing the @{b}texinfo-show-structure@{ub} command, Texinfo
mode sets the value of the page delimiter variable to match the
chapter-level @-commands.  This enables you to use the @{b}C-x ]@{ub}
(@{b}forward-page@{ub}) and @{b}C-x [@{ub} (@{b}backward-page@{ub}) commands to move forward
and backward by chapter, and to use the @{b}C-x p@{ub} (@{b}narrow-to-page@{ub}) command
to narrow to a chapter.  See @{"Pages" Link "emacs/Pages"}, for more information about the page
commands.


@EndNode

@Node "Updating Nodes and Menus" "texinfo.guide/Updating Nodes and Menus"
@Next "Info Formatting"
@Prev "Showing the Structure"
@Toc "Texinfo Mode"

Updating Nodes and Menus
========================

  Texinfo mode provides commands for automatically creating or updating
menus and node pointers.  The commands are called "update" commands
because their most frequent use is for updating a Texinfo file after
you have worked on it; but you can use them to insert the `Next',
`Previous', and `Up' pointers into an @{b} @node@{ub} line that has none and to
create menus in a file that has none.

  If you do not use the updating commands, you need to write menus and
node pointers by hand, which is a tedious task.


 @{" Updating Commands         " Link "Updating Commands"}  Five major updating commands.
 @{" Updating Requirements     " Link "Updating Requirements"}  How to structure a Texinfo file for
                                  using the updating command.
 @{" Other Updating Commands   " Link "Other Updating Commands"}  How to indent descriptions, insert
                                  missing nodes lines, and update
                                  nodes in sequence.


@EndNode

@Node "Updating Commands" "texinfo.guide/Updating Commands"
@Next "Updating Requirements"
@Prev "Updating Nodes and Menus"
@Toc "Updating Nodes and Menus"

The Updating Commands
---------------------

  You can use the updating commands

   @{b}*@{ub} to insert or update the `Next', `Previous', and `Up' pointers of a
     node,

   @{b}*@{ub} to insert or update the menu for a section, and

   @{b}*@{ub} to create a master menu for a Texinfo source file.

  You can also use the commands to update all the nodes and menus in a
region or in a whole Texinfo file.

  The updating commands work only with conventional Texinfo files, which
are structured hierarchically like books.  In such files, a structuring
command line must follow closely after each @{b} @node@{ub} line, except for the
`Top' @{b} @node@{ub} line.  (A @{i}structuring command line@{ui} is a line beginning
with @{b} @chapter@{ub}, @{b} @section@{ub}, or other similar command.)

  You can write the structuring command line on the line that follows
immediately after an @{b} @node@{ub} line or else on the line that follows after
a single @{b} @comment@{ub} line or a single @{b} @ifinfo@{ub} line.  You cannot
interpose more than one line between the @{b} @node@{ub} line and the
structuring command line; and you may interpose only an @{b} @comment@{ub} line
or an @{b} @ifinfo@{ub} line.

  Commands which work on a whole buffer require that the `Top' node be
followed by a node with an @{b} @chapter@{ub} or equivalent-level command.  Note
that the menu updating commands will not create a main or master menu
for a Texinfo file that has only @{b} @chapter@{ub}-level nodes!  The menu
updating commands only create menus @{i}within@{ui} nodes for lower level nodes.
To create a menu of chapters, you must provide a `Top' node.

  The menu updating commands remove menu entries that refer to other
Info files since they do not refer to nodes within the current buffer.
This is a deficiency.  Rather than use menu entries, you can use cross
references to refer to other Info files.  None of the updating commands
affect cross references.

  Texinfo mode has five updating commands that are used most often: two
are for updating the node pointers or menu of a single node (or a
region); two are for updating every node pointer and menu in a file;
and one, the @{b}texinfo-master-menu@{ub} command, is for creating a master menu
for a complete file, and optionally, for updating every node and menu
in the whole Texinfo file.

  The @{b}texinfo-master-menu@{ub} command is the primary command:

@{b}C-c C-u m@{ub}
@{b}M-x texinfo-master-menu@{ub}
     Create or update a master menu that includes all the other menus
     (incorporating the descriptions from pre-existing menus, if any).

     With an argument (prefix argument, @{b}C-u,@{ub} if interactive), first
     create or update all the nodes and all the regular menus in the
     buffer before constructing the master menu.  (See
     @{"The Top Node and Master Menu" Link "The Top Node"}, for more about a master menu.)

     For @{b}texinfo-master-menu@{ub} to work, the Texinfo file must have a
     `Top' node and at least one subsequent node.

     After extensively editing a Texinfo file, you can type the
     following:

          C-u M-x texinfo-master-menu
     or
          C-u C-c C-u m

     This updates all the nodes and menus completely and all at once.

  The other major updating commands do smaller jobs and are designed for
the person  who updates nodes and menus as he or she writes a Texinfo
file.

  The commands are:

@{b}C-c C-u C-n@{ub}
@{b}M-x texinfo-update-node@{ub}
     Insert the `Next', `Previous', and `Up' pointers for the node that
     point is within (i.e., for the @{b} @node@{ub} line preceding point).  If
     the @{b} @node@{ub} line has pre-existing `Next', `Previous', or `Up'
     pointers in it, the old pointers are removed and new ones inserted.
     With an argument (prefix argument, @{b}C-u@{ub}, if interactive), this
     command updates all @{b} @node@{ub} lines in the region (which is the text
     between point and mark).

@{b}C-c C-u C-m@{ub}
@{b}M-x texinfo-make-menu@{ub}
     Create or update the menu in the node that point is within.  With
     an argument (@{b}C-u@{ub} as prefix argument, if interactive), the command
     makes or updates menus for the nodes which are either within or a
     part of the region.

     Whenever @{b}texinfo-make-menu@{ub} updates an existing menu, the
     descriptions from that menu are incorporated into the new menu.
     This is done by copying descriptions from the existing menu to the
     entries in the new menu that have the same node names.  If the
     node names are different, the descriptions are not copied to the
     new menu.

@{b}C-c C-u C-e@{ub}
@{b}M-x texinfo-every-node-update@{ub}
     Insert or update the `Next', `Previous', and `Up' pointers for
     every node in the buffer.

@{b}C-c C-u C-a@{ub}
@{b}M-x texinfo-all-menus-update@{ub}
     Create or update all the menus in the buffer.  With an argument
     (@{b}C-u@{ub} as prefix argument, if interactive), first insert or
     update all the node pointers before working on the menus.

     If a master menu exists, the @{b}texinfo-all-menus-update@{ub} command
     updates it; but the command does not create a new master menu if
     none already exists.  (Use the @{b}texinfo-master-menu@{ub} command for
     that.)

     When working on a document that does not merit a master menu, you
     can type the following:

          C-u C-c C-u C-a
     or
          C-u M-x texinfo-all-menus-update

     This updates all the nodes and menus.

  The @{b}texinfo-column-for-description@{ub} variable specifies the column to
which menu descriptions are indented.  By default, the value is 32
although it is often useful to reduce it to as low as 24.  You can set
the variable with the @{b}M-x edit-options@{ub} command (see
@{"Editing Variable Values" Link "emacs/Edit Options"}) or with the @{b}M-x set-variable@{ub} command (see
@{"Examining and Setting Variables" Link "emacs/Examining"}).

  Also, the @{b}texinfo-indent-menu-description@{ub} command may be used to
indent existing menu descriptions to a specified column.  Finally, if
you wish, you can use the @{b}texinfo-insert-node-lines@{ub} command to insert
missing @{b} @node@{ub} lines into a file.  (See @{"Other Updating Commands" Link "Other Updating Commands"}, for
more information.)


@EndNode

@Node "Updating Requirements" "texinfo.guide/Updating Requirements"
@Next "Other Updating Commands"
@Prev "Updating Commands"
@Toc "Updating Nodes and Menus"

Updating Requirements
---------------------

  To use the updating commands, you must organize the Texinfo file
hierarchically with chapters, sections, subsections, and the like.
When you construct the hierarchy of the manual, do not `jump down' more
than one level at a time: you can follow the `Top' node with a chapter,
but not with a section; you can follow a chapter with a section, but
not with a subsection.  However, you may `jump up' any number of levels
at one time--for example, from a subsection to a chapter.

  Each @{b} @node@{ub} line, with the exception of the line for the `Top' node,
must be followed by a line with a structuring command such as @{b}
@chapter@{ub}, @{b} @section@{ub}, or @{b} @unnumberedsubsec@{ub}.

  Each @{b} @node@{ub} line/structuring-command line combination must look
either like this:

     @node     Comments,  Minimum, Conventions, Overview
     @comment  node-name, next,    previous,    up
     @section Comments

  or like this (without the @{b} @comment@{ub} line):

     @node Comments, Minimum, Conventions, Overview
     @section Comments

In this example, `Comments' is the name of both the node and the
section.  The next node is called `Minimum' and the previous node is
called `Conventions'.  The `Comments' section is within the `Overview'
node, which is specified by the `Up' pointer.  (Instead of an @{b} @comment@{ub}
line, you can write an @{b} @ifinfo@{ub} line.)

  If a file has a `Top' node, it must be called @{b}top@{ub} or @{b}Top@{ub} and be the
first node in the file.

  The menu updating commands create a menu of sections within a chapter,
a menu of subsections within a section, and so on.  This means that you
must have a `Top' node if you want a menu of chapters.

  Incidentally, the @{b}makeinfo@{ub} command will create an Info file for a
hierarchically organized Texinfo file that lacks `Next', `Previous' and
`Up' pointers.  Thus, if you can be sure that your Texinfo file will be
formatted with @{b}makeinfo@{ub}, you have no need for the `update node'
commands.  (See @{"Creating an Info File" Link "Create an Info File"}, for more information about
@{b}makeinfo@{ub}.)  However, both @{b}makeinfo@{ub} and the @{b}texinfo-format-...@{ub}
commands require that you insert menus in the file.


@EndNode

@Node "Other Updating Commands" "texinfo.guide/Other Updating Commands"
@Prev "Updating Requirements"
@Toc "Updating Nodes and Menus"

Other Updating Commands
-----------------------

  In addition to the five major updating commands, Texinfo mode
possesses several less frequently used updating commands:

@{b}M-x texinfo-insert-node-lines@{ub}
     Insert @{b} @node@{ub} lines before the @{b} @chapter@{ub}, @{b} @section@{ub}, and other
     sectioning commands wherever they are missing throughout a region
     in a Texinfo file.

     With an argument (@{b}C-u@{ub} as prefix argument, if interactive), the
     @{b}texinfo-insert-node-lines@{ub} command not only inserts @{b} @node@{ub}
     lines but also inserts the chapter or section titles as the names
     of the corresponding nodes.  In addition, it inserts the titles as
     node names in pre-existing @{b} @node@{ub} lines that lack names.  Since
     node names should be more concise than section or chapter titles,
     you must manually edit node names so inserted.

     For example, the following marks a whole buffer as a region and
     inserts @{b} @node@{ub} lines and titles throughout:

          C-x h C-u M-x texinfo-insert-node-lines

     (Note that this command inserts titles as node names in @{b} @node@{ub}
     lines; the @{b}texinfo-start-menu-description@{ub} command (see
     @{"Inserting Frequently Used Commands" Link "Inserting"}) inserts titles as descriptions
     in menu entries, a different action.  However, in both cases, you
     need to edit the inserted text.)

@{b}M-x texinfo-multiple-files-update@{ub}
     Update nodes and menus in a document built from several separate
     files.  With @{b}C-u@{ub} as a prefix argument, create and insert a master
     menu in the outer file.  With a numeric prefix argument, such as
     @{b}C-u 2@{ub}, first update all the menus and all the `Next',
     `Previous', and `Up' pointers of all the included files before
     creating and inserting a master menu in the outer file.  The
     @{b}texinfo-multiple-files-update@{ub} command is described in the
     appendix on @{b} @include@{ub} files.  See @{"texinfo-multiple-files-update" Link "texinfo-multiple-files-update"}.

@{b}M-x texinfo-indent-menu-description@{ub}
     Indent every description in the menu following point to the
     specified column.  You can use this command to give yourself more
     space for descriptions.  With an argument (@{b}C-u@{ub} as prefix argument,
     if interactive), the @{b}texinfo-indent-menu-description@{ub} command
     indents every description in every menu in the region.  However,
     this command does not indent the second and subsequent lines of a
     multi-line description.

@{b}M-x texinfo-sequential-node-update@{ub}
     Insert the names of the nodes immediately following and preceding
     the current node as the `Next' or `Previous' pointers regardless
     of those nodes' hierarchical level.  This means that the `Next'
     node of a subsection may well be the next chapter.  Sequentially
     ordered nodes are useful for novels and other documents that you
     read through sequentially.  (However, in Info, the @{b}g* RET@{ub} command
     lets you look through the file sequentially, so sequentially
     ordered nodes are not strictly necessary.)  With an argument
     (prefix argument, if interactive), the
     @{b}texinfo-sequential-node-update@{ub} command sequentially updates
     all the nodes in the region.


@EndNode

@Node "Info Formatting" "texinfo.guide/Info Formatting"
@Next "Printing"
@Prev "Updating Nodes and Menus"
@Toc "Texinfo Mode"

Formatting for Info
===================

  Texinfo mode provides several commands for formatting part or all of a
Texinfo file for Info.  Often, when you are writing a document, you
want to format only part of a file--that is, a region.

  You can use either the @{b}texinfo-format-region@{ub} or the @{b}makeinfo-region@{ub}
command to format a region:

@{b}C-c C-e C-r@{ub}
@{b}M-x texinfo-format-region@{ub}
@{b}C-c C-m C-r@{ub}
@{b}M-x makeinfo-region@{ub}
     Format the current region for Info.

  You can use either the @{b}texinfo-format-buffer@{ub} or the @{b}makeinfo-buffer@{ub}
command to format a whole buffer:

@{b}C-c C-e C-b@{ub}
@{b}M-x texinfo-format-buffer@{ub}
@{b}C-c C-m C-b@{ub}
@{b}M-x makeinfo-buffer@{ub}
     Format the current buffer for Info.

  For example, after writing a Texinfo file, you can type the following:

     C-u C-c C-u m
or
     C-u M-x texinfo-master-menu

This updates all the nodes and menus.  Then type the following to create
an Info file:

     C-c C-m C-b
or
     M-x makeinfo-buffer

  For the Info formatting commands to work, the file @{i}must@{ui} include a
line that has @{b} @setfilename@{ub} in its header.

  Not all systems support the @{b}makeinfo@{ub}-based formatting commands.

  See @{"Create an Info File" Link "Create an Info File"}, for details about Info formatting.


@EndNode

@Node "Printing" "texinfo.guide/Printing"
@Next "Texinfo Mode Summary"
@Prev "Info Formatting"
@Toc "Texinfo Mode"

Formatting and Printing
=======================

  Typesetting and printing a Texinfo file is a multi-step process in
which you first create a file for printing (called a @{i}dvi@{ui} file), and then
print the file.  Optionally, you may also create indices.  To do this,
you must run the @{b}texindex@{ub} command after first running the @{b}tex@{ub}
typesetting command; and then you must run the @{b}tex@{ub} command again.  Or
else run the @{b}texi2dvi@{ub} command which automatically creates indices as
needed.

  Often, when you are writing a document, you want to typeset and print
only part of a file to see what it will look like.  You can use the
@{b}texinfo-tex-region@{ub} and related commands for this purpose.  Use the
@{b}texinfo-tex-buffer@{ub} command to format all of a buffer.

@{b}C-c C-t C-b@{ub}
@{b}M-x texinfo-tex-buffer@{ub}
     Run @{b}texi2dvi@{ub} on the buffer.  In addition to running TeX on the
     buffer, this command automatically creates or updates indices as
     needed.

@{b}C-c C-t C-r@{ub}
@{b}M-x texinfo-tex-region@{ub}
     Run TeX on the region.

@{b}C-c C-t C-i@{ub}
@{b}M-x texinfo-texindex@{ub}
     Run @{b}texindex@{ub} to sort the indices of a Texinfo file formatted with
     @{b}texinfo-tex-region@{ub}.  The @{b}texinfo-tex-region@{ub} command does not
     run @{b}texindex@{ub} automatically; it only runs the @{b}tex@{ub} typesetting
     command.  You must run the @{b}texinfo-tex-region@{ub} command a second
     time after sorting the raw index files with the @{b}texindex@{ub} command.
     (Usually, you do not format an index when you format a region,
     only when you format a buffer.  Now that the @{b}texi2dvi@{ub} command
     exists, there is no little need for this command.)

@{b}C-c C-t C-p@{ub}
@{b}M-x texinfo-tex-print@{ub}
     Print the file (or the part of the file) previously formatted with
     @{b}texinfo-tex-buffer@{ub} or @{b}texinfo-tex-region@{ub}.

  For @{b}texinfo-tex-region@{ub} or @{b}texinfo-tex-buffer@{ub} to work, the file @{i}must@{ui}
start with a @{b}\input texinfo@{ub} line and must include an @{b} @settitle@{ub} line.
The file must end with @{b} @bye@{ub} on a line by itself.  (When you use
@{b}texinfo-tex-region@{ub}, you must surround the @{b} @settitle@{ub} line with
start-of-header and end-of-header lines.)

  See @{"Format-Print Hardcopy" Link "Format-Print Hardcopy"}, for a description of the other TeX related
commands, such as @{b}tex-show-print-queue@{ub}.


@EndNode

@Node "Texinfo Mode Summary" "texinfo.guide/Texinfo Mode Summary"
@Prev "Printing"
@Toc "Texinfo Mode"

Texinfo Mode Summary
====================

  In Texinfo mode, each set of commands has default keybindings that
begin with the same keys.  All the commands that are custom-created for
Texinfo mode begin with @{b}C-c@{ub}.  The keys are somewhat mnemonic.

Insert Commands
---------------

  The insert commands are invoked by typing @{b}C-c@{ub} twice and then the
first letter of the @-command to be inserted.  (It might make more
sense mnemonically to use @{b}C-c C-i@{ub}, for `custom insert', but @{b}C-c C-c@{ub} is
quick to type.)

     C-c C-c c       Insert @{b} @code@{ub}.
     C-c C-c d       Insert @{b} @dfn@{ub}.
     C-c C-c e       Insert @{b} @end@{ub}.
     C-c C-c i       Insert @{b} @item@{ub}.
     C-c C-c n       Insert @{b} @node@{ub}.
     C-c C-c s       Insert @{b} @samp@{ub}.
     C-c C-c v       Insert @{b} @var@{ub}.
     C-c C-c {       Insert braces.
     C-c C-c ]
     C-c C-c }       Move out of enclosing braces.
     
     C-c C-c C-d     Insert a node's section title
                     in the space for the description
                     in a menu entry line.

Show Structure
--------------

  The @{b}texinfo-show-structure@{ub} command is often used within a narrowed
region.

     C-c C-s         List all the headings.

The Master Update Command
-------------------------

  The @{b}texinfo-master-menu@{ub} command creates a master menu; and can be
used to update every node and menu in a file as well.

     C-c C-u m
     M-x texinfo-master-menu
                     Create or update a master menu.
     
     C-u C-c C-u m   With @{b}C-u@{ub} as a prefix argument, first
                     create or update all nodes and regular
                     menus, and then create a master menu.

Update Pointers
---------------

  The update pointer commands are invoked by typing @{b}C-c C-u@{ub} and then
either @{b}C-n@{ub} for @{b}texinfo-update-node@{ub} or @{b}C-e@{ub} for @{b}texinfo-every-node-update@{ub}.

     C-c C-u C-n     Update a node.
     C-c C-u C-e     Update every node in the buffer.

Update Menus
------------

  Invoke the  update menu commands by typing @{b}C-c C-u@{ub} and then either
@{b}C-m@{ub} for @{b}texinfo-make-menu@{ub} or @{b}C-a@{ub} for @{b}texinfo-all-menus-update@{ub}.
To update both nodes and menus at the same time, precede @{b}C-c C-u C-a@{ub}
with @{b}C-u@{ub}.

     C-c C-u C-m     Make or update a menu.
     
     C-c C-u C-a     Make or update all
                     menus in a buffer.
     
     C-u C-c C-u C-a With @{b}C-u@{ub} as a prefix argument,
                     first create or update all nodes and
                     then create or update all menus.

Format for Info
---------------

  The Info formatting commands that are written in Emacs Lisp are
invoked by typing @{b}C-c C-e@{ub} and then either @{b}C-r@{ub} for a region or @{b}C-b@{ub} for
the whole buffer.

  The Info formatting commands that are written in C and based on the
@{b}makeinfo@{ub} program are invoked by typing @{b}C-c C-m@{ub} and then either @{b}C-r@{ub}
for a region or @{b}C-b@{ub} for the whole buffer.

Use the @{b}texinfo-format...@{ub} commands:

     C-c C-e C-r     Format the region.
     C-c C-e C-b     Format the buffer.

Use @{b}makeinfo@{ub}:

     C-c C-m C-r     Format the region.
     C-c C-m C-b     Format the buffer.
     C-c C-m C-l     Recenter the @{b}makeinfo@{ub} output buffer.
     C-c C-m C-k     Kill the @{b}makeinfo@{ub} formatting job.

Typeset and Print
-----------------

  The TeX typesetting and printing commands are invoked by typing @{b}C-c
C-t@{ub} and then another control command: @{b}C-r@{ub} for @{b}texinfo-tex-region@{ub}, @{b}C-b@{ub}
for @{b}texinfo-tex-buffer@{ub}, and so on.

     C-c C-t C-r     Run TeX on the region.
     C-c C-t C-b     Run @{b}texi2dvi@{ub} on the buffer.
     C-c C-t C-i     Run @{b}texindex@{ub}.
     C-c C-t C-p     Print the @{i}dvi@{ui} file.
     C-c C-t C-q     Show the print queue.
     C-c C-t C-d     Delete a job from the print queue.
     C-c C-t C-k     Kill the current TeX formatting job.
     C-c C-t C-x     Quit a currently stopped TeX formatting job.
     C-c C-t C-l     Recenter the output buffer.

Other Updating Commands
-----------------------

  The `other updating commands' do not have standard keybindings because
they are rarely used.

     M-x texinfo-insert-node-lines
                     Insert missing @{b} @node@{ub} lines in region.
                     With @{b}C-u@{ub} as a prefix argument,
                     use section titles as node names.
     
     M-x texinfo-multiple-files-update
                     Update a multi-file document.
                     With @{b}C-u 2@{ub} as a prefix argument,
                     create or update all nodes and menus
                     in all included files first.
     
     M-x texinfo-indent-menu-description
                     Indent descriptions.
     
     M-x texinfo-sequential-node-update
                     Insert node pointers in strict sequence.


@EndNode

@Node "Beginning a File" "texinfo.guide/Beginning a File"
@Next "Ending a File"
@Prev "Texinfo Mode"
@Toc "Main"

Beginning a Texinfo File
************************

  Certain pieces of information must be provided at the beginning of a
Texinfo file, such as the name of the file and the title of the
document.


 @{" Four Parts                " Link "Four Parts"}  Four parts begin a Texinfo file.
 @{" Sample Beginning          " Link "Sample Beginning"}  Here is a sample beginning for a Texinfo file.
 @{" Header                    " Link "Header"}  The very beginning of a Texinfo file.
 @{" Info Summary and Permissions " Link "Info Summary and Permissions"}  Summary and copying permissions for Info.
 @{" Titlepage & Copyright Page " Link "Titlepage & Copyright Page"}  Creating the title and copyright pages.
 @{" The Top Node              " Link "The Top Node"}  Creating the `Top' node and master menu.
 @{" Software Copying Permissions " Link "Software Copying Permissions"}  Ensure that you and others continue to
                                  have the right to use and share software.


@EndNode

@Node "Four Parts" "texinfo.guide/Four Parts"
@Next "Sample Beginning"
@Prev "Beginning a File"
@Toc "Beginning a File"

Four Parts Begin a File
=======================

  Generally, the beginning of a Texinfo file has four parts:

  1. The header, delimited by special comment lines, that includes the
     commands for naming the Texinfo file and telling TeX what
     definitions' file to use when processing the Texinfo file.

  2. A short statement of what the file is about, with a copyright
     notice and copying permissions.  This is enclosed in @{b} @ifinfo@{ub} and @{b}
     @end ifinfo@{ub} commands so that the formatters place it only in the
     Info file.

  3. A title page and copyright page, with a copyright notice and
     copying permissions.  This is enclosed between @{b} @titlepage@{ub} and @{b}
     @end titlepage@{ub} commands.  The title and copyright page appear only
     in the printed manual.

  4. The `Top' node that contains a menu for the whole Info file.  The
     contents of this node appear only in the Info file.

  Also, optionally, you may include the copying conditions for a program
and a warranty disclaimer.  The copying section will be followed by an
introduction or else by the first chapter of the manual.

  Since the copyright notice and copying permissions for the Texinfo
document (in contrast to the copying permissions for a program) are in
parts that appear only in the Info file or only in the printed manual,
this information must be given twice.


@EndNode

@Node "Sample Beginning" "texinfo.guide/Sample Beginning"
@Next "Header"
@Prev "Four Parts"
@Toc "Beginning a File"

Sample Texinfo File Beginning
=============================

  The following sample shows what is needed.

     \input texinfo   @c -*-texinfo-*-
     @c %**start of header
     @setfilename NAME-OF-INFO-FILE
     @settitle NAME-OF-MANUAL
     @setchapternewpage odd
     @c %**end of header
     
     @ifinfo
     This file documents ...
     
     Copyright YEAR COPYRIGHT-OWNER
     
     Permission is granted to ...
     @end ifinfo
     
     @c  This title page illustrates only one of the
     @c  two methods of forming a title page.
     
     @titlepage
     @title NAME-OF-MANUAL-WHEN-PRINTED
     @subtitle SUBTITLE-IF-ANY
     @subtitle SECOND-SUBTITLE
     @author AUTHOR
     
     @c  The following two commands
     @c  start the copyright page.
     @page
     @vskip 0pt plus 1filll
     Copyright @copyright{} YEAR COPYRIGHT-OWNER
     
     Published by ...
     
     Permission is granted to ...
     @end titlepage
     
     @node Top, Overview, (dir), (dir)
     
     @ifinfo
     This document describes ...
     
     This document applies to version ...
     of the program named ...
     @end ifinfo
     
     @menu
     * Copying::          Your rights and freedoms.
     * First Chapter::    Getting started ...
     * Second Chapter::              ...
       ...
       ...
     @end menu
     
     @node    First Chapter, Second Chapter, top,      top
     @comment node-name,     next,           previous, up
     @chapter First Chapter
     @cindex Index entry for First Chapter


@EndNode

@Node "Header" "texinfo.guide/Header"
@Next "Info Summary and Permissions"
@Prev "Sample Beginning"
@Toc "Beginning a File"

The Texinfo File Header
=======================

  Texinfo files start with at least three lines that provide Info and
TeX with necessary information.  These are the @{b}\input texinfo@{ub} line, the
@{b} @settitle@{ub} line, and the @{b} @setfilename@{ub} line.  If you want to run
TeX on just a part of the Texinfo File, you must write the @{b} @settitle@{ub}
and @{b} @setfilename@{ub} lines between start-of-header and end-of-header lines.

  Thus, the beginning of a Texinfo file looks like this:

     \input texinfo   @c -*-texinfo-*-
     @setfilename sample.info
     @settitle Sample Document

or else like this:

     \input texinfo   @c -*-texinfo-*-
     @c %**start of header
     @setfilename sample.info
     @settitle Sample Document
     @c %**end of header


 @{" First Line                " Link "First Line"}  The first line of a Texinfo file.
 @{" Start of Header           " Link "Start of Header"}  Formatting a region requires this.
 @{" setfilename               " Link "setfilename"}  Tell Info the name of the Info file.
 @{" settitle                  " Link "settitle"}  Create a title for the printed work.
 @{" setchapternewpage         " Link "setchapternewpage"}  Start chapters on right-hand pages.
 @{" paragraphindent           " Link "paragraphindent"}  An option to specify paragraph indentation.
 @{" End of Header             " Link "End of Header"}  Formatting a region requires this.


@EndNode

@Node "First Line" "texinfo.guide/First Line"
@Next "Start of Header"
@Prev "Header"
@Toc "Header"

The First Line of a Texinfo File
--------------------------------

  Every Texinfo file that is to be the top-level input to TeX must begin
with a line that looks like this:

     \input texinfo   @c -*-texinfo-*-

This line serves two functions:

  1. When the file is processed by TeX, the @{b}\input texinfo@{ub} command
     tells TeX to load the macros needed for processing a Texinfo file.
     These are in a file called @{b}texinfo.tex@{ub}, which is usually located
     in the @{b}/usr/lib/tex/macros@{ub} directory.  TeX uses the backslash, @{b}\ @{ub},
     to mark the beginning of a command, just as Texinfo uses @{b} @@{ub}.  The
     @{b}texinfo.tex@{ub} file causes the switch from @{b}\ @{ub} to @{b} @@{ub}; before the
     switch occurs, TeX requires @{b}\ @{ub}, which is why it appears at the
     beginning of the file.

  2. When the file is edited in GNU Emacs, the @{b}-*-texinfo-*-@{ub} mode
     specification tells Emacs to use Texinfo mode.


@EndNode

@Node "Start of Header" "texinfo.guide/Start of Header"
@Next "setfilename"
@Prev "First Line"
@Toc "Header"

Start of Header
---------------

  Write a start-of-header line on the second line of a Texinfo file.
Follow the start-of-header line with @{b} @setfilename@{ub} and @{b} @settitle@{ub} lines
and, optionally, with other command lines, such as @{b} @smallbook@{ub} or @{b}
@footnotestyle@{ub}; and then by an end-of-header line (see @{"End of Header" Link "End of Header"}).

  With these lines, you can format part of a Texinfo file for Info or
typeset part for printing.

  A start-of-header line looks like this:

     @c %**start of header

  The odd string of characters, @{b}%**@{ub}, is to ensure that no other comment
is accidentally taken for a start-of-header line.


@EndNode

@Node "setfilename" "texinfo.guide/setfilename"
@Next "settitle"
@Prev "Start of Header"
@Toc "Header"

@{b} @setfilename@{ub}
-------------

  In order to be made into an Info file, a Texinfo file must contain a
line that looks like this:

     @setfilename INFO-FILE-NAME

  Write the @{b} @setfilename@{ub} command at the beginning of a line and follow
it on the same line by the Info file name.  Do not write anything else
on the line; anything on the line after the command is considered part
of the file name, including a comment.

  The @{b} @setfilename@{ub} line specifies the name of the Info file to be
generated.  This name should be different from the name of the Texinfo
file.  The convention is to write a name with a @{b}.info@{ub} extension, to
produce an Info file name such as @{b}texinfo.info@{ub}.

  Some operating systems cannot handle long file names.  You can run
into a problem even when the file name you specify is itself short
enough.  This occurs because the Info formatters split a long Info file
into short indirect subfiles, and name them by appending `-1', `-2',
..., `-10', `-11', and so on, to the original file name.  (See
@{"Tag Files and Split Files" Link "Tag and Split Files"}.)  The subfile name @{b}texinfo.info-10@{ub}, for
example, is too long for some systems; so the Info file name for this
document is actually @{b}texinfo@{ub} rather than @{b}texinfo.info@{ub}.

  The Info formatting commands ignore everything written before the @{b}
@setfilename@{ub} line, which is why the very first line of the file (the
@{b}\input@{ub} line) does not need to be commented out.  The @{b} @setfilename@{ub}
line is ignored when you typeset a printed manual.


@EndNode

@Node "settitle" "texinfo.guide/settitle"
@Next "setchapternewpage"
@Prev "setfilename"
@Toc "Header"

@{b} @settitle@{ub}
----------

  In order to be made into a printed manual, a Texinfo file must contain
a line that looks like this:

     @settitle TITLE

  Write the @{b} @settitle@{ub} command at the beginning of a line and follow it
on the same line by the title.  This tells TeX the title to use in a
header or footer.  Do not write anything else on the line; anything on
the line after the command is considered part of the title, including a
comment.

  Conventionally, when TeX formats a Texinfo file for double-sided
output, the title is printed in the left-hand (even-numbered) page
headings and the current chapter title is printed in the right-hand
(odd-numbered) page headings.  (TeX learns the title of each chapter
from each @{b} @chapter@{ub} command.)  Page footers are not printed.

  Even if you are printing in a single-sided style, TeX looks for an @{b}
@settitle@{ub} command line, in case you include the manual title in the
heading.

  The @{b} @settitle@{ub} command should precede everything that generates
actual output in TeX.

  Although the title in the @{b} @settitle@{ub} command is usually the same as
the title on the title page, it does not affect the title as it appears
on the title page.  Thus, the two do not need not match exactly;  and
the title in the @{b} @settitle@{ub} command can be a shortened or expanded
version of the title as it appears on the title page. (See @{"@titlepage" Link "titlepage"}.)

  TeX prints page headings only for that text that comes after the @{b}
@end titlepage@{ub} command in the Texinfo file, or that comes after an @{b}
@headings@{ub} command that turns on headings.  (See @{"The @headings Command" Link "headings on off"},
for more information.)

  You may, if you wish, create your own, customized headings and
footings.  See @{"Page Headings" Link "Headings"}, for a detailed discussion of this process.


@EndNode

@Node "setchapternewpage" "texinfo.guide/setchapternewpage"
@Next "paragraphindent"
@Prev "settitle"
@Toc "Header"

@{b} @setchapternewpage@{ub}
-------------------

  In a book or a manual, text is usually printed on both sides of the
paper, chapters start on right-hand pages, and right-hand pages have
odd numbers.  But in short reports, text often is printed only on one
side of the paper.  Also in short reports, chapters sometimes do not
start on new pages, but are printed on the same page as the end of the
preceding chapter, after a small amount of vertical whitespace.

  You can use the @{b} @setchapternewpage@{ub} command with various arguments to
specify how TeX should start chapters and whether it should typeset
pages for printing on one or both sides of the paper (single-sided or
double-sided printing).

  Write the @{b} @setchapternewpage@{ub} command at the beginning of a line
followed by its argument.

  For example, you would write the following to cause each chapter to
start on a fresh odd-numbered page:

     @setchapternewpage odd

  You can specify one of three alternatives with the @{b}
@setchapternewpage@{ub} command:

@{b} @setchapternewpage off@{ub}
     Cause TeX to typeset a new chapter on the same page as the last
     chapter, after skipping some vertical whitespace.  Also, cause TeX
     to format page headers for single-sided printing. (You can
     override the headers format with the @{b} @headings double@{ub} command; see
     See @{"The @headings Command" Link "headings on off"}.)

@{b} @setchapternewpage on@{ub}
     Cause TeX to start new chapters on new pages and to typeset page
     headers for single-sided printing.  This is the form most often
     used for short reports.

     This alternative is the default.

@{b} @setchapternewpage odd@{ub}
     Cause TeX to start new chapters on new, odd-numbered pages
     (right-handed pages) and to typeset for double-sided printing.
     This is the form most often used for books and manuals.

Texinfo does not have an @{b} @setchapternewpage even@{ub} command.

(You can countermand or modify an @{b} @setchapternewpage@{ub} command with an @{b}
@headings@{ub} command.  See @{"The @headings Command" Link "headings on off"}.)

  At the beginning of a manual or book, pages are not numbered--for
example, the title and copyright pages of a book are not numbered.  By
convention, table of contents pages are numbered with roman numerals
and not in sequence with the rest of the document.

  Since an Info file does not have pages, the @{b} @setchapternewpage@{ub}
command has no effect on it.

  Usually, you do not write an @{b} @setchapternewpage@{ub} command for
single-sided printing, but accept the default which is to typeset for
single-sided printing and to start new chapters on new pages.  Usually,
you write an @{b} @setchapternewpage odd@{ub} command for double-sided printing.


@EndNode

@Node "paragraphindent" "texinfo.guide/paragraphindent"
@Next "End of Header"
@Prev "setchapternewpage"
@Toc "Header"

Paragraph Indenting
-------------------

  The Info formatting commands may insert spaces at the beginning of the
first line of each paragraph, thereby indenting that paragraph.  You
can use the @{b} @paragraphindent@{ub} command to specify the indentation.
Write an @{b} @paragraphindent@{ub} command at the beginning of a line followed
by either @{b}asis@{ub} or a number.  The template is:

     @paragraphindent INDENT

  The Info formatting commands indent according to the value of INDENT:

   @{b}*@{ub} If the value of INDENT is @{b}asis@{ub}, the Info formatting commands do
     not change the existing indentation.

   @{b}*@{ub} If the value of INDENT is 0, the Info formatting commands delete
     existing indentation.

   @{b}*@{ub} If the value of INDENT is greater than 0, the Info formatting
     commands indent the paragraph by that number of spaces.

  The default value of INDENT is @{b}asis@{ub}.

  Write the @{b} @paragraphindent@{ub} command before or shortly after the
end-of-header line at the beginning of a Texinfo file.  (If you write
the command between the start-of-header and end-of-header lines, the
region formatting commands indent paragraphs as specified.)

  A peculiarity of the @{b}texinfo-format-buffer@{ub} and @{b}texinfo-format-region@{ub}
commands is that they do not indent (nor fill) paragraphs that contain @{b}
@w@{ub} or @{b} @*@{ub} commands.  See @{"Refilling Paragraphs" Link "Refilling Paragraphs"}, for a detailed
description of what goes on.


@EndNode

@Node "End of Header" "texinfo.guide/End of Header"
@Prev "paragraphindent"
@Toc "Header"

End of Header
-------------

  Follow the header lines with an end-of-header line.  An end-of-header
line looks like this:

     @c %**end of header

  If you include the @{b} @setchapternewpage@{ub} command between the
start-of-header and end-of-header lines, TeX will typeset a region as
that command specifies.  Similarly, if you include an @{b} @smallbook@{ub}
command between the start-of-header and end-of-header lines, TeX will
typeset a region in the "small" book format.

  The reason for the odd string of characters (@{b}%**@{ub}) is so that the
@{b}texinfo-tex-region@{ub} command does not accidentally find something
that it should not when it is looking for the header.

  The start-of-header line and the end-of-header line are Texinfo mode
variables that you can change.


@EndNode

@Node "Info Summary and Permissions" "texinfo.guide/Info Summary and Permissions"
@Next "Titlepage & Copyright Page"
@Prev "Header"
@Toc "Beginning a File"

Summary and Copying Permissions for Info
========================================

  The title page and the copyright page appear only in the printed copy
of the manual; therefore, the same information must be inserted in a
section that appears only in the Info file.  This section usually
contains a brief description of the contents of the Info file, a
copyright notice, and copying permissions.

  The copyright notice should read:

     Copyright YEAR COPYRIGHT-OWNER

and be put on a line by itself.

  Standard text for the copyright permissions is contained in an
appendix to this manual; see See @{"ifinfo Copying Permissions" Link "ifinfo Permissions"}, for the
complete text.

  The permissions text appears in an Info file @{i}before@{ui} the first node.
This mean that a reader does @{i}not@{ui} see this text when reading the file
using Info, except when using the advanced Info command @{b}g *@{ub}.


@EndNode

@Node "Titlepage & Copyright Page" "texinfo.guide/Titlepage & Copyright Page"
@Next "The Top Node"
@Prev "Info Summary and Permissions"
@Toc "Beginning a File"

The Title and Copyright Pages
=============================

  A manual's name and author are usually printed on a title page.
Sometimes copyright information is printed on the title page as well;
more often, copyright information is printed on the back of the title
page.

  The title and copyright pages appear in the printed manual, but not
in the Info file.  Because of this, it is possible to use several
slightly obscure TeX typesetting commands that cannot be used in an
Info file.  In addition, this part of the beginning of a Texinfo file
contains the text of the copying permissions that will appear in the
printed manual.

  See @{"Titlepage Copying Permissions" Link "Titlepage Permissions"}, for the standard text for the
copyright permissions.


 @{" titlepage                 " Link "titlepage"}  Create a title for the printed document.
 @{" titlefont center sp       " Link "titlefont center sp"}  The @{b} @titlefont@{ub}, @{b} @center@{ub},
                                  and @{b} @sp@{ub} commands.
 @{" title subtitle author     " Link "title subtitle author"}  The @{b} @title@{ub}, @{b} @subtitle@{ub},
                                  and @{b} @author@{ub} commands.
 @{" Copyright & Permissions   " Link "Copyright & Permissions"}  How to write the copyright notice and
                                  include copying permissions.
 @{" end titlepage             " Link "end titlepage"}  Turn on page headings after the title and
                                  copyright pages.
 @{" headings on off           " Link "headings on off"}  An option for turning headings on and off
                                  and double or single sided printing.


@EndNode

@Node "titlepage" "texinfo.guide/titlepage"
@Next "titlefont center sp"
@Prev "Titlepage & Copyright Page"
@Toc "Titlepage & Copyright Page"

@{b} @titlepage@{ub}
-----------

  Start the material for the title page and following copyright page
with @{b} @titlepage@{ub} on a line by itself and end it with @{b} @end titlepage@{ub} on
a line by itself.

  The @{b} @end titlepage@{ub} command starts a new page and turns on page
numbering. (See @{"Page Headings" Link "Headings"}, for details about how to generate of
page headings.)  All the material that you want to appear on unnumbered
pages should be put between the @{b} @titlepage@{ub} and @{b} @end titlepage@{ub}
commands.  By using the @{b} @page@{ub} command you can force a page break
within the region delineated by the @{b} @titlepage@{ub} and @{b} @end titlepage@{ub}
commands and thereby create more than one unnumbered page.  This is how
the copyright page is produced.  (The @{b} @titlepage@{ub} command might perhaps
have been better named the @{b} @titleandadditionalpages@{ub} command, but that
would have been rather long!)

  When you write a manual about a computer program, you should write the
version of the program to which the manual applies on the title page.
If the manual changes more frequently than the program or is
independent of it, you should also include an edition
number(1)@{"titlepage-Footnotes" Link "titlepage-Footnotes"} for the
manual.  This helps readers keep track of which manual is for which
version of the program.  (The `Top' node should also contain this
information; see See @{"@top" Link "makeinfo top"}.)

  Texinfo provides two methods for creating a title page.  One method
uses the @{b} @titlefont@{ub}, @{b} @sp@{ub}, and @{b} @center@{ub} commands to generate a title
page in which the words on the page are centered.

  The second method uses the @{b} @title@{ub}, @{b} @subtitle@{ub}, and @{b} @author@{ub} commands
to create a title page with black rules under the title and author
lines and the subtitle text set flush to the right hand side of the
page.  With this method, you do not specify any of the actual
formatting of the title page.  You specify the text you want, and
Texinfo does the formatting.  You may use either method.


@EndNode

@Node "titlepage-Footnotes" "texinfo.guide/titlepage-Footnotes"
@Toc "titlepage"

  (1)  We have found that it is helpful to refer to versions of manuals
as `editions' and versions of programs as `versions'; otherwise, we
find we are liable to confuse each other in conversation by referring
to both the documentation and the software with the same words.


@EndNode

@Node "titlefont center sp" "texinfo.guide/titlefont center sp"
@Next "title subtitle author"
@Prev "titlepage"
@Toc "Titlepage & Copyright Page"

@{b} @titlefont@{ub}, @{b} @center@{ub}, and @{b} @sp@{ub}
-------------------------------

  You can use the @{b} @titlefont@{ub}, @{b} @sp@{ub}, and @{b} @center@{ub} commands to create a
title page for a printed document.  (This is the first of the two
methods for creating a title page in Texinfo.)

  Use the @{b} @titlefont@{ub} command to select a large font suitable for the
title itself.

  For example:

     @titlefont{Texinfo}

  Use the @{b} @center@{ub} command at the beginning of a line to center the
remaining text on that line.  Thus,

     @center @titlefont{Texinfo}

centers the title, which in this example is "Texinfo" printed in the
title font.

  Use the @{b} @sp@{ub} command to insert vertical space.  For example:

     @sp 2

This inserts two blank lines on the printed page.  (See @{"@sp" Link "sp"}, for more
information about the @{b} @sp@{ub} command.)

  A template for this method looks like this:

     @titlepage
     @sp 10
     @center @titlefont{NAME-OF-MANUAL-WHEN-PRINTED}
     @sp 2
     @center SUBTITLE-IF-ANY
     @sp 2
     @center AUTHOR
     ...
     @end titlepage

  The spacing of the example fits an 8 1/2 by 11 inch manual.


@EndNode

@Node "title subtitle author" "texinfo.guide/title subtitle author"
@Next "Copyright & Permissions"
@Prev "titlefont center sp"
@Toc "Titlepage & Copyright Page"

@{b} @title@{ub}, @{b} @subtitle@{ub}, and @{b} @author@{ub}
---------------------------------

  You can use the @{b} @title@{ub}, @{b} @subtitle@{ub}, and @{b} @author@{ub} commands to create
a title page in which the vertical and horizontal spacing is done for
you automatically.  This contrasts with the method described in the
previous section, in which the @{b} @sp@{ub} command is needed to adjust
vertical spacing.

  Write the @{b} @title@{ub}, @{b} @subtitle@{ub}, or @{b} @author@{ub} commands at the beginning
of a line followed by the title, subtitle, or author.

  The @{b} @title@{ub} command produces a line in which the title is set flush
to the left-hand side of the page in a larger than normal font.  The
title is underlined with a black rule.

  The @{b} @subtitle@{ub} command sets subtitles in a normal-sized font flush to
the right-hand side of the page.

  The @{b} @author@{ub} command sets the names of the author or authors in a
middle-sized font flush to the left-hand side of the page on a line
near the bottom of the title page.  The names are underlined with a
black rule that is thinner than the rule that underlines the title.
(The black rule only occurs if the @{b} @author@{ub} command line is followed by
an @{b} @page@{ub} command line.)

  There are two ways to use the @{b} @author@{ub} command: you can write the
name or names on the remaining part of the line that starts with an @{b}
@author@{ub} command:

     @author by Jane Smith and John Doe

or you can write the names one above each other by using two (or more) @{b}
@author@{ub} commands:

     @author Jane Smith
     @author John Doe

(Only the bottom name is underlined with a black rule.)

  A template for this method looks like this:

     @titlepage
     @title NAME-OF-MANUAL-WHEN-PRINTED
     @subtitle SUBTITLE-IF-ANY
     @subtitle SECOND-SUBTITLE
     @author AUTHOR
     @page
     ...
     @end titlepage

Contrast this form with the form of a title page written using the @{b}
@sp@{ub}, @{b} @center@{ub}, and @{b} @titlefont@{ub} commands:

     @titlepage
     @sp 10
     @center @titlefont{Name of Manual When Printed}
     @sp 2
     @center Subtitle, If Any
     @sp 1
     @center Second subtitle
     @sp 2
     @center Author
     @page
     ...
     @end titlepage


@EndNode

@Node "Copyright & Permissions" "texinfo.guide/Copyright & Permissions"
@Next "end titlepage"
@Prev "title subtitle author"
@Toc "Titlepage & Copyright Page"

Copyright Page and Permissions
------------------------------

  By international treaty, the copyright notice for a book should be
either on the title page or on the back of the title page.  The
copyright notice should include the year followed by the name of the
organization or person who owns the copyright.

  When the copyright notice is on the back of the title page, that page
is customarily not numbered.  Therefore, in Texinfo, the information on
the copyright page should be within @{b} @titlepage@{ub} and @{b} @end titlepage@{ub}
commands.

  Use the @{b} @page@{ub} command to cause a page break.  To push the copyright
notice and the other text on the copyright page towards the bottom of
the page, you can write a somewhat mysterious line after the @{b} @page@{ub}
command that reads like this:

     @vskip 0pt plus 1filll

This is a TeX command that is not supported by the Info formatting
commands.  The @{b} @vskip@{ub} command inserts whitespace.  The @{b}0pt plus 1filll@{ub}
means to put in zero points of mandatory whitespace, and as much
optional whitespace as needed to push the following text to the bottom
of the page.  Note the use of three @{b}l@{ub}s in the word @{b}filll@{ub}; this is the
correct usage in TeX.

  In a printed manual, the @{b} @copyright{}@{ub} command generates a @{b}c@{ub} inside a
circle.  (In Info, it generates @{b}(C)@{ub}.)  The copyright notice itself has
the following legally defined sequence:

     Copyright (C) YEAR COPYRIGHT-OWNER

  It is customary to put information on how to get a manual after the
copyright notice, followed by the copying permissions for the manual.

  Note that permissions must be given here as well as in the summary
segment within @{b} @ifinfo@{ub} and @{b} @end ifinfo@{ub} that immediately follows the
header since this text appears only in the printed manual and the
@{b}ifinfo@{ub} text appears only in the Info file.

  See @{"Sample Permissions" Link "Sample Permissions"}, for the standard text.


@EndNode

@Node "end titlepage" "texinfo.guide/end titlepage"
@Next "headings on off"
@Prev "Copyright & Permissions"
@Toc "Titlepage & Copyright Page"

Heading Generation
------------------

  An @{b} @end titlepage@{ub} command on a line by itself not only marks the end
of the title and copyright pages, but also causes TeX to start
generating page headings and page numbers.

  To repeat what is said elsewhere,  Texinfo has two standard page
heading formats, one for documents which are printed on one side of
each sheet of paper (single-sided printing), and the other for
documents which are printed on both sides of each sheet (double-sided
printing).  (See @{"@setchapternewpage" Link "setchapternewpage"}.) You can specify these formats in
different ways:

   @{b}*@{ub} The conventional way is to write an @{b} @setchapternewpage@{ub} command
     before the title page commands, and then have the @{b} @end titlepage@{ub}
     command start generating page headings in the manner desired.
     (See @{"@setchapternewpage" Link "setchapternewpage"}.)

   @{b}*@{ub} Alternatively, you can use the @{b} @headings@{ub} command to prevent page
     headings from being generated or to start them for either single or
     double-sided printing.  (Write an @{b} @headings@{ub} command immediately
     after the @{b} @end titlepage@{ub} command.  See @{"The @headings Command" Link "headings on off"}, for
     more information.)

   @{b}*@{ub} Or, you may specify your own page heading and footing format.  See
     @{"Page Headings" Link "Headings"}, for detailed information about page headings and
     footings.

  Most documents are formatted with the standard single-sided or
double-sided format, using @{b} @setchapternewpage odd@{ub} for double-sided
printing and no @{b} @setchapternewpage@{ub} command for single-sided printing.


@EndNode

@Node "headings on off" "texinfo.guide/headings on off"
@Prev "end titlepage"
@Toc "Titlepage & Copyright Page"

The @{b} @headings@{ub} Command
----------------------

  The @{b} @headings@{ub} command is rarely used.  It specifies what kind of
page headings and footings to print on each page.  Usually, this is
controlled by the @{b} @setchapternewpage@{ub} command.  You need the @{b} @headings@{ub}
command only if the @{b} @setchapternewpage@{ub} command does not do what you
want, or if you want to turn off pre-defined page headings prior to
defining your own.  Write an @{b} @headings@{ub} command immediately after the @{b}
@end titlepage@{ub} command.

  There are four ways to use the @{b} @headings@{ub} command:

@{b} @headings off@{ub}
     Turn off printing of page headings.

@{b} @headings single@{ub}
     Turn on page headings appropriate for single-sided printing.

@{b} @headings double@{ub}
@{b} @headings on@{ub}
     Turn on page headings appropriate for double-sided printing.  The
     two commands, @{b} @headings on@{ub} and @{b} @headings double@{ub}, are synonymous.

  For example, suppose you write @{b} @setchapternewpage off@{ub} before the @{b}
@titlepage@{ub} command to tell TeX to start a new chapter on the same page
as the end of the last chapter.  This command also causes TeX to
typeset page headers for single-sided printing.  To cause TeX to
typeset for double sided printing, write @{b} @headings double@{ub} after the @{b}
@end titlepage@{ub} command.

  You can stop TeX from generating any page headings at all by writing @{b}
@headings off@{ub} on a line of its own immediately after the line
containing the @{b} @end titlepage@{ub} command, like this:

     @end titlepage
     @headings off

The @{b} @headings off@{ub} command overrides the @{b} @end titlepage@{ub} command, which
would otherwise cause TeX to print page headings.

  You can also specify your own style of page heading and footing.  See
@{"Page Headings" Link "Headings"}, for more information.


@EndNode

@Node "The Top Node" "texinfo.guide/The Top Node"
@Next "Software Copying Permissions"
@Prev "Titlepage & Copyright Page"
@Toc "Beginning a File"

The `Top' Node and Master Menu
==============================

  The `Top' node is the node from which you enter an Info file.

  A `Top' node should contain a brief description of the Info file and
an extensive, master menu for the whole Info file.  This helps the
reader understand what the Info file is about.  Also, you should write
the version number of the program to which the Info file applies; or,
at least, the edition number.

  The contents of the `Top' node should appear only in the Info file;
none of it should appear in printed output, so enclose it between @{b}
@ifinfo@{ub} and @{b} @end ifinfo@{ub} commands.  (TeX does not print either an @{b}
@node@{ub} line or a menu; they appear only in Info; strictly speaking,
you are not required to enclose these parts between @{b} @ifinfo@{ub} and @{b} @end
ifinfo@{ub}, but it is simplest to do so.  See @{"Conditionally Visible Text" Link "Conditionals"}.)


 @{" Title of Top Node         " Link "Title of Top Node"}  Sketch what the file is about.
 @{" Master Menu Parts         " Link "Master Menu Parts"}  A master menu has three or more parts.


@EndNode

@Node "Title of Top Node" "texinfo.guide/Title of Top Node"
@Next "Master Menu Parts"
@Prev "The Top Node"
@Toc "The Top Node"

`Top' Node Title
----------------

  Sometimes, you will want to place an @{b} @top@{ub} sectioning command line
containing the title of the document immediately after the @{b} @node Top@{ub}
line (see @{"The @top Sectioning Command" Link "makeinfo top command"}, for more information).

  For example, the beginning of the Top node of this manual contains an
@{b} @top@{ub} sectioning command, a short description, and edition and
version information.  It looks like this:

     ...
     @end titlepage
     
     @ifinfo
     @node Top, Copying, (dir), (dir)
     @top Texinfo
     
     Texinfo is a documentation system...
     
     This is edition...
     ...
     @end ifinfo
     
     @menu
     * Copying::                 Texinfo is freely
                                   redistributable.
     * Overview::                What is Texinfo?
     ...
     @end menu

  In a `Top' node, the `Previous', and `Up' nodes usually refer to the
top level directory of the whole Info system, which is called @{b}(dir)@{ub}.
The `Next' node refers to the first node that follows the main or master
menu, which is usually the copying permissions, introduction, or first
chapter.


@EndNode

@Node "Master Menu Parts" "texinfo.guide/Master Menu Parts"
@Prev "Title of Top Node"
@Toc "The Top Node"

Parts of a Master Menu
----------------------

  A @{i}master menu@{ui} is a detailed main menu listing all the nodes in a file.

  A master menu is enclosed in @{b} @menu@{ub} and @{b} @end menu@{ub} commands and does
not appear in the printed document.

  Generally, a master menu is divided into parts.

   @{b}*@{ub} The first part contains the major nodes in the Texinfo file: the
     nodes for the chapters, chapter-like sections, and the appendices.

   @{b}*@{ub} The second part contains nodes for the indices.

   @{b}*@{ub} The third and subsequent parts contain a listing of the other,
     lower level nodes, often ordered by chapter.  This way, rather
     than go through an intermediary menu, an inquirer can go directly
     to a particular node when searching for specific information.
     These menu items are not required; add them if you think they are a
     convenience.

  Each section in the menu can be introduced by a descriptive line.  So
long as the line does not begin with an asterisk, it will not be
treated as a menu entry.  (See @{"Writing a Menu" Link "Writing a Menu"}, for more information.)

  For example, the master menu for this manual looks like the following
(but has many more entries):

     @menu
     * Copying::             Texinfo is freely
                               redistributable.
     * Overview::            What is Texinfo?
     * Texinfo Mode::        Special features in GNU Emacs.
     ...
     ...
     * Command and Variable Index::
                             An entry for each @-command.
     * Concept Index::       An entry for each concept.
     
      --- The Detailed Node Listing ---
     
     Overview of Texinfo
     
     * Info Files::          What is an Info file?
     * Printed Manuals::     Characteristics of
                               a printed manual.
     ...
     ...
     
     Using Texinfo Mode
     
     * Info on a Region::    Formatting part of a file
                               for Info.
     ...
     ...
     @end menu


@EndNode

@Node "Software Copying Permissions" "texinfo.guide/Software Copying Permissions"
@Prev "The Top Node"
@Toc "Beginning a File"

Software Copying Permissions
============================

  If the Texinfo file has a section containing the "General Public
License" and the distribution information and a warranty disclaimer for
the software that is documented, this section usually follows the `Top'
node.  The General Public License is very important to Project GNU
software.  It ensures that you and others will continue to have a right
to use and share the software.

  The copying and distribution information and the disclaimer are
followed by an introduction or else by the first chapter of the manual.

  Although an introduction is not a required part of a Texinfo file, it
is very helpful.  Ideally, it should state clearly and concisely what
the file is about and who would be interested in reading it.  In
general, an introduction would follow the licensing and distribution
information, although sometimes people put it earlier in the document.
Usually, an introduction is put in an @{b} @unnumbered@{ub} section.  (See
@{"The @unnumbered and @appendix Commands" Link "unnumbered & appendix"}.)


@EndNode

@Node "Ending a File" "texinfo.guide/Ending a File"
@Next "Structuring"
@Prev "Beginning a File"
@Toc "Main"

Ending a Texinfo File
*********************

  The end of a Texinfo file should include the commands that create
indices and generate detailed and summary tables of contents.  And it
must include the @{b} @bye@{ub} command that marks the last line processed by
TeX.

  For example:

     @node    Concept Index,     , Variables Index, Top
     @c        node-name,    next, previous,        up
     @unnumbered Concept Index
     
     @printindex cp
     
     @contents
     @bye


 @{" Printing Indices & Menus  " Link "Printing Indices & Menus"}  How to print an index in hardcopy and
                                  generate index menus in Info.
 @{" Contents                  " Link "Contents"}  How to create a table of contents.
 @{" File End                  " Link "File End"}  How to mark the end of a file.


@EndNode

@Node "Printing Indices & Menus" "texinfo.guide/Printing Indices & Menus"
@Next "Contents"
@Prev "Ending a File"
@Toc "Ending a File"

Index Menus and Printing an Index
=================================

  To print an index means to include it as part of a manual or Info
file.  This does not happen automatically just because you use @{b} @cindex@{ub}
or other index-entry generating commands in the Texinfo file; those
just cause the raw data for the index to be accumulated.  To generate
an index, you must include the @{b} @printindex@{ub} command at the place in the
document where you want the index to appear.  Also, as part of the
process of creating a printed manual, you must run a program called
@{b}texindex@{ub} (see @{"Format-Print Hardcopy" Link "Format-Print Hardcopy"}) to sort the raw data to
produce a sorted index file.  The sorted index file is what is actually
used to print the index.

  Texinfo offers six different types of predefined index: the concept
index, the function index, the variables index, the keystroke index, the
program index, and the data type index (see @{"Predefined Indices" Link "Predefined Indices"}).  Each
index type has a two-letter name: @{b}cp@{ub}, @{b}fn@{ub}, @{b}vr@{ub}, @{b}ky@{ub}, @{b}pg@{ub}, and @{b}tp@{ub}.  You may
merge indices, or put them into separate sections (see
@{"Combining Indices" Link "Combining Indices"}); or you may define your own indices (see
@{"Defining New Indices" Link "New Indices"}).

  The @{b} @printindex@{ub} command takes a two-letter index name, reads the
corresponding sorted index file and formats it appropriately into an
index.

  The @{b} @printindex@{ub} command does not generate a chapter heading for the
index.  Consequently, you should precede the @{b} @printindex@{ub} command with
a suitable section or chapter command (usually @{b} @unnumbered@{ub}) to supply
the chapter heading and put the index into the table of contents.
Precede the @{b} @unnumbered@{ub} command with an @{b} @node@{ub} line.

  For example:

     @node Variable Index, Concept Index, Function Index, Top
     @comment    node-name,         next,       previous, up
     @unnumbered Variable Index
     
     @printindex vr

     @node     Concept Index,     , Variable Index, Top
     @comment      node-name, next,       previous, up
     @unnumbered Concept Index
     
     @printindex cp

     @summarycontents
     @contents
     @bye

(Readers often prefer that the concept index come last in a book, since
that makes it easiest to find.)


@EndNode

@Node "Contents" "texinfo.guide/Contents"
@Next "File End"
@Prev "Printing Indices & Menus"
@Toc "Ending a File"

Generating a Table of Contents
==============================

  The @{b} @chapter@{ub}, @{b} @section@{ub}, and other structuring commands supply the
information to make up a table of contents, but they do not cause an
actual table to appear in the manual.  To do this, you must use the @{b}
@contents@{ub} and @{b} @summarycontents@{ub} commands:

@{b} @contents@{ub}
     Generate a table of contents in a printed manual, including all
     chapters, sections, subsections, etc., as well as appendices and
     unnumbered chapters.  (Headings generated by the @{b} @heading@{ub} series
     of commands do not appear in the table of contents.)  The @{b}
     @contents@{ub} command should be written on a line by itself.

@{b} @shortcontents@{ub}
@{b} @summarycontents@{ub}
     (@{b} @summarycontents@{ub} is a synonym for @{b} @shortcontents@{ub}; the two
     commands are exactly the same.)

     Generate a short or summary table of contents that lists only the
     chapters (and appendices and unnumbered chapters).  Omit sections,
     subsections and subsubsections.  Only a long manual needs a short
     table of contents in addition to the full table of contents.

     Write the @{b} @shortcontents@{ub} command on a line by itself right @{i}before@{ui}
     the @{b} @contents@{ub} command.

  The table of contents commands automatically generate a chapter-like
heading at the top of the first table of contents page.  Write the table
of contents commands at the very end of a Texinfo file, just before the
@{b} @bye@{ub} command, following any index sections--anything in the
Texinfo file after the table of contents commands will be omitted from
the table of contents.

  When you print a manual with a table of contents, the table of
contents are printed last and numbered with roman numerals.  You need
to place those pages in their proper place, after the title page,
yourself.  (This is the only collating you need to do for a printed
manual.  The table of contents is printed last because it is generated
after the rest of the manual is typeset.)

  Here is an example of where to write table of contents commands:

     INDICES...
     @shortcontents
     @contents
     @bye

  Since an Info file uses menus instead of tables of contents, the Info
formatting commands ignore the @{b} @contents@{ub} and @{b} @shortcontents@{ub} commands.


@EndNode

@Node "File End" "texinfo.guide/File End"
@Prev "Contents"
@Toc "Ending a File"

@{b} @bye@{ub} File Ending
=================

  An @{b} @bye@{ub} command terminates TeX or Info formatting.  None of the
formatting commands see any of the file following @{b} @bye@{ub}.  The @{b} @bye@{ub}
command should be on a line by itself.

  If you wish, you may follow the @{b} @bye@{ub} line with notes. These notes
will not be formatted and will not appear in either Info or a printed
manual; it is as if text after @{b} @bye@{ub} were within @{b} @ignore@{ub} ... @{b} @end
ignore@{ub}.  Also, you may follow the @{b} @bye@{ub} line with a local variables
list.  See @{"Using Local Variables and the Compile Command" Link "Compile-Command"}, for more
information.


@EndNode

@Node "Structuring" "texinfo.guide/Structuring"
@Next "Nodes"
@Prev "Ending a File"
@Toc "Main"

Chapter Structuring
*******************

  The @{i}chapter structuring@{ui} commands divide a document into a hierarchy of
chapters, sections, subsections, and subsubsections.  These commands
generate large headings; they also provide information for the table of
contents of a printed manual (see @{"Generating a Table of Contents" Link "Contents"}).

  The chapter structuring commands do not create an Info node structure,
so normally you should put an @{b} @node@{ub} command immediately before each
chapter structuring command (see @{"Nodes" Link "Nodes"}).  The only time you are likely
to use the chapter structuring commands without using the node
structuring commands is if you are writing a document that contains no
cross references and will never be transformed into Info format.

  It is unlikely that you will ever write a Texinfo file that is
intended only as an Info file and not as a printable document.  If you
do, you might still use chapter structuring commands to create a
heading at the top of each node--but you don't need to.


 @{" Tree Structuring          " Link "Tree Structuring"}  A manual is like an upside down tree ...
 @{" Structuring Command Types " Link "Structuring Command Types"}  How to divide a manual into parts.
 @{" makeinfo top              " Link "makeinfo top"}  The @{b} @top@{ub} command, part of the `Top' node.
 @{" chapter                   " Link "chapter"}  
 @{" unnumbered & appendix     " Link "unnumbered & appendix"}  
 @{" majorheading & chapheading " Link "majorheading & chapheading"}  
 @{" section                   " Link "section"}  
 @{" unnumberedsec appendixsec heading " Link "unnumberedsec appendixsec heading"}  
 @{" subsection                " Link "subsection"}  
 @{" unnumberedsubsec appendixsubsec subheading " Link "unnumberedsubsec appendixsubsec subheading"}  
 @{" subsubsection             " Link "subsubsection"}  Commands for the lowest level sections.
 @{" Raise-lower sections      " Link "Raise-lower sections"}  How to change commands' hierarchical level.


@EndNode

@Node "Tree Structuring" "texinfo.guide/Tree Structuring"
@Next "Structuring Command Types"
@Prev "Structuring"
@Toc "Structuring"

Tree Structure of Sections
==========================

  A Texinfo file is usually structured like a book with chapters,
sections, subsections, and the like.  This structure can be visualized
as a tree (or rather as an upside-down tree) with the root at the top
and the levels corresponding to chapters, sections, subsection, and
subsubsections.

  Here is a diagram that shows a Texinfo file with three chapters, each
of which has two sections.

                               Top
                                |
              -------------------------------------
             |                  |                  |
          Chapter 1          Chapter 2          Chapter 3
             |                  |                  |
          --------           --------           --------
         |        |         |        |         |        |
      Section  Section   Section  Section   Section  Section
        1.1      1.2       2.1      2.2       3.1      3.2

  In a Texinfo file that has this structure, the beginning of Chapter 2
looks like this:

     @node    Chapter 2,  Chapter 3, Chapter 1, top
     @chapter Chapter 2

  The chapter structuring commands are described in the sections that
follow; the @{b} @node@{ub} and @{b} @menu@{ub} commands are described in following
chapters. (See @{"Nodes" Link "Nodes"}, and see See @{"Menus" Link "Menus"}.)


@EndNode

@Node "Structuring Command Types" "texinfo.guide/Structuring Command Types"
@Next "makeinfo top"
@Prev "Tree Structuring"
@Toc "Structuring"

Types of Structuring Command
============================

  The chapter structuring commands fall into four groups or series, each
of which contains structuring commands corresponding to the
hierarchical levels of chapters, sections, subsections, and
subsubsections.

  The four groups are the @{b} @chapter@{ub} series, the @{b} @unnumbered@{ub} series,
the @{b} @appendix@{ub} series, and the @{b} @heading@{ub} series.

  Each command produces titles that have a different appearance on the
printed page or Info file; only some of the commands produce titles
that are listed in the table of contents of a printed book or manual.

   @{b}*@{ub} The @{b} @chapter@{ub} and @{b} @appendix@{ub} series of commands produce numbered
     or lettered entries both in the body of a printed work and in its
     table of contents.

   @{b}*@{ub} The @{b} @unnumbered@{ub} series of commands produce unnumbered entries
     both in the body of a printed work and in its table of contents.
     The @{b} @top@{ub} command, which has a special use, is a member of this
     series (see @{"@top" Link "makeinfo top"}).

   @{b}*@{ub} The @{b} @heading@{ub} series of commands produce unnumbered headings that
     do not appear in a table of contents.  The heading commands never
     start a new page.

   @{b}*@{ub} The @{b} @majorheading@{ub} command produces results similar to using the @{b}
     @chapheading@{ub} command but generates a larger vertical whitespace
     before the heading.

   @{b}*@{ub} When an @{b} @setchapternewpage@{ub} command says to do so, the @{b} @chapter@{ub}, @{b}
     @unnumbered@{ub}, and @{b} @appendix@{ub} commands start new pages in the
     printed manual; the @{b} @heading@{ub} commands do not.

  Here are the four groups of chapter structuring commands:

                                                            No new pages
     Numbered       Unnumbered       Lettered and numbered  Unnumbered
     In contents    In contents          In contents        Not in contents
     
                    @top                                    @majorheading
     @chapter       @unnumbered          @appendix          @chapheading
     @section       @unnumberedsec       @appendixsec       @heading
     @subsection    @unnumberedsubsec    @appendixsubsec    @subheading
     @subsubsection @unnumberedsubsubsec @appendixsubsubsec @subsubheading


@EndNode

@Node "makeinfo top" "texinfo.guide/makeinfo top"
@Next "chapter"
@Prev "Structuring Command Types"
@Toc "Structuring"

@{b} @top@{ub}
=====

  The @{b} @top@{ub} command is a special sectioning command that you use only
after an @{b} @node Top@{ub} line at the beginning of a Texinfo file.  The @{b} @top@{ub}
command tells the @{b}makeinfo@{ub} formatter which node is the `Top' node.  It
has the same typesetting effect as @{b} @unnumbered@{ub} (see @{"@unnumbered" Link "@appendix/unnumbered & appendix"}).  For
detailed information, see See @{"The @top Command" Link "makeinfo top command"}.


@EndNode

@Node "chapter" "texinfo.guide/chapter"
@Next "unnumbered & appendix"
@Prev "makeinfo top"
@Toc "Structuring"

@{b} @chapter@{ub}
=========

  @{b} @chapter@{ub} identifies a chapter in the document.  Write the command at
the beginning of a line and follow it on the same line by the title of
the chapter.

  For example, this chapter in this manual is entitled "Chapter
Structuring"; the @{b} @chapter@{ub} line looks like this:

     @chapter Chapter Structuring

  In TeX, the @{b} @chapter@{ub} command creates a chapter in the document,
specifying the chapter title.  The chapter is numbered automatically.

  In Info, the @{b} @chapter@{ub} command causes the title to appear on a line
by itself, with a line of asterisks inserted underneath.  Thus, in
Info, the above example produces the following output:

     Chapter Structuring
     *******************


@EndNode

@Node "unnumbered & appendix" "texinfo.guide/unnumbered & appendix"
@Next "majorheading & chapheading"
@Prev "chapter"
@Toc "Structuring"

@{b} @unnumbered@{ub}, @{b} @appendix@{ub}
========================

  Use the @{b} @unnumbered@{ub} command to create a chapter that appears in a
printed manual without chapter numbers of any kind.  Use the @{b} @appendix@{ub}
command to create an appendix in a printed manual that is labelled by
letter instead of by number.

  For Info file output, the @{b} @unnumbered@{ub} and @{b} @appendix@{ub} commands are
equivalent to @{b} @chapter@{ub}: the title is printed on a line by itself with
a line of asterisks underneath.  (See @{"@chapter" Link "chapter"}.)

  To create an appendix or an unnumbered chapter, write an @{b} @appendix@{ub}
or @{b} @unnumbered@{ub} command at the beginning of a line and follow it on the
same line by the title, as you would if you were creating a chapter.


@EndNode

@Node "majorheading & chapheading" "texinfo.guide/majorheading & chapheading"
@Next "section"
@Prev "unnumbered & appendix"
@Toc "Structuring"

@{b} @majorheading@{ub}, @{b} @chapheading@{ub}
=============================

  The @{b} @majorheading@{ub} and @{b} @chapheading@{ub} commands put chapter-like
headings in the body of a document.

  However, neither command causes TeX to produce a numbered heading or
an entry in the table of contents; and neither command causes TeX to
start a new page in a printed manual.

  In TeX, an @{b} @majorheading@{ub} command generates a larger vertical
whitespace before the heading than an @{b} @chapheading@{ub} command but is
otherwise the same.

  In Info, the @{b} @majorheading@{ub} and @{b} @chapheading@{ub} commands are equivalent
to @{b} @chapter@{ub}: the title is printed on a line by itself with a line of
asterisks underneath.  (See @{"@chapter" Link "chapter"}.)


@EndNode

@Node "section" "texinfo.guide/section"
@Next "unnumberedsec appendixsec heading"
@Prev "majorheading & chapheading"
@Toc "Structuring"

@{b} @section@{ub}
=========

  In a printed manual, an @{b} @section@{ub} command identifies a numbered
section within a chapter.  The section title appears in the table of
contents.  In Info, an @{b} @section@{ub} command provides a title for a segment
of text, underlined with @{b}=@{ub}.

  This section is headed with an @{b} @section@{ub} command and looks like this
in the Texinfo file:

     @section @code{@@section}

  To create a section, write the @{b} @section@{ub} command at the beginning of
a line and follow it on the same line by the section title.

  Thus,

     @section This is a section

produces

     This is a section
     =================

in Info.


@EndNode

@Node "unnumberedsec appendixsec heading" "texinfo.guide/unnumberedsec appendixsec heading"
@Next "subsection"
@Prev "section"
@Toc "Structuring"

@{b} @unnumberedsec@{ub}, @{b} @appendixsec@{ub}, @{b} @heading@{ub}
=========================================

  The @{b} @unnumberedsec@{ub}, @{b} @appendixsec@{ub}, and @{b} @heading@{ub} commands are,
respectively, the unnumbered, appendix-like, and heading-like
equivalents of the @{b} @section@{ub} command.  (See @{"@section" Link "section"}.)

@{b} @unnumberedsec@{ub}
     The @{b} @unnumberedsec@{ub} command may be used within an unnumbered
     chapter or within a regular chapter or appendix to provide an
     unnumbered section.

@{b} @appendixsec@{ub}
@{b} @appendixsection@{ub}
     @{b} @appendixsection@{ub} is a longer spelling of the @{b} @appendixsec@{ub}
     command; the two are synonymous.

     Conventionally, the @{b} @appendixsec@{ub} or @{b} @appendixsection@{ub} command is
     used only within appendices.

@{b} @heading@{ub}
     You may use the @{b} @heading@{ub} command anywhere you wish for a
     section-style heading that will not appear in the table of
     contents.


@EndNode

@Node "subsection" "texinfo.guide/subsection"
@Next "unnumberedsubsec appendixsubsec subheading"
@Prev "unnumberedsec appendixsec heading"
@Toc "Structuring"

The @{b} @subsection@{ub} Command
========================

  Subsections are to sections as sections are to chapters.  (See
@{"@section" Link "section"}.)  In Info, subsection titles are underlined with @{b}-@{ub}.  For
example,

     @subsection This is a subsection

produces

     This is a subsection
     --------------------

  In a printed manual, subsections are listed in the table of contents
and are numbered three levels deep.


@EndNode

@Node "unnumberedsubsec appendixsubsec subheading" "texinfo.guide/unnumberedsubsec appendixsubsec subheading"
@Next "subsubsection"
@Prev "subsection"
@Toc "Structuring"

The @{b} @subsection@{ub}-like Commands
==============================

  The @{b} @unnumberedsubsec@{ub}, @{b} @appendixsubsec@{ub}, and @{b} @subheading@{ub} commands
are, respectively, the unnumbered, appendix-like, and heading-like
equivalents of the @{b} @subsection@{ub} command.  (See @{"@subsection" Link "subsection"}.)

  In Info, the @{b} @subsection@{ub}-like commands generate a title underlined
with hyphens.  In a printed manual, an @{b} @subheading@{ub} command produces a
heading like that of a subsection except that it is not numbered and
does not appear in the table of contents.  Similarly, an @{b}
@unnumberedsubsec@{ub} command produces an unnumbered heading like that of a
subsection and an @{b} @appendixsubsec@{ub} command produces a subsection-like
heading labelled with a letter and numbers; both of these commands
produce headings that appear in the table of contents.


@EndNode

@Node "subsubsection" "texinfo.guide/subsubsection"
@Next "Raise-lower sections"
@Prev "unnumberedsubsec appendixsubsec subheading"
@Toc "Structuring"

The `subsub' Commands
=====================

  The fourth and lowest level sectioning commands in Texinfo are the
`subsub' commands.  They are:

@{b} @subsubsection@{ub}
     Subsubsections are to subsections as subsections are to sections.
     (See @{"@subsection" Link "subsection"}.)  In a printed manual, subsubsection titles
     appear in the table of contents and are numbered four levels deep.

@{b} @unnumberedsubsubsec@{ub}
     Unnumbered subsubsection titles appear in the table of contents of
     a printed manual, but lack numbers.  Otherwise, unnumbered
     subsubsections are the same as subsubsections.  In Info, unnumbered
     subsubsections look exactly like ordinary subsubsections.

@{b} @appendixsubsubsec@{ub}
     Conventionally, appendix commands are used only for appendices and
     are lettered and numbered appropriately in a printed manual.  They
     also appear in the table of contents.  In Info, appendix
     subsubsections look exactly like ordinary subsubsections.

@{b} @subsubheading@{ub}
     The @{b} @subsubheading@{ub} command may be used anywhere that you need a
     small heading that will not appear in the table of contents.  In
     Info, subsubheadings look exactly like ordinary subsubsection
     headings.

  In Info,  `subsub' titles are underlined with periods.  For example,

     @subsubsection This is a subsubsection

produces

     This is a subsubsection
     .......................


@EndNode

@Node "Raise-lower sections" "texinfo.guide/Raise-lower sections"
@Prev "subsubsection"
@Toc "Structuring"

@{b} @raisesections@{ub} and @{b} @lowersections@{ub}
===================================

  The @{b} @raisesections@{ub} and @{b} @lowersections@{ub} commands raise and lower the
hierarchical level of chapters, sections, subsections and the like.
The @{b} @raisesections@{ub} command changes sections to chapters, subsections
to sections, and so on.  The @{b} @lowersections@{ub} command changes chapters
to sections, sections to subsections, and so on.

  An @{b} @lowersections@{ub} command is useful if you wish to include text that
is written as an outer or standalone Texinfo file in another Texinfo
file as an inner, included file.  If you write the command at the
beginning of the file, all your @{b} @chapter@{ub} commands are formatted as if
they were @{b} @section@{ub} commands, all your @{b} @section@{ub} command are formatted
as if they were @{b} @subsection@{ub} commands, and so on.

  @{b} @raisesections@{ub} raises a command one level in the chapter structuring
hierarchy:

       Change           To
     
     @subsection     @section,
     @section        @chapter,
     @heading        @chapheading,
               etc.

  @{b} @lowersections@{ub} lowers a command one level in the chapter structuring
hierarchy:

       Change           To
     
     @chapter        @section,
     @subsection     @subsubsection,
     @heading        @subheading,
               etc.

  An @{b} @raisesections@{ub} or @{b} @lowersections@{ub} command changes only those
structuring commands that follow the command in the Texinfo file.
Write an @{b} @raisesections@{ub} or @{b} @lowersections@{ub} command on a line of its
own.

  An @{b} @lowersections@{ub} command cancels an @{b} @raisesections@{ub} command, and
vice versa.

  Repeated use of the commands continue to raise or lower the
hierarchical level a step at a time.

  An attempt to raise above `chapters' reproduces chapter commands; an
attempt to lower below `subsubsections' reproduces subsubsection
commands.


@EndNode

@Node "Nodes" "texinfo.guide/Nodes"
@Next "Menus"
@Prev "Structuring"
@Toc "Main"

Nodes
*****

  @{i}Nodes@{ui} are the primary segments of a Texinfo file.  They do not
themselves impose a hierarchic or any other kind of structure on a file.
Nodes contain @{i}node pointers@{ui} that name other nodes, and can contain
@{i}menus@{ui} which are lists of nodes.  In Info, the movement commands
can carry you to a pointed-to node or to a node listed in a menu.  Node
pointers and menus provide structure for Info files just as chapters,
sections, subsections, and the like, provide structure for printed
books.


 @{" Two Paths                 " Link "Two Paths"}  Different commands to structure
                                  Info output and printed output.
 @{" Node Menu Illustration    " Link "Node Menu Illustration"}  A diagram, and sample nodes and menus.
 @{" node                      " Link "node"}  How to write a node, in detail.
 @{" makeinfo Pointer Creation " Link "makeinfo Pointer Creation"}  How to create node pointers with @{b}makeinfo@{ub}.


@EndNode

@Node "Two Paths" "texinfo.guide/Two Paths"
@Next "Node Menu Illustration"
@Prev "Nodes"
@Toc "Nodes"

Two Paths
=========

  The node and menu commands and the chapter structuring commands are
independent of each other:

   @{b}*@{ub} In Info, node and menu commands provide structure.  The chapter
     structuring commands generate headings with different kinds of
     underlining--asterisks for chapters, hyphens for sections, and so
     on; they do nothing else.

   @{b}*@{ub} In TeX, the chapter structuring commands generate chapter and
     section numbers and tables of contents.  The node and menu
     commands provide information for cross references; they do nothing
     else.

  You can use node pointers and menus to structure an Info file any way
you want; and you can write a Texinfo file so that its Info output has a
different structure than its printed output.  However, most Texinfo
files are written such that the structure for the Info output
corresponds to the structure for the printed output.  It is not
convenient to do otherwise.

  Generally, printed output is structured in a tree-like hierarchy in
which the chapters are the major limbs from which the sections branch
out.  Similarly, node pointers and menus are organized to create a
matching structure in the Info output.


@EndNode

@Node "Node Menu Illustration" "texinfo.guide/Node Menu Illustration"
@Next "node"
@Prev "Two Paths"
@Toc "Nodes"

Node and Menu Illustration
==========================

  Here is a copy of the diagram shown earlier that illustrates a Texinfo
file with three chapters, each of which contains two sections.

  Note that the "root" is at the top of the diagram and the "leaves"
are at the bottom.  This is how such a diagram is drawn conventionally;
it illustrates an upside-down tree.  For this reason, the root node is
called the `Top' node, and `Up' node pointers carry you closer to the
root.

                               Top
                                |
              -------------------------------------
             |                  |                  |
          Chapter 1          Chapter 2          Chapter 3
             |                  |                  |
          --------           --------           --------
         |        |         |        |         |        |
      Section  Section   Section  Section   Section  Section
        1.1      1.2       2.1      2.2       3.1      3.2

  Write the beginning of the node for Chapter 2 like this:

     @node     Chapter 2,  Chapter 3, Chapter 1, top
     @comment  node-name,  next,      previous,  up

This @{b} @node@{ub} line says that the name of this node is "Chapter 2", the
name of the `Next' node is "Chapter 3", the name of the `Previous' node
is "Chapter 1", and the name of the `Up' node is "Top".

     @{i}Please Note:@{ui} `Next' refers to the next node at the same
     hierarchical level in the manual, not necessarily to the next node
     within the Texinfo file.  In the Texinfo file, the subsequent node
     may be at a lower level--a section-level node may follow a
     chapter-level node, and a subsection-level node may follow a
     section-level node.  `Next' and `Previous' refer to nodes at the
     @{i}same@{ui} hierarchical level.  (The `Top' node contains the
     exception to this rule.  Since the `Top' node is the only node at
     that level, `Next' refers to the first following node, which is
     almost always a chapter or chapter-level node.)

  To go to Sections 2.1 and 2.2 using Info, you need a menu inside
Chapter 2.  (See @{"Menus" Link "Menus"}.)  You would write the menu just before the
beginning of Section 2.1, like this:

         @menu
         * Sect. 2.1::    Description of this section.
         * Sect. 2.2::
         @end menu

  Write the node for Sect. 2.1 like this:

         @node     Sect. 2.1, Sect. 2.2, Chapter 2, Chapter 2
         @comment  node-name, next,      previous,  up

  In Info format, the `Next' and `Previous' pointers of a node usually
lead to other nodes at the same level--from chapter to chapter or from
section to section (sometimes, as shown, the `Previous' pointer points
up); an `Up' pointer usually leads to a node at the level above (closer
to the `Top' node); and a `Menu' leads to nodes at a level below (closer
to `leaves').  (A cross reference can point to a node at any level; see
See @{"Cross References" Link "Cross References"}.)

  Usually, an @{b} @node@{ub} command and a chapter structuring command are used
in sequence, along with indexing commands.  (You may follow the @{b} @node@{ub}
line with a comment line that reminds you which pointer is which.)

  Here is the beginning of the chapter in this manual called "Ending a
Texinfo File".  This shows an @{b} @node@{ub} line followed by a comment line,
an @{b} @chapter@{ub} line, and then by indexing lines.

     @node    Ending a File, Structuring, Beginning a File, Top
     @comment node-name,     next,        previous,         up
     @chapter Ending a Texinfo File
     @cindex Ending a Texinfo file
     @cindex Texinfo file ending
     @cindex File ending


@EndNode

@Node "node" "texinfo.guide/node"
@Next "makeinfo Pointer Creation"
@Prev "Node Menu Illustration"
@Toc "Nodes"

The @{b} @node@{ub} Command
==================

  A @{i}node@{ui} is a segment of text that begins at an @{b} @node@{ub} command and
continues until the next @{b} @node@{ub} command.  The definition of node is
different from that for chapter or section.  A chapter may contain
sections and a section may contain subsections; but a node cannot
contain subnodes; the text of a node continues only until the next @{b}
@node@{ub} command in the file.  A node usually contains only one chapter
structuring command, the one that follows the @{b} @node@{ub} line.  On the
other hand, in printed output nodes are used only for cross references,
so a chapter or section may contain any number of nodes.  Indeed, a
chapter usually contains several nodes, one for each section,
subsection, and subsubsection.

  To create a node, write an @{b} @node@{ub} command at the beginning of a line,
and follow it with four arguments, separated by commas, on the rest of
the same line.  These arguments are the name of the node, and the names
of the `Next', `Previous', and `Up' pointers, in that order.  You may
insert spaces before each pointer if you wish; the spaces are ignored.
You must write the name of the node, and the names of the `Next',
`Previous', and `Up' pointers, all on the same line.  Otherwise, the
formatters fail.  (See @{"info" Link "info/Top"}, for more information about nodes in Info.)

  Usually, you write one of the chapter-structuring command lines
immediately after an @{b} @node@{ub} line--for example, an @{b} @section@{ub} or @{b}
@subsection@{ub} line.  (See @{"Types of Structuring Command" Link "Structuring Command Types"}.)

     @{i}Please note:@{ui} The GNU Emacs Texinfo mode updating commands work
     only with Texinfo files in which @{b} @node@{ub} lines are followed by
     chapter structuring lines.  See @{"Updating Requirements" Link "Updating Requirements"}.

  TeX uses @{b} @node@{ub} lines to identify the names to use for cross
references.  For this reason, you must write @{b} @node@{ub} lines in a Texinfo
file that you intend to format for printing, even if you do not intend
to format it for Info.  (Cross references, such as the one at the end
of this sentence, are made with @{b} @xref@{ub} and its related commands; see
See @{"Cross References" Link "Cross References"}.)


 @{" Node Names                " Link "Node Names"}  How to choose node and pointer names.
 @{" Writing a Node            " Link "Writing a Node"}  How to write an @{b} @node@{ub} line.
 @{" Node Line Tips            " Link "Node Line Tips"}  Keep names short.
 @{" Node Line Requirements    " Link "Node Line Requirements"}  Keep names unique, without @-commands.
 @{" First Node                " Link "First Node"}  How to write a `Top' node.
 @{" makeinfo top command      " Link "makeinfo top command"}  How to use the @{b} @top@{ub} command.
 @{" Top Node Summary          " Link "Top Node Summary"}  Write a brief description for readers.


@EndNode

@Node "Node Names" "texinfo.guide/Node Names"
@Next "Writing a Node"
@Prev "node"
@Toc "node"

Choosing Node and Pointer Names
-------------------------------

  The name of a node identifies the node.  The pointers enable you to
reach other nodes and consist of the names of those nodes.

  Normally, a node's `Up' pointer contains the name of the node whose
menu mentions that node.  The node's `Next' pointer contains the name
of the node that follows that node in that menu and its `Previous'
pointer contains the name of the node that precedes it in that menu.
When a node's `Previous' node is the same as its `Up' node, both node
pointers name the same node.

  Usually, the first node of a Texinfo file is the `Top' node, and its
`Up' and `Previous' pointers point to the @{b}dir@{ub} file, which contains the
main menu for all of Info.

  The `Top' node itself contains the main or master menu for the manual.
Also, it is helpful to include a brief description of the manual in the
`Top' node.  See @{"First Node" Link "First Node"}, for information on how to write the first
node of a Texinfo file.


@EndNode

@Node "Writing a Node" "texinfo.guide/Writing a Node"
@Next "Node Line Tips"
@Prev "Node Names"
@Toc "node"

How to Write an @{b} @node@{ub} Line
---------------------------

  The easiest way to write an @{b} @node@{ub} line is to write @{b} @node@{ub} at the
beginning of a line and then the name of the node, like this:

     @node NODE-NAME

  If you are using GNU Emacs, you can use the update node commands
provided by Texinfo mode to insert the names of the pointers; or you
can leave the pointers out of the Texinfo file and let @{b}makeinfo@{ub} insert
node pointers into the Info file it creates.  (See @{"Texinfo Mode" Link "Texinfo Mode"}, and
See @{"makeinfo Pointer Creation" Link "makeinfo Pointer Creation"}.)

  Alternatively, you can insert the `Next', `Previous', and `Up'
pointers yourself.  If you do this, you may find it helpful to use the
Texinfo mode keyboard command @{b}C-c C-c n@{ub}.  This command inserts @{b} @node@{ub}
and a comment line listing the names of the pointers in their proper
order.  The comment line helps you keep track of which arguments are
for which pointers.  This comment line is especially useful if you are
not familiar with Texinfo.

  The template for a node line with `Next', `Previous', and `Up'
pointers looks like this:

     @node NODE-NAME, NEXT, PREVIOUS, UP

  If you wish, you can ignore @{b} @node@{ub} lines altogether in your first
draft and then use the @{b}texinfo-insert-node-lines@{ub} command to create @{b}
@node@{ub} lines for you.  However, we do not recommend this practice.  It
is better to name the node itself at the same time that you write a
segment so you can easily make cross references.  A large number of
cross references are an especially important feature of a good Info
file.

  After you have inserted an @{b} @node@{ub} line, you should immediately write
an @-command for the chapter or section and insert its name.  Next (and
this is important!), put in several index entries.  Usually, you will
find at least two and often as many as four or five ways of referring
to the node in the index.  Use them all.  This will make it much easier
for people to find the node.


@EndNode

@Node "Node Line Tips" "texinfo.guide/Node Line Tips"
@Next "Node Line Requirements"
@Prev "Writing a Node"
@Toc "node"

@{b} @node@{ub} Line Tips
----------------

  Here are three suggestions:

   @{b}*@{ub} Try to pick node names that are informative but short.

     In the Info file, the file name, node name, and pointer names are
     all inserted on one line, which may run into the right edge of the
     window.  (This does not cause a problem with Info, but is ugly.)

   @{b}*@{ub} Try to pick node names that differ from each other near the
     beginnings of their names.  This way, it is easy to use automatic
     name completion in Info.

   @{b}*@{ub} By convention, node names are capitalized just as they would be for
     section or chapter titles--initial and significant words are
     capitalized; others are not.


@EndNode

@Node "Node Line Requirements" "texinfo.guide/Node Line Requirements"
@Next "First Node"
@Prev "Node Line Tips"
@Toc "node"

@{b} @node@{ub} Line Requirements
------------------------

  Here are several requirements for @{b} @node@{ub} lines:

   @{b}*@{ub} All the node names for a single Info file must be unique.

     Duplicates confuse the Info movement commands.  This means, for
     example, that if you end every chapter with a summary, you must
     name each summary node differently.  You cannot just call each one
     "Summary".  You may, however, duplicate the titles of chapters,
     sections, and the like.  Thus you can end each chapter in a book
     with a section called "Summary", so long as the node names for
     those sections are all different.

   @{b}*@{ub} A pointer name must be the name of a node.

     The node to which a pointer points may come before or after the
     node containing the pointer.

   @{b}*@{ub} You cannot use any of the Texinfo @-commands in a node name;
     @-commands confuse Info.

     Thus, the beginning of the section called @{b} @chapter@{ub} looks like
     this:

          @node  chapter, unnumbered & appendix, makeinfo top, Structuring
          @comment  node-name,  next,  previous,  up
          @section @code{@@chapter}
          @findex chapter

   @{b}*@{ub} You cannot use commas, colons, or apostrophes within a node name;
     these confuse TeX or the Info formatters.

     For example, the following is a section title:

          @code{@@unnumberedsec}, @code{@@appendixsec}, @code{@@heading}

     The corresponding node name is:

          unnumberedsec appendixsec heading

   @{b}*@{ub} Case is significant.


@EndNode

@Node "First Node" "texinfo.guide/First Node"
@Next "makeinfo top command"
@Prev "Node Line Requirements"
@Toc "node"

The First Node
--------------

  The first node of a Texinfo file is the `Top' node, except in an
included file (see @{"Include Files" Link "Include Files"}).

  The `Top' node (which must be named @{b}top@{ub} or @{b}Top@{ub}) should have as its
`Up' and `Previous' nodes the name of a node in another file, where
there is a menu that leads to this file.  Specify the file name in
parentheses.  If the file is to be installed directly in the Info
directory file, use @{b}(dir)@{ub} as the parent of the `Top' node; this is
short for @{b}(dir)top@{ub}, and specifies the `Top' node in the @{b}dir@{ub} file, which
contains the main menu for Info.  For example, the @{b} @node Top@{ub} line of
this manual looks like this:

     @node Top, Overview, (dir), (dir)

(You may use the Texinfo updating commands or the @{b}makeinfo@{ub} utility to
insert these `Next' and @{b}(dir)@{ub} pointers automatically.)

  See @{"Install an Info File" Link "Install an Info File"}, for more information about installing an
Info file in the @{b}info@{ub} directory.

  The `Top' node contains the main or master menu for the document.


@EndNode

@Node "makeinfo top command" "texinfo.guide/makeinfo top command"
@Next "Top Node Summary"
@Prev "First Node"
@Toc "node"

The @{b} @top@{ub} Sectioning Command
----------------------------

  A special sectioning command, @{b} @top@{ub}, has been created for use with
the @{b} @node Top@{ub} line.  The @{b} @top@{ub} sectioning command tells @{b}makeinfo@{ub} that
it marks the `Top' node in the file.  It provides the information that
@{b}makeinfo@{ub} needs to insert node pointers automatically.  Write the @{b}
@top@{ub} command at the beginning of the line immediately following the @{b}
@node Top@{ub} line.  Write the title on the remaining part of the same line
as the @{b} @top@{ub} command.

  In Info, the @{b} @top@{ub} sectioning command causes the title to appear on a
line by itself, with a line of asterisks inserted underneath.

  In TeX and @{b}texinfo-format-buffer@{ub}, the @{b} @top@{ub} sectioning command is
merely a synonym for @{b} @unnumbered@{ub}.  Neither of these formatters require
an @{b} @top@{ub} command, and do nothing special with it.  You can use @{b}
@chapter@{ub} or @{b} @unnumbered@{ub} after the @{b} @node Top@{ub} line when you use
these formatters.  Also, you can use @{b} @chapter@{ub} or @{b} @unnumbered@{ub} when you
use the Texinfo updating commands to create or update pointers and
menus.


@EndNode

@Node "Top Node Summary" "texinfo.guide/Top Node Summary"
@Prev "makeinfo top command"
@Toc "node"

The `Top' Node Summary
----------------------

  You can help readers by writing a summary in the `Top' node, after the
@{b} @top@{ub} line, before the main or master menu.  The summary should
briefly describe the document.  In Info, this summary will appear just
before the master menu.  In a printed manual, this summary will appear
on a page of its own.

  If you do not want the summary to appear on a page of its own in a
printed manual, you can enclose the whole of the `Top' node, including
the @{b} @node Top@{ub} line and the @{b} @top@{ub} sectioning command line or other
sectioning command line between @{b} @ifinfo@{ub} and @{b} @end ifinfo@{ub}.  This
prevents any of the text from appearing in the printed output. (see
@{"Conditionally Visible Text" Link "Conditionals"}).  You can repeat the brief description from
the `Top' node within @{b} @iftex@{ub} ... @{b} @end iftex@{ub} at the beginning of the
first chapter, for those who read the printed manual.  This saves paper
and may look neater.

  You should write the version number of the program to which the manual
applies in the summary.  This helps the reader keep track of which
manual is for which version of the program.  If the manual changes more
frequently than the program or is independent of it, you should also
include an edition number for the manual.  (The title page should also
contain this information: see See @{"@titlepage" Link "titlepage"}.)


@EndNode

@Node "makeinfo Pointer Creation" "texinfo.guide/makeinfo Pointer Creation"
@Prev "node"
@Toc "Nodes"

Creating Pointers with @{b}makeinfo@{ub}
===============================

  The @{b}makeinfo@{ub} program has a feature for automatically creating node
pointers for a hierarchically organized file that lacks them.

  When you take advantage of this feature, you do not need to write the
`Next', `Previous', and `Up' pointers after the name of a node.
However, you must write a sectioning command, such as @{b} @chapter@{ub} or @{b}
@section@{ub}, on the line immediately following each truncated @{b} @node@{ub} line.
You cannot write a comment line after a node line; the section line
must follow it immediately.

  In addition, you must follow the `Top' @{b} @node@{ub} line with a line
beginning with @{b} @top@{ub} to mark the `Top' node in the file. See @{"@top" Link "makeinfo top"}.

  Finally, you must write the name of each node (except for the `Top'
node) in a menu that is one or more hierarchical levels above the
node's hierarchical level.

  This node pointer insertion feature in @{b}makeinfo@{ub} is an alternative to
the menu and pointer creation and update commands in Texinfo mode.
(See @{"Updating Nodes and Menus" Link "Updating Nodes and Menus"}.)  It is especially helpful to people who
do not use GNU Emacs for writing Texinfo documents.


@EndNode

@Node "Menus" "texinfo.guide/Menus"
@Next "Cross References"
@Prev "Nodes"
@Toc "Main"

Menus
*****

  @{i}Menus@{ui} contain pointers to subordinate nodes.(1)@{"Menus-Footnotes" Link "Menus-Footnotes"} In
Info, you use menus to go to such nodes.  Menus have no effect in
printed manuals and do not appear in them.

  By convention, a menu is put at the end of a node since a reader who
uses the menu may not see text that follows it.

  A node that has a menu should @{i}not@{ui} contain much text.  If you have a
lot of text and a menu, move most of the text into a new subnode--all
but a few lines.


 @{" Menu Location             " Link "Menu Location"}  Put a menu in a short node.
 @{" Writing a Menu            " Link "Writing a Menu"}  What is a menu?
 @{" Menu Parts                " Link "Menu Parts"}  A menu entry has three parts.
 @{" Less Cluttered Menu Entry " Link "Less Cluttered Menu Entry"}  Two part menu entry.
 @{" Menu Example              " Link "Menu Example"}  Two and three part menu entries.
 @{" Other Info Files          " Link "Other Info Files"}  How to refer to a different Info file.


@EndNode

@Node "Menus-Footnotes" "texinfo.guide/Menus-Footnotes"
@Toc "Menus"

  (1)  Menus can carry you to any node, regardless of the hierarchical
structure; even to nodes in a different Info file.  However, the GNU
Emacs Texinfo mode updating commands work only to create menus of
subordinate nodes.  Conventionally, cross references are used to refer
to other nodes.


@EndNode

@Node "Menu Location" "texinfo.guide/Menu Location"
@Next "Writing a Menu"
@Prev "Menus"
@Toc "Menus"

Menus Need Short Nodes
======================

  A reader can easily see a menu that is close to the beginning of the
node.  The node should be short.  As a practical matter, you should
locate a menu within 20 lines of the beginning of the node.  Otherwise,
a reader with a terminal that displays only a few lines may miss the
menu and its associated text.

  The short text before a menu may look awkward in a printed manual.  To
avoid this, you can write a menu near the beginning of its node and
follow the menu by an @{b} @node@{ub} line, and then an @{b} @heading@{ub} line located
within @{b} @ifinfo@{ub} and @{b} @end ifinfo@{ub}.  This way, the menu, @{b} @node@{ub} line, and
title appear only in the Info file, not the printed document.

  For example, the preceding two paragraphs follow an Info-only menu, @{b}
@node@{ub} line, and heading, and look like this:

     @menu
     * Menu Location::             Put a menu in a short node.
     * Writing a Menu::            What is a menu?
     * Menu Parts::                A menu entry has three parts.
     * Less Cluttered Menu Entry:: Two part menu entry.
     * Menu Example::              Two and three part entries.
     * Other Info Files::          How to refer to a different
                                     Info file.
     @end menu
     
     @node Menu Location, Writing a Menu,  , Menus
     @ifinfo
     @heading Menus Need Short Nodes
     @end ifinfo

  The Texinfo file for this document contains more than a dozen
examples of this procedure.  One is at the beginning of this chapter;
another is at the beginning of the "Cross References" chapter.


@EndNode

@Node "Writing a Menu" "texinfo.guide/Writing a Menu"
@Next "Menu Parts"
@Prev "Menu Location"
@Toc "Menus"

Writing a Menu
==============

  A menu consists of an @{b} @menu@{ub} command on a line by itself followed by
menu entry lines or menu comment lines and then by an @{b} @end menu@{ub}
command on a line by itself.

  A menu looks like this:

     @menu
     Larger Units of Text
     
     * Files::                       All about handling files.
     * Multiples: Buffers.           Multiple buffers; editing
                                       several files at once.
     @end menu

  In a menu, every line that begins with an @{b}* @{ub} is a @{i}menu entry@{ui}.  (Note
the space after the asterisk.)  A line that does not start with an @{b}* @{ub}
may also appear in a menu.  Such a line is not a menu entry but is a
menu comment line that appears in the Info file.  In the example above,
the line @{b}Larger Units of Text@{ub} is a menu comment line; the two lines
starting with @{b}* @{ub} are menu entries.


@EndNode

@Node "Menu Parts" "texinfo.guide/Menu Parts"
@Next "Less Cluttered Menu Entry"
@Prev "Writing a Menu"
@Toc "Menus"

The Parts of a Menu
===================

  A menu entry has three parts, only the second of which is required:

  1. The menu entry name.

  2. The name of the node (required).

  3. A description of the item.

  The template for a menu entry looks like this:

     * MENU-ENTRY-NAME: NODE-NAME.   DESCRIPTION

  Follow the menu entry name with a single colon and follow the node
name with tab, comma, period, or newline.

  In Info, a user selects a node with the @{b}m@{ub} (@{b}Info-menu@{ub}) command.  The
menu entry name is what the user types after the @{b}m@{ub} command.

  The third part of a menu entry is a descriptive phrase or sentence.
Menu entry names and node names are often short; the description
explains to the reader what the node is about.  The description, which
is optional, can spread over two or more lines.  A useful description
complements the node name rather than repeats it.


@EndNode

@Node "Less Cluttered Menu Entry" "texinfo.guide/Less Cluttered Menu Entry"
@Next "Menu Example"
@Prev "Menu Parts"
@Toc "Menus"

Less Cluttered Menu Entry
=========================

  When the menu entry name and node name are the same, you can write
the name immediately after the asterisk and space at the beginning of
the line and follow the name with two colons.

  For example, write

     * Name::                                    DESCRIPTION

instead of

     * Name: Name.                               DESCRIPTION

  You should use the node name for the menu entry name whenever
possible, since it reduces visual clutter in the menu.


@EndNode

@Node "Menu Example" "texinfo.guide/Menu Example"
@Next "Other Info Files"
@Prev "Less Cluttered Menu Entry"
@Toc "Menus"

A Menu Example
==============

  A menu looks like this in Texinfo:

     @menu
     * menu entry name: Node name.   A short description.
     * Node name::                   This form is preferred.
     @end menu

This produces:

     * menu:
     
     * menu entry name: Node name.   A short description.
     * Node name::                   This form is preferred.

  Here is an example as you might see it in a Texinfo file:

     @menu
     Larger Units of Text
     
     * Files::                       All about handling files.
     * Multiples: Buffers.           Multiple buffers; editing
                                       several files at once.
     @end menu

This produces:

     * menu:
     Larger Units of Text
     
     * Files::                       All about handling files.
     * Multiples: Buffers.           Multiple buffers; editing
                                       several files at once.

  In this example, the menu has two entries.  @{b}Files@{ub} is both a menu
entry name and the name of the node referred to by that name.
@{b}Multiples@{ub} is the menu entry name; it refers to the node named
@{b}Buffers@{ub}. The line @{b}Larger Units of Text@{ub} is a comment; it appears in
the menu, but is not an entry.

  Since no file name is specified with either @{b}Files@{ub} or @{b}Buffers@{ub}, they
must be the names of nodes in the same Info file (see
@{"Referring to Other Info Files" Link "Other Info Files"}).


@EndNode

@Node "Other Info Files" "texinfo.guide/Other Info Files"
@Prev "Menu Example"
@Toc "Menus"

Referring to Other Info Files
=============================

  You can create a menu entry that enables a reader in Info to go to a
node in another Info file by writing the file name in parentheses just
before the node name.  In this case, you should use the three-part menu
entry format, which saves the reader from having to type the file name.

  The format looks like this:

     @menu
     * FIRST-ENTRY-NAME:(FILENAME)NODENAME.     DESCRIPTION
     * SECOND-ENTRY-NAME:(FILENAME)SECOND-NODE. DESCRIPTION
     @end menu

  For example, to refer directly to the @{b}Outlining@{ub} and @{b}Rebinding@{ub} nodes
in the `Emacs Manual', you would write a menu like this:

     @menu
     * Outlining: (emacs)Outline Mode. The major mode for
                                       editing outlines.
     * Rebinding: (emacs)Rebinding.    How to redefine the
                                       meaning of a key.
     @end menu

  If you do not list the node name, but only name the file, then Info
presumes that you are referring to the `Top' node.

  The @{b}dir@{ub} file that contains the main menu for Info has menu entries
that list only file names.  These take you directly to the `Top' nodes
of each Info document.  (See @{"Install an Info File" Link "Install an Info File"}.)

  For example:

     * Info: (info).         Documentation browsing system.
     * Emacs: (emacs).       The extensible, self-documenting
                             text editor.

(The @{b}dir@{ub} top level directory for the Info system is an Info file, not a
Texinfo file, but a menu entry looks the same in both types of file.)

  Note that the GNU Emacs Texinfo mode menu updating commands only work
with nodes within the current buffer, so you cannot use them to create
menus that refer to other files.  You must write such menus by hand.


@EndNode

@Node "Cross References" "texinfo.guide/Cross References"
@Next "Marking Text"
@Prev "Menus"
@Toc "Main"

Cross References
****************

  @{i}Cross references@{ui} are used to refer the reader to other parts of the
same or different Texinfo files.  In Texinfo, nodes are the places to
which cross references can refer.


 @{" References                " Link "References"}  What cross references are for.
 @{" Cross Reference Commands  " Link "Cross Reference Commands"}  A summary of the different commands.
 @{" Cross Reference Parts     " Link "Cross Reference Parts"}  A cross reference has several parts.
 @{" xref                      " Link "xref"}  Begin a reference with `See' ...
 @{" Top Node Naming           " Link "Top Node Naming"}  How to refer to the beginning of another file.
 @{" ref                       " Link "ref"}  A reference for the last part of a sentence.
 @{" pxref                     " Link "pxref"}  How to write a parenthetical cross reference.
 @{" inforef                   " Link "inforef"}  How to refer to an Info-only file.


@EndNode

@Node "References" "texinfo.guide/References"
@Next "Cross Reference Commands"
@Prev "Cross References"
@Toc "Cross References"

What References Are For
=======================

  Often, but not always, a printed document should be designed so that
it can be read sequentially.  People tire of flipping back and forth to
find information that should be presented to them as they need it.

  However, in any document, some information will be too detailed for
the current context, or incidental to it; use cross references to
provide access to such information.  Also, an on-line help system or a
reference manual is not like a novel; few read such documents in
sequence from beginning to end.  Instead, people look up what they
need.  For this reason, such creations should contain many cross
references to help readers find other information that they may not
have read.

  In a printed manual, a cross reference results in a page reference,
unless it is to another manual altogether, in which case the cross
reference names that manual.

  In Info, a cross reference results in an entry that you can follow
using the Info @{b}f@{ub} command.  (See @{"Some advanced Info commands" Link "info/Help-Adv"}.)

  The various cross reference commands use nodes to define cross
reference locations.  This is evident in Info, in which a cross
reference takes you to the specified node.  TeX also uses nodes to
define cross reference locations, but the action is less obvious.  When
TeX generates a @{i}dvi@{ui} file, it records nodes' page numbers and uses the
page numbers in making references.  Thus, if you are writing a manual
that will only be printed, and will not be used on-line, you must
nonetheless write @{b} @node@{ub} lines to name the places to which you make
cross references.


@EndNode

@Node "Cross Reference Commands" "texinfo.guide/Cross Reference Commands"
@Next "Cross Reference Parts"
@Prev "References"
@Toc "Cross References"

Different Cross Reference Commands
==================================

  There are four different cross reference commands:

@{b} @xref@{ub}
     Used to start a sentence in the printed manual saying `See ...' or
     an Info cross-reference saying @{b}*Note NAME: NODE.@{ub}.

@{b} @ref@{ub}
     Used within or, more often, at the end of a sentence; same as @{b}
     @xref@{ub} for Info; produces just the reference in the printed manual
     without a preceding `See'.

@{b} @pxref@{ub}
     Used within parentheses to make a reference that suits both an Info
     file and a printed book.  Starts with a lower case `see' within the
     printed manual. (@{b}p@{ub} is for `parenthesis'.)

@{b} @inforef@{ub}
     Used to make a reference to an Info file for which there is no
     printed manual.

(The @{b} @cite@{ub} command is used to make references to books and manuals for
which there is no corresponding Info file and, therefore, no node to
which to point.   See @{"@cite" Link "cite"}.)


@EndNode

@Node "Cross Reference Parts" "texinfo.guide/Cross Reference Parts"
@Next "xref"
@Prev "Cross Reference Commands"
@Toc "Cross References"

Parts of a Cross Reference
==========================

  A cross reference command requires only one argument, which is the
name of the node to which it refers.  But a cross reference command may
contain up to four additional arguments.  By using these arguments, you
can provide a cross reference name for Info, a topic description or
section title for the printed output, the name of a different Info
file, and the name of a different printed manual.

  Here is a simple cross reference example:

     @xref{Node name}.

which produces

     *Note Node name::.

and

     See Section NNN [Node name], page PPP.

  Here is an example of a full five-part cross reference:

     @xref{Node name, Cross Reference Name, Particular Topic,
     info-file-name, A Printed Manual}, for details.

which produces

     *Note Cross Reference Name: (info-file-name)Node name,
     for details.

in Info and

     See section "Particular Topic" in @{i}A Printed Manual@{ui}, for details.

in a printed book.

  The five possible arguments for a cross reference are:

  1. The node name (required).  This is the node to which the cross
     reference takes you.  In a printed document, the location of the
     node provides the page reference only for references within the
     same document.

  2. The cross reference name for the Info reference, if it is to be
     different from the node name.  If you include this argument, it
     argument becomes the first part of the cross reference. It is
     usually omitted.

  3. A topic description or section name.  Often, this is the title of
     the section.  This is used as the name of the reference in the
     printed manual.  If omitted, the node name is used.

  4. The name of the Info file in which the reference is located, if it
     is different from the current file.

  5. The name of a printed manual from a different Texinfo file.

  The template for a full five argument cross reference looks like this:

     @xref{NODE-NAME, CROSS-REFERENCE-NAME, TITLE-OR-TOPIC,
     INFO-FILE-NAME, PRINTED-MANUAL-TITLE}.

  Cross references with one, two, three, four, and five arguments are
described separately following the description of @{b} @xref@{ub}.

  Write a node name in a cross reference in exactly the same way as in
the @{b} @node@{ub} line, including the same capitalization; otherwise, the
formatters may not find the reference.

  You can write cross reference commands within a paragraph, but note
how Info and TeX format the output of each of the various commands:
write @{b} @xref@{ub} at the beginning of a sentence; write @{b} @pxref@{ub} only within
parentheses, and so on.


@EndNode

@Node "xref" "texinfo.guide/xref"
@Next "Top Node Naming"
@Prev "Cross Reference Parts"
@Toc "Cross References"

@{b} @xref@{ub}
======

  The @{b} @xref@{ub} command generates a cross reference for the beginning of a
sentence.  The Info formatting commands convert it into an Info cross
reference, which the Info @{b}f@{ub} command can use to bring you directly to
another node.  The TeX typesetting commands convert it into a page
reference, or a reference to another book or manual.


 @{" Reference Syntax          " Link "Reference Syntax"}  What a reference looks like and requires.
 @{" One Argument              " Link "One Argument"}  @{b} @xref@{ub} with one argument.
 @{" Two Arguments             " Link "Two Arguments"}  @{b} @xref@{ub} with two arguments.
 @{" Three Arguments           " Link "Three Arguments"}  @{b} @xref@{ub} with three arguments.
 @{" Four and Five Arguments   " Link "Four and Five Arguments"}  @{b} @xref@{ub} with four and five arguments.


@EndNode

@Node "Reference Syntax" "texinfo.guide/Reference Syntax"
@Next "One Argument"
@Prev "xref"
@Toc "xref"

What a Reference Looks Like and Requires
----------------------------------------

  Most often, an Info cross reference looks like this:

     *Note NODE-NAME::.

or like this

     *Note CROSS-REFERENCE-NAME: NODE-NAME.

In TeX, a cross reference looks like this:

     See Section SECTION-NUMBER [NODE-NAME], page PAGE.

or like this

     See Section SECTION-NUMBER [TITLE-OR-TOPIC], page PAGE.

  The @{b} @xref@{ub} command does not generate a period or comma to end the
cross reference in either the Info file or the printed output.  You
must write that period or comma yourself; otherwise, Info will not
recognize the end of the reference.  (The @{b} @pxref@{ub} command works
differently.  See @{"@pxref" Link "pxref"}.)

     @{i}Please note:@{ui} A period or comma @{i}must@{ui} follow the closing brace of an
     @{b} @xref@{ub}.  It is required to terminate the cross reference.
     This period or comma will appear in the output, both in the Info
     file and in the printed manual.

  @{b} @xref@{ub} must refer to an Info node by name.  Use @{b} @node@{ub} to define the
node (see @{"Writing a Node" Link "Writing a Node"}).

  @{b} @xref@{ub} is followed by several arguments inside braces, separated by
commas.  Whitespace before and after these commas is ignored.

  A cross reference requires only the name of a node; but it may contain
up to four additional arguments.  Each of these variations produces a
cross reference that looks somewhat different.

     @{i}Please note:@{ui} Commas separate arguments in a cross reference; avoid
     including them in the title or other part lest the formatters
     mistake them for separators.


@EndNode

@Node "One Argument" "texinfo.guide/One Argument"
@Next "Two Arguments"
@Prev "Reference Syntax"
@Toc "xref"

@{b} @xref@{ub} with One Argument
------------------------

  The simplest form of @{b} @xref@{ub} takes one argument, the name of another
node in the same Info file.    The Info formatters produce output that
the Info readers can use to jump to the reference; TeX produces output
that specifies the page and section number for you.

For example,

     @xref{Tropical Storms}.

produces

     *Note Tropical Storms::.

and

     See Section 3.1 [Tropical Storms], page 24.

(Note that in the preceding example the closing brace is followed by a
period.)

  You can write a clause after the cross reference, like this:

     @xref{Tropical Storms}, for more info.

which produces

     *Note Tropical Storms::, for more info.

     See Section 3.1 [Tropical Storms], page 24, for more info.

(Note that in the preceding example the closing brace is followed by a
comma, and then by the clause, which is followed by a period.)


@EndNode

@Node "Two Arguments" "texinfo.guide/Two Arguments"
@Next "Three Arguments"
@Prev "One Argument"
@Toc "xref"

@{b} @xref@{ub} with Two Arguments
-------------------------

  With two arguments, the second is used as the name of the Info cross
reference, while the first is still the name of the node to which the
cross reference points.

The template is like this:

     @xref{NODE-NAME, CROSS-REFERENCE-NAME}.

For example,

     @xref{Electrical Effects, Lightning}.

produces:

     *Note Lightning: Electrical Effects.

and

     See Section 5.2 [Electrical Effects], page 57.

(Note that in the preceding example the closing brace is followed by a
period; and that the node name is printed, not the cross reference
name.)

  You can write a clause after the cross reference, like this:

     @xref{Electrical Effects, Lightning}, for more info.

which produces
     *Note Lightning: Electrical Effects, for more info.

and

     See Section 5.2 [Electrical Effects], page 57, for more info.

(Note that in the preceding example the closing brace is followed by a
comma, and then by the clause, which is followed by a period.)


@EndNode

@Node "Three Arguments" "texinfo.guide/Three Arguments"
@Next "Four and Five Arguments"
@Prev "Two Arguments"
@Toc "xref"

@{b} @xref@{ub} with Three Arguments
---------------------------

  A third argument replaces the node name in the TeX output.  The third
argument should be the name of the section in the printed output, or
else state the topic discussed by that section.  Often, you will want to
use initial upper case letters so it will be easier to read when the
reference is printed.  Use a third argument when the node name is
unsuitable because of syntax or meaning.

  Remember to avoid placing a comma within the title or topic section of
a cross reference, or within any other section.  The formatters divide
cross references into arguments according to the commas; a comma within
a title or other section will divide it into two arguments.  In a
reference, you need to write a title such as "Clouds, Mist, and Fog"
without the commas.

  Also, remember to write a comma or period after the closing brace of a
@{b} @xref@{ub} to terminate the cross reference.  In the following
examples, a clause follows a terminating comma.

The template is like this:

     @xref{NODE-NAME, CROSS-REFERENCE-NAME, TITLE-OR-TOPIC}.

For example,

     @xref{Electrical Effects, Lightning, Thunder and Lightning},
     for details.

produces

     *Note Lightning: Electrical Effects, for details.

and

     See Section 5.2 [Thunder and Lightning], page 57, for details.

  If a third argument is given and the second one is empty, then the
third argument serves both.  (Note how two commas, side by side, mark
the empty second argument.)

     @xref{Electrical Effects, , Thunder and Lightning},
     for details.

produces

     *Note Thunder and Lightning: Electrical Effects, for details.

and

     See Section 5.2 [Thunder and Lightning], page 57, for details.

  As a practical matter, it is often best to write cross references with
just the first argument if the node name and the section title are the
same, and with the first and third arguments if the node name and title
are different.

  Here are several examples from `The GAWK Manual':

     @xref{Sample Program}.
     @xref{Glossary}.
     @xref{Case-sensitivity, ,Case-sensitivity in Matching}.
     @xref{Close Output, , Closing Output Files and Pipes},
        for more information.
     @xref{Regexp, , Regular Expressions as Patterns}.


@EndNode

@Node "Four and Five Arguments" "texinfo.guide/Four and Five Arguments"
@Prev "Three Arguments"
@Toc "xref"

@{b} @xref@{ub} with Four and Five Arguments
-----------------------------------

  In a cross reference, a fourth argument specifies the name of another
Info file, different from the file in which the reference appears, and
a fifth argument specifies its title as a printed manual.

  Remember that a comma or period must follow the closing brace of an @{b}
@xref@{ub} command to terminate the cross reference.  In the following
examples, a clause follows a terminating comma.

The template is:

     @xref{NODE-NAME, CROSS-REFERENCE-NAME, TITLE-OR-TOPIC,
     INFO-FILE-NAME, PRINTED-MANUAL-TITLE}.

For example,

     @xref{Electrical Effects, Lightning, Thunder and Lightning,
     weather, An Introduction to Meteorology}, for details.

produces

     *Note Lightning: (weather)Electrical Effects, for details.

The name of the Info file is enclosed in parentheses and precedes the
name of the node.

In a printed manual, the reference looks like this:

     See section "Thunder and Lightning" in @{i}An Introduction to
     Meteorology@{ui}, for details.

The title of the printed manual is typeset in italics; and the
reference lacks a page number since TeX cannot know to which page a
reference refers when that reference is to another manual.

  Often, you will leave out the second argument when you use the long
version of @{b} @xref@{ub}.  In this case, the third argument, the topic
description, will be used as the cross reference name in Info.

The template looks like this:

     @xref{NODE-NAME, , TITLE-OR-TOPIC, INFO-FILE-NAME,
     PRINTED-MANUAL-TITLE}, for details.

which produces

     *Note TITLE-OR-TOPIC: (INFO-FILE-NAME)NODE-NAME, for details.

and

     See section TITLE-OR-TOPIC in PRINTED-MANUAL-TITLE, for details.

For example,

     @xref{Electrical Effects, , Thunder and Lightning,
     weather, An Introduction to Meteorology}, for details.

produces

     *Note Thunder and Lightning: (weather)Electrical Effects,
     for details.

and

     See section "Thunder and Lightning" in @{i}An Introduction to
     Meteorology@{ui}, for details.

  On rare occasions, you may want to refer to another Info file that is
within a single printed manual--when multiple Texinfo files are
incorporated into the same TeX run but make separate Info files.  In
this case, you need to specify only the fourth argument, and not the
fifth.


@EndNode

@Node "Top Node Naming" "texinfo.guide/Top Node Naming"
@Next "ref"
@Prev "xref"
@Toc "Cross References"

Naming a `Top' Node
===================

  In a cross reference, you must always name a node.  This means that in
order to refer to a whole manual, you must identify the `Top' node by
writing it as the first argument to the @{b} @xref@{ub} command.  (This is
different from the way you write a menu entry; see See
@{"Referring to Other Info Files" Link "Other Info Files"}.)  At the same time, to provide a
meaningful section topic or title in the printed cross reference
(instead of the word `Top'), you must write an appropriate entry for
the third argument to the @{b} @xref@{ub} command.

Thus, to make a cross reference to `The GNU Make Manual', write:

     @xref{Top, , Overview, make, The GNU Make Manual}.

which produces

     *Note Overview: (make)Top.

and

     See section "Overview" in @{i}The GNU Make Manual@{ui}.

In this example, @{b}Top@{ub} is the name of the first node, and @{b}Overview@{ub} is the
name of the first section of the manual.


@EndNode

@Node "ref" "texinfo.guide/ref"
@Next "pxref"
@Prev "Top Node Naming"
@Toc "Cross References"

@{b} @ref@{ub}
=====

  @{b} @ref@{ub} is nearly the same as @{b} @xref@{ub} except that it does not generate a
`See' in the printed output, just the reference itself.  This makes it
useful as the last part of a sentence.

For example,

     For more information, see @ref{Hurricanes}.

produces

     For more information, see *Note Hurricanes.

and

     For more information, see Section 8.2 [Hurricanes], page 123.

  The @{b} @ref@{ub} command sometimes leads writers to express themselves in a
manner that is suitable for a printed manual but looks awkward in the
Info format.  Bear in mind that your audience will be using both the
printed and the Info format.

For example,

     Sea surges are described in @ref{Hurricanes}.

produces

     Sea surges are described in Section 6.7 [Hurricanes], page 72.

in a printed document, and the following in Info:

     Sea surges are described in *Note Hurricanes::.

     @{i}Caution:@{ui} You @{i}must@{ui} write a period or comma immediately after an @{b}
     @ref@{ub} command with two or more arguments.  Otherwise, Info will not
     find the end of the cross reference entry and its attempt to
     follow the cross reference will fail.  As a general rule, you
     should write a period or comma after every @{b} @ref@{ub} command.  This
     looks best in both the printed and the Info output.


@EndNode

@Node "pxref" "texinfo.guide/pxref"
@Next "inforef"
@Prev "ref"
@Toc "Cross References"

@{b} @pxref@{ub}
=======

  The parenthetical reference command, @{b} @pxref@{ub}, is nearly the same as @{b}
@xref@{ub}, but you use it @{i}only@{ui} inside parentheses and you do @{i}not@{ui} type a
comma or period after the command's closing brace.  The command differs
from @{b} @xref@{ub} in two ways:

  1. TeX typesets the reference for the printed manual with a lower case
     `see' rather than an upper case `See'.

  2. The Info formatting commands automatically end the reference with a
     closing colon or period.

  Because one type of formatting automatically inserts closing
punctuation and the other does not, you should use @{b} @pxref@{ub} @{i}only@{ui} inside
parentheses as part of another sentence.  Also, you yourself should not
insert punctuation after the reference, as you do with @{b} @xref@{ub}.

  @{b} @pxref@{ub} is designed so that the output looks right and works right
between parentheses both in printed output and in an Info file.  In a
printed manual, a closing comma or period should not follow a cross
reference within parentheses; such punctuation is wrong.  But in an
Info file, suitable closing punctuation must follow the cross reference
so Info can recognize its end.  @{b} @pxref@{ub} spares you the need to use
complicated methods to put a terminator into one form of the output and
not the other.

With one argument, a parenthetical cross reference looks like this:

     ... storms cause flooding (@pxref{Hurricanes}) ...

which produces

     ... storms cause flooding (*Note Hurricanes::) ...

and

     ... storms cause flooding (see Section 6.7 [Hurricanes], page 72)
     ...

  With two arguments, a parenthetical cross reference has this template:

     ... (@pxref{NODE-NAME, CROSS-REFERENCE-NAME}) ...

which produces

     ... (*Note CROSS-REFERENCE-NAME: NODE-NAME.) ...

and

     ... (see Section NNN [NODE-NAME], page PPP) ...

  @{b} @pxref@{ub} can be used with up to five arguments just like @{b} @xref@{ub} (see
@{"@xref" Link "xref"}).

     @{i}Please note:@{ui} Use @{b} @pxref@{ub} only as a parenthetical reference.  Do
     not try to use @{b} @pxref@{ub} as a clause in a sentence.  It will look
     bad in either the Info file, the printed output, or both.

     Also, parenthetical cross references look best at the ends of
     sentences.  Although you may write them in the middle of a
     sentence, that location breaks up the flow of text.


@EndNode

@Node "inforef" "texinfo.guide/inforef"
@Prev "pxref"
@Toc "Cross References"

@{b} @inforef@{ub}
=========

  @{b} @inforef@{ub} is used for cross references to Info files for which there
are no printed manuals.  Even in a printed manual, @{b} @inforef@{ub} generates
a reference directing the user to look in an Info file.

  The command takes either two or three arguments, in the following
order:

  1. The node name.

  2. The cross reference name (optional).

  3. The Info file name.

Separate the arguments with commas, as with @{b} @xref@{ub}.  Also, you must
terminate the reference with a comma or period after the @{b}}@{ub}, as you do
with @{b} @xref@{ub}.

The template is:

     @inforef{NODE-NAME, CROSS-REFERENCE-NAME, INFO-FILE-NAME},

Thus,

     @inforef{Expert, Advanced Info commands, info},
     for more information.

produces

     *Note Advanced Info commands: (info)Expert,
     for more information.

and

     See Info file @{b}info@{ub}, node @{b}Expert@{ub}, for more information.

Similarly,

     @inforef{Expert, , info}, for more information.

produces

     *Note (info)Expert::, for more information.

and

     See Info file @{b}info@{ub}, node @{b}Expert@{ub}, for more information.

  The converse of @{b} @inforef@{ub} is @{b} @cite@{ub}, which is used to refer to
printed works for which no Info form exists.  See @{"@cite" Link "cite"}.


@EndNode

@Node "Marking Text" "texinfo.guide/Marking Text"
@Next "Quotations and Examples"
@Prev "Cross References"
@Toc "Main"

Marking Words and Phrases
*************************

  In Texinfo, you can mark words and phrases in a variety of ways.  The
Texinfo formatters use this information to determine how to highlight
the text.  You can specify, for example, whether a word or phrase is a
defining occurrence, a metasyntactic variable, or a symbol used in a
program.  Also, you can emphasize text.


 @{" Indicating                " Link "Indicating"}  How to indicate definitions, files, etc.
 @{" Emphasis                  " Link "Emphasis"}  How to emphasize text.


@EndNode

@Node "Indicating" "texinfo.guide/Indicating"
@Next "Emphasis"
@Prev "Marking Text"
@Toc "Marking Text"

Indicating Definitions, Commands, etc.
======================================

  Texinfo has commands for indicating just what kind of object a piece
of text refers to.  For example, metasyntactic variables are marked by @{b}
@var@{ub}, and code by @{b} @code@{ub}.  Since the pieces of text are labelled by
commands that tell what kind of object they are, it is easy to change
the way the Texinfo formatters prepare such text.  (Texinfo is an
@{i}intentional@{ui} formatting language rather than a @{i}typesetting@{ui}
formatting language.)

  For example, in a printed manual, code is usually illustrated in a
typewriter font; @{b} @code@{ub} tells TeX to typeset this text in this font.
But it would be easy to change the way TeX highlights code to use
another font, and this change would not effect how keystroke examples
are highlighted.  If straight typesetting commands were used in the body
of the file and you wanted to make a change, you would need to check
every single occurrence to make sure that you were changing code and
not something else that should not be changed.


 @{" Useful Highlighting       " Link "Useful Highlighting"}  Highlighting provides useful information.
 @{" code                      " Link "code"}  How to indicate code.
 @{" kbd                       " Link "kbd"}  How to show keyboard input.
 @{" key                       " Link "key"}  How to specify keys.
 @{" samp                      " Link "samp"}  How to show a literal sequence of characters.
 @{" var                       " Link "var"}  How to indicate a metasyntactic variable.
 @{" file                      " Link "file"}  How to indicate the name of a file.
 @{" dfn                       " Link "dfn"}  How to specify a definition.
 @{" cite                      " Link "cite"}  How to refer to a book that is not in Info.


@EndNode

@Node "Useful Highlighting" "texinfo.guide/Useful Highlighting"
@Next "code"
@Prev "Indicating"
@Toc "Indicating"

Highlighting Commands are Useful
--------------------------------

  The highlighting commands can be used to generate useful information
from the file, such as lists of functions or file names.  It is
possible, for example, to write a program in Emacs Lisp (or a keyboard
macro) to insert an index entry after every paragraph that contains
words or phrases marked by a specified command.  You could do this to
construct an index of functions if you had not already made the entries.

  The commands serve a variety of purposes:

@{b} @code{SAMPLE-CODE}@{ub}
     Indicate text that is a literal example of a piece of a program.

@{b} @kbd{KEYBOARD-CHARACTERS}@{ub}
     Indicate keyboard input.

@{b} @key{KEY-NAME}@{ub}
     Indicate the conventional name for a key on a keyboard.

@{b} @samp{TEXT}@{ub}
     Indicate text that is a literal example of a sequence of
     characters.

@{b} @var{METASYNTACTIC-VARIABLE}@{ub}
     Indicate a metasyntactic variable.

@{b} @file{FILE-NAME}@{ub}
     Indicate the name of a file.

@{b} @dfn{TERM}@{ub}
     Indicate the introductory or defining use of a term.

@{b} @cite{REFERENCE}@{ub}
     Indicate the name of a book.


@EndNode

@Node "code" "texinfo.guide/code"
@Next "kbd"
@Prev "Useful Highlighting"
@Toc "Indicating"

@{b} @code@{ub} {SAMPLE-CODE}
--------------------

  Use the @{b} @code@{ub} command to indicate text that is a piece of a program
and which consists of entire syntactic tokens.  Enclose the text in
braces.

  Thus, you should use @{b} @code@{ub} for an expression in a program, for the
name of a variable or function used in a program, or for a keyword.
Also, you should use @{b} @code@{ub} for the name of a program, such as @{b}diff@{ub},
that is a name used in the machine. (You should write the name of a
program in the ordinary text font if you regard it as a new English
word, such as `Emacs' or `Bison'.)

  Use @{b} @code@{ub} for environment variables such as @{b}TEXINPUTS@{ub}, and other
variables.

  Use @{b} @code@{ub} for command names in command languages that resemble
programming languages, such as Texinfo or the shell.  For example, @{b}
@code@{ub} and @{b} @samp@{ub} are produced by writing @{b} @code{@@code}@{ub} and @{b}
@code{@@samp}@{ub} in the Texinfo source, respectively.

  Note, however, that you should not use @{b} @code@{ub} for shell options such
as @{b}-c@{ub} when such options stand alone. (Use @{b} @samp@{ub}.) Also, an entire
shell command often looks better if written using @{b} @samp@{ub} rather than @{b}
@code@{ub}.  In this case, the rule is to choose the more pleasing format.

  It is incorrect to alter the case of a word inside an @{b} @code@{ub} command
when it appears at the beginning of a sentence.  Most computer
languages are case sensitive.  In C, for example, @{b}Printf@{ub} is different
from the identifier @{b}printf@{ub}, and most likely is a misspelling of it.
Even in languages which are not case sensitive, it is confusing to a
human reader to see identifiers spelled in different ways.  Pick one
spelling and always use that.  If you do not want to start a sentence
with a command written all in lower case, you should rearrange the
sentence.

  Do not use the @{b} @code@{ub} command for a string of characters shorter than
a syntactic token.  If you are writing about @{b}TEXINPU@{ub}, which is just a
part of the name for the @{b}TEXINPUTS@{ub} environment variable, you should use
@{b} @samp@{ub}.

  In particular, you should not use the @{b} @code@{ub} command when writing
about the characters used in a token; do not, for example, use @{b} @code@{ub}
when you are explaining what letters or printable symbols can be used
in the names of functions.  (Use @{b} @samp@{ub}.)  Also, you should not use @{b}
@code@{ub} to mark text that is considered input to programs unless the
input is written in a language that is like a programming language.
For example, you should not use @{b} @code@{ub} for the keystroke commands of
GNU Emacs (use @{b} @kbd@{ub} instead) although you may use @{b} @code@{ub} for the names
of the Emacs Lisp functions that the keystroke commands invoke.

  In the printed manual, @{b} @code@{ub} causes TeX to typeset the argument in a
typewriter face.  In the Info file, it causes the Info formatting
commands to use single quotation marks around the text.

  For example,

     Use @code{diff} to compare two files.

produces this in the printed manual:

     Use @{b}diff@{ub} to compare two files.


@EndNode

@Node "kbd" "texinfo.guide/kbd"
@Next "key"
@Prev "code"
@Toc "Indicating"

@{b} @kbd@{ub} {KEYBOARD-CHARACTERS}
---------------------------

  Use the @{b} @kbd@{ub} command for characters of input to be typed by users.
For example, to refer to the characters @{b}M-a@{ub}, write

     @kbd{M-a}

and to refer to the characters @{b}M-x shell@{ub}, write

     @kbd{M-x shell}

  The @{b} @kbd@{ub} command has the same effect as @{b} @code@{ub} in Info, but may
produce a different font in a printed manual.

  You can embed another @-command inside the braces of an @{b} @kbd@{ub}
command.  Here, for example, is the way to describe a command that
would be described more verbosely as "press an @{b}r@{ub} and then press the RET
key":

     @kbd{r @key{RET}}

This produces: @{b}r RET@{ub}

  You also use the @{b} @kbd@{ub} command if you are spelling out the letters
you type; for example:

     To give the @code{logout} command,
     type the characters @kbd{l o g o u t @key{RET}}.

This produces:

     To give the @{b}logout@{ub} command, type the characters @{b}l o g o u t RET@{ub}.

  (Also, this example shows that you can add spaces for clarity.  If you
really want to mention a space character as one of the characters of
input, write @{b} @key{SPC}@{ub} for it.)


@EndNode

@Node "key" "texinfo.guide/key"
@Next "samp"
@Prev "kbd"
@Toc "Indicating"

@{b} @key@{ub} {KEY-NAME}
----------------

  Use the @{b} @key@{ub} command for the conventional name for a key on a
keyboard, as in:

     @key{RET}

  You can use the @{b} @key@{ub} command within the argument of an @{b} @kbd@{ub} command
when the sequence of characters to be typed includes one or more keys
that are described by name.

  For example, to produce @{b}C-x ESC@{ub} you would type:

     @kbd{C-x @key{ESC}}

  Here is a list of the recommended names for keys; they are all in
upper case:

    @{i}SPC@{ui}
          Space

    @{i}RET@{ui}
          Return

    @{i}LFD@{ui}
          Linefeed

    @{i}TAB@{ui}
          Tab

    @{i}BS@{ui}
          Backspace

    @{i}ESC@{ui}
          Escape

    @{i}DEL@{ui}
          Delete

    @{i}SFT@{ui}
          Shift

    @{i}CTL@{ui}
          Control

    @{i}META@{ui}
          Meta

  There are subtleties to handling words like `meta' or `ctl' that are
names of shift keys.  When mentioning a character in which the shift
key is used, such as @{b}Meta-a@{ub}, use the @{b} @kbd@{ub} command alone; do not use
the @{b} @key@{ub} command; but when you are referring to the shift key in
isolation, use the @{b} @key@{ub} command.  For example, write @{b} @kbd{Meta-a}@{ub} to
produce @{b}Meta-a@{ub} and @{b} @key{META}@{ub} to produce META.  This is because @{b}Meta-a@{ub}
refers to keys that you press on a keyboard, but META refers to a key
without implying that you press it.  In short, use @{b} @kbd@{ub} for what you
do, and use @{b} @key@{ub} for what you talk about: "Press @{b} @kbd{M-a}@{ub} to move
point to the beginning of the sentence.  The @{b} @key{META}@{ub} key is often
in the lower left of the keyboard."


@EndNode

@Node "samp" "texinfo.guide/samp"
@Next "var"
@Prev "key"
@Toc "Indicating"

@{b} @samp@{ub} {TEXT}
-------------

  Use the @{b} @samp@{ub} command to indicate text that is a literal example or
`sample' of a sequence of characters in a file, string, pattern, etc.
Enclose the text in braces.  The argument appears within single
quotation marks in both the Info file and the printed manual; in
addition, it is printed in a fixed-width font.

     To match @samp{foo} at the end of the line,
     use the regexp @samp{foo$}.

produces

     To match @{b}foo@{ub} at the end of the line, use the regexp @{b}foo$@{ub}.

  Any time you are referring to single characters, you should use @{b}
@samp@{ub} unless @{b} @kbd@{ub} is more appropriate.  Use @{b} @samp@{ub} for the names
of command-line options.  Also, you may use @{b} @samp@{ub} for entire
statements in C and for entire shell commands--in this case, @{b} @samp@{ub}
often looks better than @{b} @code@{ub}.  Basically, @{b} @samp@{ub} is a catchall for
whatever is not covered by @{b} @code@{ub}, @{b} @kbd@{ub}, or @{b} @key@{ub}.

  Only include punctuation marks within braces if they are part of the
string you are specifying.  Write punctuation marks outside the braces
if those punctuation marks are part of the English text that surrounds
the string.  In the following sentence, for example, the commas and
period are outside of the braces:

     In English, the vowels are @samp{a}, @samp{e},
     @samp{i}, @samp{o}, @samp{u}, and sometimes
     @samp{y}.

This produces:

     In English, the vowels are @{b}a@{ub}, @{b}e@{ub}, @{b}i@{ub}, @{b}o@{ub}, @{b}u@{ub},  and sometimes @{b}y@{ub}.


@EndNode

@Node "var" "texinfo.guide/var"
@Next "file"
@Prev "samp"
@Toc "Indicating"

@{b} @var@{ub} {METASYNTACTIC-VARIABLE}
------------------------------

  Use the @{b} @var@{ub} command to indicate metasyntactic variables.  A
@{i}metasyntactic variable@{ui} is something that stands for another piece of
text.  For example, you should use a metasyntactic variable in the
documentation of a function to describe the arguments that are passed
to that function.

  Do not use @{b} @var@{ub} for the names of particular variables in programming
languages.  These are specific names from a program, so @{b} @code@{ub} is
correct for them.  For example, the Lisp variable @{b}texinfo-tex-command@{ub}
is not a metasyntactic variable; it is properly formatted using @{b} @code@{ub}.

  The effect of @{b} @var@{ub} in the Info file is to change the case of the
argument to all upper case; in the printed manual, to italicize it.

  For example,

     To delete file @var{filename},
     type @code{rm @var{filename}}.

produces

     To delete file FILENAME, type @{b}rm FILENAME@{ub}.

(Note that @{b} @var@{ub} may appear inside @{b} @code@{ub}, @{b} @samp@{ub}, @{b} @file@{ub}, etc.)

  Write a metasyntactic variable all in lower case without spaces, and
use hyphens to make it more readable.  Thus, the Texinfo source for the
illustration of how to begin a Texinfo manual looks like this:

     \input texinfo
     @@setfilename @var{info-file-name}
     @@settitle @var{name-of-manual}

This produces:

     \input texinfo
     @setfilename INFO-FILE-NAME
     @settitle NAME-OF-MANUAL

  In some documentation styles, metasyntactic variables are shown with
angle brackets, for example:

     ..., type rm <filename>

However, that is not the style that Texinfo uses.  (You can, of course,
modify the sources to TeX and the Info formatting commands to output
the @{b} <...>@{ub} format if you wish.)


@EndNode

@Node "file" "texinfo.guide/file"
@Next "dfn"
@Prev "var"
@Toc "Indicating"

@{b} @file@{ub} {FILE-NAME}
------------------

  Use the @{b} @file@{ub} command to indicate text that is the name of a file,
buffer, or directory, or is the name of a node in Info.  You can also
use the command for file name suffixes.  Do not use @{b} @file@{ub} for symbols
in a programming language; use @{b} @code@{ub}.

  Currently, @{b} @file@{ub} is equivalent to @{b} @samp@{ub} in its effects.  For
example,

     The @file{.el} files are in
     the @file{/usr/local/emacs/lisp} directory.

produces

     The @{b}.el@{ub} files are in the @{b}/usr/local/emacs/lisp@{ub} directory.


@EndNode

@Node "dfn" "texinfo.guide/dfn"
@Next "cite"
@Prev "file"
@Toc "Indicating"

@{b} @dfn@{ub} {TERM}
------------

  Use the @{b} @dfn@{ub} command to identify the introductory or defining use of
a technical term.  Use the command only in passages whose purpose is to
introduce a term which will be used again or which the reader ought to
know.  Mere passing mention of a term for the first time does not
deserve @{b} @dfn@{ub}.  The command generates italics in the printed manual,
and double quotation marks in the Info file.  For example:

     Getting rid of a file is called @dfn{deleting} it.

produces

     Getting rid of a file is called @{i}deleting@{ui} it.

  As a general rule, a sentence containing the defining occurrence of a
term should be a definition of the term.  The sentence does not need to
say explicitly that it is a definition, but it should contain the
information of a definition--it should make the meaning clear.


@EndNode

@Node "cite" "texinfo.guide/cite"
@Prev "dfn"
@Toc "Indicating"

@{b} @cite@{ub} {REFERENCE}
------------------

  Use the @{b} @cite@{ub} command for the name of a book that lacks a companion
Info file. The command produces italics in the printed manual, and
quotation marks in the Info file.

  (If a book is written in Texinfo, it is better to use a cross
reference command since a reader can easily follow such a reference in
Info.  See @{"@xref" Link "xref"}.)


@EndNode

@Node "Emphasis" "texinfo.guide/Emphasis"
@Prev "Indicating"
@Toc "Marking Text"

Emphasizing Text
================

  Usually, Texinfo changes the font to mark words in the text according
to what category the words belong to; an example is the @{b} @code@{ub} command.
Most often, this is the best way to mark words.  However, sometimes you
will want to emphasize text without indicating a category.  Texinfo has
two commands to do this.  Also, Texinfo has several commands that
specify the font in which TeX will typeset text.  These commands have
no affect on Info and only one of them, the @{b} @r@{ub} command, has any
regular use.


 @{" emph & strong             " Link "emph & strong"}  How to emphasize text in Texinfo.
 @{" Smallcaps                 " Link "Smallcaps"}  How to use the small caps font.
 @{" Fonts                     " Link "Fonts"}  Various font commands for printed output.
 @{" Customized Highlighting   " Link "Customized Highlighting"}  How to define highlighting commands.


@EndNode

@Node "emph & strong" "texinfo.guide/emph & strong"
@Next "Smallcaps"
@Prev "Emphasis"
@Toc "Emphasis"

@{b} @emph@{ub} {TEXT} and @{b} @strong@{ub} {TEXT}
---------------------------------

  The @{b} @emph@{ub} and @{b} @strong@{ub} commands are for emphasis; @{b} @strong@{ub} is
stronger.  In printed output, @{b} @emph@{ub} produces @{i}italics@{ui} and @{b} @strong@{ub}
produces @{i}bold@{ui}.

  For example,

     @quotation
     @strong{Caution:} @code{rm * .[^.]*} removes @emph{all}
     files in the directory.
     @end quotation

produces:

          *Caution*: `rm * .[^.]*' removes *all*
          files in the directory.

  The @{b} @strong@{ub} command is seldom used except to mark what is, in
effect, a typographical element, such as the word `Caution' in the
preceding example.

  In the Info file, both @{b} @emph@{ub} and @{b} @strong@{ub} put asterisks around the
text.

     @{i}Caution:@{ui} Do not use @{b} @emph@{ub} or @{b} @strong@{ub} with the word @{b}Note@{ub}; Info
     will mistake the combination for a cross reference.  Use a phrase
     such as @{i}Please note@{ui} or @{i}Caution@{ui} instead.


@EndNode

@Node "Smallcaps" "texinfo.guide/Smallcaps"
@Next "Fonts"
@Prev "emph & strong"
@Toc "Emphasis"

@{b} @sc@{ub} {TEXT}: The Small Caps Font
--------------------------------

  Use the @{b} @sc@{ub} command to set text in the printed output in a small
caps font and set text in the Info file in upper case letters.

  Write the text between braces in lower case, like this:

     The @sc{acm} and @sc{ieee} are technical societies.

This produces:

     The @{i}acm@{ui} and @{i}ieee@{ui} are technical societies.

  TeX typesets the small caps font in a manner that prevents the
letters from `jumping out at you on the page'.  This makes small caps
text easier to read than text in all upper case.  The Info formatting
commands set all small caps text in upper case.

  If the text between the braces of an @{b} @sc@{ub} command is upper case, TeX
typesets in full-size capitals.  Use full-size capitals sparingly.

  You may also use the small caps font for a jargon word such as @{i}ato@{ui} (a
@{i}nasa@{ui} word meaning `abort to orbit').

  There are subtleties to using the small caps font with a jargon word
such as @{i}cdr@{ui}, a word used in Lisp programming.  In this case, you should
use the small caps font when the word refers to the second and
subsequent elements of a list (the @{i}cdr@{ui} of the list), but you should use
@{b} @code@{ub} when the word refers to the Lisp function of the same
spelling.


@EndNode

@Node "Fonts" "texinfo.guide/Fonts"
@Next "Customized Highlighting"
@Prev "Smallcaps"
@Toc "Emphasis"

Fonts for Printing, Not Info
----------------------------

  Texinfo provides four font commands that specify font changes in the
printed manual but have no effect in the Info file.  @{b} @i@{ub} requests
@{i}italic@{ui} font (in some versions of TeX, a slanted font is used),
@{b} @b@{ub} requests @{i}bold@{ui} face, @{b} @t@{ub} requests the @{i}fixed-width@{ui},
typewriter-style font used by @{b} @code@{ub}, and @{b} @r@{ub} requests a roman font,
which is the usual font in which text is printed.  All four commands
apply to an argument that follows, surrounded by braces.

  Only the @{b} @r@{ub} command has much use: in example programs, you can use
the @{b} @r@{ub} command to convert code comments from the fixed-width font to a
roman font.  This looks better in printed output.

  For example,

     @lisp
     (+ 2 2)    ; @r{Add two plus two.}
     @end lisp

produces

     (+ 2 2)    ; Add two plus two.

  If possible, you should avoid using the other three font commands.  If
you need to use one, it probably indicates a gap in the Texinfo
language.


@EndNode

@Node "Customized Highlighting" "texinfo.guide/Customized Highlighting"
@Prev "Fonts"
@Toc "Emphasis"

Customized Highlighting
-----------------------

  You can use regular TeX commands inside of @{b} @iftex@{ub} ...  @{b} @end iftex@{ub}
to create your own customized highlighting commands for Texinfo.  The
easiest way to do this is to equate your customized commands with
pre-existing commands, such as those for italics.  Such new commands
work only with TeX.

  You can use the @{b} @definfoenclose@{ub} command inside of @{b} @ifinfo@{ub} ... @{b} @end
ifinfo@{ub} to define commands for Info with the same names as new commands
for TeX.  @{b} @definfoenclose@{ub} creates new commands for Info that mark text
by enclosing it in strings that precede and follow the text.
(1)@{"Customized Highlighting-Footnotes" Link "Customized Highlighting-Footnotes"}

  Here is how to create a new @-command called @{b} @phoo@{ub} that causes TeX
to typeset its argument in italics and causes Info to display the
argument between @{b}//@{ub} and @{b}\\ @{ub}.

  For TeX, write the following to equate the @{b} @phoo@{ub} command with the
existing @{b} @i@{ub} italics command:

     @iftex
     @global@let@phoo=@i
     @end iftex

This defines @{b} @phoo@{ub} as a command that causes TeX to typeset the
argument to @{b} @phoo@{ub} in italics.  @{b} @global@let@{ub} tells TeX to equate the
next argument with the argument that follows the equals sign.

  For Info, write the following to tell the Info formatters to enclose
the argument between @{b}//@{ub} and @{b}\\ @{ub}:

     @ifinfo
     @definfoenclose phoo, //, \\
     @end ifinfo

Write the @{b} @definfoenclose@{ub} command on a line and follow it with three
arguments separated by commas (commas are used as separators in an @{b}
@node@{ub} line in the same way).

   @{b}*@{ub} The first argument to @{b} @definfoenclose@{ub} is the @-command name
     @{i}without@{ui} the @{b} @@{ub};

   @{b}*@{ub} the second argument is the Info start delimiter string; and,

   @{b}*@{ub} the third argument is the Info end delimiter string.

The latter two arguments enclose the highlighted text in the Info file.
A delimiter string may contain spaces.  Neither the start nor end
delimiter is required.  However, if you do not provide a start
delimiter, you must follow the command name with two commas in a row;
otherwise, the Info formatting commands will misinterpret the end
delimiter string as a start delimiter string.

  After you have defined @{b} @phoo@{ub} both for TeX and for Info, you can then
write @{b} @phoo{bar}@{ub} to see @{b}//bar\\ @{ub} in Info and see @{b}bar@{ub} in italics in
printed output.

  Note that each definition applies to its own formatter: one for TeX,
the other for Info.

  Here is another example:

     @ifinfo
     @definfoenclose headword, , :
     @end ifinfo
     @iftex
     @global@let@headword=@b
     @end iftex

This defines @{b} @headword@{ub} as an Info formatting command that inserts
nothing before and a colon after the argument and as a TeX formatting
command to typeset its argument in bold.


@EndNode

@Node "Customized Highlighting-Footnotes" "texinfo.guide/Customized Highlighting-Footnotes"
@Toc "Customized Highlighting"

  (1)  Currently, @{b} @definfoenclose@{ub} works only with
@{b}texinfo-format-buffer@{ub} and @{b}texinfo-format-region@{ub}, not with
@{b}makeinfo@{ub}.


@EndNode

@Node "Quotations and Examples" "texinfo.guide/Quotations and Examples"
@Next "Lists and Tables"
@Prev "Marking Text"
@Toc "Main"

Quotations and Examples
***********************

  Quotations and examples are blocks of text consisting of one or more
whole paragraphs that are set off from the bulk of the text and treated
differently.  They are usually indented.

  In Texinfo, you always begin a quotation or example by writing an
@-command at the beginning of a line by itself, and end it by writing
an @{b} @end@{ub} command that is also at the beginning of a line by itself.
For instance, you begin an example by writing @{b} @example@{ub} by itself at
the beginning of a line and end the example by writing @{b} @end example@{ub} on
a line by itself, at the beginning of that line.


 @{" Block Enclosing Commands  " Link "Block Enclosing Commands"}  Use different constructs for
                                  different purposes.
 @{" quotation                 " Link "quotation"}  How to write a quotation.
 @{" example                   " Link "example"}  How to write an example in a fixed-width font.
 @{" noindent                  " Link "noindent"}  How to prevent paragraph indentation.
 @{" Lisp Example              " Link "Lisp Example"}  How to illustrate Lisp code.
 @{" smallexample & smalllisp  " Link "smallexample & smalllisp"}  Forms for the @{b} @smallbook@{ub} option.
 @{" display                   " Link "display"}  How to write an example in the current font.
 @{" format                    " Link "format"}  How to write an example that does not narrow
                                  the margins.
 @{" exdent                    " Link "exdent"}  How to undo the indentation of a line.
 @{" flushleft & flushright    " Link "flushleft & flushright"}  How to push text flushleft or flushright.
 @{" cartouche                 " Link "cartouche"}  How to draw cartouches around examples.


@EndNode

@Node "Block Enclosing Commands" "texinfo.guide/Block Enclosing Commands"
@Next "quotation"
@Prev "Quotations and Examples"
@Toc "Quotations and Examples"

The Block Enclosing Commands
============================

  Here are commands for quotations and examples:

@{b} @quotation@{ub}
     Indicate text that is quoted. The text is filled, indented, and
     printed in a roman font by default.

@{b} @example@{ub}
     Illustrate code, commands, and the like. The text is printed in a
     fixed-width font, and indented but not filled.

@{b} @lisp@{ub}
     Illustrate Lisp code. The text is printed in a fixed-width font,
     and indented but not filled.

@{b} @smallexample@{ub}
     Illustrate code, commands, and the like.  Similar to @{b} @example@{ub},
     except that in TeX this command typesets text in a smaller font
     for the smaller @{b} @smallbook@{ub} format than for the 8.5 by 11 inch
     format.

@{b} @smalllisp@{ub}
     Illustrate Lisp code.  Similar to @{b} @lisp@{ub}, except that in TeX this
     command typesets text in a smaller font for the smaller @{b}
     @smallbook@{ub} format than for the 8.5 by 11 inch format.

@{b} @display@{ub}
     Display illustrative text.  The text is indented but not filled,
     and no font is specified (so, by default, the font is roman).

@{b} @format@{ub}
     Print illustrative text.  The text is not indented and not filled
     and no font is specified (so, by default, the font is roman).

  The @{b} @exdent@{ub} command is used within the above constructs to undo the
indentation of a line.

  The @{b} @flushleft@{ub} and @{b} @flushright@{ub} commands are used to line up the
left or right margins of unfilled text.

  The @{b} @noindent@{ub} command may be used after one of the above constructs
to prevent the following text from being indented as a new paragraph.

  You can use the @{b} @cartouche@{ub} command within one of the above
constructs to highlight the example or quotation by drawing a box with
rounded corners around it.  (The @{b} @cartouche@{ub} command affects only the
printed manual; it has no effect in the Info file; see See
@{"Drawing Cartouches Around Examples" Link "cartouche"}.)


@EndNode

@Node "quotation" "texinfo.guide/quotation"
@Next "example"
@Prev "Block Enclosing Commands"
@Toc "Quotations and Examples"

@{b} @quotation@{ub}
===========

  The text of a quotation is processed normally except that:

   @{b}*@{ub} the margins are closer to the center of the page, so the whole of
     the quotation is indented;

   @{b}*@{ub} the first lines of paragraphs are indented no more than other
     lines;

   @{b}*@{ub} in the printed output, interparagraph spacing is reduced.

     This is an example of text written between an @{b} @quotation@{ub} command
     and an @{b} @end quotation@{ub} command.  An @{b} @quotation@{ub} command is most
     often used to indicate text that is excerpted from another (real
     or hypothetical) printed work.

  Write an @{b} @quotation@{ub} command as text on a line by itself.  This line
will disappear from the output.  Mark the end of the quotation with a
line beginning with and containing only @{b} @end quotation@{ub}.  The @{b} @end
quotation@{ub} line will likewise disappear from the output.  Thus, the
following,

     @quotation
     This is
     a foo.
     @end quotation

produces

     This is a foo.


@EndNode

@Node "example" "texinfo.guide/example"
@Next "noindent"
@Prev "quotation"
@Toc "Quotations and Examples"

@{b} @example@{ub}
=========

  The @{b} @example@{ub} command is used to indicate an example that is not part
of the running text, such as computer input or output.

     This is an example of text written between an
     @{b} @example@{ub} command
     and an @{b} @end example@{ub} command.
     The text is indented but not filled.
     
     In the printed manual, the text is typeset in a
     fixed-width font, and extra spaces and blank lines are
     significant.  In the Info file, an analogous result is
     obtained by indenting each line with five spaces.

  Write an @{b} @example@{ub} command at the beginning of a line by itself.
This line will disappear from the output.  Mark the end of the example
with an @{b} @end example@{ub} command, also written at the beginning of a line
by itself.  The @{b} @end example@{ub} will disappear from the output.

  For example,

     @example
     mv foo bar
     @end example

produces

     mv foo bar

  Since the lines containing @{b} @example@{ub} and @{b} @end example@{ub} will
disappear, you should put a blank line before the @{b} @example@{ub} and another
blank line after the @{b} @end example@{ub}.  (Remember that blank lines between
the beginning @{b} @example@{ub} and the ending @{b} @end example@{ub} will appear in the
output.)

     @{i}Caution:@{ui} Do not use tabs in the lines of an example (or anywhere
     else in Texinfo, for that matter)!  TeX treats tabs as single
     spaces, and that is not what they look like.  This is a problem
     with TeX.  (If necessary, in Emacs, you can use @{b}M-x untabify@{ub} to
     convert tabs in a region to multiple spaces.)

  Examples are often, logically speaking, "in the middle" of a
paragraph, and the text continues after an example should not be
indented.  The @{b} @noindent@{ub} command prevents a piece of text from being
indented as if it were a new paragraph.  (See @{"noindent" Link "noindent"}.)

  (The @{b} @code@{ub} command is used for examples of code that are embedded
within sentences, not set off from preceding and following text.  See
@{"@code" Link "code"}.)


@EndNode

@Node "noindent" "texinfo.guide/noindent"
@Next "Lisp Example"
@Prev "example"
@Toc "Quotations and Examples"

@{b} @noindent@{ub}
==========

  An example or other inclusion can break a paragraph into segments.
Ordinarily, the formatters indent text that follows an example as a new
paragraph.  However, you can prevent this by writing @{b} @noindent@{ub} at the
beginning of a line by itself preceding the continuation text.

  For example:

     @example
     This is an example
     @end example
     
     @noindent
     This line is not indented.  As you can see, the
     beginning of the line is fully flush left with the line
     that follows after it.  (This whole example is between
     @code{@@display} and @code{@@end display}.)

produces

          This is an example
     
     
     This line is not indented.  As you can see, the
     beginning of the line is fully flush left with the line
     that follows after it.  (This whole example is between
     @{b} @display@{ub} and @{b} @end display@{ub}.)

  To adjust the number of blank lines properly in the Info file output,
remember that the line containing @{b} @noindent@{ub} does not generate a blank
line, and neither does the @{b} @end example@{ub} line.

  In the Texinfo source file for this manual, each line that says
`produces' is preceded by a line containing @{b} @noindent@{ub}.

  Do not put braces after an @{b} @noindent@{ub} command; they are not
necessary, since @{b} @noindent@{ub} is a command used outside of paragraphs
(see @{"Command Syntax" Link "Command Syntax"}).


@EndNode

@Node "Lisp Example" "texinfo.guide/Lisp Example"
@Next "smallexample & smalllisp"
@Prev "noindent"
@Toc "Quotations and Examples"

@{b} @lisp@{ub}
======

  The @{b} @lisp@{ub} command is used for Lisp code.  It is synonymous with the @{b}
@example@{ub} command.

     This is an example of text written between an
     @{b} @lisp@{ub} command and an @{b} @end lisp@{ub} command.

  Use @{b} @lisp@{ub} instead of @{b} @example@{ub} so as to preserve information
regarding the nature of the example.  This is useful, for example, if
you write a function that evaluates only and all the Lisp code in a
Texinfo file.  Then you can use the Texinfo file as a Lisp
library.(1)@{"Lisp Example-Footnotes" Link "Lisp Example-Footnotes"}

  Mark the end of @{b} @lisp@{ub} with @{b} @end lisp@{ub} on a line by itself.


@EndNode

@Node "Lisp Example-Footnotes" "texinfo.guide/Lisp Example-Footnotes"
@Toc "Lisp Example"

  (1)  It would be straightforward to extend Texinfo to work in a
similar fashion for C, @{i}fortran@{ui}, or other languages.


@EndNode

@Node "smallexample & smalllisp" "texinfo.guide/smallexample & smalllisp"
@Next "display"
@Prev "Lisp Example"
@Toc "Quotations and Examples"

@{b} @smallexample@{ub} and @{b} @smalllisp@{ub}
==============================

  In addition to the regular @{b} @example@{ub} and @{b} @lisp@{ub} commands, Texinfo has
two other "example-style" commands.  These are the @{b} @smallexample@{ub} and @{b}
@smalllisp@{ub} commands.  Both these commands are designed for use with the
@{b} @smallbook@{ub} command that causes TeX to produce a printed manual in
a 7 by 9.25 inch format rather than the regular 8.5 by 11 inch format.

  In TeX, the @{b} @smallexample@{ub} and @{b} @smalllisp@{ub} commands typeset text in a
smaller font for the smaller @{b} @smallbook@{ub} format than for the 8.5 by 11
inch format.  Consequently, many examples containing long lines fit in
a narrower, @{b} @smallbook@{ub} page without needing to be shortened.  Both
commands typeset in the normal font size when you format for the 8.5 by
11 inch size; indeed, in this situation, the @{b} @smallexample@{ub} and @{b}
@smalllisp@{ub} commands are defined to be the @{b} @example@{ub} and @{b} @lisp@{ub} commands.

  In Info, the @{b} @smallexample@{ub} and @{b} @smalllisp@{ub} commands are equivalent
to the @{b} @example@{ub} and @{b} @lisp@{ub} commands, and work exactly the same.

  Mark the end of @{b} @smallexample@{ub} or @{b} @smalllisp@{ub} with @{b} @end smallexample@{ub}
or @{b} @end smalllisp@{ub}, respectively.

     This is an example of text written between @{b} @smallexample@{ub} and
     @{b} @end smallexample@{ub}.  In Info and in an 8.5 by 11 inch manual,
     this text appears in its normal size; but in a 7 by 9.25 inch manual,
     this text appears in a smaller font.

  The @{b} @smallexample@{ub} and @{b} @smalllisp@{ub} commands make it easier to prepare
smaller format manuals without forcing you to edit examples by hand to
fit them onto narrower pages.

  As a general rule, a printed document looks better if you write all
the examples in a chapter consistently in @{b} @example@{ub} or in @{b}
@smallexample@{ub}.  Only occasionally should you mix the two formats.

  See @{"Printing "Small" Books" Link "smallbook"}, for more information about the @{b}
@smallbook@{ub} command.


@EndNode

@Node "display" "texinfo.guide/display"
@Next "format"
@Prev "smallexample & smalllisp"
@Toc "Quotations and Examples"

@{b} @display@{ub}
=========

  The @{b} @display@{ub} command begins a kind of example.  It is like the @{b}
@example@{ub} command except that, in a printed manual, @{b} @display@{ub} does not
select the fixed-width font.  In fact, it does not specify the font at
all, so that the text appears in the same font it would have appeared
in without the @{b} @display@{ub} command.

     This is an example of text written between an @{b} @display@{ub} command
     and an @{b} @end display@{ub} command.  The @{b} @display@{ub} command
     indents the text, but does not fill it.


@EndNode

@Node "format" "texinfo.guide/format"
@Next "exdent"
@Prev "display"
@Toc "Quotations and Examples"

@{b} @format@{ub}
========

  The @{b} @format@{ub} command is similar to @{b} @example@{ub} except that, in the
printed manual, @{b} @format@{ub} does not select the fixed-width font and does
not narrow the margins.

This is an example of text written between an @{b} @format@{ub} command
and an @{b} @end format@{ub} command.  As you can see
from this example,
the @{b} @format@{ub} command does not fill the text.


@EndNode

@Node "exdent" "texinfo.guide/exdent"
@Next "flushleft & flushright"
@Prev "format"
@Toc "Quotations and Examples"

@{b} @exdent@{ub}: Undoing a Line's Indentation
======================================

  The @{b} @exdent@{ub} command removes any indentation a line might have.  The
command is written at the beginning of a line and applies only to the
text that follows the command that is on the same line.  Do not use
braces around the text.  In a printed manual, the text on an @{b} @exdent@{ub}
line is printed in the roman font.

  @{b} @exdent@{ub} is usually used within examples.  Thus,

     @example
     This line follows an @@example command.
     @exdent This line is exdented.
     This line follows the exdented line.
     The @@end example comes on the next line.
     @end group

produces

     This line follows an @example command.
This line is exdented.
     This line follows the exdented line.
     The @end example comes on the next line.

  In practice, the @{b} @exdent@{ub} command is rarely used.  Usually, you
un-indent text by ending the example and returning the page to its
normal width.


@EndNode

@Node "flushleft & flushright" "texinfo.guide/flushleft & flushright"
@Next "cartouche"
@Prev "exdent"
@Toc "Quotations and Examples"

@{b} @flushleft@{ub} and @{b} @flushright@{ub}
============================

  The @{b} @flushleft@{ub} and @{b} @flushright@{ub} commands line up the ends of lines
on the left and right margins of a page, but do not fill the text.  The
commands are written on lines of their own, without braces.  The @{b}
@flushleft@{ub} and @{b} @flushright@{ub} commands are ended by @{b} @end flushleft@{ub} and @{b}
@end flushright@{ub} commands on lines of their own.

  For example,

     @flushleft
     This text is
     written flushleft.
     @end flushleft

produces

     This text is
     written flushleft.

  Flushright produces the type of indentation often used in the return
address of letters.

For example,

     @flushright
     Here is an example of text written
     flushright.  The @code{@flushright} command
     right justifies every line but leaves the
     left end ragged.
     @end flushright

produces

                                     Here is an example of text written
                         flushright.  The @{b} @flushright@{ub} command
                              right justifies every line but leaves the
                                                       left end ragged.


@EndNode

@Node "cartouche" "texinfo.guide/cartouche"
@Prev "flushleft & flushright"
@Toc "Quotations and Examples"

Drawing Cartouches Around Examples
==================================

  In a printed manual, the @{b} @cartouche@{ub} command draws a box with rounded
corners around its contents.  You can use this command to further
highlight an example or quotation.  For instance, you could write a
manual in which one type of example is surrounded by a cartouche for
emphasis.

  The @{b} @cartouche@{ub} command affects only the printed manual; it has no
effect in the Info file.

  For example,

     @example
     @cartouche
     % pwd
     /usr/local/lib/emacs/info
     @end cartouche
     @end example

surrounds the two-line example with a box with rounded corners, in the
printed manual.


@EndNode

@Node "Lists and Tables" "texinfo.guide/Lists and Tables"
@Next "Indices"
@Prev "Quotations and Examples"
@Toc "Main"

Making Lists and Tables
***********************

  Texinfo has several ways of making lists and two-column tables.
Lists can be bulleted or numbered, while two-column tables can
highlight the items in the first column.


 @{" Introducing Lists         " Link "Introducing Lists"}  Texinfo formats lists for you.
 @{" itemize                   " Link "itemize"}  How to construct a simple list.
 @{" enumerate                 " Link "enumerate"}  How to construct a numbered list.
 @{" Two-column Tables         " Link "Two-column Tables"}  How to construct a two-column table.


@EndNode

@Node "Introducing Lists" "texinfo.guide/Introducing Lists"
@Next "itemize"
@Prev "Lists and Tables"
@Toc "Lists and Tables"

Introducing Lists
=================

  Texinfo automatically indents the text in lists or tables, and numbers
an enumerated list.  This last feature is useful if you modify the
list, since you do not need to renumber it yourself.

  Numbered lists and tables begin with the appropriate @-command at the
beginning of a line, and end with the corresponding @{b} @end@{ub} command on a
line by itself.  The table and itemized-list commands also require that
you write formatting information on the same line as the beginning
@-command.

  Begin an enumerated list, for example, with an @{b} @enumerate@{ub} command
and end the list with an @{b} @end enumerate@{ub} command.  Begin an itemized
list with an @{b} @itemize@{ub} command, followed on the same line by a
formatting command such as @{b} @bullet@{ub}, and end the list with an @{b} @end
itemize@{ub} command.

  Precede each element of a list with an @{b} @item@{ub} or @{b} @itemx@{ub} command.

Here is an itemized list of the different kinds of table and lists:

   @{b}*@{ub} Itemized lists with and without bullets.

   @{b}*@{ub} Enumerated lists, using numbers or letters.

   @{b}*@{ub} Two-column tables with highlighting.

Here is an enumerated list with the same items:

  1. Itemized lists with and without bullets.

  2. Enumerated lists, using numbers or letters.

  3. Two-column tables with highlighting.

And here is a two-column table with the same items and their @-commands:

@{b} @itemize@{ub}
     Itemized lists with and without bullets.

@{b} @enumerate@{ub}
     Enumerated lists, using numbers or letters.

@{b} @table@{ub}
@{b} @ftable@{ub}
@{b} @vtable@{ub}
     Two-column tables with highlighting.


@EndNode

@Node "itemize" "texinfo.guide/itemize"
@Next "enumerate"
@Prev "Introducing Lists"
@Toc "Lists and Tables"

Making an Itemized List
=======================

  The @{b} @itemize@{ub} command produces sequences of indented paragraphs, with
a bullet or other mark inside the left margin at the beginning of each
paragraph for which such a mark is desired.

  Begin an itemized list by writing @{b} @itemize@{ub} at the beginning of a
line.  Follow the command, on the same line, with a character or a
Texinfo command that generates a mark.  Usually, you will write @{b}
@bullet@{ub} after @{b} @itemize@{ub}, but you can use @{b} @minus@{ub}, or any character
or any special symbol that results in a single character in the Info
file.  (When you write @{b} @bullet@{ub} or @{b} @minus@{ub} after an @{b} @itemize@{ub} command,
you may omit the @{b}{}@{ub}.)

  Write the text of the indented paragraphs themselves after the @{b}
@itemize@{ub}, up to another line that says @{b} @end itemize@{ub}.

  Before each paragraph for which a mark in the margin is desired, write
a line that says just @{b} @item@{ub}.  Do not write any other text on this line.

  Usually, you should put a blank line before an @{b} @item@{ub}.  This puts a
blank line in the Info file. (TeX inserts the proper interline
whitespace in either case.)  Except when the entries are very brief,
these blank lines make the list look better.

  Here is an example of the use of @{b} @itemize@{ub}, followed by the output it
produces.  Note that @{b} @bullet@{ub} produces an @{b}*@{ub} in Info and a round dot in
TeX.

     @itemize @bullet
     @item
     Some text for foo.
     
     @item
     Some text
     for bar.
     @end itemize

This produces:

        @{b}*@{ub} Some text for foo.

        @{b}*@{ub} Some text for bar.

  Itemized lists may be embedded within other itemized lists.  Here is a
list marked with dashes embedded in a list marked with bullets:

     @itemize @bullet
     @item
     First item.
     
     @itemize @minus
     @item
     Inner item.
     
     @item
     Second inner item.
     @end itemize
     
     @item
     Second outer item.
     @end itemize

This produces:

        @{b}*@{ub} First item.

             - Inner item.

             - Second inner item.

        @{b}*@{ub} Second outer item.


@EndNode

@Node "enumerate" "texinfo.guide/enumerate"
@Next "Two-column Tables"
@Prev "itemize"
@Toc "Lists and Tables"

Making a Numbered or Lettered List
==================================

  @{b} @enumerate@{ub} is like @{b} @itemize@{ub} except that the marks in the left
margin contain successive integers or letters.  (See @{"@itemize" Link "itemize"}.)

  Write the @{b} @enumerate@{ub} command at the beginning of a line.  The
command does not require an argument, but accepts either a number or a
letter as an option.  Without an argument, @{b} @enumerate@{ub} starts the list
with the number 1.  With a numeric argument, such as 3, the command
starts the list with that number.  With an upper or lower case letter,
such as @{b}a@{ub} or @{b}A@{ub}, the command starts the list with that letter.

  Write the text of the enumerated list in the same way you write an
itemized list: put @{b} @item@{ub} on a line of its own before the start of each
paragraph that you want enumerated.  Do not write any other text on the
line beginning with @{b} @item@{ub}.

  You should put a blank line between entries in the list.  This
generally makes it easier to read the Info file.

  Here is an example of @{b} @enumerate@{ub} without an argument:

     @enumerate
     @item
     Underlying causes.
     
     @item
     Proximate causes.
     @end enumerate

This produces:

  1. Underlying causes.

  2. Proximate causes.

  Here is an example with an argument of @{b}3@{ub}:

     @enumerate 3
     @item
     Predisposing causes.
     
     @item
     Precipitating causes.
     
     @item
     Perpetuating causes.
     @end enumerate

This produces:

  3. Predisposing causes.

  4. Precipitating causes.

  5. Perpetuating causes.

  Here is a brief summary of the alternatives.  The summary is
constructed using @{b} @enumerate@{ub} with an argument of @{b}a@{ub}.

  a.     @{b} @enumerate@{ub}

     Without an argument, produce a numbered list, starting with the
     number 1.

  b.     @{b} @enumerate POSITIVE-INTEGER@{ub}

     With a (positive) numeric argument, start a numbered list with that
     number.  You can use this to continue a list that you interrupted
     with other text.

  c.     @{b} @enumerate UPPER-CASE-LETTER@{ub}

     With an upper case letter as argument, start a list in which each
     item is marked by a letter, beginning with that upper case letter.

  d.     @{b} @enumerate LOWER-CASE-LETTER@{ub}

     With a lower case letter as argument, start a list in which each
     item is marked by a letter, beginning with that lower case letter.

  You can also nest enumerated lists, as in an outline.


@EndNode

@Node "Two-column Tables" "texinfo.guide/Two-column Tables"
@Prev "enumerate"
@Toc "Lists and Tables"

Making a Two-column Table
=========================

  @{b} @table@{ub} is similar to @{b} @itemize@{ub}, but the command allows you to
specify a name or heading line for each item.  (See @{"@itemize" Link "itemize"}.)  The @{b}
@table@{ub} command is used to produce two-column tables, and is especially
useful for glossaries and explanatory exhibits.


 @{" table                     " Link "table"}  How to construct a two-column table.
 @{" ftable vtable             " Link "ftable vtable"}  How to construct a two-column table
                                  with automatic indexing.
 @{" itemx                     " Link "itemx"}  How to put more entries in the first column.


@EndNode

@Node "table" "texinfo.guide/table"
@Next "ftable vtable"
@Prev "Two-column Tables"
@Toc "Two-column Tables"

Using the @{b} @table@{ub} Command
-------------------------

  Use the @{b} @table@{ub} command to produce two-column tables.

  Write the @{b} @table@{ub} command at the beginning of a line and follow it on
the same line with an argument that is a Texinfo command such as @{b}
@code@{ub}, @{b} @samp@{ub}, @{b} @var@{ub}, or @{b} @kbd@{ub}.  Although these commands are
usually followed by arguments in braces, in this case you use the
command name without an argument because @{b} @item@{ub} will supply the
argument.  This command will be applied to the text that goes into the
first column of each item and determines how it will be highlighted.
For example, @{b} @samp@{ub} will cause the text in the first column to be
highlighted with an @{b} @samp@{ub} command.

  You may also choose to use the @{b} @asis@{ub} command as an argument to @{b}
@table@{ub}.  @{b} @asis@{ub} is a command that does nothing; if you use this command
after @{b} @table@{ub}, TeX and the Info formatting commands output the first
column entries without added highlighting (`as is').

  (The @{b} @table@{ub} command may work with other commands besides those
listed here.  However, you can only use commands that normally take
arguments in braces.)

  Begin each table entry with an @{b} @item@{ub} command at the beginning of a
line.  Write the first column text on the same line as the @{b} @item@{ub}
command.  Write the second column text on the line following the @{b} @item@{ub}
line and on subsequent lines.  (You do not need to type anything for an
empty second column entry.)  You may write as many lines of supporting
text as you wish, even several paragraphs.  But only text on the same
line as the @{b} @item@{ub} will be placed in the first column.

  Normally, you should put a blank line before an @{b} @item@{ub} line.  This
puts a blank like in the Info file.  Except when the entries are very
brief, a blank line looks better.

  The following table, for example, highlights the text in the first
column with an @{b} @samp@{ub} command:

     @table @samp
     @item foo
     This is the text for
     @samp{foo}.
     
     @item bar
     Text for @samp{bar}.
     @end table

This produces:

@{b}foo@{ub}
     This is the text for @{b}foo@{ub}.

@{b}bar@{ub}
     Text for @{b}bar@{ub}.

  If you want to list two or more named items with a single block of
text, use the @{b} @itemx@{ub} command.  (See @{"@itemx" Link "itemx"}.)


@EndNode

@Node "ftable vtable" "texinfo.guide/ftable vtable"
@Next "itemx"
@Prev "table"
@Toc "Two-column Tables"

@{b} @ftable@{ub} and @{b} @vtable@{ub}
---------------------

  The @{b} @ftable@{ub} and @{b} @vtable@{ub} commands are the same as the @{b} @table@{ub}
command except that @{b} @ftable@{ub} automatically enters each of the items in
the first column of the table into the index of functions and @{b} @vtable@{ub}
automatically enters each of the items in the first column of the table
into the index of variables.  This simplifies the task of creating
indices.  Only the items on the same line as the @{b} @item@{ub} commands are
indexed, and they are indexed in exactly the form that they appear on
that line.  See @{"Creating Indices" Link "Indices"}, for more information about indices.

  Begin a two-column table using @{b} @ftable@{ub} or @{b} @vtable@{ub} by writing the
@-command at the beginning of a line, followed on the same line by an
argument that is a Texinfo command such as @{b} @code@{ub}, exactly as you would
for an @{b} @table@{ub} command; and end the table with an @{b} @end ftable@{ub} or @{b} @end
vtable@{ub} command on a line by itself.


@EndNode

@Node "itemx" "texinfo.guide/itemx"
@Prev "ftable vtable"
@Toc "Two-column Tables"

@{b} @itemx@{ub}
-------

  Use the @{b} @itemx@{ub} command inside a table when you have two or more
first column entries for the same item, each of which should appear on
a line of its own.  Use @{b} @itemx@{ub} for all but the first entry.  The @{b}
@itemx@{ub} command works exactly like @{b} @item@{ub} except that it does not
generate extra vertical space above the first column text.

  For example,

     @table @code
     @item upcase
     @itemx downcase
     These two functions accept a character or a string as
     argument, and return the corresponding upper case (lower
     case) character or string.
     @end table

This produces:

@{b}upcase@{ub}
@{b}downcase@{ub}
     These two functions accept a character or a string as argument,
     and return the corresponding upper case (lower case) character or
     string.

(Note also that this example illustrates multi-line supporting text in
a two-column table.)


@EndNode

@Node "Indices" "texinfo.guide/Indices"
@Next "Insertions"
@Prev "Lists and Tables"
@Toc "Main"

Creating Indices
****************

  Using Texinfo, you can generate indices without having to sort and
collate entries manually.  In an index, the entries are listed in
alphabetical order, together with information on how to find the
discussion of each entry.  In a printed manual, this information
consists of page numbers.  In an Info file, this information is a menu
entry leading to the first node referenced.

  Texinfo provides several predefined kinds of index: an index for
functions, an index for variables, an index for concepts, and so on.
You can combine indices or use them for other than their canonical
purpose.  If you wish, you can define your own indices.


 @{" Index Entries             " Link "Index Entries"}  Choose different words for index entries.
 @{" Predefined Indices        " Link "Predefined Indices"}  Use different indices for different kinds
                                  of entry.
 @{" Indexing Commands         " Link "Indexing Commands"}  How to make an index entry.
 @{" Combining Indices         " Link "Combining Indices"}  How to combine indices.
 @{" New Indices               " Link "New Indices"}  How to define your own indices.


@EndNode

@Node "Index Entries" "texinfo.guide/Index Entries"
@Next "Predefined Indices"
@Prev "Indices"
@Toc "Indices"

Making Index Entries
====================

  When you are making index entries, it is good practice to think of the
different ways people may look for something.  Different people @{i}do not@{ui}
think of the same words when they look something up.  A helpful index
will have items indexed under all the different words that people may
use.  For example, one reader may think it obvious that the two-letter
names for indices should be listed under "Indices, two-letter names",
since the word "Index" is the general concept.  But another reader may
remember the specific concept of two-letter names and search for the
entry listed as "Two letter names for indices".  A good index will have
both entries and will help both readers.

  Like typesetting, the construction of an index is a highly skilled,
professional art, the subtleties of which are not appreciated until you
need to do it yourself.

  See @{"Printing Indices & Menus" Link "Printing Indices & Menus"}, for information about printing an index
at the end of a book or creating an index menu in an Info file.


@EndNode

@Node "Predefined Indices" "texinfo.guide/Predefined Indices"
@Next "Indexing Commands"
@Prev "Index Entries"
@Toc "Indices"

Predefined Indices
==================

  Texinfo provides six predefined indices:

   @{b}*@{ub} A @{i}concept index@{ui} listing concepts that are discussed.

   @{b}*@{ub} A @{i}function index@{ui} listing functions (such as entry points of
     libraries).

   @{b}*@{ub} A @{i}variables index@{ui} listing variables (such as global variables of
     libraries).

   @{b}*@{ub} A @{i}keystroke index@{ui} listing keyboard commands.

   @{b}*@{ub} A @{i}program index@{ui} listing names of programs.

   @{b}*@{ub} A @{i}data type index@{ui} listing data types (such as structures defined in
     header files).

Not every manual needs all of these, and most manuals use two or three
of them.  This manual has two indices: a concept index and an @-command
index (that is actually the function index but is called a command
index in the chapter heading).  Two or more indices can be combined
into one using the @{b} @synindex@{ub} or @{b} @syncodeindex@{ub} commands.  See
@{"Combining Indices" Link "Combining Indices"}.


@EndNode

@Node "Indexing Commands" "texinfo.guide/Indexing Commands"
@Next "Combining Indices"
@Prev "Predefined Indices"
@Toc "Indices"

Defining the Entries of an Index
================================

  The data to make an index come from many individual indexing commands
scattered throughout the Texinfo source file.  Each command says to add
one entry to a particular index; after formatting, the index will give
the current page number or node name as the reference.

  An index entry consists of an indexing command at the beginning of a
line followed, on the rest of the line, by the entry.

  For example, this section begins with the following five entries for
the concept index:

     @cindex Defining indexing entries
     @cindex Index entries
     @cindex Entries for an index
     @cindex Specifying index entries
     @cindex Creating index entries

  Each predefined index has its own indexing command--@{b} @cindex@{ub} for the
concept index, @{b} @findex@{ub} for the function index, and so on.

  Concept index entries consist of text.  The best way to write an index
is to choose entries that are terse yet clear.  If you can do this, the
index often looks better if the entries are not capitalized, but
written just as they would appear in the middle of a sentence.
(Capitalize proper names and acronyms that always call for upper case
letters.)  This is the case convention we use in most GNU manuals'
indices.

  If you don't see how to make an entry terse yet clear, make it longer
and clear--not terse and confusing.  If many of the entries are several
words long, the index may look better if you use a different convention:
to capitalize the first word of each entry.  But do not capitalize a
case-sensitive name such as a C or Lisp function name or a shell
command; that would be a spelling error.

  Whichever case convention you use, please use it consistently!

  Entries in indices other than the concept index are symbol names in
programming languages, or program names; these names are usually
case-sensitive, so use upper and lower case as required for them.

  By default, entries for a concept index are printed in a small roman
font and entries for the other indices are printed in a small @{b} @code@{ub}
font.  You may change the way part of an entry is printed with the
usual Texinfo commands, such as @{b} @file@{ub} for file names and @{b} @emph@{ub} for
emphasis (see @{"Marking Text" Link "Marking Text"}).

  The six indexing commands for predefined indices are:

@{b} @cindex CONCEPT@{ub}
     Make an entry in the concept index for CONCEPT.

@{b} @findex FUNCTION@{ub}
     Make an entry in the function index for FUNCTION.

@{b} @vindex VARIABLE@{ub}
     Make an entry in the variable index for VARIABLE.

@{b} @kindex KEYSTROKE@{ub}
     Make an entry in the key index for KEYSTROKE.

@{b} @pindex PROGRAM@{ub}
     Make an entry in the program index for PROGRAM.

@{b} @tindex DATA TYPE@{ub}
     Make an entry in the data type index for DATA TYPE.

     @{i}Caution:@{ui} Do not use a colon in an index entry.  In Info, a colon
     separates the menu entry name from the node name.  An extra colon
     confuses Info.  See @{"The Parts of a Menu" Link "Menu Parts"}, for more information
     about the structure of a menu entry.

  If you write several identical index entries in different places in a
Texinfo file, the index in the printed manual will list all the pages to
which those entries refer.  However, the index in the Info file will
list @{i}only@{ui} the node that references the @{i}first@{ui} of those index entries.
Therefore, it is best to write indices in which each entry refers to
only one place in the Texinfo file.  Fortunately, this constraint is a
feature rather than a loss since it means that the index will be easy
to use.  Otherwise, you could create an index that lists several pages
for one entry and your reader would not know to which page to turn.  If
you have two identical entries for one topic, change the topics
slightly, or qualify them to indicate the difference.

  You are not actually required to use the predefined indices for their
canonical purposes.  For example, suppose you wish to index some C
preprocessor macros.  You could put them in the function index along
with actual functions, just by writing @{b} @findex@{ub} commands for them;
then, when you print the "Function Index" as an unnumbered chapter, you
could give it the title `Function and Macro Index' and all will be
consistent for the reader.  Or you could put the macros in with the
data types by writing @{b} @tindex@{ub} commands for them, and give that index a
suitable title so the reader will understand.  (See
@{"Printing Indices & Menus" Link "Printing Indices & Menus"}.)


@EndNode

@Node "Combining Indices" "texinfo.guide/Combining Indices"
@Next "New Indices"
@Prev "Indexing Commands"
@Toc "Indices"

Combining Indices
=================

  Sometimes you will want to combine two disparate indices such as
functions and concepts, perhaps because you have few enough of one of
them that a separate index for them would look silly.

  You could put functions into the concept index by writing @{b} @cindex@{ub}
commands for them instead of @{b} @findex@{ub} commands, and produce a
consistent manual by printing the concept index with the title
`Function and Concept Index' and not printing the `Function Index' at
all; but this is not a robust procedure.  It works only if your
document is never included as part of another document that is designed
to have a separate function index; if your document were to be included
with such a document, the functions from your document and those from
the other would not end up together.  Also, to make your function names
appear in the right font in the concept index, you would need to
enclose every one of them between the braces of @{b} @code@{ub}.


 @{" syncodeindex              " Link "syncodeindex"}  How to merge two indices, using @{b} @code@{ub}
                                  font for the merged-from index.
 @{" synindex                  " Link "synindex"}  How to merge two indices, using the
                                  default font of the merged-to index.


@EndNode

@Node "syncodeindex" "texinfo.guide/syncodeindex"
@Next "synindex"
@Prev "Combining Indices"
@Toc "Combining Indices"

@{b} @syncodeindex@{ub}
--------------

  When you want to combine functions and concepts into one index, you
should index the functions with @{b} @findex@{ub} and index the concepts with @{b}
@cindex@{ub}, and use the @{b} @syncodeindex@{ub} command to redirect the function
index entries into the concept index.

  The @{b} @syncodeindex@{ub} command takes two arguments; they are the name of
the index to redirect, and the name of the index to redirect it to.
The template looks like this:

     @syncodeindex FROM TO

  For this purpose, the indices are given two-letter names:

@{b}cp@{ub}
     concept index

@{b}fn@{ub}
     function index

@{b}vr@{ub}
     variable index

@{b}ky@{ub}
     key index

@{b}pg@{ub}
     program index

@{b}tp@{ub}
     data type index

  Write an @{b} @syncodeindex@{ub} command before or shortly after the
end-of-header line at the beginning of a Texinfo file.  For example, to
merge a function index with a concept index, write the following:

     @syncodeindex fn cp

This will cause all entries designated for the function index to merge
in with the concept index instead.

  To merge both a variables index and a function index into a concept
index, write the following:

     @syncodeindex vr cp
     @syncodeindex fn cp

  The @{b} @syncodeindex@{ub} command puts all the entries from the `from' index
(the redirected index) into the @{b} @code@{ub} font, overriding whatever
default font is used by the index to which the entries are now
directed.  This way, if you direct function names from a function index
into a concept index, all the function names are printed in the @{b} @code@{ub}
font as you would expect.


@EndNode

@Node "synindex" "texinfo.guide/synindex"
@Prev "syncodeindex"
@Toc "Combining Indices"

@{b} @synindex@{ub}
----------

  The @{b} @synindex@{ub} command is nearly the same as the @{b} @syncodeindex@{ub}
command, except that it does not put the `from' index  entries into the
@{b} @code@{ub} font; rather it puts them in the roman font.  Thus, you use @{b}
@synindex@{ub} when you merge a concept index into a function index.

  See @{"Printing Indices & Menus" Link "Printing Indices & Menus"}, for information about printing an index
at the end of a book or creating an index menu in an Info file.


@EndNode

@Node "New Indices" "texinfo.guide/New Indices"
@Prev "Combining Indices"
@Toc "Indices"

Defining New Indices
====================

  In addition to the predefined indices, you may use the @{b} @defindex@{ub} and
@{b} @defcodeindex@{ub} commands to define new indices.  These commands
create new indexing @-commands with which you mark index entries.  The @{b}
@defindex @{ub}command is used like this:

     @defindex NAME

  The name of an index should be a two letter word, such as @{b}au@{ub}.  For
example:

     @defindex au

  This defines a new index, called the @{b}au@{ub} index.  At the same time, it
creates a new indexing command, @{b} @auindex@{ub}, that you can use to make
index entries.  Use the new indexing command just as you would use a
predefined indexing command.

  For example, here is a section heading followed by a concept index
entry and two @{b}au@{ub} index entries.

     @section Cognitive Semantics
     @cindex kinesthetic image schemas
     @auindex Johnson, Mark
     @auindex Lakoff, George

(Evidently, @{b}au@{ub} serves here as an abbreviation for "author".) Texinfo
constructs the new indexing command by concatenating the name of the
index with @{b}index@{ub}; thus, defining an @{b}au@{ub} index leads to the automatic
creation of an @{b} @auindex@{ub} command.

  Use the @{b} @printindex@{ub} command to print the index, as you do with the
predefined indices.  For example:

     @node Author Index, Subject Index, , Top
     @unnumbered Author Index
     
     @printindex au

  The @{b} @defcodeindex@{ub} is like the @{b} @defindex@{ub} command, except that, in
the printed output, it prints entries in an @{b} @code@{ub} font instead of a
roman font.  Thus, it parallels the @{b} @findex@{ub} command rather than the @{b}
@cindex@{ub} command.

  You should define new indices within or right after the end-of-header
line of a Texinfo file, before any @{b} @synindex@{ub} or @{b} @syncodeindex@{ub}
commands (see @{"Header" Link "Header"}).


@EndNode

@Node "Insertions" "texinfo.guide/Insertions"
@Next "Glyphs"
@Prev "Indices"
@Toc "Main"

Special Insertions
******************

  Texinfo provides several commands for formatting dimensions, for
inserting single characters that have special meaning in Texinfo, such
as braces, and for inserting special graphic symbols that do not
correspond to characters, such as dots and bullets.


 @{" Braces Atsigns Periods    " Link "Braces Atsigns Periods"}  How to insert braces, @{b} @@{ub} and periods.
 @{" dmn                       " Link "dmn"}  How to format a dimension.
 @{" Dots Bullets              " Link "Dots Bullets"}  How to insert dots and bullets.
 @{" TeX and copyright         " Link "TeX and copyright"}  How to insert the TeX logo
                                  and the copyright symbol.
 @{" minus                     " Link "minus"}  How to insert a minus sign.
 @{" math                      " Link "math"}  How to format a mathematical expression.


@EndNode

@Node "Braces Atsigns Periods" "texinfo.guide/Braces Atsigns Periods"
@Next "dmn"
@Prev "Insertions"
@Toc "Insertions"

Inserting @{b} @@{ub}, Braces, and Periods
=================================

  @{b} @@{ub} and curly braces are special characters in Texinfo.  To insert
these characters so they appear in text, you must put an @{b} @@{ub} in front of
these characters to prevent Texinfo from misinterpreting them.

  Periods are also special.  Depending on whether the period is inside
or at the end of a sentence, less or more space is inserted after a
period in a typeset manual.  Since it is not always possible for
Texinfo to determine when a period ends a sentence and when it is used
in an abbreviation, special commands are needed in some circumstances.
(Usually, Texinfo can guess how to handle periods, so you do not need
to use the special commands; you just enter a period as you would if
you were using a typewriter, which means you put two spaces after the
period, question mark, or exclamation mark that ends a sentence.)

  Do not put braces after any of these commands; they are not necessary.


 @{" Inserting An Atsign       " Link "Inserting An Atsign"}  
 @{" Inserting Braces          " Link "Inserting Braces"}  How to insert @{b}{@{ub} and @{b}}@{ub}
 @{" Controlling Spacing       " Link "Controlling Spacing"}  How to insert the right amount of space
                                  after punctuation within a sentence.


@EndNode

@Node "Inserting An Atsign" "texinfo.guide/Inserting An Atsign"
@Next "Inserting Braces"
@Prev "Braces Atsigns Periods"
@Toc "Braces Atsigns Periods"

Inserting @{b} @@{ub} with @@
--------------------

  @{b} @@@{ub} stands for a single @{b} @@{ub} in either printed or Info output.

  Do not put braces after an @{b} @@@{ub} command.


@EndNode

@Node "Inserting Braces" "texinfo.guide/Inserting Braces"
@Next "Controlling Spacing"
@Prev "Inserting An Atsign"
@Toc "Braces Atsigns Periods"

Inserting @{b}{@{ub} and @{b}}@{ub}with @{ and @}
-------------------------------

  @{b} @{@{ub} stands for a single @{b}{@{ub} in either printed or Info output.

  @{b} @}@{ub} stands for a single @{b}}@{ub} in either printed or Info output.

  Do not put braces after either an @{b} @{@{ub} or an @{b} @}@{ub} command.


@EndNode

@Node "Controlling Spacing" "texinfo.guide/Controlling Spacing"
@Prev "Inserting Braces"
@Toc "Braces Atsigns Periods"

Spacing After Colons and Periods
--------------------------------

  Use the @{b} @:@{ub}  command after a period, question mark, exclamation mark,
or colon that should not be followed by extra space.  For example, use @{b}
@:@{ub}  after periods that end abbreviations which are not at the ends of
sentences.  @{b} @:@{ub}  has no effect on the Info file output.

  For example,

     The s.o.p.@: has three parts ...
     The s.o.p. has three parts ...

produces

     The s.o.p. has three parts ...
     The s.o.p. has three parts ...

@{b} @:@{ub} has no effect on the Info output.  (@{b}s.o.p@{ub} is an acronym for
"Standard Operating Procedure".)

  Use @{b} @.@{ub}  instead of a period at the end of a sentence that ends with
a single capital letter.  Otherwise, TeX will think the letter is an
abbreviation and will not insert the correct end-of-sentence spacing.
Here is an example:

     Give it to M.I.B. and to M.E.W@.  Also, give it to R.J.C@.
     Give it to M.I.B. and to M.E.W.  Also, give it to R.J.C.

produces

     Give it to M.I.B. and to M.E.W.  Also, give it to R.J.C.
     Give it to M.I.B. and to M.E.W.  Also, give it to R.J.C.

  In the Info file output, @{b} @.@{ub}  is equivalent to a simple @{b}.@{ub}.

  The meanings of @{b} @:@{ub}  and @{b} @.@{ub}  in Texinfo are designed to work well
with the Emacs sentence motion commands.  This made it necessary for
them to be incompatible with some other formatting systems that use
@-commands.

  Do not put braces after either an @{b} @:@{ub} or an @{b} @.@{ub} command.


@EndNode

@Node "dmn" "texinfo.guide/dmn"
@Next "Dots Bullets"
@Prev "Braces Atsigns Periods"
@Toc "Insertions"

@{b} @dmn@{ub} {DIMENSION}: Format a Dimension
=====================================

  At times, you may want to write @{b}12pt@{ub} or @{b}8.5in@{ub} with little or no space
between the number and the abbreviation for the dimension.  You can use
the @{b} @dmn@{ub} command to do this.  On seeing the command, TeX inserts just
enough space for proper typesetting; the Info formatting commands
insert no space at all, since the Info file does not require it.

  To use the @{b} @dmn@{ub} command, write the number and then follow it
immediately, with no intervening space, by @{b} @dmn@{ub}, and then by the
dimension within braces.

For example,

     A4 paper is 8.27@dmn{in} wide.

produces

     A4 paper is 8.27in wide.

  Not everyone uses this style.  Instead of writing @{b}8.27@dmn{in}@{ub} in the
Texinfo file, you may write @{b}8.27 in.@{ub} or @{b}8.27 inches@{ub}.  (In these cases,
the formatters may insert a line break between the number and the
dimension.  Also, if you write a period after an abbreviation within a
sentence, you should write @{b} @:@{ub} after the period to prevent TeX from
inserting extra whitespace.  See @{"Spacing After Colons and Periods" Link "Controlling Spacing"}.)


@EndNode

@Node "Dots Bullets" "texinfo.guide/Dots Bullets"
@Next "TeX and copyright"
@Prev "dmn"
@Toc "Insertions"

Inserting Ellipsis, Dots, and Bullets
=====================================

  An @{i}ellipsis@{ui} (a line of dots) is not typeset as a string of periods,
so a special command is used for ellipsis in Texinfo.  The @{b} @bullet@{ub}
command is special, too.  Each of these commands is followed by a pair
of braces, @{b}{}@{ub}, without any whitespace between the name of the command
and the braces.  (You need to use braces with these commands because
you can use them next to other text; without the braces, the formatters
would be confused.  See @{"@-Command Syntax" Link "Command Syntax"}, for further information.)


 @{" dots                      " Link "dots"}  How to insert dots ...
 @{" bullet                    " Link "bullet"}  How to insert a bullet.


@EndNode

@Node "dots" "texinfo.guide/dots"
@Next "bullet"
@Prev "Dots Bullets"
@Toc "Dots Bullets"

@{b} @dots@{ub} {}
---------

  Use the @{b} @dots{}@{ub} command to generate an ellipsis, which is three dots
in a row, appropriately spaced, like this: `...'.  Do not simply write
three periods in the input file; that would work for the Info file
output, but would produce the wrong amount of space between the periods
in the printed manual.

  Similarly, the @{b} @enddots{}@{ub} command helps you correctly set an
end-of-sentence ellipsis (four dots).


@EndNode

@Node "bullet" "texinfo.guide/bullet"
@Prev "dots"
@Toc "Dots Bullets"

@{b} @bullet@{ub} {}
-----------

  Use the @{b} @bullet{}@{ub} command to generate a large round dot, or the
closest possible thing to one.  In Info, an asterisk is used.

  Here is a bullet: @{b}*@{ub}

  When you use @{b} @bullet@{ub} in @{b} @itemize@{ub}, you do not need to type the
braces, because @{b} @itemize@{ub} supplies them.  (See @{"@itemize" Link "itemize"}.)


@EndNode

@Node "TeX and copyright" "texinfo.guide/TeX and copyright"
@Next "minus"
@Prev "Dots Bullets"
@Toc "Insertions"

Inserting TeX and the Copyright Symbol
======================================

  The logo `TeX' is typeset in a special fashion and it needs an
@-command.  The copyright symbol, `(C)', is also special.  Each of
these commands is followed by a pair of braces, @{b}{}@{ub}, without any
whitespace between the name of the command and the braces.


 @{" tex                       " Link "tex"}  How to insert the TeX logo.
 @{" copyright symbol          " Link "copyright symbol"}  How to use @{b} @copyright@{ub} {}.


@EndNode

@Node "tex" "texinfo.guide/tex"
@Next "copyright symbol"
@Prev "TeX and copyright"
@Toc "TeX and copyright"

@{b} @TeX@{ub} {}
--------

  Use the @{b} @TeX{}@{ub} command to generate `TeX'.  In a printed manual, this
is a special logo that is different from three ordinary letters.  In
Info, it just looks like @{b}TeX@{ub}.  The @{b} @TeX{}@{ub} command is unique among
Texinfo commands in that the T and the X are in upper case.


@EndNode

@Node "copyright symbol" "texinfo.guide/copyright symbol"
@Prev "tex"
@Toc "TeX and copyright"

@{b} @copyright@{ub} {}
--------------

  Use the @{b} @copyright{}@{ub} command to generate `(C)'.  In a printed
manual, this is a @{b}c@{ub} inside a circle, and in Info, this is @{b}(C)@{ub}.


@EndNode

@Node "minus" "texinfo.guide/minus"
@Next "math"
@Prev "TeX and copyright"
@Toc "Insertions"

@{b} @minus@{ub} {}: Inserting a Minus Sign
==================================

  Use the @{b} @minus{}@{ub} command to generate a minus sign.  In a fixed-width
font, this is a single hyphen, but in a proportional font, the symbol
is the customary length for a minus sign--a little longer than a hyphen.

  You can compare the two forms:

     @{b}-@{ub} is a minus sign generated with @{b} @minus{}@{ub},
     
     `-' is a hyphen generated with the character @{b}-@{ub}.

In the fixed-width font used by Info, @{b} @minus{}@{ub} is the same as a hyphen.

  You should not use @{b} @minus{}@{ub} inside @{b} @code@{ub} or @{b} @example@{ub} because the
width distinction is not made in the fixed-width font they use.

  When you use @{b} @minus@{ub} to specify the mark beginning each entry in an
itemized list, you do not need to type the braces (see @{"@itemize" Link "itemize"}.)


@EndNode

@Node "math" "texinfo.guide/math"
@Prev "minus"
@Toc "Insertions"

@{b} @math@{ub}: Inserting Mathematical Expressions
==========================================

  You can write a short mathematical expression with the @{b} @math@{ub}
command.  Write the mathematical expression between braces, like this:

     @math{(a + b)(a + b) = a^2 + 2ab + b^2}

This produces the following in Info:

     (a + b)(a + b) = a^2 + 2ab + b^2

  The @{b} @math@{ub} command has no effect on the Info output.  Currently, it
has limited effect on typeset output.  However, this may change since
TeX itself is designed for mathematical typesetting and does a splendid
job.

  Certainly, for complex mathematical expressions, you could use TeX
directly.  See @{"Using Ordinary TeX Commands" Link "Using Ordinary TeX Commands"}.  When you use TeX directly,
remember to write the mathematical expression between one or two @{b}$@{ub}
(dollar-signs) as appropriate.


@EndNode

@Node "Glyphs" "texinfo.guide/Glyphs"
@Next "Breaks"
@Prev "Insertions"
@Toc "Main"

Glyphs for Examples
*******************

  In Texinfo, code is often illustrated in examples that are delimited
by @{b} @example@{ub} and @{b} @end example@{ub}, or by @{b} @lisp@{ub} and @{b} @end lisp@{ub}.  In such
examples, you can indicate the results of evaluation or an expansion
using @{b}=>@{ub} or @{b}==>@{ub}.  Likewise, there are commands to insert glyphs to
indicate printed output, error messages, equivalence of expressions,
and the location of point.

  The glyph-insertion commands do not need to be used within an
example, but most often they are.  Every  glyph-insertion command is
followed by a pair of left- and right-hand braces.


 @{" Glyphs Summary            " Link "Glyphs Summary"}  
 @{" result                    " Link "result"}  How to show the result of expression.
 @{" expansion                 " Link "expansion"}  How to indicate an expansion.
 @{" Print Glyph               " Link "Print Glyph"}  How to indicate printed output.
 @{" Error Glyph               " Link "Error Glyph"}  How to indicate an error message.
 @{" Equivalence               " Link "Equivalence"}  How to indicate equivalence.
 @{" Point Glyph               " Link "Point Glyph"}  How to indicate the location of point.


@EndNode

@Node "Glyphs Summary" "texinfo.guide/Glyphs Summary"
@Next "result"
@Prev "Glyphs"
@Toc "Glyphs"

Glyphs Summary
==============

  Here are the different glyph commands:

=>
     @{b} @result{}@{ub} points to the result of an expression.

==>
     @{b} @expansion{}@{ub} shows the results of a macro expansion.

-|
     @{b} @print{}@{ub} indicates printed output.

error-->
     @{b} @error{}@{ub} indicates that the following text is an error message.

==
     @{b} @equiv{}@{ub} indicates the exact equivalence of two forms.

-!-
     @{b} @point{}@{ub} shows the location of point.


@EndNode

@Node "result" "texinfo.guide/result"
@Next "expansion"
@Prev "Glyphs Summary"
@Toc "Glyphs"

=>: Indicating Evaluation
=========================

  Use the @{b} @result{}@{ub} command to indicate the result of evaluating an
expression.

  The @{b} @result{}@{ub} command is displayed as @{b}=>@{ub} in Info and as a double
stemmed arrow in the printed output.

  Thus, the following,

     (cdr '(1 2 3))
          => (2 3)

may be read as "@{b}(cdr '(1 2 3))@{ub} evaluates to @{b}(2 3)@{ub}".


@EndNode

@Node "expansion" "texinfo.guide/expansion"
@Next "Print Glyph"
@Prev "result"
@Toc "Glyphs"

==>: Indicating an Expansion
============================

  When an expression is a macro call, it expands into a new expression.
You can indicate the result of the expansion with the @{b} @expansion{}@{ub}
command.

  The @{b} @expansion{}@{ub} command is displayed as @{b}==>@{ub} in Info and as a long
arrow with a flat base in the printed output.

  For example, the following

     @lisp
     (third '(a b c))
          @expansion{} (car (cdr (cdr '(a b c))))
          @result{} c
     @end lisp

produces

     (third '(a b c))
          ==> (car (cdr (cdr '(a b c))))
          => c

which may be read as:

     @{b}(third '(a b c))@{ub} expands to @{b}(car (cdr (cdr '(a b c))))@{ub}; the result
     of evaluating the expression is @{b}c@{ub}.

Often, as in this case, an example looks better if the @{b} @expansion{}@{ub}
and @{b} @result{}@{ub} commands are indented five spaces.


@EndNode

@Node "Print Glyph" "texinfo.guide/Print Glyph"
@Next "Error Glyph"
@Prev "expansion"
@Toc "Glyphs"

-|: Indicating Printed Output
=============================

  Sometimes an expression will print output during its execution.  You
can indicate the printed output with the @{b} @print{}@{ub} command.

  The @{b} @print{}@{ub} command is displayed as @{b}-|@{ub} in Info and similarly, as a
horizontal dash butting against a vertical bar, in the printed output.

  In the following example, the printed text is indicated with @{b}-|@{ub}, and
the value of the expression follows on the last line.

     (progn (print 'foo) (print 'bar))
          -| foo
          -| bar
          => bar

In a Texinfo source file, this example is written as follows:

     @lisp
     (progn (print 'foo) (print 'bar))
          @print{} foo
          @print{} bar
          @result{} bar
     @end lisp


@EndNode

@Node "Error Glyph" "texinfo.guide/Error Glyph"
@Next "Equivalence"
@Prev "Print Glyph"
@Toc "Glyphs"

error-->: Indicating an Error Message
=====================================

  A piece of code may cause an error when you evaluate it.  You can
designate the error message with the @{b} @error{}@{ub} command.

  The @{b} @error{}@{ub} command is displayed as @{b}error-->@{ub} in Info and as the
word `error' in a box in the printed output.

  Thus,

     @lisp
     (+ 23 'x)
     @error{} Wrong type argument: integer-or-marker-p, x
     @end lisp

produces

     (+ 23 'x)
     error--> Wrong type argument: integer-or-marker-p, x

This indicates that the following error message is printed when you
evaluate the expression:

     Wrong type argument: integer-or-marker-p, x

  Note that @{b}error-->@{ub} itself is not part of the error message.


@EndNode

@Node "Equivalence" "texinfo.guide/Equivalence"
@Next "Point Glyph"
@Prev "Error Glyph"
@Toc "Glyphs"

==: Indicating Equivalence
==========================

  Sometimes two expressions produce identical results.  You can
indicate the exact equivalence of two forms with the @{b} @equiv{}@{ub} command.

  The @{b} @equiv{}@{ub} command is displayed as @{b}==@{ub} in Info and as a three
parallel horizontal lines in the printed output.

  Thus,

     @lisp
     (make-sparse-keymap) @equiv{} (list 'keymap)
     @end lisp

produces

     (make-sparse-keymap) == (list 'keymap)

This indicates that evaluating @{b}(make-sparse-keymap)@{ub} produces identical
results to evaluating @{b}(list 'keymap)@{ub}.


@EndNode

@Node "Point Glyph" "texinfo.guide/Point Glyph"
@Prev "Equivalence"
@Toc "Glyphs"

Indicating Point in a Buffer
============================

  Sometimes you need to show an example of text in an Emacs buffer.  In
such examples, the convention is to include the entire contents of the
buffer in question between two lines of dashes containing the buffer
name.

  You can use the @{b} @point{}@{ub} command to show the location of point in
the text in the buffer.  (The symbol for point, of course, is not part
of the text in the buffer; it indicates the place @{i}between@{ui} two
characters where point is located.)

  The @{b} @point{}@{ub} command is displayed as @{b}-!-@{ub} in Info and as a small five
pointed star in the printed output.

  The following example shows the contents of buffer @{b}foo@{ub} before and
after evaluating a Lisp command to insert the word @{b}changed@{ub}.

     ---------- Buffer: foo ----------
     This is the -!-contents of foo.
     ---------- Buffer: foo ----------

     (insert "changed ")
          => nil
     ---------- Buffer: foo ----------
     This is the changed -!-contents of foo.
     ---------- Buffer: foo ----------

  In a Texinfo source file, the example is written like this:

     @example
     ---------- Buffer: foo ----------
     This is the @point{}contents of foo.
     ---------- Buffer: foo ----------
     
     (insert "changed ")
          @result{} nil
     ---------- Buffer: foo ----------
     This is the changed @point{}contents of foo.
     ---------- Buffer: foo ----------
     @end example


@EndNode

@Node "Breaks" "texinfo.guide/Breaks"
@Next "Definition Commands"
@Prev "Glyphs"
@Toc "Main"

Making and Preventing Breaks
****************************

  Usually, a Texinfo file is processed both by TeX and by one of the
Info formatting commands.  Line, paragraph, or page breaks sometimes
occur in the `wrong' place in one or other form of output.  You must
ensure that text looks right both in the printed manual and in the Info
file.

  For example, in a printed manual, page breaks may occur awkwardly in
the middle of an example; to prevent this, you can hold text together
using a grouping command that keeps the text from being split across
two pages.  Conversely, you may want to force a page break where none
would occur normally.  Fortunately, problems like these do not often
arise.  When they do, use the break, break prevention, or pagination
commands.


 @{" Break Commands            " Link "Break Commands"}  Cause and prevent splits.
 @{" Line Breaks               " Link "Line Breaks"}  How to force a single line to use two lines.
 @{" w                         " Link "w"}  How to prevent unwanted line breaks.
 @{" sp                        " Link "sp"}  How to insert blank lines.
 @{" page                      " Link "page"}  How to force the start of a new page.
 @{" group                     " Link "group"}  How to prevent unwanted page breaks.
 @{" need                      " Link "need"}  Another way to prevent unwanted page breaks.


@EndNode

@Node "Break Commands" "texinfo.guide/Break Commands"
@Next "Line Breaks"
@Prev "Breaks"
@Toc "Breaks"

The Break Commands
==================

  The break commands create line and paragraph breaks:

@{b} @*@{ub}
     Force a line break.

@{b} @sp N@{ub}
     Skip N blank lines.

  The line-break-prevention command holds text together all on one line:

@{b} @w{TEXT}@{ub}
     Prevent TEXT from being split and hyphenated across two lines.

  The pagination commands apply only to printed output, since Info
files do not have pages.

@{b} @page@{ub}
     Start a new page in the printed manual.

@{b} @group@{ub}
     Hold text together that must appear on one printed page.

@{b} @need MILS@{ub}
     Start a new printed page if not enough space on this one.


@EndNode

@Node "Line Breaks" "texinfo.guide/Line Breaks"
@Next "w"
@Prev "Break Commands"
@Toc "Breaks"

@{b} @*@{ub}: Generate Line Breaks
=========================

  The @{b} @*@{ub} command forces a line break in both the printed manual and in
Info.

  For example,

     This line @* is broken @*in two places.

produces

     This line
      is broken
     in two places.

(Note that the space after the first @{b} @*@{ub} command is faithfully carried
down to the next line.)

  The @{b} @*@{ub} command is often used in a file's copyright page:

     This is edition 2.0 of the Texinfo documentation,@*
     and is for ...

In this case, the @{b} @*@{ub} command keeps TeX from stretching the line across
the whole page in an ugly manner.

     @{i}Please note:@{ui} Do not write braces after an @{b} @*@{ub} command; they are
     not needed.

     Do not write an @{b} @refill@{ub} command at the end of a paragraph
     containing an @{b} @*@{ub} command; it will cause the paragraph to be
     refilled after the line break occurs, negating the effect of the
     line break.


@EndNode

@Node "w" "texinfo.guide/w"
@Next "sp"
@Prev "Line Breaks"
@Toc "Breaks"

@{b} @w@{ub} {TEXT}: Prevent Line Breaks
===============================

  @{b} @w{TEXT}@{ub} outputs TEXT and prohibits line breaks within TEXT.

  You can use the @{b} @w@{ub} command to prevent TeX from automatically
hyphenating a long name or phrase that accidentally falls near the end
of a line.

     You can copy GNU software from @w{@file{prep.ai.mit.edu}}.

produces

     You can copy GNU software from @{b}prep.ai.mit.edu@{ub}.

  In the Texinfo file, you must write the @{b} @w@{ub} command and its argument
(all the affected text) all on one line.

     @{i}Caution:@{ui} Do not write an @{b} @refill@{ub} command at the end of a
     paragraph containing an @{b} @w@{ub} command; it will cause the paragraph
     to be refilled and may thereby negate the effect of the @{b} @w@{ub}
     command.


@EndNode

@Node "sp" "texinfo.guide/sp"
@Next "page"
@Prev "w"
@Toc "Breaks"

@{b} @sp@{ub} N: Insert Blank Lines
==========================

  A line beginning with and containing only @{b} @sp N@{ub} generates N blank
lines of space in both the printed manual and the Info file.  @{b} @sp@{ub} also
forces a paragraph break.  For example,

     @sp 2

generates two blank lines.

  The @{b} @sp@{ub} command is most often used in the title page.


@EndNode

@Node "page" "texinfo.guide/page"
@Next "group"
@Prev "sp"
@Toc "Breaks"

@{b} @page@{ub}: Start a New Page
========================

  A line containing only @{b} @page@{ub} starts a new page in a printed manual.
The command has no effect on Info files since they are not paginated.
An @{b} @page@{ub} command is often used in the @{b} @titlepage@{ub} section of a Texinfo
file to start the copyright page.


@EndNode

@Node "group" "texinfo.guide/group"
@Next "need"
@Prev "page"
@Toc "Breaks"

@{b} @group@{ub}: Prevent Page Breaks
============================

  The @{b} @group@{ub} command (on a line by itself) is used inside an @{b} @example@{ub}
or similar construct to begin an unsplittable vertical group, which
will appear entirely on one page in the printed output.  The group is
terminated by a line containing only @{b} @end group@{ub}.  These two lines
produce no output of their own, and in the Info file output they have
no effect at all.

  Although @{b} @group@{ub} would make sense conceptually in a wide variety of
contexts, its current implementation works reliably only within @{b}
@example@{ub} and variants, and within @{b} @display@{ub}, @{b} @format@{ub}, @{b} @flushleft@{ub} and @{b}
@flushright@{ub}.  See @{"Quotations and Examples" Link "Quotations and Examples"}.  (What all these commands
have in common is that each line of input produces a line of output.)
In other contexts, @{b} @group@{ub} can cause anomalous vertical spacing.

  This formatting requirement means that you should write:

     @example
     @group
     ...
     @end group
     @end example

with the @{b} @group@{ub} and @{b} @end group@{ub} commands inside the @{b} @example@{ub} and @{b}
@end example@{ub} commands.

  The @{b} @group@{ub} command is most often used to hold an example together on
one page.  In this Texinfo manual, more than 100 examples contain text
that is enclosed between @{b} @group@{ub} and @{b} @end group@{ub}.

  If you forget to end a group, you may get strange and unfathomable
error messages when you run TeX.  This is because TeX keeps trying to
put the rest of the Texinfo file onto the one page and does not start
to generate error messages until it has processed considerable text.
It is a good rule of thumb to look for a missing @{b} @end group@{ub} if you get
incomprehensible error messages in TeX.


@EndNode

@Node "need" "texinfo.guide/need"
@Prev "group"
@Toc "Breaks"

@{b} @need MILS@{ub}: Prevent Page Breaks
================================

  A line containing only @{b} @need N@{ub} starts a new page in a printed manual
if fewer than N mils (thousandths of an inch) remain on the current
page.  Do not use braces around the argument N.  The @{b} @need@{ub} command has
no effect on Info files since they are not paginated.

  This paragraph is preceded by an @{b} @need@{ub} command that tells TeX to
start a new page if fewer than 800 mils (eight-tenths inch) remain on
the page.  It looks like this:

     @need 800
     This paragraph is preceded by ...

  The @{b} @need@{ub} command is useful for preventing orphans (single lines at
the bottoms of printed pages).


@EndNode

@Node "Definition Commands" "texinfo.guide/Definition Commands"
@Next "Footnotes"
@Prev "Breaks"
@Toc "Main"

Definition Commands
*******************

  The @{b} @deffn@{ub} command and the other @{i}definition commands@{ui} enable you to
describe functions, variables, macros, commands, user options, special
forms and other such artifacts in a uniform format.

  In the Info file, a definition causes the entity
category--`Function', `Variable', or whatever--to appear at the
beginning of the first line of the definition, followed by the entity's
name and arguments.  In the printed manual, the command causes TeX to
print the entity's name and its arguments on the left margin and print
the category next to the right margin.  In both output formats, the
body of the definition is indented.  Also, the name of the entity is
entered into the appropriate index: @{b} @deffn@{ub} enters the name into the
index of functions, @{b} @defvr@{ub} enters it into the index of variables, and
so on.

  A manual need not and should not contain more than one definition for
a given name.  An appendix containing a summary should use @{b} @table@{ub}
rather than the definition commands.


 @{" Def Cmd Template          " Link "Def Cmd Template"}  How to structure a description using a
                                  definition command.
 @{" Optional Arguments        " Link "Optional Arguments"}  How to handle optional and repeated arguments.
 @{" deffnx                    " Link "deffnx"}  How to group two or more `first' lines.
 @{" Def Cmds in Detail        " Link "Def Cmds in Detail"}  All the definition commands.
 @{" Def Cmd Conventions       " Link "Def Cmd Conventions"}  Conventions for writing definitions.
 @{" Sample Function Definition " Link "Sample Function Definition"} 


@EndNode

@Node "Def Cmd Template" "texinfo.guide/Def Cmd Template"
@Next "Optional Arguments"
@Prev "Definition Commands"
@Toc "Definition Commands"

The Template for a Definition
=============================

  The @{b} @deffn@{ub} command is used for definitions of entities that resemble
functions.  To write a definition using the @{b} @deffn@{ub} command, write the @{b}
@deffn@{ub} command at the beginning of a line and follow it on the same
line by the category of the entity, the name of the entity itself, and
its arguments (if any).  Then write the body of the definition on
succeeding lines.  (You may embed examples in the body.)  Finally, end
the definition with an @{b} @end deffn@{ub} command written on a line of its
own.  (The other definition commands follow the same format.)

  The template for a definition looks like this:

     @deffn CATEGORY NAME ARGUMENTS...
     BODY-OF-DEFINITION
     @end deffn

For example,

     @deffn Command forward-word count
     This command moves point forward @var{count} words
     (or backward if @var{count} is negative). ...
     @end deffn

produces

      - Command: forward-word COUNT
          This function moves point forward COUNT words (or backward if
          COUNT is negative). ...

  Capitalize the category name like a title.  If the name of the
category contains spaces, as in the phrase `Interactive Command', write
braces around it.  For example:

     @deffn {Interactive Command} isearch-forward
     ...
     @end deffn

Otherwise, the second word will be mistaken for the name of the entity.

  Some of the definition commands are more general than others.  The @{b}
@deffn@{ub} command, for example, is the general definition command for
functions and the like--for entities that may take arguments.  When you
use this command, you specify the category to which the entity belongs.
The @{b} @deffn@{ub} command possesses three predefined, specialized
variations, @{b} @defun@{ub}, @{b} @defmac@{ub}, and @{b} @defspec@{ub}, that specify the category
for you: "Function", "Macro", and "Special Form" respectively.  The @{b}
@defvr@{ub} command also is accompanied by several predefined, specialized
variations for describing particular kinds of variables.

  The template for a specialized definition, such as @{b} @defun@{ub}, is
similar to the template for a generalized definition, except that you
do not need to specify the category:

     @defun NAME ARGUMENTS...
     BODY-OF-DEFINITION
     @end defun

Thus,

     @defun buffer-end flag
     This function returns @code{(point-min)} if @var{flag}
     is less than 1, @code{(point-max)} otherwise.
     ...
     @end defun

produces

      - Function: buffer-end FLAG
          This function returns @{b}(point-min)@{ub} if FLAG is less than 1,
          @{b}(point-max)@{ub} otherwise.  ...

See @{"Sample Function Definition" Link "Sample Function Definition"}, for a more detailed example of a
function definition, including the use of @{b} @example@{ub} inside the
definition.

  The other specialized commands work like @{b} @defun@{ub}.


@EndNode

@Node "Optional Arguments" "texinfo.guide/Optional Arguments"
@Next "deffnx"
@Prev "Def Cmd Template"
@Toc "Definition Commands"

Optional and Repeated Arguments
===============================

  Some entities take optional or repeated arguments, which may be
specified by a distinctive glyph that uses square brackets and
ellipses.  For example, a special form often breaks its argument list
into separate arguments in more complicated ways than a straightforward
function.

  An argument enclosed within square brackets is optional.  Thus,
[OPTIONAL-ARG] means that OPTIONAL-ARG is optional.  An argument
followed by an ellipsis is optional and may be repeated more than once.
Thus, REPEATED-ARGS... stands for zero or more arguments.  Parentheses
are used when several arguments are grouped into additional levels of
list structure in Lisp.

  Here is the @{b} @defspec@{ub} line of an example of an imaginary special form:

      - Special Form: foobar (VAR [FROM TO [INC]]) BODY...

In this example, the arguments FROM and TO are optional, but must both
be present or both absent.  If they are present, INC may optionally be
specified as well.  These arguments are grouped with the argument VAR
into a list, to distinguish them from BODY, which includes all
remaining elements of the form.

  In a Texinfo source file, this @{b} @defspec@{ub} line is written like this
(except it would not be split over two lines, as it is in this example).

     @defspec foobar (@var{var} [@var{from} @var{to}
          [@var{inc}]]) @var{body}@dots{}

The function is listed in the Command and Variable Index under @{b}foobar@{ub}.


@EndNode

@Node "deffnx" "texinfo.guide/deffnx"
@Next "Def Cmds in Detail"
@Prev "Optional Arguments"
@Toc "Definition Commands"

Two or More `First' Lines
=========================

  To create two or more `first' or header lines for a definition, follow
the first @{b} @deffn@{ub} line by a line beginning with @{b} @deffnx@{ub}.  The @{b} @deffnx@{ub}
command works exactly like @{b} @deffn@{ub} except that it does not generate
extra vertical white space between it and the preceding line.

  For example,

     @deffn {Interactive Command} isearch-forward
     @deffnx {Interactive Command} isearch-backward
     These two search commands are similar except ...
     @end deffn

produces

 - Interactive Command: isearch-forward
 - Interactive Command: isearch-backward
     These two search commands are similar except ...

  Each of the other definition commands has an `x' form: @{b} @defunx@{ub}, @{b}
@defvrx@{ub}, @{b} @deftypefunx@{ub}, etc.

  The `x' forms work just like @{b} @itemx@{ub}; see See @{"@itemx" Link "itemx"}.


@EndNode

@Node "Def Cmds in Detail" "texinfo.guide/Def Cmds in Detail"
@Next "Def Cmd Conventions"
@Prev "deffnx"
@Toc "Definition Commands"

The Definition Commands
=======================

  Texinfo provides more than a dozen definition commands, all of which
are described in this section.

  The definition commands automatically enter the name of the entity in
the appropriate index: for example, @{b} @deffn@{ub}, @{b} @defun@{ub}, and @{b} @defmac@{ub}
enter function names in the index of functions; @{b} @defvr@{ub} and @{b} @defvar@{ub}
enter variable names in the index of variables.

  Although the examples that follow mostly illustrate Lisp, the commands
can be used for other programming languages.


 @{" Functions Commands        " Link "Functions Commands"}  Commands for functions and similar entities.
 @{" Variables Commands        " Link "Variables Commands"}  Commands for variables and similar entities.
 @{" Typed Functions           " Link "Typed Functions"}  Commands for functions in typed languages.
 @{" Typed Variables           " Link "Typed Variables"}  Commands for variables in typed languages.
 @{" Abstract Objects          " Link "Abstract Objects"}  Commands for object-oriented programming.
 @{" Data Types                " Link "Data Types"}  The definition command for data types.


@EndNode

@Node "Functions Commands" "texinfo.guide/Functions Commands"
@Next "Variables Commands"
@Prev "Def Cmds in Detail"
@Toc "Def Cmds in Detail"

Functions and Similar Entities
------------------------------

  This section describes the commands for describing functions and
similar entities:

@{b} @deffn CATEGORY NAME ARGUMENTS...@{ub}
     The @{b} @deffn@{ub} command is the general definition command for
     functions, interactive commands, and similar entities that may take
     arguments.  You must choose a term to describe the category of
     entity being defined; for example, "Function" could be used if the
     entity is a function.  The @{b} @deffn@{ub} command is written at the
     beginning of a line and is followed on the same line by the
     category of entity being described, the name of this particular
     entity, and its arguments, if any.  Terminate the definition with @{b}
     @end deffn@{ub} on a line of its own.

     For example, here is a definition:

          @deffn Command forward-char nchars
          Move point forward @var{nchars} characters.
          @end deffn

     This shows a rather terse definition for a "command" named
     @{b}forward-char@{ub} with one argument, NCHARS.

     @{b} @deffn@{ub} prints argument names such as NCHARS in italics or upper
     case, as if @{b} @var@{ub} had been used, because we think of these names
     as metasyntactic variables--they stand for the actual argument
     values.  Within the text of the description, write an argument name
     explicitly with @{b} @var@{ub} to refer to the value of the argument.  In
     the example above, we used @{b} @var{nchars}@{ub} in this way.

     The template for @{b} @deffn@{ub} is:

          @deffn CATEGORY NAME ARGUMENTS...
          BODY-OF-DEFINITION
          @end deffn

@{b} @defun NAME ARGUMENTS...@{ub}
     The @{b} @defun@{ub} command is the definition command for functions.  @{b}
     @defun@{ub} is equivalent to @{b} @deffn Function ...@{ub}.

     For example,

          @defun set symbol new-value
          Change the value of the symbol @var{symbol}
          to @var{new-value}.
          @end defun

     shows a rather terse definition for a function @{b}set@{ub} whose arguments
     are SYMBOL and NEW-VALUE.  The argument names on the @{b} @defun@{ub} line
     automatically appear in italics or upper case as if they were
     enclosed in @{b} @var@{ub}.  Terminate the definition with @{b} @end defun@{ub} on a
     line of its own.

     The template is:

          @defun FUNCTION-NAME ARGUMENTS...
          BODY-OF-DEFINITION
          @end defun

     @{b} @defun@{ub} creates an entry in the index of functions.

@{b} @defmac NAME ARGUMENTS...@{ub}
     The @{b} @defmac@{ub} command is the definition command for macros.  @{b}
     @defmac@{ub} is equivalent to @{b} @deffn Macro ...@{ub} and works like @{b} @defun@{ub}.

@{b} @defspec NAME ARGUMENTS...@{ub}
     The @{b} @defspec@{ub} command is the definition command for special forms.
     (In Lisp, a special form is an entity much like a function.) @{b}
     @defspec@{ub} is equivalent to @{b} @deffn {Special Form} ...@{ub} and works
     like @{b} @defun@{ub}.


@EndNode

@Node "Variables Commands" "texinfo.guide/Variables Commands"
@Next "Typed Functions"
@Prev "Functions Commands"
@Toc "Def Cmds in Detail"

Variables and Similar Entities
------------------------------

  Here are the commands for defining variables and similar entities:

@{b} @defvr CATEGORY NAME@{ub}
     The @{b} @defvr@{ub} command is a general definition command for something
     like a variable--an entity that records a value.  You must choose
     a term to describe the category of entity being defined; for
     example, "Variable" could be used if the entity is a variable.
     Write the @{b} @defvr@{ub} command at the beginning of a line and followed
     it on the same line by the category of the entity and the name of
     the entity.

     Capitalize the category name like a title.  If the name of the
     category contains spaces, as in the name `User Option', write
     braces around it.  Otherwise, the second word will be mistaken for
     the name of the entity, for example:

          @defvr {User Option} fill-column
          This buffer-local variable specifies
          the maximum width of filled lines.
          ...
          @end defvr

     Terminate the definition with @{b} @end defvr@{ub} on a line of its own.

     The template is:

          @defvr CATEGORY NAME
          BODY-OF-DEFINITION
          @end defvr

     @{b} @defvr@{ub} creates an entry in the index of variables for NAME.

@{b} @defvar NAME@{ub}
     The @{b} @defvar@{ub} command is the definition command for variables.  @{b}
     @defvar@{ub} is equivalent to @{b} @defvr Variable ...@{ub}.

     For example:

          @defvar kill-ring
          ...
          @end defvar

     The template is:

          @defvar NAME
          BODY-OF-DEFINITION
          @end defvar

     @{b} @defvar@{ub} creates an entry in the index of variables for NAME.

@{b} @defopt NAME@{ub}
     The @{b} @defopt@{ub} command is the definition command for user options.  @{b}
     @defopt@{ub} is equivalent to @{b} @defvr {User Option} ...@{ub} and works like @{b}
     @defvar@{ub}.


@EndNode

@Node "Typed Functions" "texinfo.guide/Typed Functions"
@Next "Typed Variables"
@Prev "Variables Commands"
@Toc "Def Cmds in Detail"

Functions in Typed Languages
----------------------------

  The @{b} @deftypefn@{ub} command and its variations are for describing
functions in C or any other language in which you must declare types of
variables and functions.

@{b} @deftypefn CATEGORY DATA-TYPE NAME ARGUMENTS...@{ub}
     The @{b} @deftypefn@{ub} command is the general definition command for
     functions and similar entities that may take arguments and that are
     typed.  The @{b} @deftypefn@{ub} command is written at the beginning of a
     line and is followed on the same line by the category of entity
     being described, the type of the returned value, the name of this
     particular entity, and its arguments, if any.

     For example,

          @deftypefn {Library Function} int foobar
             (int @var{foo}, float @var{bar})
          ...
          @end deftypefn

     (where the text before the "...", shown above as two lines, would
     actually be a single line in a real Texinfo file) produces the
     following in Info:

          -- Library Function: int foobar (int FOO, float BAR)
          ...

     This means that @{b}foobar@{ub} is a "library function" that returns an
     @{b}int@{ub}, and its arguments are FOO (an @{b}int@{ub}) and BAR (a @{b}float@{ub}).

     The argument names that you write in @{b} @deftypefn@{ub} are not subject
     to an implicit @{b} @var@{ub}--since the actual names of the arguments in @{b}
     @deftypefn@{ub} are typically scattered among data type names and
     keywords, Texinfo cannot find them without help.  Instead, you
     must write @{b} @var@{ub} explicitly around the argument names.  In the
     example above, the argument names are @{b}foo@{ub} and @{b}bar@{ub}.

     The template for @{b} @deftypefn@{ub} is:

          @deftypefn CATEGORY DATA-TYPE NAME ARGUMENTS ...
          BODY-OF-DESCRIPTION
          @end deftypefn

     Note that if the CATEGORY or DATA TYPE is more than one word then
     it must be enclosed in braces to make it a single argument.

     If you are describing a procedure in a language that has packages,
     such as Ada, you might consider using @{b} @deftypefn@{ub} in a manner
     somewhat contrary to the convention described in the preceding
     paragraphs.

     For example:

          @deftypefn stacks private push
                  (@var{s}:in out stack;
                  @var{n}:in integer)
          ...
          @end deftypefn

     (The @{b} @deftypefn@{ub} arguments are shown split into three lines, but
     would be a single line in a real Texinfo file.)

     In this instance, the procedure is classified as belonging to the
     package @{b}stacks@{ub} rather than classified as a `procedure' and its
     data type is described as @{b}private@{ub}.  (The name of the procedure is
     @{b}push@{ub}, and its arguments are S and N.)

     @{b} @deftypefn@{ub} creates an entry in the index of functions for NAME.

@{b} @deftypefun DATA-TYPE NAME ARGUMENTS...@{ub}
     The @{b} @deftypefun@{ub} command is the specialized definition command for
     functions in typed languages.  The command is equivalent to @{b}
     @deftypefn Function ...@{ub}.

     Thus,

          @deftypefun int foobar (int @var{foo}, float @var{bar})
          ...
          @end deftypefun

     produces the following in Info:

          -- Function: int foobar (int FOO, float BAR)
          ...

     The template is:

          @deftypefun TYPE NAME ARGUMENTS...
          BODY-OF-DESCRIPTION
          @end deftypefun

     @{b} @deftypefun@{ub} creates an entry in the index of functions for NAME.


@EndNode

@Node "Typed Variables" "texinfo.guide/Typed Variables"
@Next "Abstract Objects"
@Prev "Typed Functions"
@Toc "Def Cmds in Detail"

Variables in Typed Languages
----------------------------

  Variables in typed languages are handled in a manner similar to
functions in typed languages.  See @{"Typed Functions" Link "Typed Functions"}.  The general
definition command @{b} @deftypevr@{ub} corresponds to @{b} @deftypefn@{ub} and the
specialized definition command @{b} @deftypevar@{ub} corresponds to @{b} @deftypefun@{ub}.

@{b} @deftypevr CATEGORY DATA-TYPE NAME@{ub}
     The @{b} @deftypevr@{ub} command is the general definition command for
     something like a variable in a typed language--an entity that
     records a value.  You must choose a term to describe the category
     of the entity being defined; for example, "Variable" could be used
     if the entity is a variable.

     The @{b} @deftypevr@{ub} command is written at the beginning of a line and
     is followed on the same line by the category of the entity being
     described, the data type, and the name of this particular entity.

     For example:

          @deftypevr {Global Flag} int enable
          ...
          @end deftypevr

     produces the following in Info:

          -- Global Flag: int enable
          ...

     The template is:

          @deftypevr CATEGORY DATA-TYPE NAME
          BODY-OF-DESCRIPTION
          @end deftypevr

     @{b} @deftypevr@{ub} creates an entry in the index of variables for NAME.

@{b} @deftypevar DATA-TYPE NAME@{ub}
     The @{b} @deftypevar@{ub} command is the specialized definition command for
     variables in typed languages.  @{b} @deftypevar@{ub} is equivalent to @{b}
     @deftypevr Variable ...@{ub}.

     For example:

          @deftypevar int fubar
          ...
          @end deftypevar

     produces the following in Info:

          -- Variable: int fubar
          ...

     The template is:

          @deftypevar DATA-TYPE NAME
          BODY-OF-DESCRIPTION
          @end deftypevar

     @{b} @deftypevar@{ub} creates an entry in the index of variables for NAME.


@EndNode

@Node "Abstract Objects" "texinfo.guide/Abstract Objects"
@Next "Data Types"
@Prev "Typed Variables"
@Toc "Def Cmds in Detail"

Object-Oriented Programming
---------------------------

  Here are the commands for formatting descriptions about abstract
objects, such as are used in object-oriented programming.  A class is a
defined type of abstract object.  An instance of a class is a
particular object that has the type of the class.  An instance variable
is a variable that belongs to the class but for which each instance has
its own value.

  In a definition, if the name of a class is truly a name defined in the
programming system for a class, then you should write an @{b} @code@{ub} around
it.  Otherwise, it is printed in the usual text font.

@{b} @defcv CATEGORY CLASS NAME@{ub}
     The @{b} @defcv@{ub} command is the general definition command for
     variables associated with classes in object-oriented programming.
     The @{b} @defcv@{ub} command is followed by three arguments: the category of
     thing being defined, the class to which it belongs, and its name.
     Thus,

          @defcv {Class Option} Window border-pattern
          ...
          @end defcv

     illustrates how you would write the first line of a definition of
     the @{b}border-pattern@{ub} class option of the class @{b}Window@{ub}.

     The template is

          @defcv CATEGORY CLASS NAME
          ...
          @end defcv

     @{b} @defcv@{ub} creates an entry in the index of variables.

@{b} @defivar CLASS NAME@{ub}
     The @{b} @defivar@{ub} command is the definition command for instance
     variables in object-oriented programming.  @{b} @defivar@{ub} is equivalent
     to @{b} @defcv {Instance Variable} ...@{ub}

     The template is:

          @defivar CLASS INSTANCE-VARIABLE-NAME
          BODY-OF-DEFINITION
          @end defivar

     @{b} @defivar@{ub} creates an entry in the index of variables.

@{b} @defop CATEGORY CLASS NAME ARGUMENTS...@{ub}
     The @{b} @defop@{ub} command is the general definition command for entities
     that may resemble methods in object-oriented programming.  These
     entities take arguments, as functions do, but are associated with
     particular classes of objects.

     For example, some systems have constructs called @{i}wrappers@{ui} that are
     associated with classes as methods are, but that act more like
     macros than like functions.  You could use @{b} @defop Wrapper@{ub} to
     describe one of these.

     Sometimes it is useful to distinguish methods and @{i}operations@{ui}.  You
     can think of an operation as the specification for a method.
     Thus, a window system might specify that all window classes have a
     method named @{b}expose@{ub}; we would say that this window system defines
     an @{b}expose@{ub} operation on windows in general.  Typically, the
     operation has a name and also specifies the pattern of arguments;
     all methods that implement the operation must accept the same
     arguments, since applications that use the operation do so without
     knowing which method will implement it.

     Often it makes more sense to document operations than methods.  For
     example, window application developers need to know about the
     @{b}expose@{ub} operation, but need not be concerned with whether a
     given class of windows has its own method to implement this
     operation.  To describe this operation, you would write:

          @defop Operation windows expose

     The @{b} @defop@{ub} command is written at the beginning of a line and is
     followed on the same line by the overall name of the category of
     operation, the name of the class of the operation, the name of the
     operation, and its arguments, if any.

     The template is:

          @defop CATEGORY CLASS NAME ARGUMENTS...
          BODY-OF-DEFINITION
          @end defop

     @{b} @defop@{ub} creates an entry, such as `@{b}expose@{ub} on @{b}windows@{ub}', in the
     index of functions.

@{b} @defmethod CLASS NAME ARGUMENTS...@{ub}
     The @{b} @defmethod@{ub} command is the definition command for methods in
     object-oriented programming.  A method is a kind of function that
     implements an operation for a particular class of objects and its
     subclasses.  In the Lisp Machine, methods actually were functions,
     but they were usually defined with @{b}defmethod@{ub}.

     @{b} @defmethod@{ub} is equivalent to @{b} @defop Method ...@{ub}.  The command is
     written at the beginning of a line and is followed by the name of
     the class of the method, the name of the method, and its
     arguments, if any.

     For example,

          @defmethod @{b}bar-class@{ub} bar-method argument
          ...
          @end defmethod

     illustrates the definition for a method called @{b}bar-method@{ub} of the
     class @{b}bar-class@{ub}.  The method takes an argument.

     The template is:

          @defmethod CLASS METHOD-NAME ARGUMENTS...
          BODY-OF-DEFINITION
          @end defmethod

     @{b} @defmethod@{ub} creates an entry, such as `@{b}bar-method@{ub} on @{b}bar-class@{ub}',
     in the index of functions.


@EndNode

@Node "Data Types" "texinfo.guide/Data Types"
@Prev "Abstract Objects"
@Toc "Def Cmds in Detail"

Data Types
----------

  Here is the command for data types:

@{b} @deftp CATEGORY NAME ATTRIBUTES...@{ub}
     The @{b} @deftp@{ub} command is the generic definition command for data
     types.  The command is written at the beginning of a line and is
     followed on the same line by the category, by the name of the type
     (which is a word like @{b}int@{ub} or @{b}float@{ub}), and then by names of
     attributes of objects of that type.  Thus, you could use this
     command for describing @{b}int@{ub} or @{b}float@{ub}, in which case you could use
     @{b}data type@{ub} as the category.  (A data type is a category of
     certain objects for purposes of deciding which operations can be
     performed on them.)

     In Lisp, for example,  @{i}pair@{ui} names a particular data type, and an
     object of that type has two slots called the @{i}car@{ui} and the @{i}cdr@{ui}.
     Here is how you would write the first line of a definition of @{b}pair@{ub}.

          @deftp {Data type} pair car cdr
          ...
          @end deftp

     The template is:

          @deftp CATEGORY NAME-OF-TYPE ATTRIBUTES...
          BODY-OF-DEFINITION
          @end deftp

     @{b} @deftp@{ub} creates an entry in the index of data types.


@EndNode

@Node "Def Cmd Conventions" "texinfo.guide/Def Cmd Conventions"
@Next "Sample Function Definition"
@Prev "Def Cmds in Detail"
@Toc "Definition Commands"

Conventions for Writing Definitions
===================================

  When you write a definition using @{b} @deffn@{ub}, @{b} @defun@{ub}, or one of the
other definition commands, please take care to use arguments that
indicate the meaning, as with the COUNT argument to the @{b}forward-word@{ub}
function.  Also, if the name of an argument contains the name of a
type, such as INTEGER, take care that the argument actually is of that
type.


@EndNode

@Node "Sample Function Definition" "texinfo.guide/Sample Function Definition"
@Prev "Def Cmd Conventions"
@Toc "Definition Commands"

A Sample Function Definition
============================

  A function definition uses the @{b} @defun@{ub} and @{b} @end defun@{ub} commands.  The
name of the function follows immediately after the @{b} @defun@{ub} command and
it is followed, on the same line, by the parameter list.

  Here is a definition from `The GNU Emacs Lisp Reference Manual'.
(See @{"Calling Functions" Link "elisp/Calling Functions"}.)

      - Function: apply FUNCTION &rest ARGUMENTS
          @{b}apply@{ub} calls FUNCTION with ARGUMENTS, just like @{b}funcall@{ub} but
          with one difference: the last of ARGUMENTS is a list of
          arguments to give to FUNCTION, rather than a single argument.
          We also say that this list is @{i}appended@{ui} to the other
          arguments.

          @{b}apply@{ub} returns the result of calling FUNCTION.  As with
          @{b}funcall@{ub}, FUNCTION must either be a Lisp function or
          a primitive function; special forms and macros do not make
          sense in @{b}apply@{ub}.

               (setq f 'list)
                    => list
               (apply f 'x 'y 'z)
               error--> Wrong type argument: listp, z
               (apply '+ 1 2 '(3 4))
                    => 10
               (apply '+ '(1 2 3 4))
                    => 10
               
               (apply 'append '((a b c) nil (x y z) nil))
                    => (a b c x y z)

          An interesting example of using @{b}apply@{ub} is found in the
          description of @{b}mapcar@{ub}.

  In the Texinfo source file, this example looks like this:

     @defun apply function &rest arguments
     
     @code{apply} calls @var{function} with
     @var{arguments}, just like @code{funcall} but with one
     difference: the last of @var{arguments} is a list of
     arguments to give to @var{function}, rather than a single
     argument.  We also say that this list is @dfn{appended}
     to the other arguments.
     
     @code{apply} returns the result of calling
     @var{function}.  As with @code{funcall},
     @var{function} must either be a Lisp function or a
     primitive function; special forms and macros do not make
     sense in @code{apply}.
     
     @example
     (setq f 'list)
          @result{} list
     (apply f 'x 'y 'z)
     @error{} Wrong type argument: listp, z
     (apply '+ 1 2 '(3 4))
          @result{} 10
     (apply '+ '(1 2 3 4))
          @result{} 10
     
     (apply 'append '((a b c) nil (x y z) nil))
          @result{} (a b c x y z)
     @end example
     
     An interesting example of using @code{apply} is found
     in the description of @code{mapcar}.@refill
     @end defun

In this manual, this function is listed in the Command and Variable
Index under @{b}apply@{ub}.

  Ordinary variables and user options are described using a format like
that for functions except that variables do not take arguments.


@EndNode

@Node "Footnotes" "texinfo.guide/Footnotes"
@Next "Conditionals"
@Prev "Definition Commands"
@Toc "Main"

Footnotes
*********

  A @{i}footnote@{ui} is for a reference that documents or elucidates the
primary text.(1)@{"Footnotes-Footnotes" Link "Footnotes-Footnotes"}


 @{" Footnote Commands         " Link "Footnote Commands"}  How to write a footnote in Texinfo.
 @{" Footnote Styles           " Link "Footnote Styles"}  Controlling how footnotes appear in Info.


@EndNode

@Node "Footnotes-Footnotes" "texinfo.guide/Footnotes-Footnotes"
@Toc "Footnotes"

  (1)  A footnote should complement or expand upon the primary text,
but a reader should not need to read a footnote to understand the
primary text.  For a thorough discussion of footnotes, see `The Chicago
Manual of Style', which is published by the University of Chicago Press.


@EndNode

@Node "Footnote Commands" "texinfo.guide/Footnote Commands"
@Next "Footnote Styles"
@Toc "Footnotes"

Footnote Commands
=================

  In Texinfo, footnotes are created with the @{b} @footnote@{ub} command.  This
command is followed immediately by a left brace, then by the text of
the footnote, and then by a terminating right brace.  The template is:

     @footnote{TEXT}

  Footnotes may be of any length, but are usually short.

  For example, this clause is followed by a sample
footnote(1)@{"Footnote Commands-Footnotes" Link "Footnote Commands-Footnotes"};
in the Texinfo source, it looks like this:

     ...a sample footnote @footnote{Here is the sample
     footnote.}; in the Texinfo source...

  @{i}Warning:@{ui} Don't use footnotes in the argument of the @{b} @item@{ub} command
for a @{b} @table@{ub} table.  This doesn't work; because of limitations of TeX,
there is no way to fix it.  To avoid the problem, move the footnote
into the body text of the table.

  In a printed manual or book, the reference mark for a footnote is a
small, superscripted number; the text of the footnote appears at the
bottom of the page, below a horizontal line.

  In Info, the reference mark for a footnote is a pair of parentheses
with the footnote number between them, like this: @{b}(1)@{ub}.


@EndNode

@Node "Footnote Commands-Footnotes" "texinfo.guide/Footnote Commands-Footnotes"
@Toc "Footnote Commands"

  (1)  Here is the sample footnote.


@EndNode

@Node "Footnote Styles" "texinfo.guide/Footnote Styles"
@Prev "Footnote Commands"
@Toc "Footnotes"

Footnote Styles
===============

  Info has two footnote styles, which determine where the text of the
footnote is located:

   @{b}*@{ub} In the `End' node style, all the footnotes for a single node are
     placed at the end of that node.  The footnotes are separated from
     the rest of the node by a line of dashes with the word @{b}Footnotes@{ub}
     within it.  Each footnote begins with an @{b} (N)@{ub} reference mark.

     Here is an example of a single footnote in the end of node style:

           --------- Footnotes ---------
          
          (1)  Here is a sample footnote.

   @{b}*@{ub} In the `Separate' node style, all the footnotes for a single node
     are placed in an automatically constructed node of their own.  In
     this style, a "footnote reference" follows each @{b} (N)@{ub} reference
     mark in the body of the node.  The footnote reference is actually
     a cross reference which you use to reach the footnote node.

     The name of the node containing the footnotes is constructed by
     appending @{b}-Footnotes@{ub} to the name of the node that contains the
     footnotes. (Consequently, the footnotes' node for the @{b}Footnotes@{ub}
     node is @{b}Footnotes-Footnotes@{ub}!)  The footnotes' node has an `Up'
     node pointer that leads back to its parent node.

     Here is how the first footnote in this manual looks after being
     formatted for Info in the separate node style:

          File: texinfo.info  Node: Overview-Footnotes, Up: Overview
          
          (1) Note that the first syllable of "Texinfo" is
          pronounced like "speck", not "hex". ...

  A Texinfo file may be formatted into an Info file with either footnote
style.

  Use the @{b} @footnotestyle@{ub} command to specify an Info file's footnote
style.  Write this command at the beginning of a line followed by an
argument, either @{b}end@{ub} for the end node style or @{b}separate@{ub} for the
separate node style.

  For example,

     @footnotestyle end

or
     @footnotestyle separate

  Write an @{b} @footnotestyle@{ub} command before or shortly after the
end-of-header line at the beginning of a Texinfo file.  (If you include
the @{b} @footnotestyle@{ub} command between the start-of-header and
end-of-header lines, the region formatting commands will format
footnotes as specified.)

  If you do not specify a footnote style, the formatting commands use
their default style.  Currently, @{b}texinfo-format-buffer@{ub} and
@{b}texinfo-format-region@{ub} use the `separate' style and @{b}makeinfo@{ub} uses
the `end' style.

  This chapter contains two footnotes.


@EndNode

@Node "Conditionals" "texinfo.guide/Conditionals"
@Next "Format-Print Hardcopy"
@Prev "Footnotes"
@Toc "Main"

Conditionally Visible Text
**************************

  Sometimes it is good to use different text for a printed manual and
its corresponding Info file.  In this case, you can use the @{i}conditional
commands@{ui} to specify which text is for the printed manual and which is
for the Info file.


 @{" Conditional Commands      " Link "Conditional Commands"}  How to specify text for Info or TeX.
 @{" Using Ordinary TeX Commands " Link "Using Ordinary TeX Commands"}  You can use any and all TeX commands.
 @{" set clear value           " Link "set clear value"}  How to designate which text to format (for
                                  both Info and TeX); and how to set a
                                  flag to a string that you can insert.


@EndNode

@Node "Conditional Commands" "texinfo.guide/Conditional Commands"
@Next "Using Ordinary TeX Commands"
@Prev "Conditionals"
@Toc "Conditionals"

Using @{b} @ifinfo@{ub} and @{b} @iftex@{ub}
==========================

  @{b} @ifinfo@{ub} begins segments of text that should be ignored by TeX when it
typesets the printed manual.  The segment of text appears only in the
Info file.  The @{b} @ifinfo@{ub} command should appear on a line by itself;  end
the Info-only text with a line containing @{b} @end ifinfo@{ub} by itself.  At
the beginning of a Texinfo file, the Info permissions are contained
within a region marked by @{b} @ifinfo@{ub} and @{b} @end ifinfo@{ub}. (See
@{"Info Summary and Permissions" Link "Info Summary and Permissions"}.)

  The @{b} @iftex@{ub} and @{b} @end iftex@{ub} commands are similar to the @{b} @ifinfo@{ub} and @{b}
@end ifinfo@{ub} commands, except that they specify text that will appear in
the printed manual but not in the Info file.

  For example,

     @iftex
     This text will appear only in the printed manual.
     @end iftex
     
     @ifinfo
     However, this text will appear only in Info.
     @end ifinfo

The preceding example produces the following line:

  However, this text will appear only in Info.

Note how you only see one of the two lines, depending on whether you
are reading the Info version or the printed version of this manual.

  The @{b} @titlepage@{ub} command is a special variant of @{b} @iftex@{ub} that is used
for making the title and copyright pages of the printed manual. (See
@{"@titlepage" Link "titlepage"}.)


@EndNode

@Node "Using Ordinary TeX Commands" "texinfo.guide/Using Ordinary TeX Commands"
@Next "set clear value"
@Prev "Conditional Commands"
@Toc "Conditionals"

Using Ordinary TeX Commands
===========================

  Inside a region delineated by @{b} @iftex@{ub} and @{b} @end iftex@{ub}, you can embed
some PlainTeX commands.  Info will ignore these commands since they are
only in that part of the file which is seen by TeX.  You can write the
TeX commands as you would write them in a normal TeX file, except that
you must replace the @{b}\ @{ub} used by TeX with an @{b} @@{ub}.  For example, in the @{b}
@titlepage@{ub} section of a Texinfo file, you can use the TeX command @{b}
@vskip@{ub} to format the copyright page.  (The @{b} @titlepage@{ub} command causes
Info to ignore the region automatically, as it does with the @{b} @iftex@{ub}
command.)

  However, many features of PlainTeX will not work, as they are
overridden by features of Texinfo.

  You can enter PlainTeX completely, and use @{b}\ @{ub} in the TeX commands, by
delineating a region with the @{b} @tex@{ub} and @{b} @end tex@{ub} commands.  (The @{b} @tex@{ub}
command also causes Info to ignore the region, like the @{b} @iftex@{ub}
command.)

  For example, here is a mathematical expression written in PlainTeX:

     @tex
     $$ \chi^2 = \sum_{i=1}^N
               \left (y_i - (a + b x_i)
               \over \sigma_i\right)^2 $$
     @end tex

The output of this example will appear only in a printed manual.  If
you are reading this in Info, you will not see anything after this
paragraph.


@EndNode

@Node "set clear value" "texinfo.guide/set clear value"
@Prev "Using Ordinary TeX Commands"
@Toc "Conditionals"

@{b} @set@{ub}, @{b} @clear@{ub}, and @{b} @value@{ub}
===========================

  You can direct the Texinfo formatting commands to format or ignore
parts of a Texinfo file with the @{b} @set@{ub}, @{b} @clear@{ub}, @{b} @ifset@{ub}, and @{b} @ifclear@{ub}
commands.

  In addition, you can use the @{b} @set FLAG@{ub} command to set the value of
FLAG to a string of characters; and use @{b} @value{FLAG}@{ub} to insert that
string.  You can use @{b} @set@{ub}, for example, to set a date and use @{b} @value@{ub}
to insert the date in several places in the Texinfo file.


 @{" ifset ifclear             " Link "ifset ifclear"}  Format a region if a flag is set.
 @{" value                     " Link "value"}  Replace a flag with a string.
 @{" value Example             " Link "value Example"}  An easy way to update edition information.


@EndNode

@Node "ifset ifclear" "texinfo.guide/ifset ifclear"
@Next "value"
@Prev "set clear value"
@Toc "set clear value"

@{b} @ifset@{ub} and @{b} @ifclear@{ub}
---------------------

  When a FLAG is set, the Texinfo formatting commands format text
between subsequent pairs of @{b} @ifset FLAG@{ub} and @{b} @end ifset@{ub} commands.
When the FLAG is cleared, the Texinfo formatting commands do @{i}not@{ui} format
the text.

  Use the @{b} @set FLAG@{ub} command to turn on, or @{i}set@{ui}, a FLAG; a @{i}flag@{ui} can be
any single word.  The format for the command looks like this:

     @set FLAG

  Write the conditionally formatted text between @{b} @ifset FLAG@{ub} and @{b} @end
ifset@{ub} commands, like this:

     @ifset FLAG
     CONDITIONAL-TEXT
     @end ifset

  For example, you can create one document that has two variants, such
as a manual for a `large' and `small' model:

     You can use this machine to dig up shrubs
     without hurting them.
     
     @set large
     
     @ifset large
     It can also dig up fully grown trees.
     @end ifset
     
     Remember to replant promptly ...

In the example, the formatting commands will format the text between @{b}
@ifset large@{ub} and @{b} @end ifset@{ub} because the @{b}large@{ub} flag is set.

  Use the @{b} @clear FLAG@{ub} command to turn off, or @{i}clear@{ui}, a flag.  Clearing
a flag is the opposite of setting a flag.  The command looks like this:

     @clear FLAG

Write the command on a line of its own.

  When FLAG is cleared, the Texinfo formatting commands do @{i}not@{ui} format
the text between @{b} @ifset FLAG@{ub} and @{b} @end ifset@{ub}; that text is ignored and
does not appear in either printed or Info output.

  For example, if you clear the flag of the preceding example by writing
an @{b} @clear large@{ub} command after the @{b} @set large@{ub} command (but before the
conditional text), then the Texinfo formatting commands ignore the text
between the @{b} @ifset large@{ub} and @{b} @end ifset@{ub} commands.  In the formatted
output, that text does not appear; in both printed and Info output, you
see only the lines that say, "You can use this machine to dig up shrubs
without hurting them.  Remember to replant promptly ...".

  If a flag is cleared with an @{b} @clear FLAG@{ub} command, then the
formatting commands format text between subsequent pairs of @{b} @ifclear@{ub}
and @{b} @end ifclear@{ub} commands.  But if the flag is set with @{b} @set FLAG@{ub},
then the formatting commands do @{i}not@{ui} format text between an @{b} @ifclear@{ub}
and an @{b} @end ifclear@{ub} command; rather, they ignore that text.  An @{b}
@ifclear@{ub} command looks like this:

     @ifclear FLAG

  In brief, the commands are:

@{b} @set FLAG@{ub}
     Tell the Texinfo formatting commands that FLAG is set.

@{b} @clear FLAG@{ub}
     Tell the Texinfo formatting commands that FLAG is cleared.

@{b} @ifset FLAG@{ub}
     If FLAG is set, tell the Texinfo formatting commands to format the
     text up to the following @{b} @end ifset@{ub} command.

     If FLAG is cleared, tell the Texinfo formatting commands to ignore
     text up to the following @{b} @end ifset@{ub} command.

@{b} @ifclear FLAG@{ub}
     If FLAG is set, tell the Texinfo formatting commands to ignore the
     text up to the following @{b} @end ifclear@{ub} command.

     If FLAG is cleared, tell the Texinfo formatting commands to format
     the text up to the following @{b} @end ifclear@{ub} command.


@EndNode

@Node "value" "texinfo.guide/value"
@Next "value Example"
@Prev "ifset ifclear"
@Toc "set clear value"

@{b} @value@{ub}
-------

  You can use the @{b} @set@{ub} command to specify a value for a flag, which is
expanded by the @{b} @value@{ub} command.  The value is a string a characters.

  Write the @{b} @set@{ub} command like this:

     @set foo This is a string.

This sets the value of @{b}foo@{ub} to "This is a string."

  The Texinfo formatters replace an @{b} @value{FLAG}@{ub} command with the
string to which FLAG is set.

  Thus, when @{b}foo@{ub} is set as shown above, the Texinfo formatters convert

     @value{foo}
to
     This is a string.

  You can write an @{b} @value@{ub} command within a paragraph; but you must
write an @{b} @set@{ub} command on a line of its own.

  If you write the @{b} @set@{ub} command like this:

     @set foo

without specifying a string, the value of @{b}foo@{ub} is an empty string.

  If you clear a previously set flag with an @{b} @clear FLAG@{ub} command, a
subsequent @{b} @value{flag}@{ub} command is invalid and the string is replaced
with an error message that says @{b}{No value for "FLAG"}@{ub}.

  For example, if you set @{b}foo@{ub} as follows:

     @set how-much very, very, very

then the formatters transform

     It is a @value{how-much} wet day.
into
     It is a very, very, very wet day.

  If you write

     @clear how-much

then the formatters transform

     It is a @value{how-much} wet day.
into
     It is a {No value for "how-much"} wet day.


@EndNode

@Node "value Example" "texinfo.guide/value Example"
@Prev "value"
@Toc "set clear value"

@{b} @value@{ub} Example
---------------

  You can use the @{b} @value@{ub} command to limit the number of places you
need to change when you record an update to a manual.  Here is how it
is done in `The GNU Make Manual':

Set the flags:

     @set EDITION 0.35 Beta
     @set VERSION 3.63 Beta
     @set UPDATED 14 August 1992
     @set UPDATE-MONTH August 1992

Write text for the first @{b} @ifinfo@{ub} section, for people reading the
Texinfo file:

     This is Edition @value{EDITION},
     last updated @value{UPDATED},
     of @cite{The GNU Make Manual},
     for @code{make}, Version @value{VERSION}.

Write text for the title page, for people reading the printed manual:

     @title GNU Make
     @subtitle A Program for Directing Recompilation
     @subtitle Edition @value{EDITION}, ...
     @subtitle @value{UPDATE-MONTH}

(On a printed cover, a date listing the month and the year looks less
fussy than a date listing the day as well as the month and year.)

Write text for the Top node, for people reading the Info file:

     This is Edition @value{EDITION}
     of the @cite{GNU Make Manual},
     last updated @value{UPDATED}
     for @code{make} Version @value{VERSION}.

  After you format the manual, the text in the first @{b} @ifinfo@{ub} section
looks like this:

     This is Edition 0.35 Beta, last updated 14 August 1992,
     of `The GNU Make Manual', for `make', Version 3.63 Beta.

  When you update the manual, change only the values of the flags; you
do not need to rewrite the three sections.


@EndNode

@Node "Format-Print Hardcopy" "texinfo.guide/Format-Print Hardcopy"
@Next "Create an Info File"
@Prev "Conditionals"
@Toc "Main"

Format and Print Hardcopy
*************************

  There are three major shell commands for making a printed manual from
a Texinfo file: one for converting the Texinfo file into a file that
will be printed, a second for sorting indices, and a third for printing
the formatted document.  When you use the shell commands, you can either
work directly in the operating system shell or work within a shell
inside GNU Emacs.

  If you are using GNU Emacs, you can use commands provided by Texinfo
mode instead of shell commands.  In addition to the three commands to
format a file, sort the indices, and print the result, Texinfo mode
offers key bindings for commands to recenter the output buffer, show the
print queue, and delete a job from the print queue.


 @{" Use TeX                   " Link "Use TeX"}  Use TeX to format for hardcopy.
 @{" Format with tex-texindex  " Link "Format with tex-texindex"}  How to format in a shell.
 @{" Format with texi2dvi      " Link "Format with texi2dvi"}  A simpler way to use the shell.
 @{" Print with lpr            " Link "Print with lpr"}  How to print.
 @{" Within Emacs              " Link "Within Emacs"}  How to format and print from an Emacs shell.
 @{" Texinfo Mode Printing     " Link "Texinfo Mode Printing"}  How to format and print in Texinfo mode.
 @{" Compile-Command           " Link "Compile-Command"}  How to print using Emacs's compile command.
 @{" Requirements Summary      " Link "Requirements Summary"}  TeX formatting requirements summary.
 @{" Preparing for TeX         " Link "Preparing for TeX"}  What you need to do to use TeX.
 @{" Overfull hboxes           " Link "Overfull hboxes"}  What are and what to do with overfull hboxes.
 @{" smallbook                 " Link "smallbook"}  How to print small format books and manuals.
 @{" A4 Paper                  " Link "A4 Paper"}  How to print on European A4 paper.
 @{" Cropmarks and Magnification " Link "Cropmarks and Magnification"}  How to print marks to indicate the size
                                of pages and how to print scaled up output.


@EndNode

@Node "Use TeX" "texinfo.guide/Use TeX"
@Next "Format with tex-texindex"
@Prev "Format-Print Hardcopy"
@Toc "Format-Print Hardcopy"

Use TeX
=======

  The typesetting program called TeX is used for formatting a Texinfo
file.  TeX is a very powerful typesetting program and, if used right,
does an exceptionally good job.  See @{"How to Obtain TeX" Link "Obtaining TeX"}, for information
on how to obtain TeX.

  The @{b}makeinfo@{ub}, @{b}texinfo-format-region@{ub}, and @{b}texinfo-format-buffer@{ub}
commands read the very same @-commands in the Texinfo file as does TeX,
but process them differently to make an Info file; see See
@{"Create an Info File" Link "Create an Info File"}.


@EndNode

@Node "Format with tex-texindex" "texinfo.guide/Format with tex-texindex"
@Next "Format with texi2dvi"
@Prev "Use TeX"
@Toc "Format-Print Hardcopy"

Format using @{b}tex@{ub} and @{b}texindex@{ub}
=============================

  Format the Texinfo file with the shell command @{b}tex@{ub} followed by the
name of the Texinfo file.  This command produces a formatted @{i}dvi@{ui} file
as well as several auxiliary files containing indices, cross
references, etc.  The @{i}dvi@{ui} file (for @{i}DeVice Independent@{ui} file) can be
printed on a wide variety of printers.

  The @{b}tex@{ub} formatting command itself does not sort the indices; it
writes an output file of unsorted index data.  This is a misfeature of
TeX.  (The @{b}texi2dvi@{ub} command automatically generates indices; see See
@{"Format using texi2dvi" Link "Format with texi2dvi"}.)  To generate a printed index after running the
@{b}tex@{ub} command, you first need a sorted index to work from.  The
@{b}texindex@{ub} command sorts indices.  (The source file @{b}texindex.c@{ub} comes
as part of the standard GNU distribution and is usually installed when
Emacs is installed.)

  The @{b}tex@{ub} formatting command outputs unsorted index files under names
that obey a standard convention.  These names are the name of your main
input file to the @{b}tex@{ub} formatting command, with everything after the
first period thrown away, and the two letter names of indices added at
the end.  For example, the raw index output files for the input file
@{b}foo.texinfo@{ub} would be @{b}foo.cp@{ub}, @{b}foo.vr@{ub}, @{b}foo.fn@{ub}, @{b}foo.tp@{ub}, @{b}foo.pg@{ub} and
@{b}foo.ky@{ub}.  Those are exactly the arguments to give to @{b}texindex@{ub}.

  Or else, you can use @{b}??@{ub} as "wild-cards" and give the command in this
form:

     texindex foo.??

This command will run @{b}texindex@{ub} on all the unsorted index files,
including any that you have defined yourself using @{b} @defindex@{ub} or @{b}
@defcodeindex@{ub}.  (You may execute @{b}texindex foo.??@{ub} even if there are
similarly named files with two letter extensions that are not index
files, such as @{b}foo.el@{ub}.  The @{b}texindex@{ub} command reports but otherwise
ignores such files.)

  For each file specified, @{b}texindex@{ub} generates a sorted index file whose
name is made by appending @{b}s@{ub} to the input file name.  The @{b} @printindex@{ub}
command knows to look for a file of that name.  @{b}texindex@{ub} does not alter
the raw index output file.

  After you have sorted the indices, you need to rerun the @{b}tex@{ub}
formatting command on the Texinfo file.  This regenerates a formatted
@{i}dvi@{ui} file with up-to-date index
entries.(1)@{"Format with tex-texindex-Footnotes" Link "Format with tex-texindex-Footnotes"}

  To summarize, this is a three step process:

  1. Run the @{b}tex@{ub} formatting command on the Texinfo file.  This
     generates the formatted @{i}dvi@{ui} file as well as the raw index files
     with two letter extensions.

  2. Run the shell command @{b}texindex@{ub} on the raw index files to sort
     them.  This creates the corresponding sorted index files.

  3. Rerun the @{b}tex@{ub} formatting command on the Texinfo file.  This
     regenerates a formatted @{i}dvi@{ui} file with the index entries in the
     correct order.  This second run also corrects the page numbers for
     the cross references.  (The tables of contents are always correct.)

  You need not run @{b}texindex@{ub} each time after you run the @{b}tex@{ub} formatting.
If you do not, on the next run, the @{b}tex@{ub} formatting command will use
whatever sorted index files happen to exist from the previous use of
@{b}texindex@{ub}.  This is usually @{i}ok@{ui} while you are debugging.


@EndNode

@Node "Format with tex-texindex-Footnotes" "texinfo.guide/Format with tex-texindex-Footnotes"
@Toc "Format with tex-texindex"

  (1)  If you use more than one index and have cross references to an
index other than the first, you must run @{b}tex@{ub} @{i}three times@{ui} to get correct
output: once to generate raw index data; again (after @{b}texindex@{ub}) to
output the text of the indices and determine their true page numbers;
and a third time to output correct page numbers in cross references to
them.  However, cross references to indices are rare.


@EndNode

@Node "Format with texi2dvi" "texinfo.guide/Format with texi2dvi"
@Next "Print with lpr"
@Prev "Format with tex-texindex"
@Toc "Format-Print Hardcopy"

Format using @{b}texi2dvi@{ub}
=====================

  The @{b}texi2dvi@{ub} command is a shell script that automatically runs both
@{b}tex@{ub} and @{b}texindex@{ub} as needed to produce a @{i}dvi@{ui} file with up-to-date,
sorted indices.  It simplifies the @{b}tex@{ub}--@{b}texindex@{ub}--@{b}tex@{ub} sequence
described in the previous section.

  The syntax for @{b}texi2dvi@{ub} is like this (where @{b}%@{ub} is the shell prompt):

     % texi2dvi FILENAME...


@EndNode

@Node "Print with lpr" "texinfo.guide/Print with lpr"
@Next "Within Emacs"
@Prev "Format with texi2dvi"
@Toc "Format-Print Hardcopy"

Shell Print Using @{b}lpr -d@{ub}
========================

  You can print a @{i}dvi@{ui} file with the @{i}dvi@{ui} print command.  The precise
printing command to use depends on your system; @{b}lpr -d@{ub} is common.  The
@{i}dvi@{ui} print command may require a file name without any extension or
with a @{b}.dvi@{ub} extension.

  The following commands, for example, sort the indices, format, and
print the `Bison Manual' (where @{b}%@{ub} is the shell prompt):

     % tex bison.texinfo
     % texindex bison.??
     % tex bison.texinfo
     % lpr -d bison.dvi

(Remember that the shell commands may be different at your site; but
these are commonly used versions.)

  Using the @{b}texi2dvi@{ub} shell script, you simply need type:

     % texi2dvi bison.texinfo
     % lpr -d bison.dvi


@EndNode

@Node "Within Emacs" "texinfo.guide/Within Emacs"
@Next "Texinfo Mode Printing"
@Prev "Print with lpr"
@Toc "Format-Print Hardcopy"

From an Emacs Shell ...
=======================

  You can give formatting and printing commands from a shell within GNU
Emacs.  To create a shell within Emacs, type @{b}M-x shell@{ub}.  In this shell,
you can format and print the document.  See @{"Format and Print Hardcopy" Link "Format-Print Hardcopy"},
for details.

  You can switch to and from the shell buffer while @{b}tex@{ub} is running and
do other editing.  If you are formatting a long document on a slow
machine, this can be very convenient.

  You can also use @{b}texi2dvi@{ub} from an Emacs shell.  For example, here is
how to use @{b}texi2dvi@{ub} to format and print `Using and Porting GNU CC' from
a shell within Emacs (where @{b}%@{ub} is the shell prompt):

     % texi2dvi gcc.texinfo
     % lpr -d gcc.dvi

  See @{"Texinfo Mode Printing" Link "Texinfo Mode Printing"}, for more information about formatting and
printing in Texinfo mode.


@EndNode

@Node "Texinfo Mode Printing" "texinfo.guide/Texinfo Mode Printing"
@Next "Compile-Command"
@Prev "Within Emacs"
@Toc "Format-Print Hardcopy"

Formatting and Printing in Texinfo Mode
=======================================

  Texinfo mode provides several predefined key commands for TeX
formatting and printing.  These include commands for sorting indices,
looking at the printer queue, killing the formatting job, and
recentering the display of the buffer in which the operations occur.

@{b}C-c C-t C-b@{ub}
@{b}M-x texinfo-tex-buffer@{ub}
     Run @{b}texi2dvi@{ub} on the current buffer.

@{b}C-c C-t C-r@{ub}
@{b}M-x texinfo-tex-region@{ub}
     Run TeX on the current region.

@{b}C-c C-t C-i@{ub}
@{b}M-x texinfo-texindex@{ub}
     Sort the indices of a Texinfo file formatted with
     @{b}texinfo-tex-region@{ub}.

@{b}C-c C-t C-p@{ub}
@{b}M-x texinfo-tex-print@{ub}
     Print a @{i}dvi@{ui} file that was made with @{b}texinfo-tex-region@{ub} or
     @{b}texinfo-tex-buffer@{ub}.

@{b}C-c C-t C-q@{ub}
@{b}M-x tex-show-print-queue@{ub}
     Show the print queue.

@{b}C-c C-t C-d@{ub}
@{b}M-x texinfo-delete-from-print-queue@{ub}
     Delete a job from the print queue; you will be prompted for the job
     number shown by a preceding @{b}C-c C-t C-q@{ub} command
     (@{b}texinfo-show-tex-print-queue@{ub}).

@{b}C-c C-t C-k@{ub}
@{b}M-x tex-kill-job@{ub}
     Kill the currently running TeX job started by @{b}texinfo-tex-region@{ub}
     or @{b}texinfo-tex-buffer@{ub}, or any other process running in the Texinfo
     shell buffer.

@{b}C-c C-t C-x@{ub}
@{b}M-x texinfo-quit-job@{ub}
     Quit a TeX formatting job that has stopped because of an error by
     sending an x to it.  When you do this, TeX preserves a record of
     what it did in a @{b}.log@{ub} file.

@{b}C-c C-t C-l@{ub}
@{b}M-x tex-recenter-output-buffer@{ub}
     Redisplay the shell buffer in which the TeX printing and formatting
     commands are run to show its most recent output.

  Thus, the usual sequence of commands for formatting a buffer is as
follows (with comments to the right):

     C-c C-t C-b             Run @{b}texi2dvi@{ub} on the buffer.
     C-c C-t C-p             Print the @{i}dvi@{ui} file.
     C-c C-t C-q             Display the printer queue.

  The Texinfo mode TeX formatting commands start a subshell in Emacs
called the @{b}*tex-shell*@{ub}.  The @{b}texinfo-tex-command@{ub},
@{b}texinfo-texindex-command@{ub}, and @{b}tex-dvi-print-command@{ub} commands are
all run in this shell.

  You can watch the commands operate in the @{b}*tex-shell*@{ub} buffer, and you
can switch to and from and use the @{b}*tex-shell*@{ub} buffer as you would any
other shell buffer.

  The formatting and print commands depend on the values of several
variables.  The default values are:

          Variable                              Default value
     
     texinfo-texi2dvi-command                  "texi2dvi"
     texinfo-tex-command                       "tex"
     texinfo-texindex-command                  "texindex"
     texinfo-delete-from-print-queue-command   "lprm"
     texinfo-tex-trailer                       "@bye"
     tex-start-of-header                       "%**start"
     tex-end-of-header                         "%**end"
     tex-dvi-print-command                     "lpr -d"
     tex-show-queue-command                    "lpq"

  You can change the values of these variables with the @{b}M-x
edit-options@{ub} command (see @{"Editing Variable Values" Link "emacs/Edit Options"}), with the @{b}M-x
set-variable@{ub} command (see @{"Examining and Setting Variables" Link "emacs/Examining"}), or with
your @{b}.emacs@{ub} initialization file (see @{"Init File" Link "emacs/Init File"}).


@EndNode

@Node "Compile-Command" "texinfo.guide/Compile-Command"
@Next "Requirements Summary"
@Prev "Texinfo Mode Printing"
@Toc "Format-Print Hardcopy"

Using the Local Variables List
==============================

  Yet another way to apply the TeX formatting command to a Texinfo file
is to put that command in a @{i}local variables list@{ui} at the end of the
Texinfo file.  You can then specify the @{b}tex@{ub} or @{b}texi2dvi@{ub} commands as a
@{b}compile-command@{ub} and have Emacs run it by typing @{b}M-x compile@{ub}.  This
creates a special shell called the @{b}*compilation*@{ub} buffer in which Emacs
runs the compile command.  For example, at the end of the @{b}gdb.texinfo@{ub}
file, after the @{b} @bye@{ub}, you could put the following:

     @c Local Variables:
     @c compile-command: "texi2dvi gdb.texinfo"
     @c End:

This technique is most often used by programmers who also compile
programs this way; see See @{"Compilation" Link "emacs/Compilation"}.


@EndNode

@Node "Requirements Summary" "texinfo.guide/Requirements Summary"
@Next "Preparing for TeX"
@Prev "Compile-Command"
@Toc "Format-Print Hardcopy"

TeX Formatting Requirements Summary
===================================

  Every Texinfo file that is to be input to TeX must begin with a
@{b}\input@{ub} command and contain an @{b} @settitle@{ub} command:

     \input texinfo
     @settitle NAME-OF-MANUAL

The first command instructs TeX to load the macros it needs to process
a Texinfo file and the second command specifies the title of printed
manual.

  Every Texinfo file must end with a line that terminates TeX
processing and forces out unfinished pages:

     @bye

  Strictly speaking, these three lines are all a Texinfo file needs for
TeX, besides the body.  (The @{b} @setfilename@{ub} line is the only line that a
Texinfo file needs for Info formatting.)

  Usually, the file's first line contains an @{b} @c -*-texinfo-*-@{ub} comment
that causes Emacs to switch to Texinfo mode when you edit the file.  In
addition, the beginning usually includes an @{b} @setfilename@{ub} for Info
formatting, an @{b} @setchapternewpage@{ub} command, a title page, a copyright
page, and permissions.  Besides an @{b} @bye@{ub}, the end of a file usually
includes indices and a table of contents.

For more information, see
See @{"@setchapternewpage" Link "setchapternewpage"},
See @{"Page Headings" Link "Headings"},
See @{"Titlepage & Copyright Page" Link "Titlepage & Copyright Page"},
See @{"Printing Indices & Menus" Link "Printing Indices & Menus"}, and
See @{"Contents" Link "Contents"}.


@EndNode

@Node "Preparing for TeX" "texinfo.guide/Preparing for TeX"
@Next "Overfull hboxes"
@Prev "Requirements Summary"
@Toc "Format-Print Hardcopy"

Preparing to Use TeX
====================

TeX needs to know where to find the @{b}texinfo.tex@{ub} file that you have told
it to input with the @{b}\input texinfo@{ub} command at the beginning of the
first line.  The @{b}texinfo.tex@{ub} file tells TeX how to handle @-commands.
(@{b}texinfo.tex@{ub} is included in the standard GNU distributions.)

  Usually, the @{b}texinfo.tex@{ub} file is put in the default directory that
contains TeX macros (the @{b}/usr/lib/tex/macros@{ub} directory) when GNU Emacs
or other GNU software is installed.  In this case, TeX will find the
file and you do not need to do anything special.  Alternatively, you
can put @{b}texinfo.tex@{ub} in the directory in which the Texinfo source file
is located, and TeX will find it there.

  However, you may want to specify the location of the @{b}\input@{ub} file
yourself.  One way to do this is to write the complete path for the file
after the @{b}\input@{ub} command.  Another way is to set the @{b}TEXINPUTS@{ub}
environment variable in your @{b}.cshrc@{ub} or @{b}.profile@{ub} file.  The @{b}TEXINPUTS@{ub}
environment variable will tell TeX where to find the @{b}texinfo.tex@{ub} file
and any other file that you might want TeX to use.

  Whether you use a @{b}.cshrc@{ub} or @{b}.profile@{ub} file depends on whether you use
@{b}csh@{ub}, @{b}sh@{ub}, or @{b}bash@{ub} for your shell command interpreter.  When you use
@{b}csh@{ub}, it looks to the @{b}.cshrc@{ub} file for initialization information,
and when you use @{b}sh@{ub} or @{b}bash@{ub}, it looks to the @{b}.profile@{ub} file.

  In a @{b}.cshrc@{ub} file, you could use the following @{b}csh@{ub} command sequence:

     setenv TEXINPUTS .:/usr/me/mylib:/usr/lib/tex/macros

  In a @{b}.profile@{ub} file, you could use the following @{b}sh@{ub} command sequence:

     TEXINPUTS=.:/usr/me/mylib:/usr/lib/tex/macros
     export TEXINPUTS

This would cause TeX to look for @{b}\input@{ub} file first in the current
directory, indicated by the @{b}.@{ub}, then in a hypothetical user's @{b}me/mylib@{ub}
directory, and finally in the system library.


@EndNode

@Node "Overfull hboxes" "texinfo.guide/Overfull hboxes"
@Next "smallbook"
@Prev "Preparing for TeX"
@Toc "Format-Print Hardcopy"

Overfull "hboxes"
=================

  TeX is sometimes unable to typeset a line without extending it into
the right margin.  This can occur when TeX comes upon what it
interprets as a long word that it cannot hyphenate, such as an
electronic mail network address or a very long title.  When this
happens, TeX prints an error message like this:

     Overfull \hbox (20.76302pt too wide)

(In TeX, lines are in "horizontal boxes", hence the term, "hbox".  The
backslash, @{b}\ @{ub}, is the TeX equivalent of @{b} @@{ub}.)

  TeX also provides the line number in the Texinfo source file and the
text of the offending line, which is marked at all the places that TeX
knows how to hyphenate words.  See @{"Catching Errors with TeX Formatting" Link "Debugging with TeX"},
for more information about typesetting errors.

  If the Texinfo file has an overfull hbox, you can rewrite the sentence
so the overfull hbox does not occur, or you can decide to leave it.  A
small excursion into the right margin often does not matter and may not
even be noticeable.

  However, unless told otherwise, TeX will print a large, ugly, black
rectangle beside the line that contains the overful hbox.  This is so
you will notice the location of the problem if you are correcting a
draft.

  To prevent such a monstrosity from marring your final printout, write
the following in the beginning of the Texinfo file on a line of its own,
before the @{b} @titlepage@{ub} command:

     @finalout


@EndNode

@Node "smallbook" "texinfo.guide/smallbook"
@Next "A4 Paper"
@Prev "Overfull hboxes"
@Toc "Format-Print Hardcopy"

Printing "Small" Books
======================

  By default, TeX typesets pages for printing in an 8.5 by 11 inch
format.  However, you can direct TeX to typeset a document in a 7 by
9.25 inch format that is suitable for bound books by inserting the
following command on a line by itself at the beginning of the Texinfo
file, before the title page:

     @smallbook

(Since regular sized books are often about 7 by 9.25 inches, this
command might better have been called the @{b} @regularbooksize@{ub} command,
but it came to be called the @{b} @smallbook@{ub} command by comparison to the
8.5 by 11 inch format.)

  If you write the @{b} @smallbook@{ub} command between the start-of-header and
end-of-header lines, the Texinfo mode TeX region formatting command,
@{b}texinfo-tex-region@{ub}, will format the region in "small" book size
(see @{"Start of Header" Link "Start of Header"}).

  The Free Software Foundation distributes printed copies of `The GNU
Emacs Manual' and other manuals in the "small" book size.  See
@{"@smallexample and @smalllisp" Link "smallexample & smalllisp"}, for information about commands that make
it easier to produce examples for a smaller manual.


@EndNode

@Node "A4 Paper" "texinfo.guide/A4 Paper"
@Next "Cropmarks and Magnification"
@Prev "smallbook"
@Toc "Format-Print Hardcopy"

Printing on A4 Paper
====================

  You can tell TeX to typeset a document for printing on European size
A4 paper with the @{b} @afourpaper@{ub} command.  Write the command on a line by
itself between @{b} @iftex@{ub} and @{b} @end iftex@{ub} lines near the beginning of the
Texinfo file, before the title page:

  For example, this is how you would write the header for this manual:

     \input texinfo    @c -*-texinfo-*-
     @c %**start of header
     @setfilename texinfo
     @settitle Texinfo
     @syncodeindex vr fn
     @iftex
     @afourpaper
     @end iftex
     @c %**end of header


@EndNode

@Node "Cropmarks and Magnification" "texinfo.guide/Cropmarks and Magnification"
@Prev "A4 Paper"
@Toc "Format-Print Hardcopy"

Cropmarks and Magnification
===========================

  You can attempt to direct TeX to print cropmarks at the corners of
pages with the @{b} @cropmarks@{ub} command.  Write the @{b} @cropmarks@{ub} command on a
line by itself between @{b} @iftex@{ub} and @{b} @end iftex@{ub} lines near the beginning
of the Texinfo file, before the title page, like this:

     @iftex
     @cropmarks
     @end iftex

  This command is mainly for printers that typeset several pages on one
sheet of film; but you can attempt to use it to mark the corners of a
book set to 7 by 9.25 inches with the @{b} @smallbook@{ub} command.  (Printers
will not produce cropmarks for regular sized output that is printed on
regular sized paper.)  Since different printing machines work in
different ways, you should explore the use of this command with a
spirit of adventure.  You may have to redefine the command in the
@{b}texinfo.tex@{ub} definitions file.

  You can attempt to direct TeX to typeset pages larger or smaller than
usual with the @{b}\mag@{ub} TeX command.  Everything that is typeset is scaled
proportionally larger or smaller.  (@{b}\mag@{ub} stands for "magnification".)
This is @{i}not@{ui} a Texinfo @-command, but is a PlainTeX command that is
prefixed with a backslash.  You have to write this command between @{b}
@tex@{ub} and @{b} @end tex@{ub} (see @{"Using Ordinary TeX Commands" Link "Using Ordinary TeX Commands"}).

  Follow the @{b}\mag@{ub} command with an @{b}=@{ub} and then a number that is 1000
times the magnification you desire.  For example, to print pages at 1.2
normal size, write the following near the beginning of the Texinfo
file, before the title page:

     @tex
     \mag=1200
     @end tex

  With some printing technologies, you can print normal-sized copies
that look better than usual by using a larger-than-normal master.

  Depending on your system, @{b}\mag@{ub} may not work or may work only at
certain magnifications.  Be prepared to experiment.


@EndNode

@Node "Create an Info File" "texinfo.guide/Create an Info File"
@Next "Install an Info File"
@Prev "Format-Print Hardcopy"
@Toc "Main"

Creating an Info File
*********************

  @{b}makeinfo@{ub} is a utility that converts a Texinfo file into an Info file;
@{b}texinfo-format-region@{ub} and @{b}texinfo-format-buffer@{ub} are GNU Emacs
functions that do the same.

  A Texinfo file must possess an @{b} @setfilename@{ub} line near its beginning,
otherwise the Info formatting commands will fail.

  For information on installing the Info file in the Info system, see
See @{"Install an Info File" Link "Install an Info File"}.


 @{" makeinfo advantages       " Link "makeinfo advantages"}  @{b}makeinfo@{ub} provides better error checking.
 @{" Invoking makeinfo         " Link "Invoking makeinfo"}  How to run @{b}makeinfo@{ub} from a shell.
 @{" makeinfo options          " Link "makeinfo options"}  Specify fill-column and other options.
 @{" Pointer Validation        " Link "Pointer Validation"}  How to check that pointers point somewhere.
 @{" makeinfo in Emacs         " Link "makeinfo in Emacs"}  How to run @{b}makeinfo@{ub} from Emacs.
 @{" texinfo-format commands   " Link "texinfo-format commands"}  Two Info formatting commands written
                                  in Emacs Lisp are an alternative
                                  to @{b}makeinfo@{ub}.
 @{" Batch Formatting          " Link "Batch Formatting"}  How to format for Info in Emacs Batch mode.
 @{" Tag and Split Files       " Link "Tag and Split Files"}  How tagged and split files help Info
                                  to run better.


@EndNode

@Node "makeinfo advantages" "texinfo.guide/makeinfo advantages"
@Next "Invoking makeinfo"
@Prev "Create an Info File"
@Toc "Create an Info File"

@{b}makeinfo@{ub} Preferred
==================

  The @{b}makeinfo@{ub} utility creates an Info file from a Texinfo source file
more quickly than either of the Emacs formatting commands and provides
better error messages.  We recommend it.  @{b}makeinfo@{ub} is a C program that
is independent of Emacs.  You do not need to run Emacs to use @{b}makeinfo@{ub},
which means you can use @{b}makeinfo@{ub} on machines that are too small to run
Emacs. You can run @{b}makeinfo@{ub} in any one of three ways: from an operating
system shell, from a shell inside Emacs, or by typing a key command in
Texinfo mode in Emacs.

  The @{b}texinfo-format-region@{ub} and the @{b}texinfo-format-buffer@{ub} commands are
useful if you cannot run @{b}makeinfo@{ub}.  Also, in some circumstances, they
format short regions or buffers more quickly than @{b}makeinfo@{ub}.


@EndNode

@Node "Invoking makeinfo" "texinfo.guide/Invoking makeinfo"
@Next "makeinfo options"
@Prev "makeinfo advantages"
@Toc "Create an Info File"

Running @{b}makeinfo@{ub} from a Shell
=============================

  To create an Info file from a Texinfo file, type @{b}makeinfo@{ub} followed by
the name of the Texinfo file.  Thus, to create the Info file for Bison,
type the following at the shell prompt (where @{b}%@{ub} is the prompt):

     % makeinfo bison.texinfo

  (You can run a shell inside Emacs by typing @{b}M-x shell@{ub}.)

  Sometimes you will want to specify options.  For example, if you wish
to discover which version of @{b}makeinfo@{ub} you are using, type:

     % makeinfo --version

  See @{"makeinfo options" Link "makeinfo options"}, for more information.


@EndNode

@Node "makeinfo options" "texinfo.guide/makeinfo options"
@Next "Pointer Validation"
@Prev "Invoking makeinfo"
@Toc "Create an Info File"

Options for @{b}makeinfo@{ub}
====================

  The @{b}makeinfo@{ub} command takes a number of options.  Most often, options
are used to set the value of the fill column and specify the footnote
style.  Each command line option is a word preceded by @{b}--@{ub}
(1)@{"makeinfo options-Footnotes" Link "makeinfo options-Footnotes"} or
a letter preceded by @{b}-@{ub}.  You can use abbreviations for the option names
as long as they are unique.

  For example, you could use the following command to create an Info
file for @{b}bison.texinfo@{ub} in which each line is filled to only 68 columns
(where @{b}%@{ub} is the prompt):

     % makeinfo --fill-column=68 bison.texinfo

  You can write two or more options in sequence, like this:

     % makeinfo --no-split --fill-column=70 ...

This would keep the Info file together as one possibly very long file
and would also set the fill column to 70.

  The options are:

@{b}-D VAR@{ub}
     Cause VAR to be defined.  This is equivalent to @{b} @set VAR@{ub} in the
     Texinfo file.

@{b}--error-limit LIMIT@{ub}
     Set the maximum number of errors that @{b}makeinfo@{ub} will report before
     exiting (on the assumption that continuing would be useless).  The
     default number of errors that can be reported before @{b}makeinfo@{ub}
     gives up is 100.

@{b}--fill-column WIDTH@{ub}
     Specify the maximum number of columns in a line; this is the
     right-hand edge of a line.  Paragraphs that are filled will be
     filled to this width.  (Filling is the process of breaking up and
     connecting lines so that lines are the same length as or shorter
     than the number specified as the fill column.  Lines are broken
     between words.) The default value for @{b}fill-column@{ub} is 72.

@{b}--footnote-style STYLE@{ub}
     Set the footnote style to STYLE, either @{b}end@{ub} for the end node style
     or @{b}separate@{ub} for the separate node style.  The value set by this
     option overrides the value set in a Texinfo file by an @{b}
     @footnotestyle@{ub} command.  When the footnote style is @{b}separate@{ub},
     @{b}makeinfo@{ub} makes a new node containing the footnotes found in
     the current node.  When the footnote style is @{b}end@{ub}, @{b}makeinfo@{ub} places
     the footnote references at the end of the current node.

@{b}-I DIR@{ub}
     Add @{b}dir@{ub} to the directory search list for finding files that are
     included using the @{b} @include@{ub} command.  By default, @{b}makeinfo@{ub}
     searches only the current directory.

@{b}--no-headers@{ub}
     Do not include menus or node lines in the output.  This results in
     an @{i}ascii@{ui} file that you cannot read in Info since it does not
     contain the requisite nodes or menus; but you can print such a
     file in a single, typewriter-like font and produce acceptable
     output.

@{b}--no-split@{ub}
     Suppress the splitting stage of @{b}makeinfo@{ub}.  Normally, large output
     files (where the size is greater than 70k bytes) are split into
     smaller subfiles, each one approximately 50k bytes.  If you specify
     @{b}--no-split@{ub}, @{b}makeinfo@{ub} will not split up the output file.

@{b}--no-pointer-validate@{ub}
@{b}--no-validate@{ub}
     Suppress the pointer-validation phase of @{b}makeinfo@{ub}.  Normally,
     after a Texinfo file is processed, some consistency checks are
     made to ensure that cross references can be resolved, etc.  See
     @{"Pointer Validation" Link "Pointer Validation"}.

@{b}--no-warn@{ub}
     Suppress the output of warning messages.  This does @{i}not@{ui} suppress
     the output of error messages, only warnings.  You might want this
     if the file you are creating has examples of Texinfo cross
     references within it, and the nodes that are referenced do not
     actually exist.

@{b}--no-number-footnotes@{ub}
     Suppress automatic footnote numbering.  By default, @{b}makeinfo@{ub}
     numbers each footnote sequentially in a single node, resetting the
     current footnote number to 1 at the start of each node.

@{b}--output FILE@{ub}
@{b}-o FILE@{ub}
     Specify that the output should be directed to FILE and not to the
     file name specified in the @{b} @setfilename@{ub} command found in the
     Texinfo source.  FILE can be the special token @{b}-@{ub}, which specifies
     standard output.

@{b}--paragraph-indent INDENT@{ub}
     Set the paragraph indentation style to INDENT.  The value set by
     this option overrides the value set in a Texinfo file by an @{b}
     @paragraphindent@{ub} command.  The value of INDENT is interpreted as
     follows:

        @{b}*@{ub} If the value of INDENT is @{b}asis@{ub}, do not change the existing
          indentation at the starts of paragraphs.

        @{b}*@{ub} If the value of INDENT is zero, delete any existing
          indentation.

        @{b}*@{ub} If the value of INDENT is greater than zero, indent each
          paragraph by that number of spaces.

@{b}--reference-limit LIMIT@{ub}
     Set the value of the number of references to a node that @{b}makeinfo@{ub}
     will make without reporting a warning.  If a node has more than
     this number of references in it, @{b}makeinfo@{ub} will make the references
     but also report a warning.

@{b}-U VAR@{ub}
     Cause VAR to be undefined.  This is equivalent to @{b} @clear VAR@{ub} in
     the Texinfo file.

@{b}--verbose@{ub}
     Cause @{b}makeinfo@{ub} to display messages saying what it is doing.
     Normally, @{b}makeinfo@{ub} only outputs messages if there are errors or
     warnings.

@{b}--version@{ub}
     Report the version number of this copy of @{b}makeinfo@{ub}.


@EndNode

@Node "makeinfo options-Footnotes" "texinfo.guide/makeinfo options-Footnotes"
@Toc "makeinfo options"

  (1)  @{b}--@{ub} has replaced @{b}+@{ub}, the old introductory character, to maintain
POSIX.2 compatibility without losing long-named options.


@EndNode

@Node "Pointer Validation" "texinfo.guide/Pointer Validation"
@Next "makeinfo in Emacs"
@Prev "makeinfo options"
@Toc "Create an Info File"

Pointer Validation
==================

  If you do not suppress pointer-validation, @{b}makeinfo@{ub} will check the
validity of the final Info file.  Mostly, this means ensuring that
nodes you have referenced really exist.  Here is a complete list of what
is checked:

  1. If a `Next', `Previous', or `Up' node reference is a reference to a
     node in the current file and is not an external reference such as
     to @{b}(dir)@{ub}, then the referenced node must exist.

  2. In every node, if the `Previous' node is different from the `Up'
     node, then the `Previous' node must also be pointed to by a `Next'
     node.

  3. Every node except the `Top' node must have an `Up' pointer.

  4. The node referenced by an `Up' pointer must contain a reference to
     the current node in some manner other than through a `Next'
     reference.  This includes menu entries and cross references.

  5. If the `Next' reference of a node is not the same as the `Next'
     reference of the `Up' reference, then the node referenced by the
     `Next' pointer must have a `Previous' pointer that points back to
     the current node.  This rule allows the last node in a section to
     point to the first node of the next chapter.


@EndNode

@Node "makeinfo in Emacs" "texinfo.guide/makeinfo in Emacs"
@Next "texinfo-format commands"
@Prev "Pointer Validation"
@Toc "Create an Info File"

Running @{b}makeinfo@{ub} inside Emacs
=============================

  You can run @{b}makeinfo@{ub} in GNU Emacs Texinfo mode by using either the
@{b}makeinfo-region@{ub} or the @{b}makeinfo-buffer@{ub} commands.  In Texinfo mode,
the commands are bound to @{b}C-c C-m C-r@{ub} and @{b}C-c C-m C-b@{ub} by default.

@{b}C-c C-m C-r@{ub}
@{b}M-x makeinfo-region@{ub}
     Format the current region for Info.

@{b}C-c C-m C-b@{ub}
@{b}M-x makeinfo-buffer@{ub}
     Format the current buffer for Info.

  When you invoke either @{b}makeinfo-region@{ub} or @{b}makeinfo-buffer@{ub}, Emacs
prompts for a file name, offering the name of the visited file as the
default.  You can edit the default file name in the minibuffer if you
wish, before typing RET to start the @{b}makeinfo@{ub} process.

  The Emacs @{b}makeinfo-region@{ub} and @{b}makeinfo-buffer@{ub} commands run the
@{b}makeinfo@{ub} program in a temporary shell buffer.  If @{b}makeinfo@{ub} finds
any errors, Emacs displays the error messages in the temporary buffer.

  You can parse the error messages by typing @{b}C-x `@{ub} (@{b}next-error@{ub}).  This
causes Emacs to go to and position the cursor on the line in the
Texinfo source that @{b}makeinfo@{ub} thinks caused the error.  See
@{"Running make or Compilers Generally" Link "emacs/Compilation"}, for more information about using
the @{b}next-error@{ub} command.

  In addition, you can kill the shell in which the @{b}makeinfo@{ub} command is
running or make the shell buffer display its most recent output.

@{b}C-c C-m C-k@{ub}
@{b}M-x makeinfo-kill-job@{ub}
     Kill the current running @{b}makeinfo@{ub} job created by @{b}makeinfo-region@{ub}
     or @{b}makeinfo-buffer@{ub}.

@{b}C-c C-m C-l@{ub}
@{b}M-x makeinfo-recenter-output-buffer@{ub}
     Redisplay the @{b}makeinfo@{ub} shell buffer to display its most recent
     output.

(Note that the parallel commands for killing and recentering a TeX job
are @{b}C-c C-t C-k@{ub} and @{b}C-c C-t C-l@{ub}.  See @{"Texinfo Mode Printing" Link "Texinfo Mode Printing"}.)

  You can specify options for @{b}makeinfo@{ub} by setting the @{b}makeinfo-options@{ub}
variable with either the @{b}M-x edit-options@{ub} or the @{b}M-x set-variable@{ub}
command, or by setting the variable in your @{b}.emacs@{ub} initialization file.

  For example, you could write the following in your @{b}.emacs@{ub} file:

     (setq makeinfo-options
           "--paragraph-indent=0 --no-split
            --fill-column=70 --verbose")

For more information, see
See @{"Editing Variable Values" Link "emacs/Edit Options"},
See @{"Examining and Setting Variables" Link "emacs/Examining"},
See @{"Init File" Link "emacs/Init File"}, and
See @{"Options for makeinfo" Link "makeinfo options"}.


@EndNode

@Node "texinfo-format commands" "texinfo.guide/texinfo-format commands"
@Next "Batch Formatting"
@Prev "makeinfo in Emacs"
@Toc "Create an Info File"

The @{b}texinfo-format...@{ub} Commands
==============================

In GNU Emacs in Texinfo mode, you can format part or all of a Texinfo
file with the @{b}texinfo-format-region@{ub} command.  This formats the current
region and displays the formatted text in a temporary buffer called
@{b}*Info Region*@{ub}.

  Similarly, you can format a buffer with the @{b}texinfo-format-buffer@{ub}
command.  This command creates a new buffer and generates the Info file
in it.  Typing @{b}C-x C-s@{ub} will save the Info file under the name specified
by the @{b} @setfilename@{ub} line which must be near the beginning of the
Texinfo file.

@{b}C-c C-e C-r@{ub}
@{b}@{b}texinfo-format-region@{ub}@{ub}
     Format the current region for Info.

@{b}C-c C-e C-b@{ub}
@{b}@{b}texinfo-format-buffer@{ub}@{ub}
     Format the current buffer for Info.

  The @{b}texinfo-format-region@{ub} and @{b}texinfo-format-buffer@{ub} commands provide
you with some error checking, and other functions can provide you with
further help in finding formatting errors.  These procedures are
described in an appendix; see See @{"Catching Mistakes" Link "Catching Mistakes"}.  However, the
@{b}makeinfo@{ub} program is often faster and provides better error checking
(see @{"makeinfo in Emacs" Link "makeinfo in Emacs"}).


@EndNode

@Node "Batch Formatting" "texinfo.guide/Batch Formatting"
@Next "Tag and Split Files"
@Prev "texinfo-format commands"
@Toc "Create an Info File"

Batch Formatting
================

  You can format Texinfo files for Info using @{b}batch-texinfo-format@{ub} and
Emacs Batch mode.  You can run Emacs in Batch mode from any shell,
including a shell inside of Emacs.  (See
@{"Command Line Switches and Arguments" Link "emacs/Command Switches"}.)

  Here is the command to format all the files that end in @{b}.texinfo@{ub} in
the current directory (where @{b}%@{ub} is the shell prompt):

     % emacs -batch -funcall batch-texinfo-format *.texinfo

Emacs processes all the files listed on the command line, even if an
error occurs while attempting to format some of them.

  Run @{b}batch-texinfo-format@{ub} only with Emacs in Batch mode as shown; it
is not interactive.  It kills the Batch mode Emacs on completion.

  @{b}batch-texinfo-format@{ub} is convenient if you lack @{b}makeinfo@{ub} and want to
format several Texinfo files at once.  When you use Batch mode, you
create a new Emacs process.  This frees your current Emacs, so you can
continue working in it.  (When you run @{b}texinfo-format-region@{ub} or
@{b}texinfo-format-buffer@{ub}, you cannot use that Emacs for anything else
until the command finishes.)


@EndNode

@Node "Tag and Split Files" "texinfo.guide/Tag and Split Files"
@Prev "Batch Formatting"
@Toc "Create an Info File"

Tag Files and Split Files
=========================

  If a Texinfo file has more than 30,000 bytes, @{b}texinfo-format-buffer@{ub}
automatically creates a tag table for its Info file;  @{b}makeinfo@{ub} always
creates a tag table.  With a @{i}tag table@{ui}, Info can jump to new nodes more
quickly than it can otherwise.

  In addition, if the Texinfo file contains more than about 70,000
bytes, @{b}texinfo-format-buffer@{ub} and @{b}makeinfo@{ub} split the large Info file
into shorter @{i}indirect@{ui} subfiles of about 50,000 bytes each.  Big files
are split into smaller files so that Emacs does not need to make a
large buffer to hold the whole of a large Info file; instead, Emacs
allocates just enough memory for the small, split off file that is
needed at the time.  This way, Emacs avoids wasting memory when you run
Info.  (Before splitting was implemented, Info files were always kept
short and @{i}include files@{ui} were designed as a way to create a single,
large printed manual out of the smaller Info files.  See @{"Include Files" Link "Include Files"},
for more information.  Include files are still used for very large
documents, such as `The Emacs Lisp Reference Manual', in which each
chapter is a separate file.)

  When a file is split, Info itself makes use of a shortened version of
the original file that contains just the tag table and references to
the files that were split off.  The split off files are called @{i}indirect@{ui}
files.

  The split off files have names that are created by appending @{b}-1@{ub}, @{b}-2@{ub},
@{b}-3@{ub} and so on to the file name specified by the @{b} @setfilename@{ub}
command.  The shortened version of the original file continues to have
the name specified by @{b} @setfilename@{ub}.

  At one stage in writing this document, for example, the Info file was
saved as @{b}test-texinfo@{ub} and that file looked like this:

     Info file: test-texinfo,    -*-Text-*-
     produced by texinfo-format-buffer
     from file: new-texinfo-manual.texinfo
     
     ^_
     Indirect:
     test-texinfo-1: 102
     test-texinfo-2: 50422
     test-texinfo-3: 101300
     ^_^L
     Tag table:
     (Indirect)
     Node: overview^?104
     Node: info file^?1271
     Node: printed manual^?4853
     Node: conventions^?6855
     ...

(But @{b}test-texinfo@{ub} had far more nodes than are shown here.)  Each of the
split off, indirect files, @{b}test-texinfo-1@{ub}, @{b}test-texinfo-2@{ub}, and
@{b}test-texinfo-3@{ub}, is listed in this file after the line that says
@{b}Indirect:@{ub}.  The tag table is listed after the line that says @{b}Tag
table:@{ub}.

  In the list of indirect files, the number following the file name
records the cumulative number of bytes in the preceding indirect files,
not counting the file list itself, the tag table, or the permissions
text in each file.  In the tag table, the number following the node name
records the location of the beginning of the node, in bytes from the
beginning.

  If you are using @{b}texinfo-format-buffer@{ub} to create Info files, you may
want to run the @{b}Info-validate@{ub} command.  (The @{b}makeinfo@{ub} command does such
a good job on its own, you do not need @{b}Info-validate@{ub}.)  However, you
cannot run the @{b}M-x Info-validate@{ub} node-checking command on indirect
files.  For information on how to prevent files from being split and
how to validate the structure of the nodes, see See @{"Using Info-validate" Link "Using Info-validate"}.


@EndNode

@Node "Install an Info File" "texinfo.guide/Install an Info File"
@Next "Command List"
@Prev "Create an Info File"
@Toc "Main"

Installing an Info File
***********************

  Info files are usually kept in the @{b}info@{ub} directory.  You can read Info
files using the standalone Info program or the Info reader built into
Emacs.  (See @{"info" Link "info/Top"}, for an introduction to Info.)


 @{" Directory file            " Link "Directory file"}  The top level menu for all Info files.
 @{" New Info File             " Link "New Info File"}  Listing a new info file.
 @{" Other Info Directories    " Link "Other Info Directories"}  How to specify Info files that are
                                  located in other directories.


@EndNode

@Node "Directory file" "texinfo.guide/Directory file"
@Next "New Info File"
@Prev "Install an Info File"
@Toc "Install an Info File"

The @{b}dir@{ub} File
============

  For Info to work, the @{b}info@{ub} directory must contain a file that serves
as a top level directory for the Info system.  By convention, this file
is called @{b}dir@{ub}.  (You can find the location of this file within Emacs by
typing @{b}C-h i@{ub} to enter Info and then typing @{b}C-x C-f@{ub} to see the pathname
to the @{b}info@{ub} directory.)

  The @{b}dir@{ub} file is itself an Info file.  It contains the top level menu
for all the Info files in the system.  The menu looks like this:

     * Menu:
     
     * Info:    (info).     Documentation browsing system.
     * Emacs:   (emacs).    The extensible, self-documenting
                            text editor.
     * Texinfo: (texinfo).  With one source file, make
                            either a printed manual using
                            TeX or an Info file.
     ...

  Each of these menu entries points to the `Top' node of the Info file
that is named in parentheses.  (The menu entry does not need to specify
the `Top' node, since Info goes to the `Top' node if no node name is
mentioned.  See @{"Nodes in Other Info Files" Link "Other Info Files"}.)

  Thus, the @{b}Info@{ub} entry points to the `Top' node of the @{b}info@{ub} file and
the @{b}Emacs@{ub} entry points to the `Top' node of the @{b}emacs@{ub} file.

  In each of the Info files, the `Up' pointer of the `Top' node refers
back to the @{b}dir@{ub} file.  For example, the line for the `Top' node of the
Emacs manual looks like this in Info:

     File: emacs  Node: Top, Up: (DIR), Next: Distrib

(Note that in this case, the @{b}dir@{ub} file name is written in upper case
letters--it can be written in either upper or lower case.  Info has a
feature that it will change the case of the file name to lower case if
it cannot find the name as written.)


@EndNode

@Node "New Info File" "texinfo.guide/New Info File"
@Next "Other Info Directories"
@Prev "Directory file"
@Toc "Install an Info File"

Listing a New Info File
=======================

  To add a new Info file to your system, write a menu entry for it in
the menu in the @{b}dir@{ub} file in the @{b}info@{ub} directory.  Also, move the new
Info file itself to the @{b}info@{ub} directory.  For example, if you were
adding documentation for GDB, you would write the following new entry:

     * GDB: (gdb).           The source-level C debugger.

The first part of the menu entry is the menu entry name, followed by a
colon.  The second part is the name of the Info file, in parentheses,
followed by a period.  The third part is the description.

  Conventionally, the name of an Info file has a @{b}.info@{ub} extension.
Thus, you might list the name of the file like this:

     * GDB: (gdb.info).           The source-level C debugger.

However, Info will look for a file with a @{b}.info@{ub} extension if it does
not find the file under the name given in the menu.  This means that
you can refer to the file @{b}gdb.info@{ub} as @{b}gdb@{ub}, as shown in the first
example.  This looks better.


@EndNode

@Node "Other Info Directories" "texinfo.guide/Other Info Directories"
@Prev "New Info File"
@Toc "Install an Info File"

Info Files in Other Directories
===============================

  If an Info file is not in the @{b}info@{ub} directory, there are three ways to
specify its location:

   @{b}*@{ub} Write the pathname in the @{b}dir@{ub} file as the second part of the menu.

   @{b}*@{ub} If you are using Emacs, list the name of the file in a second @{b}dir@{ub}
     file, in its directory; and then add the name of that directory to
     the @{b}Info-directory-list@{ub} variable in your personal or site
     initialization file.

     This tells Emacs's Info reader reader where to look for @{b}dir@{ub} files.
     Emacs merges the files named @{b}dir@{ub} from each of the listed
     directories.  (In Emacs Version 18, you can set the @{b}Info-directory@{ub}
     variable to the name of only one directory.)

   @{b}*@{ub} Specify the @{b}info@{ub} directory name in an environment variable in your
     @{b}.profile@{ub} or @{b}.cshrc@{ub} initialization file.  (Only you and others
     who set this environment variable will be able to find Info files
     whose location is specified this way.)

  For example, to reach a test file in the @{b}~bob/manuals@{ub} directory, you
could add an entry like this to the menu in the @{b}dir@{ub} file:

     * Test: (/usr/bob/manuals/info-test).  Bob's own test file.

In this case, the absolute file name of the @{b}info-test@{ub} file is written
as the second part of the menu entry.

  Alternatively, you could write the following in your @{b}.emacs@{ub} file:

     (setq Info-directory-list
           '("/usr/bob/manuals"
             "/usr/local/emacs/info"))

  This tells Emacs to merge the @{b}dir@{ub} file from the @{b}/usr/bob/manuals@{ub}
directory with the @{b}dir@{ub} file from the @{b}"/usr/local/emacs/info@{ub}" directory.
Info will list the @{b}/usr/bob/manuals/info-test@{ub} file as a menu entry in
the @{b}/usr/bob/manuals/dir@{ub} file.

  Finally, you can tell Info where to look by setting the @{b}INFOPATH@{ub}
environment variable in your @{b}.cshrc@{ub} or @{b}.profile@{ub} file.

  If you use @{b}sh@{ub} or @{b}bash@{ub} for your shell command interpreter, you must
set the @{b}INFOPATH@{ub} environment variable in the @{b}.profile@{ub} initialization
file; but if you use @{b}csh@{ub}, you must set the variable in the @{b}.cshrc@{ub}
initialization file.  The two files require slightly different command
formats.

   @{b}*@{ub} In a @{b}.cshrc@{ub} file, you could set the @{b}INFOPATH@{ub} variable as follows:

          setenv INFOPATH .:~bob/manuals:/usr/local/emacs/info

   @{b}*@{ub} In a @{b}.profile@{ub} file, you would achieve the same effect by writing:

          INFOPATH=.:~bob/manuals:/usr/local/emacs/info
          export INFOPATH

The @{b}.@{ub}  indicates the current directory.  Emacs uses the @{b}INFOPATH@{ub}
environment variable to initialize the value of Emacs's own
@{b}Info-directory-list@{ub} variable.


@EndNode

@Node "Command List" "texinfo.guide/Command List"
@Next "Tips"
@Prev "Install an Info File"
@Toc "Main"

@-Command List
**************

  Here is an alphabetical list of the @-commands in Texinfo.  Square
brackets, @{i}[@{ui}  @{i}]@{ui}, indicate optional arguments; an ellipsis, @{b}...@{ub},
indicates repeated text.

@{b} @*@{ub}
     Force a line break. Do not end a paragraph that uses @{b} @*@{ub} with an @{b}
     @refill@{ub} command.  See @{"Line Breaks" Link "Line Breaks"}.

@{b} @.@{ub}
     Stands for a period that really does end a sentence (usually after
     an end-of-sentence capital letter).  See @{"Controlling Spacing" Link "Controlling Spacing"}.

@{b} @:@{ub}
     Indicate to TeX that an immediately preceding period, question
     mark, exclamation mark, or colon does not end a sentence.  Prevent
     TeX from inserting extra whitespace as it does at the end of a
     sentence.  The command has no effect on the Info file output.  See
     @{"Controlling Spacing" Link "Controlling Spacing"}.

@{b} @@@{ub}
     Stands for @{b} @@{ub}.  See @{"Inserting @" Link "Braces Atsigns Periods"}.

@{b} @{@{ub}
     Stands for a left-hand brace, @{b}{@{ub}.
     See @{"Inserting @ braces and periods" Link "Braces Atsigns Periods"}.

@{b} @}@{ub}
     Stands for a right-hand brace, @{b}}@{ub}.
     See @{"Inserting @ braces and periods" Link "Braces Atsigns Periods"}.

@{b} @appendix TITLE@{ub}
     Begin an appendix.  The title appears in the table of contents of
     a printed manual.  In Info, the title is underlined with
     asterisks.  See @{"The @unnumbered and @appendix Commands" Link "unnumbered & appendix"}.

@{b} @appendixsec TITLE@{ub}
@{b} @appendixsection TITLE@{ub}
     Begin an appendix section within an appendix.  The section title
     appears in the table of contents of a printed manual.  In Info,
     the title is underlined with equal signs.  @{b} @appendixsection@{ub} is a
     longer spelling of the @{b} @appendixsec@{ub} command.  See
     @{"Section Commands" Link "unnumberedsec appendixsec heading"}.

@{b} @appendixsubsec TITLE@{ub}
     Begin an appendix subsection within an appendix.  The title appears
     in the table of contents of a printed manual.  In Info, the title
     is underlined with hyphens.  See @{"Subsection Commands" Link "unnumberedsubsec appendixsubsec subheading"}.

@{b} @appendixsubsubsec TITLE@{ub}
     Begin an appendix subsubsection within a subappendix.  The title
     appears in the table of contents of a printed manual.  In Info, the
     title is underlined with periods.  See @{"The `subsub' Commands" Link "subsubsection"}.

@{b} @asis@{ub}
     Used following @{b} @table@{ub}, @{b} @ftable@{ub}, and @{b} @vtable@{ub} to print the
     table's first column without highlighting ("as is").  See
     @{"Making a Two-column Table" Link "Two-column Tables"}.

@{b} @author AUTHOR@{ub}
     Typeset AUTHOR flushleft and underline it.  See
     @{"The @title and @author Commands" Link "title subtitle author"}.

@{b} @b{TEXT}@{ub}
     Print TEXT in @{i}bold@{ui} font.  No effect in Info.  See @{"Fonts" Link "Fonts"}.

@{b} @bullet{}@{ub}
     Generate a large round dot, or the closest possible thing to one.
     See @{"@bullet" Link "bullet"}.

@{b} @bye@{ub}
     Stop formatting a file.  The formatters do not see the contents of
     a file following an @{b} @bye@{ub} command.  See @{"Ending a File" Link "Ending a File"}.

@{b} @c COMMENT@{ub}
     Begin a comment in Texinfo.  The rest of the line does not appear
     in either the Info file or the printed manual.  A synonym for @{b}
     @comment@{ub}.  See @{"Comments" Link "Comments"}.

@{b} @cartouche@{ub}
     Highlight an example or quotation by drawing a box with rounded
     corners around it.  Pair with @{b} @end cartouche@{ub}.  No effect in Info.
     See @{"Drawing Cartouches Around Examples" Link "cartouche"}.)

@{b} @center LINE-OF-TEXT@{ub}
     Center the line of text following the command.  See @{"@center" Link "titlefont center sp"}.

@{b} @lowersections@{ub}
     Change subsequent chapters to sections, sections to subsections,
     and so on. See @{"@raisesections and @lowersections" Link "Raise-lower sections"}.

@{b} @chapheading TITLE@{ub}
     Print a chapter-like heading in the text, but not in the table of
     contents of a printed manual.  In Info, the title is underlined
     with asterisks.  See @{"@majorheading and @chapheading" Link "majorheading & chapheading"}.

@{b} @chapter TITLE@{ub}
     Begin a chapter.  The chapter title appears in the table of
     contents of a printed manual.  In Info, the title is underlined
     with asterisks.  See @{"@chapter" Link "chapter"}.

@{b} @cindex ENTRY@{ub}
     Add ENTRY to the index of concepts.  See
     @{"Defining the Entries of an Index" Link "Index Entries"}.

@{b} @cite{REFERENCE}@{ub}
     Highlight the name of a book or other reference that lacks a
     companion Info file.  See @{"@cite" Link "cite"}.

@{b} @clear FLAG@{ub}
     Unset FLAG, preventing the Texinfo formatting commands from
     formatting text between subsequent pairs of @{b} @ifset FLAG@{ub} and @{b} @end
     ifset@{ub} commands, and preventing @{b} @value{FLAG}@{ub} from expanding to the
     value to which FLAG is set.  See @{"@set @clear @value" Link "set clear value"}.

@{b} @code{SAMPLE-CODE}@{ub}
     Highlight text that is an expression, a syntactically complete
     token of a program, or a program name.  See @{"@code" Link "code"}.

@{b} @comment COMMENT@{ub}
     Begin a comment in Texinfo.  The rest of the line does not appear
     in either the Info file or the printed manual.  A synonym for @{b} @c@{ub}.
     See @{"Comments" Link "Comments"}.

@{b} @contents@{ub}
     Print a complete table of contents.  Has no effect in Info, which
     uses menus instead.  See @{"Generating a Table of Contents" Link "Contents"}.

@{b} @copyright{}@{ub}
     Generate a copyright symbol.  See @{"@copyright" Link "copyright symbol"}.

@{b} @defcodeindex INDEX-NAME@{ub}
     Define a new index and its indexing command.  Print entries in an @{b}
     @code@{ub} font.  See @{"Defining New Indices" Link "New Indices"}.

@{b} @defcv CATEGORY CLASS NAME@{ub}
     Format a description for a variable associated with a class in
     object-oriented programming.  Takes three arguments: the category
     of thing being defined, the class to which it belongs, and its
     name.  See @{"Definition Commands" Link "Definition Commands"}.

@{b} @deffn CATEGORY NAME ARGUMENTS...@{ub}
     Format a description for a function, interactive command, or
     similar entity that may take arguments.  @{b} @deffn@{ub} takes as
     arguments the category of entity being described, the name of this
     particular entity, and its arguments, if any.  See
     @{"Definition Commands" Link "Definition Commands"}.

@{b} @defindex INDEX-NAME@{ub}
     Define a new index and its indexing command.  Print entries in a
     roman font.  See @{"Defining New Indices" Link "New Indices"}.

@{b} @definfoenclose NEW-COMMAND, BEFORE, AFTER,@{ub}
     Create new @-command for Info that marks text by enclosing it in
     strings that precede and follow the text.  Write definition inside
     of @{b} @ifinfo@{ub} ... @{b} @end ifinfo@{ub}. See @{"Customized Highlighting" Link "Customized Highlighting"}.

@{b} @defivar CLASS INSTANCE-VARIABLE-NAME@{ub}
     This command formats a description for an instance variable in
     object-oriented programming.  The command is equivalent to @{b} @defcv
     {Instance Variable} ...@{ub}.  See @{"Definition Commands" Link "Definition Commands"}.

@{b} @defmac MACRO-NAME ARGUMENTS...@{ub}
     Format a description for a macro.  The command is equivalent to @{b}
     @deffn Macro ...@{ub}.  See @{"Definition Commands" Link "Definition Commands"}.

@{b} @defmethod CLASS METHOD-NAME ARGUMENTS...@{ub}
     Format a description for a method in object-oriented programming.
     The command is equivalent to @{b} @defop Method ...@{ub}.  Takes as
     arguments the name of the class of the method, the name of the
     method, and its arguments, if any.  See @{"Definition Commands" Link "Definition Commands"}.

@{b} @defop CATEGORY CLASS NAME ARGUMENTS...@{ub}
     Format a description for an operation in object-oriented
     programming.  @{b} @defop@{ub} takes as arguments the overall name of the
     category of operation, the name of the class of the operation, the
     name of the operation, and its arguments, if any.  See
     @{"Definition Commands" Link "Definition Commands"}.

@{b} @defopt OPTION-NAME@{ub}
     Format a description for a user option.  The command is equivalent
     to @{b} @defvr {User Option} ...@{ub}.  See @{"Definition Commands" Link "Definition Commands"}.

@{b} @defspec SPECIAL-FORM-NAME ARGUMENTS...@{ub}
     Format a description for a special form.  The command is
     equivalent to @{b} @deffn {Special Form} ...@{ub}.  See @{"Definition Commands" Link "Definition Commands"}.

@{b} @deftp CATEGORY NAME-OF-TYPE ATTRIBUTES...@{ub}
     Format a description for a data type.  @{b} @deftp@{ub} takes as arguments
     the category, the name of the type (which is a word like @{b}int@{ub} or
     @{b}float@{ub}), and then the names of attributes of objects of that
     type.  See @{"Definition Commands" Link "Definition Commands"}.

@{b} @deftypefn CLASSIFICATION DATA-TYPE NAME ARGUMENTS...@{ub}
     Format a description for a function or similar entity that may take
     arguments and that is typed.  @{b} @deftypefn@{ub} takes as arguments the
     classification of entity being described, the type, the name of
     the entity, and its arguments, if any.  See @{"Definition Commands" Link "Definition Commands"}.

@{b} @deftypefun DATA-TYPE FUNCTION-NAME ARGUMENTS...@{ub}
     Format a description for a function in a typed language.  The
     command is equivalent to @{b} @deftypefn Function ...@{ub}.  See
     @{"Definition Commands" Link "Definition Commands"}.

@{b} @deftypevr CLASSIFICATION DATA-TYPE NAME@{ub}
     Format a description for something like a variable in a typed
     language--an entity that records a value.  Takes as arguments the
     classification of entity being described, the type, and the name of
     the entity.  See @{"Definition Commands" Link "Definition Commands"}.

@{b} @deftypevar DATA-TYPE VARIABLE-NAME@{ub}
     Format a description for a variable in a typed language.  The
     command is equivalent to @{b} @deftypevr Variable ...@{ub}.  See
     @{"Definition Commands" Link "Definition Commands"}.

@{b} @defun FUNCTION-NAME ARGUMENTS...@{ub}
     Format a description for functions.  The command is equivalent to @{b}
     @deffn Function ...@{ub}.  See @{"Definition Commands" Link "Definition Commands"}.

@{b} @defvar VARIABLE-NAME@{ub}
     Format a description for variables.  The command is equivalent to @{b}
     @defvr Variable ...@{ub}.  See @{"Definition Commands" Link "Definition Commands"}.

@{b} @defvr CATEGORY NAME@{ub}
     Format a description for any kind of variable.  @{b} @defvr@{ub} takes as
     arguments the category of the entity and the name of the entity.
     See @{"Definition Commands" Link "Definition Commands"}.

@{b} @dfn{TERM}@{ub}
     Highlight the introductory or defining use of a term.  See @{"@dfn" Link "dfn"}.

@{b} @display@{ub}
     Begin a kind of example.  Indent text, do not fill, do not select a
     new font.  Pair with @{b} @end display@{ub}.  See @{"@display" Link "display"}.

@{b} @dmn{DIMENSION}@{ub}
     Format a dimension.  Cause TeX to insert a narrow space before
     DIMENSION.  No effect in Info.  Use for writing a number followed
     by an abbreviation of a dimension name, such as @{b}12pt@{ub}, written as
     @{b}12@dmn{pt}@{ub}, with no space between the number and the @{b} @dmn@{ub}
     command.  See @{"@dmn" Link "dmn"}.

@{b} @dots{}@{ub}
     Insert an ellipsis: @{b}...@{ub}.  See @{"@dots" Link "dots"}.

@{b} @emph{TEXT}@{ub}
     Highlight TEXT; text is displayed in @{i}italics@{ui} in printed output,
     and surrounded by asterisks in Info.  See @{"Emphasizing Text" Link "Emphasis"}.

@{b} @enumerate [NUMBER-OR-LETTER]@{ub}
     Begin a numbered list, using @{b} @item@{ub} for each entry.  Optionally,
     start list with NUMBER-OR-LETTER.  Pair with @{b} @end enumerate@{ub}.  See
     @{"@enumerate" Link "enumerate"}.

@{b} @equiv{}@{ub}
     Indicate to the reader the exact equivalence of two forms with a
     glyph: @{b}==@{ub}.  See @{"Equivalence" Link "Equivalence"}.

@{b} @error{}@{ub}
     Indicate to the reader with a glyph that the following text is an
     error message: @{b}error-->@{ub}.  See @{"Error Glyph" Link "Error Glyph"}.

@{b} @evenfooting [LEFT] @| [CENTER] @| [RIGHT]@{ub}
     Specify page footings for even-numbered (left-hand) pages.  Not
     relevant to Info.  See @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @evenheading [LEFT] @| [CENTER] @| [RIGHT]@{ub}
     Specify page headings for even-numbered (left-hand) pages.  Not
     relevant to Info.  See @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @everyfooting [LEFT] @| [CENTER] @| [RIGHT]@{ub}
     Specify page footings for every page.  Not relevant to Info.  See
     @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @everyheading [LEFT] @| [CENTER] @| [RIGHT]@{ub}
     Specify page headings for every page.  Not relevant to Info.  See
     @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @example@{ub}
     Begin an example.  Indent text, do not fill, and select
     fixed-width font.  Pair with @{b} @end example@{ub}.  See @{"@example" Link "example"}.

@{b} @exdent LINE-OF-TEXT@{ub}
     Remove any indentation a line might have.  See
     @{"Undoing the Indentation of a Line" Link "exdent"}.

@{b} @expansion{}@{ub}
     Indicate the result of a macro expansion to the reader with a
     special glyph: @{b}==>@{ub}.  See @{"==> Indicating an Expansion" Link "expansion"}.

@{b} @file{FILENAME}@{ub}
     Highlight the name of a file, buffer, node, or directory.  See
     @{"@file" Link "file"}.

@{b} @finalout@{ub}
     Prevent TeX from printing large black warning rectangles beside
     over-wide lines.  See @{"Overfull hboxes" Link "Overfull hboxes"}.

@{b} @findex ENTRY@{ub}
     Add ENTRY to the index of functions.  See
     @{"Defining the Entries of an Index" Link "Index Entries"}.

@{b} @flushleft@{ub}
     Left justify every line but leave the right end ragged.  Leave
     font as is.  Pair with @{b} @end flushleft@{ub}.  See
     @{"@flushleft and @flushright" Link "flushleft & flushright"}.

@{b} @flushright@{ub}
     Right justify every line but leave the left end ragged.  Leave
     font as is.  Pair with @{b} @end flushright@{ub}.  See
     @{"@flushleft and @flushright" Link "flushleft & flushright"}.

@{b} @footnote{TEXT-OF-FOOTNOTE}@{ub}
     Enter a footnote.  Footnote text is printed at the bottom of the
     page by TeX; Info may format in either `End' node or `Separate'
     node style.  See @{"Footnotes" Link "Footnotes"}.

@{b} @footnotestyle STYLE@{ub}
     Specify an Info file's footnote style, either @{b}end@{ub} for the end node
     style or @{b}separate@{ub} for the separate node style.  See @{"Footnotes" Link "Footnotes"}.

@{b} @format@{ub}
     Begin a kind of example.  Like @{b} @example@{ub} or @{b} @display@{ub}, but do not
     narrow the margins and do not select the fixed-width font.  Pair
     with @{b} @end format@{ub}.  See @{"@example" Link "example"}.

@{b} @ftable FORMATTING-COMMAND@{ub}
     Begin a two-column table, using @{b} @item@{ub} for each entry.
     Automatically enter each of the items in the first column into the
     index of functions.  Pair with @{b} @end ftable@{ub}.  The same as @{b} @table@{ub},
     except for indexing.  See @{"@ftable and @vtable" Link "ftable vtable"}.

@{b} @group@{ub}
     Hold text together that must appear on one printed page.  Pair with
     @{b} @end group@{ub}.  Not relevant to Info.  See @{"@group" Link "group"}.

@{b} @heading TITLE@{ub}
     Print an unnumbered section-like heading in the text, but not in
     the table of contents of a printed manual.  In Info, the title is
     underlined with equal signs.  See @{"Section Commands" Link "unnumberedsec appendixsec heading"}.

@{b} @headings ON-OFF-SINGLE-DOUBLE@{ub}
     Turn page headings on or off, or specify single-sided or
     double-sided page headings for printing.  @{b} @headings on@{ub} is
     synonymous with @{b} @headings double@{ub}.  See @{"The @headings Command" Link "headings on off"}.

@{b} @i{TEXT}@{ub}
     Print TEXT in @{i}italic@{ui} font.  No effect in Info.  See @{"Fonts" Link "Fonts"}.

@{b} @ifclear FLAG@{ub}
     If FLAG is cleared, the Texinfo formatting commands format text
     between @{b} @ifclear FLAG@{ub} and the following @{b} @end ifclear@{ub} command.
     See @{"@set @clear @value" Link "set clear value"}.

@{b} @ifinfo@{ub}
     Begin a stretch of text that will be ignored by TeX when it
     typesets the printed manual.  The text appears only in the Info
     file.  Pair with @{b} @end ifinfo@{ub}.  See @{"Conditionally Visible Text" Link "Conditionals"}.

@{b} @ifset FLAG@{ub}
     If FLAG is set, the Texinfo formatting commands format text
     between @{b} @ifset FLAG@{ub} and the following @{b} @end ifset@{ub} command.  See
     @{"@set @clear @value" Link "set clear value"}.

@{b} @iftex@{ub}
     Begin a stretch of text that will not appear in the Info file, but
     will be processed only by TeX.  Pair with @{b} @end iftex@{ub}.  See
     @{"Conditionally Visible Text" Link "Conditionals"}.

@{b} @ignore@{ub}
     Begin a stretch of text that will not appear in either the Info
     file or the printed output.  Pair with @{b} @end ignore@{ub}.  See
     @{"Comments and Ignored Text" Link "Comments"}.

@{b} @include FILENAME@{ub}
     Incorporate the contents of the file FILENAME into the Info file
     or printed document.  See @{"Include Files" Link "Include Files"}.

@{b} @inforef{NODE-NAME, [ENTRY-NAME], INFO-FILE-NAME}@{ub}
     Make a cross reference to an Info file for which there is no
     printed manual.  See @{"Cross references using @inforef" Link "inforef"}.

@{b}\input MACRO-DEFINITIONS-FILE@{ub}
     Use the specified macro definitions file.  This command is used
     only in the first line of a Texinfo file to cause TeX to make use
     of the @{b}texinfo@{ub} macro definitions file.  The backslash in @{b}\input@{ub} is
     used instead of an @{b} @@{ub} because TeX does not properly recognize @{b} @@{ub}
     until after it has read the definitions file.  See
     @{"The Texinfo File Header" Link "Header"}.

@{b} @item@{ub}
     Indicate the beginning of a marked paragraph for @{b} @itemize@{ub} and @{b}
     @enumerate@{ub}; indicate the beginning of the text of a first column
     entry for @{b} @table@{ub}, @{b} @ftable@{ub}, and @{b} @vtable@{ub}.  See @{"Lists and Tables" Link "Lists and Tables"}.

@{b} @itemize  MARK-GENERATING-CHARACTER-OR-COMMAND@{ub}
     Produce a sequence of indented paragraphs, with a mark inside the
     left margin at the beginning of each paragraph.  Pair with @{b} @end
     itemize@{ub}.  See @{"@itemize" Link "itemize"}.

@{b} @itemx@{ub}
     Like @{b} @item@{ub} but do not generate extra vertical space above the
     item text.  See @{"@itemx" Link "itemx"}.

@{b} @kbd{KEYBOARD-CHARACTERS}@{ub}
     Indicate text that consists of characters of input to be typed by
     users.  See @{"@kbd" Link "kbd"}.

@{b} @key{KEY-NAME}@{ub}
     Highlight KEY-NAME, a conventional name for a key on a keyboard.
     See @{"@key" Link "key"}.

@{b} @kindex ENTRY@{ub}
     Add ENTRY to the index of keys.  See
     @{"Defining the Entries of an Index" Link "Index Entries"}.

@{b} @global@letNEW-COMMAND=EXISTING-COMMAND@{ub}
     Equate a new highlighting command with an existing one.  Only for
     TeX.  Write definition inside of @{b} @iftex@{ub} ... @{b} @end iftex@{ub}. See
     @{"Customized Highlighting" Link "Customized Highlighting"}.

@{b} @lisp@{ub}
     Begin an example of Lisp code.  Indent text, do not fill, and
     select fixed-width font.  Pair with @{b} @end lisp@{ub}.  See @{"@lisp" Link "Lisp Example"}.

@{b} @majorheading  TITLE@{ub}
     Print a chapter-like heading in the text, but not in the table of
     contents of a printed manual.  Generate more vertical whitespace
     before the heading than the @{b} @chapheading@{ub} command.  In Info, the
     chapter heading line is underlined with asterisks.  See
     @{"@majorheading and @chapheading" Link "majorheading & chapheading"}.

@{b} @math{MATHEMATICAL-EXPRESSION}@{ub}
     Format a mathematical expression.  See
     @{"@math: Inserting Mathematical Expressions" Link "math"}.

@{b} @menu@{ub}
     Mark the beginning of a menu of nodes in Info.  No effect in a
     printed manual.  Pair with @{b} @end menu@{ub}.  See @{"Menus" Link "Menus"}.

@{b} @minus{}@{ub}
     Generate a minus sign.  See @{"@minus" Link "minus"}.

@{b} @need N@{ub}
     Start a new page in a printed manual if fewer than N mils
     (thousandths of an inch) remain on the current page.  See @{"@need" Link "need"}.

@{b} @node NAME, NEXT, PREVIOUS, UP@{ub}
     Define the beginning of a new node in Info, and serve as a locator
     for references for TeX.  See @{"@node" Link "node"}.

@{b} @noindent@{ub}
     Prevent text from being indented as if it were a new paragraph.
     See @{"@noindent" Link "noindent"}.

@{b} @oddfooting [LEFT] @| [CENTER] @| [RIGHT]@{ub}
     Specify page footings for odd-numbered (right-hand) pages.  Not
     relevant to Info.  See @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @oddheading [LEFT] @| [CENTER] @| [RIGHT]@{ub}
     Specify page headings for odd-numbered (right-hand) pages.  Not
     relevant to Info.  See @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @page@{ub}
     Start a new page in a printed manual.  No effect in Info.  See
     @{"@page" Link "page"}.

@{b} @paragraphindent INDENT@{ub}
     Indent paragraphs by INDENT number of spaces; delete indentation
     if the value of INDENT is 0; and do not change indentation if
     INDENT is @{b}asis@{ub}. See @{"Paragraph Indenting" Link "paragraphindent"}.

@{b} @pindex ENTRY@{ub}
     Add ENTRY to the index of programs.  See
     @{"Defining the Entries of an Index" Link "Index Entries"}.

@{b} @point{}@{ub}
     Indicate the position of point in a buffer to the reader with a
     glyph: @{b}-!-@{ub}.  See @{"Indicating Point in a Buffer" Link "Point Glyph"}.

@{b} @print{}@{ub}
     Indicate printed output to the reader with a glyph: @{b}-|@{ub}.  See
     @{"Print Glyph" Link "Print Glyph"}.

@{b} @printindex INDEX-NAME@{ub}
     Print an alphabetized two-column index in a printed manual or
     generate an alphabetized menu of index entries for Info.  See
     @{"Printing Indices & Menus" Link "Printing Indices & Menus"}.

@{b} @pxref{NODE-NAME, [ENTRY], [TOPIC-OR-TITLE], [INFO-FILE], [MANUAL]}@{ub}
     Make a reference that starts with a lower case `see' in a printed
     manual.  Use within parentheses only.  Do not follow command with a
     punctuation mark.  The Info formatting commands automatically
     insert terminating punctuation as needed, which is why you do not
     need to insert punctuation.  Only the first argument is mandatory.
     See @{"@pxref" Link "pxref"}.

@{b} @quotation@{ub}
     Narrow the margins to indicate text that is quoted from another
     real or imaginary work.  Write command on a line of its own.  Pair
     with @{b} @end quotation@{ub}.  See @{"@quotation" Link "quotation"}.

@{b} @r{TEXT}@{ub}
     Print TEXT in roman font.  No effect in Info.  See @{"Fonts" Link "Fonts"}.

@{b} @raisesections@{ub}
     Change subsequent sections to chapters, subsections to sections,
     and so on.  See @{"@raisesections and @lowersections" Link "Raise-lower sections"}.

@{b} @ref{NODE-NAME, [ENTRY], [TOPIC-OR-TITLE], [INFO-FILE], [MANUAL]}@{ub}
     Make a reference.  In a printed manual, the reference does not
     start with a `See'.  Follow command with a punctuation mark.  Only
     the first argument is mandatory.  See @{"@ref" Link "ref"}.

@{b} @refill@{ub}
     In Info, refill and indent the paragraph after all the other
     processing has been done.  No effect on TeX, which always refills.
     This command is no longer needed, since all formatters now
     automatically refill.  See @{"Refilling Paragraphs" Link "Refilling Paragraphs"}.

@{b} @result{}@{ub}
     Indicate the result of an expression to the reader with a special
     glyph: @{b}=>@{ub}.  See @{"@result" Link "result"}.

@{b} @samp{TEXT}@{ub}
     Highlight TEXT that is a literal example of a sequence of
     characters.  Used for single characters, for statements, and often
     for entire shell commands.  See @{"@samp" Link "samp"}.

@{b} @sc{TEXT}@{ub}
     Set TEXT in a printed output in @{i}the small caps font@{ui} and set text
     in the Info file in uppercase letters.  See @{"Smallcaps" Link "Smallcaps"}.

@{b} @section TITLE@{ub}
     Begin a section within a chapter.  In a printed manual, the section
     title is numbered and appears in the table of contents.  In Info,
     the title is underlined with equal signs.  See @{"@section" Link "section"}.

@{b} @set FLAG [STRING]@{ub}
     Make FLAG active, causing the Texinfo formatting commands to
     format text between subsequent pairs of @{b} @ifset FLAG@{ub} and @{b} @end
     ifset@{ub} commands.  Optionally, set value of FLAG to STRING.  See
     @{"@set @clear @value" Link "set clear value"}.

@{b} @setchapternewpage ON-OFF-ODD@{ub}
     Specify whether chapters start on new pages, and if so, whether on
     odd-numbered (right-hand) new pages.  See @{"@setchapternewpage" Link "setchapternewpage"}.

@{b} @setfilename INFO-FILE-NAME@{ub}
     Provide a name to be used by the Info file.  See @{"@setfilename" Link "setfilename"}.

@{b} @settitle TITLE@{ub}
     Provide a title for page headers in a printed manual.  See
     @{"@settitle" Link "settitle"}.

@{b} @shortcontents@{ub}
     Print a short table of contents.  Not relevant to Info, which uses
     menus rather than tables of contents.  A synonym for @{b}
     @summarycontents@{ub}.  See @{"Generating a Table of Contents" Link "Contents"}.

@{b} @smallbook@{ub}
     Cause TeX to produce a printed manual in a 7 by 9.25 inch format
     rather than the regular 8.5 by 11 inch format.  See
     @{"Printing Small Books" Link "smallbook"}.  Also, see See @{"@smallexample and @smalllisp" Link "smallexample & smalllisp"}.

@{b} @smallexample@{ub}
     Indent text to indicate an example.  Do not fill, select
     fixed-width font.  In @{b} @smallbook@{ub} format, print text in a smaller
     font than with @{b} @example@{ub}.  Pair with @{b} @end smallexample@{ub}.  See
     @{"@smallexample and @smalllisp" Link "smallexample & smalllisp"}.

@{b} @smalllisp@{ub}
     Begin an example of Lisp code.  Indent text, do not fill, select
     fixed-width font.  In @{b} @smallbook@{ub} format, print text in a smaller
     font.  Pair with @{b} @end smalllisp@{ub}.  See
     @{"@smallexample and @smalllisp" Link "smallexample & smalllisp"}.

@{b} @sp N@{ub}
     Skip N blank lines.  See @{"@sp" Link "sp"}.

@{b} @strong TEXT@{ub}
     Emphasize TEXT by typesetting it in a @{i}bold@{ui} font for the printed
     manual and by surrounding it with asterisks for Info.  See
     @{"Emphasizing Text" Link "emph & strong"}.

@{b} @subheading TITLE@{ub}
     Print an unnumbered subsection-like heading in the text, but not in
     the table of contents of a printed manual.  In Info, the title is
     underlined with hyphens.  See
     @{"@unnumberedsubsec @appendixsubsec @subheading" Link "unnumberedsubsec appendixsubsec subheading"}.

@{b} @subsection TITLE@{ub}
     Begin a subsection within a section.  In a printed manual, the
     subsection title is numbered and appears in the table of contents.
     In Info, the title is underlined with hyphens.  See @{"@subsection" Link "subsection"}.

@{b} @subsubheading TITLE@{ub}
     Print an unnumbered subsubsection-like heading in the text, but
     not in the table of contents of a printed manual.  In Info, the
     title is underlined with periods.  See @{"The `subsub' Commands" Link "subsubsection"}.

@{b} @subsubsection TITLE@{ub}
     Begin a subsubsection within a subsection.  In a printed manual,
     the subsubsection title is numbered and appears in the table of
     contents.  In Info, the title is underlined with periods.  See
     @{"The `subsub' Commands" Link "subsubsection"}.

@{b} @subtitle TITLE@{ub}
     In a printed manual, set a subtitle in a normal sized font flush to
     the right-hand side of the page.  Not relevant to Info, which does
     not have title pages.  See @{"@title @subtitle and @author Commands" Link "title subtitle author"}.

@{b} @summarycontents@{ub}
     Print a short table of contents.  Not relevant to Info, which uses
     menus rather than tables of contents.  A synonym for @{b}
     @shortcontents@{ub}.  See @{"Generating a Table of Contents" Link "Contents"}.

@{b} @syncodeindex FROM-INDEX INTO-INDEX@{ub}
     Merge the index named in the first argument into the index named in
     the second argument, printing the entries from the first index in @{b}
     @code@{ub} font.  See @{"Combining Indices" Link "Combining Indices"}.

@{b} @synindex FROM-INDEX INTO-INDEX@{ub}
     Merge the index named in the first argument into the index named in
     the second argument.  Do not change the font of FROM-INDEX
     entries.  See @{"Combining Indices" Link "Combining Indices"}.

@{b} @t{TEXT}@{ub}
     Print TEXT in a @{i}fixed-width@{ui}, typewriter-like font.  No effect in
     Info.  See @{"Fonts" Link "Fonts"}.

@{b} @table FORMATTING-COMMAND@{ub}
     Begin a two-column table, using @{b} @item@{ub} for each entry.  Write each
     first column entry on the same line as @{b} @item@{ub}.  First column
     entries are printed in the font resulting from FORMATTING-COMMAND.
     Pair with @{b} @end table@{ub}.  See @{"Making a Two-column Table" Link "Two-column Tables"}.  Also see
     See @{"@ftable and @vtable" Link "ftable vtable"}, and See @{"@itemx" Link "itemx"}.

@{b} @TeX{}@{ub}
     Insert the logo TeX.  See @{"Inserting TeX and (C)" Link "TeX and copyright"}.

@{b} @tex@{ub}
     Enter TeX completely.  Pair with @{b} @end tex@{ub}.  See
     @{"Using Ordinary TeX Commands" Link "Using Ordinary TeX Commands"}.

@{b} @thischapter@{ub}
     In a heading or footing, stands for the number and name of the
     current chapter, in the format `Chapter 1: Title'.  See
     @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @thischaptername@{ub}
     In a heading or footing, stands for the name of the current
     chapter.  See @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @thisfile@{ub}
     In a heading or footing, stands for the name of the current @{b}
     @include@{ub} file.  Does not insert anything if not within an @{b}
     @include@{ub} file.  See @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @thispage@{ub}
     In a heading or footing, stands for the current page number.  See
     @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @thistitle@{ub}
     In a heading or footing, stands for the name of the document, as
     specified by the @{b} @settitle@{ub} command.  See
     @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @tindex ENTRY@{ub}
     Add ENTRY to the index of data types.  See
     @{"Defining the Entries of an Index" Link "Index Entries"}.

@{b} @title TITLE@{ub}
     In a printed manual, set a title flush to the left-hand side of the
     page in a larger than normal font and underline it with a black
     rule.  Not relevant to Info, which does not have title pages.  See
     @{"The @title @subtitle and @author Commands" Link "title subtitle author"}.

@{b} @titlefont{TEXT}@{ub}
     In a printed manual, print TEXT in a larger than normal font.  Not
     relevant to Info, which does not have title pages.  See
     @{"The @titlefont @center and @sp Commands" Link "titlefont center sp"}.

@{b} @titlepage@{ub}
     Indicate to Texinfo the beginning of the title page.  Write
     command on a line of its own.  Pair with @{b} @end titlepage@{ub}.  Nothing
     between @{b} @titlepage@{ub} and @{b} @end titlepage@{ub} appears in Info.  See
     @{"@titlepage" Link "titlepage"}.

@{b} @today{}@{ub}
     Insert the current date, in `1 Jan 1900' style.  See
     @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @top TITLE@{ub}
     In a Texinfo file to be formatted with @{b}makeinfo@{ub}, identify the
     topmost @{b} @node@{ub} line in the file, which must be written on the line
     immediately preceding the @{b} @top@{ub} command.  Used for @{b}makeinfo@{ub}'s node
     pointer insertion feature.  The title is underlined with
     asterisks.  Both the @{b} @node@{ub} line and the @{b} @top@{ub} line normally
     should be enclosed by @{b} @ifinfo@{ub} and @{b} @end ifinfo@{ub}.  In TeX and
     @{b}texinfo-format-buffer@{ub}, the @{b} @top@{ub} command is merely a synonym
     for @{b} @unnumbered@{ub}.  See @{"Creating Pointers with makeinfo" Link "makeinfo Pointer Creation"}.

@{b} @unnumbered TITLE@{ub}
     In a printed manual, begin a chapter that appears without chapter
     numbers of any kind.  The title appears in the table of contents
     of a printed manual.  In Info, the title is underlined with
     asterisks.  See @{"@unnumbered and @appendix" Link "unnumbered & appendix"}.

@{b} @unnumberedsec TITLE@{ub}
     In a printed manual, begin a section that appears without section
     numbers of any kind.  The title appears in the table of contents
     of a printed manual.  In Info, the title is underlined with equal
     signs.  See @{"Section Commands" Link "unnumberedsec appendixsec heading"}.

@{b} @unnumberedsubsec TITLE@{ub}
     In a printed manual, begin an unnumbered subsection within a
     chapter.  The title appears in the table of contents of a printed
     manual.  In Info, the title is underlined with hyphens.  See
     @{"@unnumberedsubsec @appendixsubsec @subheading" Link "unnumberedsubsec appendixsubsec subheading"}.

@{b} @unnumberedsubsubsec TITLE@{ub}
     In a printed manual, begin an unnumbered subsubsection within a
     chapter.  The title appears in the table of contents of a printed
     manual.  In Info, the title is underlined with periods.  See
     @{"The `subsub' Commands" Link "subsubsection"}.

@{b} @value{FLAG}@{ub}
     Replace FLAG with the value to which it is set by @{b} @set FLAG@{ub}.  See
     @{"@set @clear @value" Link "set clear value"}.

@{b} @var{METASYNTACTIC-VARIABLE}@{ub}
     Highlight a metasyntactic variable, which is something that stands
     for another piece of text.  See @{"Indicating Metasyntactic Variables" Link "var"}.

@{b} @vindex ENTRY@{ub}
     Add ENTRY to the index of variables.  See
     @{"Defining the Entries of an Index" Link "Index Entries"}.

@{b} @vskip AMOUNT@{ub}
     In a printed manual, insert whitespace so as to push text on the
     remainder of the page towards the bottom of the page.  Used in
     formatting the copyright page with the argument @{b}0pt plus 1filll@{ub}.
     (Note spelling of @{b}filll@{ub}.)  @{b} @vskip@{ub} may be used only in contexts
     ignored for Info.  See @{"The Copyright Page and Printed Permissions" Link "Copyright & Permissions"}.

@{b} @vtable FORMATTING-COMMAND@{ub}
     Begin a two-column table, using @{b} @item@{ub} for each entry.
     Automatically enter each of the items in the first column into the
     index of variables.  Pair with @{b} @end vtable@{ub}.  The same as @{b} @table@{ub},
     except for indexing.  See @{"@ftable and @vtable" Link "ftable vtable"}.

@{b} @w{TEXT}@{ub}
     Prevent TEXT from being split across two lines.  Do not end a
     paragraph that uses @{b} @w@{ub} with an @{b} @refill@{ub} command.  In the Texinfo
     file, keep TEXT on one line.  See @{"@w" Link "w"}.

@{b} @xref{NODE-NAME, [ENTRY], [TOPIC-OR-TITLE], [INFO-FILE], [MANUAL]}@{ub}
     Make a reference that starts with `See' in a printed manual.
     Follow command with a punctuation mark.  Only the first argument is
     mandatory.  See @{"@xref" Link "xref"}.


@EndNode

@Node "Tips" "texinfo.guide/Tips"
@Next "Sample Texinfo File"
@Prev "Command List"
@Toc "Main"

Tips and Hints
**************

  Here are some tips for writing Texinfo documentation:

   @{b}*@{ub} Write in the present tense, not in the past or the future.

   @{b}*@{ub} Write actively!  For example, write "We recommend that ..." rather
     than "It is recommended that ...".

   @{b}*@{ub} Use 70 or 72 as your fill column.  Longer lines are hard to read.

   @{b}*@{ub} Include a copyright notice and copying permissions.

Index, index, index!
....................

  Write many index entries, in different ways.  Readers like indices;
they are helpful and convenient.

  Although it is easiest to write index entries as you write the body of
the text, some people prefer to write entries afterwards.  In either
case, write an entry before the paragraph to which it applies.  This
way, an index entry points to the first page of a paragraph that is
split across pages.

  Here are more hints we have found valuable:

   @{b}*@{ub} Write each index entry differently, so each entry refers to a
     different place in the document.  The index of an Info file lists
     only one location for each entry.

   @{b}*@{ub} Write index entries only where a topic is discussed significantly.
     For example, it is not useful to index "debugging information" in
     a chapter on reporting bugs.  Someone who wants to know about
     debugging information will certainly not find it in that chapter.

   @{b}*@{ub} Consistently capitalize the first word of every concept index
     entry, or else consistently use lower case.  Terse entries often
     call for lower case; longer entries for capitalization.  Whichever
     case convention you use, please use one or the other consistently!
     Mixing the two styles looks bad.

   @{b}*@{ub} Always capitalize or use upper case for those words in an index for
     which this is proper, such as names of countries or acronyms.
     Always use the appropriate case for case-sensitive names, such as
     those in C or Lisp.

   @{b}*@{ub} Write the indexing commands that refer to a whole section
     immediately after the section command, and write the indexing
     commands that refer to the paragraph before the paragraph.

     In the example that follows, a blank line comes after the index
     entry for "Leaping":

          @section The Dog and the Fox
          @cindex Jumping, in general
          @cindex Leaping
          
          @cindex Dog, lazy, jumped over
          @cindex Lazy dog jumped over
          @cindex Fox, jumps over dog
          @cindex Quick fox jumps over dog
          The quick brown fox jumps over the lazy dog.

     (Note that the example shows entries for the same concept that are
     written in different ways--@{b}Lazy dog@{ub}, and @{b}Dog, lazy@{ub}--so readers can
     look up the concept in different ways.)

Blank lines
...........

   @{b}*@{ub} Insert a blank line between a sectioning command and the first
     following sentence or paragraph, or between the indexing commands
     associated with the sectioning command and the first following
     sentence or paragraph, as shown in the tip on indexing.
     Otherwise, a formatter may fold title and paragraph together.

   @{b}*@{ub} Always insert a blank line before an @{b} @table@{ub} command and after an @{b}
     @end table@{ub} command; but never insert a blank line after an @{b} @table@{ub}
     command or before an @{b} @end table@{ub} command.

     For example,

          Types of fox:
          
          @table @samp
          @item Quick
          Jump over lazy dogs.
          
          @item Brown
          Also jump over lazy dogs.
          @end table
          @noindent
          On the other hand, ...

     Insert blank lines before and after @{b} @itemize@{ub} ... @{b} @end itemize@{ub}
     and @{b} @enumerate@{ub} ... @{b} @end enumerate@{ub} in the same way.

Complete phrases
................

  Complete phrases are easier to read than ...

   @{b}*@{ub} Write entries in an itemized list as complete sentences; or at
     least, as complete phrases.  Incomplete expressions ... awkward
     ... like this.

   @{b}*@{ub} Write the prefatory sentence or phrase for a multi-item list or
     table as a complete expression.  Do not write "You can set:";
     instead, write "You can set these variables:".  The former
     expression sounds cut off.

Editions, dates and versions
............................

  Write the edition and version numbers and date in three places in
every manual:

  1. In the first @{b} @ifinfo@{ub} section, for people reading the Texinfo file.

  2. In the @{b} @titlepage@{ub} section, for people reading the printed manual.

  3. In the `Top' node, for people reading the Info file.

Also, it helps to write a note before the first @{b} @ifinfo@{ub} section to
explain what you are doing.

For example:

     @c ===> NOTE! <==
     @c Specify the edition and version numbers and date
     @c in *three* places:
     @c   1. First ifinfo section  2. title page  3. top node
     @c To find the locations, search for !!set
     
     @ifinfo
     @c !!set edition, date, version
     This is Edition 4.03, January 1992,
     of the @cite{GDB Manual} for GDB Version 4.3.
     ...

--or use @{b} @set@{ub} and @{b} @value@{ub} (see @{"@value Example" Link "value Example"}).

Definition Commands
...................

  Definition commands are @{b} @deffn@{ub}, @{b} @defun@{ub}, @{b} @defmac@{ub}, and the like, and
enable you to write descriptions in a uniform format.

   @{b}*@{ub} Write just one definition command for each entity you define with a
     definition command.  The automatic indexing feature creates an
     index entry that leads the reader to the definition.

   @{b}*@{ub} Use @{b} @table@{ub} ... @{b} @end table@{ub} in an appendix that contains a summary
     of functions, not @{b} @deffn@{ub} or other definition commands.

Capitalization
..............

   @{b}*@{ub} Capitalize @{b}Texinfo@{ub}; it is a name.  Do not write the @{b}x@{ub} or @{b}i@{ub} in
     upper case.

   @{b}*@{ub} Capitalize @{b}Info@{ub}; it is a name.

   @{b}*@{ub} Write TeX using the @{b} @TeX{}@{ub} command.  Note the uppercase @{b}T@{ub} and @{b}X@{ub}.
     This command causes the formatters to typeset the name according
     to the wishes of Donald Knuth, who wrote TeX.

Spaces
......

  Do not use spaces to format a Texinfo file, except inside of @{b}
@example@{ub} ... @{b} @end example@{ub} and similar commands.

  For example, TeX fills the following:

         @kbd{C-x v}
         @kbd{M-x vc-next-action}
            Perform the next logical operation
            on the version-controlled file
            corresponding to the current buffer.

so it looks like this:

     `C-x v' `M-x vc-next-action' Perform the next logical operation on
     the version-controlled file corresponding to the current buffer.

In this case, the text should be formatted with @{b} @table@{ub}, @{b} @item@{ub}, and @{b}
@itemx@{ub}, to create a table.

@code, @samp, @var, and @{b}---@{ub}
...........................

   @{b}*@{ub} Use @{b} @code@{ub} around Lisp symbols, including command names.  For
     example,

          The main function is @code{vc-next-action}, ...

   @{b}*@{ub} Avoid putting letters such as @{b}s@{ub} immediately after an @{b} @code@{ub}.  Such
     letters look bad.

   @{b}*@{ub} Use @{b} @var@{ub} around meta-variables.  Do not write angle brackets
     around them.

   @{b}*@{ub} Use three hyphens in a row, @{b}---@{ub}, to indicate a long dash.  TeX
     typesets these as a long dash and the Info formatters reduce three
     hyphens to two.

Periods Outside of Quotes
.........................

  Place periods and other punctuation marks @{i}outside@{ui} of quotations,
unless the punctuation is part of the quotation.  This practice goes
against convention, but enables the reader to distinguish between the
contents of the quotation and the whole passage.

  For example, you should write the following sentence with the period
outside the end quotation marks:

     Evidently, @{b}au@{ub} is an abbreviation for ``author''.

since @{b}au@{ub} does @{i}not@{ui} serve as an  abbreviation for @{b}author.@{ub} (with a period
following the word).

Introducing New Terms
.....................

   @{b}*@{ub} Introduce new terms so that a user who does not know them can
     understand them from context; or write a definition for the term.

     For example, in the following, the terms "check in", "register" and
     "delta" are all appearing for the first time; the example sentence
     should be rewritten so they are understandable.

          The major function assists you in checking in a file to your
          version control system and registering successive sets of
          changes to it as deltas.

   @{b}*@{ub} Use the @{b} @dfn@{ub} command around a word being introduced, to indicate
     that the user should not expect to know the meaning already, and
     should expect to learn the meaning from this passage.

@pxref
......

  Absolutely never use @{b} @pxref@{ub} except in the special context for which
it is designed: inside parentheses, with the closing parenthesis
following immediately after the closing brace.  One formatter
automatically inserts closing punctuation and the other does not.  This
means that the output looks right both in printed output and in an Info
file, but only when the command is used inside parentheses.

Invoking from a Shell
.....................

  You can invoke programs such as Emacs, GCC, and GAWK from a shell.
The documentation for each program should contain a section that
describes this.  Unfortunately, if the node names and titles for these
sections are all different, readers find it hard to search for the
section.

  Name such sections with a phrase beginning with the word
`Invoking ...', as in `Invoking Emacs'; this way users can find the
section easily.

@{i}ansi c@{ui} Syntax
.............

  When you use @{b} @example@{ub} to describe a C function's calling
conventions, use the @{i}ansi c@{ui} syntax, like this:

     void dld_init (char *@var{path});

And in the subsequent discussion, refer to the argument values by
writing the same argument names, again highlighted with @{b} @var@{ub}.

  Avoid the obsolete style that looks like this:

     #include <dld.h>
     
     dld_init (path)
     char *path;

  Also, it is best to avoid writing @{b}#include@{ub} above the declaration just
to indicate that the function is declared in a header file.  The
practice may give the misimpression that the @{b}#include@{ub} belongs near the
declaration of the function.  Either state explicitly which header file
holds the declaration or, better yet, name the header file used for a
group of functions at the beginning of the section that describes the
functions.

Bad Examples
............

  Here are several examples of bad writing to avoid:

  In this example, say, " ... you must @{b} @dfn@{ub} {check in} the new
version."  That flows better.

     When you are done editing the file, you must perform a @{b} @dfn@{ub}
     {check in}.

  In the following example, say, "... makes a unified interface such as
VC mode possible."

     SCCS, RCS and other version-control systems all perform similar
     functions in broadly similar ways (it is this resemblance which
     makes a unified control mode like this possible).

  And in this example, you should specify what `it' refers to:

     If you are working with other people, it assists in coordinating
     everyone's changes so they do not step on each other.

And Finally ...
...............

   @{b}*@{ub} Pronounce TeX as if the @{b}X@{ub} were a Greek `chi', as the last sound in
     the name `Bach'.  But pronounce Texinfo as in `speck': @{b}teckinfo@{ub}.

   @{b}*@{ub} Write notes for yourself at the very end of a Texinfo file after
     the @{b} @bye@{ub}.  None of the formatters process text after the @{b} @bye@{ub};
     it is as if the text were within @{b} @ignore@{ub} ...  @{b} @end ignore@{ub}.


@EndNode

@Node "Sample Texinfo File" "texinfo.guide/Sample Texinfo File"
@Next "Sample Permissions"
@Prev "Tips"
@Toc "Main"

A Sample Texinfo File
*********************

  Here is a complete, short sample Texinfo file, without any commentary.
You can see this file, with comments, in the first chapter.  See
@{"A Short Sample Texinfo File" Link "Short Sample"}.

     \input texinfo   @c -*-texinfo-*-
     @c %**start of header
     @setfilename sample.info
     @settitle Sample Document
     @c %**end of header
     
     @setchapternewpage odd
     
     @ifinfo
     This is a short example of a complete Texinfo file.
     
     Copyright 1990 Free Software Foundation, Inc.
     @end ifinfo
     
     @titlepage
     @sp 10
     @comment The title is printed in a large font.
     @center @titlefont{Sample Title}
     
     @c The following two commands start the copyright page.
     @page
     @vskip 0pt plus 1filll
     Copyright @copyright{} 1990 Free Software Foundation, Inc.
     @end titlepage
     
     @node    Top,       First Chapter, (dir),    (dir)
     @comment node-name, next,          previous, up
     
     @menu
     * First Chapter::    The first chapter is the
                          only chapter in this sample.
     * Concept Index::    This index has two entries.
     @end menu
     
     @node    First Chapter, Concept Index, Top,      Top
     @comment node-name,     next,          previous, up
     @chapter First Chapter
     @cindex Sample index entry
     
     This is the contents of the first chapter.
     @cindex Another sample index entry
     
     Here is a numbered list.
     
     @enumerate
     @item
     This is the first item.
     
     @item
     This is the second item.
     @end enumerate
     
     The @code{makeinfo} and @code{texinfo-format-buffer}
     commands transform a Texinfo file such as this into
     an Info file; and @TeX{} typesets it for a printed
     manual.
     
     @node    Concept Index,    ,  First Chapter, Top
     @comment node-name,    next,  previous,      up
     @unnumbered Concept Index
     
     @printindex cp
     
     @contents
     @bye


@EndNode

@Node "Sample Permissions" "texinfo.guide/Sample Permissions"
@Next "Include Files"
@Prev "Sample Texinfo File"
@Toc "Main"

Sample Permissions
******************

  Texinfo files should contain sections that tell the readers that they
have the right to copy and distribute the Texinfo file, the Info file,
and the printed manual.

  Also, if you are writing a manual about software, you should explain
that the software is free and either include the GNU General Public
License (GPL) or provide a reference to it.  See @{"Distribution" Link "emacs/Distrib"}, for an
example of the text that could be used in the software "Distribution",
"General Public License", and "NO WARRANTY" sections of a document.
See @{"Texinfo Copying Conditions" Link "Copying"}, for an example of a brief explanation
of how the copying conditions provide you with rights.


 @{" Inserting Permissions     " Link "Inserting Permissions"}  How to put permissions in your document.
 @{" ifinfo Permissions        " Link "ifinfo Permissions"}  Sample @{b}ifinfo@{ub} copying permissions.
 @{" Titlepage Permissions     " Link "Titlepage Permissions"}  Sample Titlepage copying permissions.


@EndNode

@Node "Inserting Permissions" "texinfo.guide/Inserting Permissions"
@Next "ifinfo Permissions"
@Prev "Sample Permissions"
@Toc "Sample Permissions"

Inserting Permissions
=====================

  In a Texinfo file, the first @{b} @ifinfo@{ub} section usually begins with a
line that says what the file documents.  This is what a person reading
the unprocessed Texinfo file or using the advanced Info command @{b}g *@{ub}
sees first.  See @{"Advanced Info commands" Link "info/Expert"}, for more information. (A
reader using the regular Info commands usually starts reading at the
first node and skips this first section, which is not in a node.)

  In the @{b} @ifinfo@{ub} section, the summary sentence is followed by a
copyright notice and then by the copying permission notice.  One of the
copying permission paragraphs is enclosed in @{b} @ignore@{ub} and @{b} @end ignore@{ub}
commands.  This paragraph states that the Texinfo file can be processed
through TeX and printed, provided the printed manual carries the proper
copying permission notice.  This paragraph is not made part of the Info
file since it is not relevant to the Info file; but it is a mandatory
part of the Texinfo file since it permits people to process the Texinfo
file in TeX and print the results.

  In the printed manual, the Free Software Foundation copying permission
notice follows the copyright notice and publishing information and is
located within the region delineated by the @{b} @titlepage@{ub} and @{b} @end
titlepage@{ub} commands.  The copying permission notice is exactly the same
as the notice in the @{b} @ifinfo@{ub} section except that the paragraph
enclosed in @{b} @ignore@{ub} and @{b} @end ignore@{ub} commands is not part of the
notice.

  To make it simple to insert a permission notice into each section of
the Texinfo file, sample permission notices for each section are
reproduced in full below.

  Note that you may need to specify the correct name of a section
mentioned in the permission notice.  For example, in `The GDB Manual',
the name of the section referring to the General Public License is
called the "GDB General Public License", but in the sample shown below,
that section is referred to generically as the "GNU General Public
License".  If the Texinfo file does not carry a copy of the General
Public License, leave out the reference to it, but be sure to include
the rest of the sentence.


@EndNode

@Node "ifinfo Permissions" "texinfo.guide/ifinfo Permissions"
@Next "Titlepage Permissions"
@Prev "Inserting Permissions"
@Toc "Sample Permissions"

@{b}ifinfo@{ub} Copying Permissions
==========================

  In the @{b} @ifinfo@{ub} section of a Texinfo file, the standard Free Software
Foundation permission notice reads as follows:

     This file documents ...
     
     Copyright 1992 Free Software Foundation, Inc.
     
     Permission is granted to make and distribute verbatim
     copies of this manual provided the copyright notice and
     this permission notice are preserved on all copies.
     
     @ignore
     Permission is granted to process this file through TeX
     and print the results, provided the printed document
     carries a copying permission notice identical to this
     one except for the removal of this paragraph (this
     paragraph not being relevant to the printed manual).
     
     @end ignore
     Permission is granted to copy and distribute modified
     versions of this manual under the conditions for
     verbatim copying, provided also that the sections
     entitled ``Copying'' and ``GNU General Public License''
     are included exactly as in the original, and provided
     that the entire resulting derived work is distributed
     under the terms of a permission notice identical to this
     one.
     
     Permission is granted to copy and distribute
     translations of this manual into another language,
     under the above conditions for modified versions,
     except that this permission notice may be stated in a
     translation approved by the Free Software Foundation.


@EndNode

@Node "Titlepage Permissions" "texinfo.guide/Titlepage Permissions"
@Prev "ifinfo Permissions"
@Toc "Sample Permissions"

Titlepage Copying Permissions
=============================

  In the @{b} @titlepage@{ub} section of a Texinfo file, the standard Free
Software Foundation copying permission notice follows the copyright
notice and publishing information.  The standard phrasing is as follows:

     Permission is granted to make and distribute verbatim
     copies of this manual provided the copyright notice and
     this permission notice are preserved on all copies.
     
     Permission is granted to copy and distribute modified
     versions of this manual under the conditions for
     verbatim copying, provided also that the sections
     entitled ``Copying'' and ``GNU General Public License''
     are included exactly as in the original, and provided
     that the entire resulting derived work is distributed
     under the terms of a permission notice identical to this
     one.
     
     Permission is granted to copy and distribute
     translations of this manual into another language,
     under the above conditions for modified versions,
     except that this permission notice may be stated in a
     translation approved by the Free Software Foundation.


@EndNode

@Node "Include Files" "texinfo.guide/Include Files"
@Next "Headings"
@Prev "Sample Permissions"
@Toc "Main"

Include Files
*************

  When TeX or an Info formatting command sees an @{b} @include@{ub} command in a
Texinfo file, it processes the contents of the file named by the
command and incorporates them into the @{i}dvi@{ui} or Info file being created.
Index entries from the included file are incorporated into the indices
of the output file.

  Include files let you keep a single large document as a collection of
conveniently small parts.


 @{" Using Include Files       " Link "Using Include Files"}  How to use the @{b} @include@{ub} command.
 @{" texinfo-multiple-files-update " Link "texinfo-multiple-files-update"}  How to create and update nodes and
                                  menus when using included files.
 @{" Include File Requirements " Link "Include File Requirements"}  What @{b}texinfo-multiple-files-update@{ub} expects.
 @{" Sample Include File       " Link "Sample Include File"}  A sample outer file with included files
                                  within it; and a sample included file.
 @{" Include Files Evolution   " Link "Include Files Evolution"}  How use of the @{b} @include@{ub} command
                                  has changed over time.


@EndNode

@Node "Using Include Files" "texinfo.guide/Using Include Files"
@Next "texinfo-multiple-files-update"
@Prev "Include Files"
@Toc "Include Files"

How to Use Include Files
========================

  To include another file within a Texinfo file, write the @{b} @include@{ub}
command at the beginning of a line and follow it on the same line by
the name of a file to be included.  For example:

     @include buffers.texi

  An included file should simply be a segment of text that you expect to
be included as is into the overall or @{i}outer@{ui} Texinfo file; it should not
contain the standard beginning and end parts of a Texinfo file.  In
particular, you should not start an included file with a line saying
@{b}\input texinfo@{ub}; if you do, that phrase is inserted into the output
file as is.  Likewise, you should not end an included file with an @{b}
@bye@{ub} command; nothing after @{b} @bye@{ub} is formatted.

  In the past, you were required to write an @{b} @setfilename@{ub} line at the
beginning of an included file, but no longer.  Now, it does not matter
whether you write such a line.  If an @{b} @setfilename@{ub} line exists in an
included file, it is ignored.

  Conventionally, an included file begins with an @{b} @node@{ub} line that is
followed by an @{b} @chapter@{ub} line.  Each included file is one chapter.
This makes it easy to use the regular node and menu creating and
updating commands to create the node pointers and menus within the
included file.  However, the simple Emacs node and menu creating and
updating commands do not work with multiple Texinfo files.  Thus you
cannot use these commands to fill in the `Next', `Previous', and `Up'
pointers of the @{b} @node@{ub} line that begins the included file.  Also, you
cannot use the regular commands to create a master menu for the whole
file.  Either you must insert the menus and the `Next', `Previous', and
`Up' pointers by hand, or you must use the GNU Emacs Texinfo mode
command, @{b}texinfo-multiple-files-update@{ub}, that is designed for @{b} @include@{ub}
files.


@EndNode

@Node "texinfo-multiple-files-update" "texinfo.guide/texinfo-multiple-files-update"
@Next "Include File Requirements"
@Prev "Using Include Files"
@Toc "Include Files"

@{b}texinfo-multiple-files-update@{ub}
=============================

  GNU Emacs Texinfo mode provides the @{b}texinfo-multiple-files-update@{ub}
command.  This command creates or updates `Next', `Previous', and `Up'
pointers of included files as well as those in the outer or overall
Texinfo file, and it creates or updates a main menu in the outer file.
Depending whether you call it with optional arguments, the command
updates only the pointers in the first @{b} @node@{ub} line of the included
files or all of them:

@{b}M-x texinfo-multiple-files-update@{ub}
     Called without any arguments:

        - Create or update the `Next', `Previous', and `Up' pointers of
          the first @{b} @node@{ub} line in each file included in an outer or
          overall Texinfo file.

        - Create or update the `Top' level node pointers of the outer or
          overall file.

        - Create or update a main menu in the outer file.

@{b}C-u M-x texinfo-multiple-files-update@{ub}
     Called with @{b}C-u@{ub} as a prefix argument:

        - Create or update pointers in the first @{b} @node@{ub} line in each
          included file.

        - Create or update the `Top' level node pointers of the outer
          file.

        - Create and insert a master menu in the outer file.  The
          master menu is made from all the menus in all the included
          files.

@{b}C-u 8 M-x texinfo-multiple-files-update@{ub}
     Called with a numeric prefix argument, such as @{b}C-u 8@{ub}:

        - Create or update @{i}all@{ui} the `Next', `Previous', and `Up' pointers
          of all the included files.

        - Create or update @{i}all@{ui} the menus of all the included files.

        - Create or update the `Top' level node pointers of the outer or
          overall file.

        - And then create a master menu in the outer file.  This is
          similar to invoking @{b}texinfo-master-menu@{ub} with an argument when
          you are working with just one file.

  Note the use of the prefix argument in interactive use: with a regular
prefix argument, just @{b}C-u@{ub}, the @{b}texinfo-multiple-files-update@{ub} command
inserts a master menu; with a numeric prefix argument, such as @{b}C-u 8@{ub},
the command updates @{i}every@{ui} pointer and menu in @{i}all@{ui} the files and then
inserts a master menu.


@EndNode

@Node "Include File Requirements" "texinfo.guide/Include File Requirements"
@Next "Sample Include File"
@Prev "texinfo-multiple-files-update"
@Toc "Include Files"

Include File Requirements
=========================

  If you plan to use the @{b}texinfo-multiple-files-update@{ub} command, the
outer Texinfo file that lists included files within it should contain
nothing but the beginning and end parts of a Texinfo file, and a number
of @{b} @include@{ub} commands listing the included files.  It should not even
include indices, which should be listed in an included file of their
own.

  Moreover, each of the included files must contain exactly one highest
level node (conventionally, @{b} @chapter@{ub} or equivalent), and this node
must be the first node in the included file.  Furthermore, each of
these highest level nodes in each included file must be at the same
hierarchical level in the file structure.  Usually, each is an @{b}
@chapter@{ub}, an @{b} @appendix@{ub}, or an @{b} @unnumbered@{ub} node.  Thus, normally,
each included file contains one, and only one, chapter or
equivalent-level node.

  The outer file should contain only @{i}one@{ui} node, the `Top' node.  It
should @{i}not@{ui} contain any nodes besides the single `Top' node.  The
@{b}texinfo-multiple-files-update@{ub} command will not process them.


@EndNode

@Node "Sample Include File" "texinfo.guide/Sample Include File"
@Next "Include Files Evolution"
@Prev "Include File Requirements"
@Toc "Include Files"

Sample File with @{b} @include@{ub}
==========================

  Here is an example of a complete outer Texinfo file with @{b} @include@{ub}
files within it before running @{b}texinfo-multiple-files-update@{ub}, which
would insert a main or master menu:

     \input texinfo @c -*-texinfo-*-
     @setfilename  include-example.info
     @settitle Include Example
     
     @setchapternewpage odd
     @titlepage
     @sp 12
     @center @titlefont{Include Example}
     @sp 2
     @center by Whom Ever
     
     @page
     @vskip 0pt plus 1filll
     Copyright @copyright{} 1990 Free Software Foundation, Inc.
     @end titlepage
     
     @ifinfo
     @node Top, First, (dir), (dir)
     @top Master Menu
     @end ifinfo
     
     @include foo.texinfo
     @include bar.texinfo
     @include concept-index.texinfo
     
     @summarycontents
     @contents
     
     @bye

  An included file, such as @{b}foo.texinfo@{ub}, might look like this:

     @node First, Second, , Top
     @chapter First Chapter
     
     Contents of first chapter ...

  The full contents of @{b}concept-index.texinfo@{ub} might be as simple as this:

     @node Concept Index, , Second, Top
     @unnumbered Concept Index
     
     @printindex cp

  The outer Texinfo source file for `The GNU Emacs Lisp Reference
Manual' is named @{b}elisp.texi@{ub}.  This outer file contains a master menu
with 417 entries and a list of 41 @{b} @include@{ub} files.


@EndNode

@Node "Include Files Evolution" "texinfo.guide/Include Files Evolution"
@Prev "Sample Include File"
@Toc "Include Files"

Evolution of Include Files
==========================

  When Info was first created, it was customary to create many small
Info files on one subject.  Each Info file was formatted from its own
Texinfo source file.  This custom meant that Emacs did not need to make
a large buffer to hold the whole of a large Info file when someone
wanted information; instead, Emacs allocated just enough memory for the
small Info file that contained the particular information sought.  This
way, Emacs could avoid wasting memory.

  References from one file to another were made by referring to the file
name as well as the node name. (See @{"Referring to Other Info Files" Link "Other Info Files"}.
Also, see See @{"@xref with Four and Five Arguments" Link "Four and Five Arguments"}.)

  Include files were designed primarily as a way to create a single,
large printed manual out of several smaller Info files.  In a printed
manual, all the references were within the same document, so TeX could
automatically determine the references' page numbers.  The Info
formatting commands used include files only for creating joint indices;
each of the individual Texinfo files had to be formatted for Info
individually.  (Each, therefore, required its own @{b} @setfilename@{ub} line.)

  However, because large Info files are now split automatically, it is
no longer necessary to keep them small.

  Nowadays, multiple Texinfo files are used mostly for large documents,
such as `The GNU Emacs Lisp Reference Manual', and for projects in
which several different people write different sections of a document
simultaneously.

  In addition, the Info formatting commands have been extended to work
with the @{b} @include@{ub} command so as to create a single large Info file
that is split into smaller files if necessary.  This means that you can
write menus and cross references without naming the different Texinfo
files.


@EndNode

@Node "Headings" "texinfo.guide/Headings"
@Next "Catching Mistakes"
@Prev "Include Files"
@Toc "Main"

Page Headings
*************

  Most printed manuals contain headings along the top of every page
except the title and copyright pages.  Some manuals also contain
footings.  (Headings and footings have no meaning to Info, which is not
paginated.)


 @{" Headings Introduced       " Link "Headings Introduced"}  Conventions for using page headings.
 @{" Heading Format            " Link "Heading Format"}  Standard page heading formats.
 @{" Heading Choice            " Link "Heading Choice"}  How to specify the type of page heading.
 @{" Custom Headings           " Link "Custom Headings"}  How to create your own headings and footings.


@EndNode

@Node "Headings Introduced" "texinfo.guide/Headings Introduced"
@Next "Heading Format"
@Prev "Headings"
@Toc "Headings"

Headings Introduced
===================

  Texinfo provides standard page heading formats for manuals that are
printed on one side of each sheet of paper and for manuals that are
printed on both sides of the paper.  Usually, you will use one or other
of these formats, but you can specify your own format, if you wish.

  In addition, you can specify whether chapters should begin on a new
page, or merely continue the same page as the previous chapter; and if
chapters begin on new pages, you can specify whether they must be
odd-numbered pages.

  By convention, a book is printed on both sides of each sheet of paper.
When you open a book, the right-hand page is odd-numbered, and chapters
begin on right-hand pages--a preceding left-hand page is left blank if
necessary.  Reports, however, are often printed on just one side of
paper, and chapters begin on a fresh page immediately following the end
of the preceding chapter.  In short or informal reports, chapters often
do not begin on a new page at all, but are separated from the preceding
text by a small amount of whitespace.

  The @{b} @setchapternewpage@{ub} command controls whether chapters begin on
new pages, and whether one of the standard heading formats is used.  In
addition, Texinfo has several heading and footing commands that you can
use to generate your own heading and footing formats.

  In Texinfo, headings and footings are single lines at the tops and
bottoms of pages; you cannot create multiline headings or footings.
Each header or footer line is divided into three parts: a left part, a
middle part, and a right part.  Any part, or a whole line, may be left
blank.  Text for the left part of a header or footer line is set
flushleft; text for the middle part is centered; and, text for the
right part is set flushright.


@EndNode

@Node "Heading Format" "texinfo.guide/Heading Format"
@Next "Heading Choice"
@Prev "Headings Introduced"
@Toc "Headings"

Standard Heading Formats
========================

  Texinfo provides two standard heading formats, one for manuals printed
on one side of each sheet of paper, and the other for manuals printed
on both sides of the paper.

  By default, nothing is specified for the footing of a Texinfo file,
so the footing remains blank.

  The standard format for single-sided printing consists of a header
line in which the left-hand part contains the name of the chapter, the
central part is blank, and the right-hand part contains the page number.

  A single-sided page looks like this:

        _______________________
       |                       |
       | chapter   page number |
       |                       |
       | Start of text ...     |
       | ...                   |
       |                       |

  The standard format for two-sided printing depends on whether the page
number is even or odd.  By convention, even-numbered pages are on the
left- and odd-numbered pages are on the right.  (TeX will adjust the
widths of the left- and right-hand margins.  Usually, widths are
correct, but during double-sided printing, it is wise to check that
pages will bind properly--sometimes a printer will produce output in
which the even-numbered pages have a larger right-hand margin than the
odd-numbered pages.)

  In the standard double-sided format, the left part of the left-hand
(even-numbered) page contains the page number, the central part is
blank, and the right part contains the title (specified by the @{b}
@settitle@{ub} command).  The left part of the right-hand (odd-numbered)
page contains the name of the chapter, the central part is blank, and
the right part contains the page number.

  Two pages, side by side as in an open book, look like this:

        _______________________     _______________________
       |                       |   |                       |
       | page number     title |   | chapter   page number |
       |                       |   |                       |
       | Start of text ...     |   | More  text ...        |
       | ...                   |   | ...                   |
       |                       |   |                       |

The chapter name is preceded by the word @{b}Chapter@{ub}, the chapter number
and a colon.  This makes it easier to keep track of where you are in
the manual.


@EndNode

@Node "Heading Choice" "texinfo.guide/Heading Choice"
@Next "Custom Headings"
@Prev "Heading Format"
@Toc "Headings"

Specifying the Type of Heading
==============================

  TeX does not begin to generate page headings for a standard Texinfo
file until it reaches the @{b} @end titlepage@{ub} command.  Thus, the title and
copyright pages are not numbered.  The @{b} @end titlepage@{ub} command causes
TeX to begin to generate page headings according to a standard format
specified by the @{b} @setchapternewpage@{ub} command that precedes the @{b}
@titlepage@{ub} section.

  There are four possibilities:

No @{b} @setchapternewpage@{ub} command
     Cause TeX to specify the single-sided heading format, with chapters
     on new pages. This is the same as @{b} @setchapternewpage on@{ub}.

@{b} @setchapternewpage on@{ub}
     Specify the single-sided heading format, with chapters on new
     pages.

@{b} @setchapternewpage off@{ub}
     Cause TeX to start a new chapter on the same page as the last page
     of the preceding chapter, after skipping some vertical whitespace.
     Also cause TeX to typeset for single-sided printing.  (You can
     override the headers format with the @{b} @headings double@{ub} command; see
     See @{"The @headings Command" Link "headings on off"}.)

@{b} @setchapternewpage odd@{ub}
     Specify the double-sided heading format, with chapters on new
     pages.

Texinfo lacks an @{b} @setchapternewpage even@{ub} command.


@EndNode

@Node "Custom Headings" "texinfo.guide/Custom Headings"
@Prev "Heading Choice"
@Toc "Headings"

How to Make Your Own Headings
=============================

  You can use the standard headings provided with Texinfo or specify
your own.

  Texinfo provides six commands for specifying headings and footings.
The @{b} @everyheading@{ub} command and @{b} @everyfooting@{ub} command generate page
headers and footers that are the same for both even- and odd-numbered
pages.  The @{b} @evenheading@{ub} command and @{b} @evenfooting@{ub} command generate
headers and footers for even-numbered (left-hand) pages; and the @{b}
@oddheading@{ub} command and @{b} @oddfooting@{ub} command generate headers and
footers for odd-numbered (right-hand) pages.

  Write custom heading specifications in the Texinfo file immediately
after the @{b} @end titlepage@{ub} command.  Enclose your specifications between
@{b} @iftex@{ub} and @{b} @end iftex@{ub} commands since the @{b}texinfo-format-buffer@{ub}
command may not recognize them.  Also, you must cancel the predefined
heading commands with the @{b} @headings off@{ub} command before defining your
own specifications.

  Here is how to tell TeX to place the chapter name at the left, the
page number in the center, and the date at the right of every header
for both even- and odd-numbered pages:

     @iftex
     @headings off
     @everyheading @thischapter @| @thispage @| @today{}
     @end iftex

You need to divide the left part from the central part and the central
part from the right had part by inserting @{b} @|@{ub} between parts.
Otherwise, the specification command will not be able to tell where the
text for one part ends and the next part begins.

  Each part can contain text or @-commands.  The text is printed as if
the part were within an ordinary paragraph in the body of the page.
The @-commands replace themselves with the page number, date, chapter
name, or whatever.

  Here are the six heading and footing commands:

@{b} @everyheading LEFT @| CENTER @| RIGHT@{ub}
@{b} @everyfooting LEFT @| CENTER @| RIGHT@{ub}
     The `every' commands specify the format for both even- and
     odd-numbered pages.  These commands are for documents that are
     printed on one side of each sheet of paper, or for documents in
     which you want symmetrical headers or footers.

@{b} @evenheading LEFT @| CENTER @| RIGHT@{ub}
@{b} @oddheading  LEFT @| CENTER @| RIGHT@{ub}
@{b} @evenfooting LEFT @| CENTER @| RIGHT@{ub}
@{b} @oddfooting  LEFT @| CENTER @| RIGHT@{ub}
     The `even' and `odd' commands specify the format for even-numbered
     pages and odd-numbered pages.  These commands are for books and
     manuals that are printed on both sides of each sheet of paper.

  Use the @{b} @this...@{ub} series of @-commands to provide the names of
chapters and sections and the page number.  You can use the @{b} @this...@{ub}
commands in the left, center, or right portions of headers and footers,
or anywhere else in a Texinfo file so long as they are between @{b} @iftex@{ub}
and @{b} @end iftex@{ub} commands.

  Here are the @{b} @this...@{ub} commands:

@{b} @thispage@{ub}
     Expands to the current page number.

@{b} @thischaptername@{ub}
     Expands to the name of the current chapter.

@{b} @thischapter@{ub}
     Expands to the number and name of the current chapter, in the
     format `Chapter 1: Title'.

@{b} @thistitle@{ub}
     Expands to the name of the document, as specified by the @{b}
     @settitle@{ub} command.

@{b} @thisfile@{ub}
     For @{b} @include@{ub} files only: expands to the name of the current @{b}
     @include@{ub} file.  If the current Texinfo source file is not an @{b}
     @include@{ub} file, this command has no effect.  This command does @{i}not@{ui}
     provide the name of the current Texinfo source file unless it is
     an @{b} @include@{ub} file.  (See @{"Include Files" Link "Include Files"}, for more information about
     @{b} @include@{ub} files.)

You can also use the @{b} @today{}@{ub} command, which expands to the current
date, in `1 Jan 1900' format.

  Other @-commands and text are printed in a header or footer just as
if they were in the body of a page.  It is useful to incorporate text,
particularly when you are writing drafts:

     @iftex
     @headings off
     @everyheading @emph{Draft!} @| @thispage @| @thischapter
     @everyfooting @| @| Version: 0.27: @today{}
     @end iftex

  Beware of overlong titles: they may overlap another part of the
header or footer and blot it out.


@EndNode

@Node "Catching Mistakes" "texinfo.guide/Catching Mistakes"
@Next "Refilling Paragraphs"
@Prev "Headings"
@Toc "Main"

Formatting Mistakes
*******************

  Besides mistakes in the content of your documentation, there are two
kinds of mistake you can make with Texinfo:  you can make mistakes with
@-commands, and you can make mistakes with the structure of the nodes
and chapters.

  Emacs has two tools for catching the @-command mistakes and two for
catching structuring mistakes.

  For finding problems with @-commands, you can run TeX or a region
formatting command on the region that has a problem; indeed, you can
run these commands on each region as you write it.

  For finding problems with the structure of nodes and chapters, you
can use @{b}C-c C-s@{ub} (@{b}texinfo-show-structure@{ub}) and the related @{b}occur@{ub} command
and you can use the @{b}M-x Info-validate@{ub} command.


 @{" makeinfo preferred        " Link "makeinfo preferred"}  @{b}makeinfo@{ub} finds errors.
 @{" Debugging with Info       " Link "Debugging with Info"}  How to catch errors with Info formatting.
 @{" Debugging with TeX        " Link "Debugging with TeX"}  How to catch errors with TeX formatting.
 @{" Using texinfo-show-structure " Link "Using texinfo-show-structure"}  How to use @{b}texinfo-show-structure@{ub}.
 @{" Using occur               " Link "Using occur"}  How to list all lines containing a pattern.
 @{" Running Info-Validate     " Link "Running Info-Validate"}  How to find badly referenced nodes.


@EndNode

@Node "makeinfo preferred" "texinfo.guide/makeinfo preferred"
@Next "Debugging with Info"
@Prev "Catching Mistakes"
@Toc "Catching Mistakes"

@{b}makeinfo@{ub} Find Errors
====================

  The @{b}makeinfo@{ub} program does an excellent job of catching errors and
reporting them--far better than @{b}texinfo-format-region@{ub} or
@{b}texinfo-format-buffer@{ub}.  In addition, the various functions for
automatically creating and updating node pointers and menus remove many
opportunities for human error.

  If you can, use the updating commands to create and insert pointers
and menus.  These prevent many errors.  Then use @{b}makeinfo@{ub} (or its
Texinfo mode manifestations, @{b}makeinfo-region@{ub} and @{b}makeinfo-buffer@{ub}) to
format your file and check for other errors.  This is the best way to
work with Texinfo.  But if you cannot use @{b}makeinfo@{ub}, or your problem is
very puzzling, then you may want to use the tools described in this
appendix.


@EndNode

@Node "Debugging with Info" "texinfo.guide/Debugging with Info"
@Next "Debugging with TeX"
@Prev "makeinfo preferred"
@Toc "Catching Mistakes"

Catching Errors with Info Formatting
====================================

  After you have written part of a Texinfo file, you can use the
@{b}texinfo-format-region@{ub} or the @{b}makeinfo-region@{ub} command to see whether
the region formats properly.

  Most likely, however, you are reading this section because for some
reason you cannot use the @{b}makeinfo-region@{ub} command; therefore, the rest
of this section presumes that you are using @{b}texinfo-format-region@{ub}.

  If you have made a mistake with an @-command, @{b}texinfo-format-region@{ub}
will stop processing at or after the error and display an error
message.  To see where in the buffer the error occurred, switch to the
@{b}*Info Region*@{ub} buffer; the cursor will be in a position that is
after the location of the error.  Also, the text will not be formatted
after the place where the error occurred (or more precisely, where it
was detected).

  For example, if you accidentally end a menu with the command @{b} @end
menus@{ub} with an `s' on the end, instead of with @{b} @end menu@{ub}, you will see
an error message that says:

     @end menus is not handled by texinfo

The cursor will stop at the point in the buffer where the error occurs,
or not long after it.  The buffer will look like this:

     ---------- Buffer: *Info Region* ----------
     * Menu:
     
     * Using texinfo-show-structure::  How to use
                                       `texinfo-show-structure'
                                       to catch mistakes.
     * Running Info-Validate::         How to check for
                                       unreferenced nodes.
     @end menus
     -!-
     ---------- Buffer: *Info Region* ----------

  The @{b}texinfo-format-region@{ub} command sometimes provides slightly odd
error messages.  For example, the following cross reference fails to
format:

     (@xref{Catching Mistakes, for more info.)

In this case, @{b}texinfo-format-region@{ub} detects the missing closing brace
but displays a message that says @{b}Unbalanced parentheses@{ub} rather than
@{b}Unbalanced braces@{ub}.  This is because the formatting command looks
for mismatches between braces as if they were parentheses.

  Sometimes @{b}texinfo-format-region@{ub} fails to detect mistakes.  For
example, in the following, the closing brace is swapped with the
closing parenthesis:

     (@xref{Catching Mistakes), for more info.}

Formatting produces:
     (*Note for more info.: Catching Mistakes)

  The only way for you to detect this error is to realize that the
reference should have looked like this:

     (*Note Catching Mistakes::, for more info.)

  Incidentally, if you are reading this node in Info and type @{b}f RET@{ub}
(@{b}Info-follow-reference@{ub}), you will generate an error message that
says:

     No such node: "Catching Mistakes) The only way ...

This is because Info perceives the example of the error as the first
cross reference in this node and if you type a RET immediately after
typing the Info @{b}f@{ub} command, Info will attempt to go to the referenced
node.  If you type @{b}f catch TAB RET@{ub}, Info will complete the node name of
the correctly written example and take you to the `Catching Mistakes'
node.  (If you try this, you can return from the `Catching Mistakes'
node by typing @{b}l@{ub} (@{b}Info-last@{ub}).)


@EndNode

@Node "Debugging with TeX" "texinfo.guide/Debugging with TeX"
@Next "Using texinfo-show-structure"
@Prev "Debugging with Info"
@Toc "Catching Mistakes"

Catching Errors with TeX Formatting
===================================

  You can also catch mistakes when you format a file with TeX.

  Usually, you will want to do this after you have run
@{b}texinfo-format-buffer@{ub} (or, better, @{b}makeinfo-buffer@{ub}) on the same
file, because @{b}texinfo-format-buffer@{ub} sometimes displays error messages
that make more sense than TeX.  (See @{"Debugging with Info" Link "Debugging with Info"}, for more
information.)

  For example, TeX was run on a Texinfo file, part of which is shown
here:

     ---------- Buffer: texinfo.texi ----------
     name of the Texinfo file as an extension.  The
     @samp{??} are `wildcards' that cause the shell to
     substitute all the raw index files.  (@xref{sorting
     indices, for more information about sorting
     indices.)@refill
     ---------- Buffer: texinfo.texi ----------

(The cross reference lacks a closing brace.) TeX produced the following
output, after which it stopped:

     ---------- Buffer: *tex-shell* ----------
     Runaway argument?
     {sorting indices, for more information about sorting
     indices.) @refill @ETC.
     ! Paragraph ended before @xref was complete.
     <to be read again>
                        @par
     l.27
     
     ?
     ---------- Buffer: *tex-shell* ----------

  In this case, TeX produced an accurate and understandable error
message:

     Paragraph ended before @xref was complete.

@{b} @par@{ub} is an internal TeX command of no relevance to Texinfo.  @{b}l.27@{ub}
means that TeX detected the problem on line 27 of the Texinfo file.
The @{b}?@{ub} is the prompt TeX uses in this circumstance.

  Unfortunately, TeX is not always so helpful, and sometimes you must
truly be a Sherlock Holmes to discover what went wrong.

  In any case, if you run into a problem like this, you can do one of
three things.

  1. You can tell TeX to continue running and ignore just this error by
     typing RET at the @{b}?@{ub} prompt.

  2. You can tell TeX to continue running and to ignore all errors as
     best it can by typing @{b}r RET@{ub} at the @{b}?@{ub} prompt.

     This is often the best thing to do.  However, beware: the one error
     may produce a cascade of additional error messages as its
     consequences are felt through the rest of the file.  (To stop TeX
     when it is producing such an avalanche of error messages, type @{b}C-d@{ub}
     (or @{b}C-c C-d@{ub}, if you are running a shell inside Emacs.))

  3. You can tell TeX to stop this run by typing @{b}x RET@{ub} at the @{b}?@{ub} prompt.

  Please note that if you are running TeX inside Emacs, you need to
switch to the shell buffer and line at which TeX offers the @{b}?@{ub} prompt.

  Sometimes TeX will format a file without producing error messages even
though there is a problem.  This usually occurs if a command is not
ended but TeX is able to continue processing anyhow.  For example, if
you fail to end an itemized list with the @{b} @end itemize@{ub} command, TeX
will write a @{i}dvi@{ui} file that you can print out.  The only error message
that TeX will give you is the somewhat mysterious comment that

     (@end occurred inside a group at level 1)

However, if you print the @{i}dvi@{ui} file, you will find that the text of the
file that follows the itemized list is entirely indented as if it were
part of the last item in the itemized list.  The error message is the
way TeX says that it expected to find an @{b} @end@{ub} command somewhere in the
file; but that it could not determine where it was needed.

  Another source of notoriously hard-to-find errors is a missing @{b} @end
group@{ub} command.  If you ever are stumped by incomprehensible errors,
look for a missing @{b} @end group@{ub} command first.

  If the Texinfo file lacks header lines, TeX may stop in the beginning
of its run and display output that looks like the following.  The @{b}*@{ub}
indicates that TeX is waiting for input.

     This is TeX, Version 2.0 for Berkeley UNIX
     (preloaded format=plain-cm 87.10.25)
     (test.texinfo [1])
     *

In this case, simply type @{b}\end RET@{ub} after the asterisk.  Then write the
header lines in the Texinfo file and run the TeX command again. (Note
the use of the backslash, @{b}\ @{ub}.  TeX uses @{b}\ @{ub} instead of @{b} @@{ub}; and in this
circumstance, you are working directly with TeX, not with Texinfo.)


@EndNode

@Node "Using texinfo-show-structure" "texinfo.guide/Using texinfo-show-structure"
@Next "Using occur"
@Prev "Debugging with TeX"
@Toc "Catching Mistakes"

Using @{b}texinfo-show-structure@{ub}
============================

  It is not always easy to keep track of the nodes, chapters, sections,
and subsections of a Texinfo file.  This is especially true if you are
revising or adding to a Texinfo file that someone else has written.

  In GNU Emacs, in Texinfo mode, the @{b}texinfo-show-structure@{ub} command
lists all the lines that begin with the @-commands that specify the
structure: @{b} @chapter@{ub}, @{b} @section@{ub}, @{b} @appendix@{ub}, and so on.  With an
argument (@{b}C-u@{ub} as prefix argument, if interactive), the command also
shows the @{b} @node@{ub} lines.  The @{b}texinfo-show-structure@{ub} command is bound to
@{b}C-c C-s@{ub} in Texinfo mode, by default.

  The lines are displayed in a buffer called the @{b}*Occur*@{ub} buffer,
indented by hierarchical level.  For example, here is a part of what was
produced by running @{b}texinfo-show-structure@{ub} on this manual:

      Lines matching "^@\\(chapter \\|sect\\|subs\\|subh\\|
      unnum\\|major\\|chapheading \\|heading \\|appendix\\)"
      in buffer texinfo.texi.
      ...
      4177:@chapter Nodes
      4198:    @heading Two Paths
      4231:    @section Node and Menu Illustration
      4337:    @section The @code{@@node} Command
      4393:        @subheading Choosing Node and Pointer Names
      4417:        @subsection How to Write an @code{@@node} Line
      4469:        @subsection @code{@@node} Line Tips
      ...

  This says that lines 4337, 4393, and 4417 of @{b}texinfo.texi@{ub} begin with
the @{b} @section@{ub}, @{b} @subheading@{ub}, and @{b} @subsection@{ub} commands respectively.
If you move your cursor into the @{b}*Occur*@{ub} window, you can position the
cursor over one of the lines and use the @{b}C-c C-c@{ub} command
(@{b}occur-mode-goto-occurrence@{ub}), to jump to the corresponding spot in
the Texinfo file.  See @{"Using Occur" Link "emacs/Other Repeating Search"}, for more information about
@{b}occur-mode-goto-occurrence@{ub}.

  The first line in the @{b}*Occur*@{ub} window describes the @{i}regular expression@{ui}
specified by TEXINFO-HEADING-PATTERN.  This regular expression is the
pattern that @{b}texinfo-show-structure@{ub} looks for.  See
@{"Using Regular Expressions" Link "emacs/Regexps"}, for more information.

  When you invoke the @{b}texinfo-show-structure@{ub} command, Emacs will
display the structure of the whole buffer.  If you want to see the
structure of just a part of the buffer, of one chapter, for example,
use the @{b}C-x n n@{ub} (@{b}narrow-to-region@{ub}) command to mark the region.  (See
@{"Narrowing" Link "emacs/Narrowing"}.)  This is how the example used above was generated.  (To see
the whole buffer again, use @{b}C-x n w@{ub} (@{b}widen@{ub}).)

  If you call @{b}texinfo-show-structure@{ub} with a prefix argument by typing
@{b}C-u C-c C-s@{ub}, it will list lines beginning with @{b} @node@{ub} as well as
the lines beginning with the @-sign commands for @{b} @chapter@{ub}, @{b} @section@{ub},
and the like.

  You can remind yourself of the structure of a Texinfo file by looking
at the list in the @{b}*Occur*@{ub} window; and if you have mis-named a node or
left out a section, you can correct the mistake.


@EndNode

@Node "Using occur" "texinfo.guide/Using occur"
@Next "Running Info-Validate"
@Prev "Using texinfo-show-structure"
@Toc "Catching Mistakes"

Using @{b}occur@{ub}
===========

  Sometimes the @{b}texinfo-show-structure@{ub} command produces too much
information.  Perhaps you want to remind yourself of the overall
structure of a Texinfo file, and are overwhelmed by the detailed list
produced by @{b}texinfo-show-structure@{ub}.  In this case, you can use the @{b}occur@{ub}
command directly.  To do this, type

     @{b}M-x occur@{ub}

and then, when prompted, type a @{i}regexp@{ui}, a regular expression for the
pattern you want to match.  (See @{"Regular Expressions" Link "emacs/Regexps"}.)  The @{b}occur@{ub}
command works from the current location of the cursor in the buffer to
the end of the buffer.  If you want to run @{b}occur@{ub} on the whole buffer,
place the cursor at the beginning of the buffer.

  For example, to see all the lines that contain the word @{b} @chapter@{ub} in
them, just type @{b} @chapter@{ub}.  This will produce a list of the chapters.
It will also list all the sentences with @{b} @chapter@{ub} in the middle of the
line.

  If you want to see only those lines that start with the word @{b}
@chapter@{ub}, type @{b} ^@chapter@{ub} when prompted by @{b}occur@{ub}.  If you want to
see all the lines that end with a word or phrase, end the last word
with a @{b}$@{ub}; for example, @{b}catching mistakes$@{ub}.  This can be helpful when
you want to see all the nodes that are part of the same chapter or
section and therefore have the same `Up' pointer.

  See @{"Using Occur" Link "emacs/Other Repeating Search"}, for more information.


@EndNode

@Node "Running Info-Validate" "texinfo.guide/Running Info-Validate"
@Prev "Using occur"
@Toc "Catching Mistakes"

Finding Badly Referenced Nodes
==============================

  You can use the @{b}Info-validate@{ub} command to check whether any of the
`Next', `Previous', `Up' or other node pointers fail to point to a
node.  This command checks that every node pointer points to an
existing node.  The @{b}Info-validate@{ub} command works only on Info files, not
on Texinfo files.

  The @{b}makeinfo@{ub} program validates pointers automatically, so you do not
need to use the @{b}Info-validate@{ub} command if you are using @{b}makeinfo@{ub}.  You
only may need to use @{b}Info-validate@{ub} if you are unable to run @{b}makeinfo@{ub}
and instead must create an Info file using @{b}texinfo-format-region@{ub} or
@{b}texinfo-format-buffer@{ub}, or if you write an Info file from scratch.


 @{" Using Info-validate       " Link "Using Info-validate"}  How to run @{b}Info-validate@{ub}.
 @{" Unsplit                   " Link "Unsplit"}  How to create an unsplit file.
 @{" Tagifying                 " Link "Tagifying"}  How to tagify a file.
 @{" Splitting                 " Link "Splitting"}  How to split a file manually.


@EndNode

@Node "Using Info-validate" "texinfo.guide/Using Info-validate"
@Next "Unsplit"
@Prev "Running Info-Validate"
@Toc "Running Info-Validate"

Running @{b}Info-validate@{ub}
---------------------

  To use @{b}Info-validate@{ub}, visit the Info file you wish to check and type:

     M-x Info-validate

(Note that the @{b}Info-validate@{ub} command requires an upper case `I'.  You
may also need to create a tag table before running @{b}Info-validate@{ub}.  See
@{"Tagifying" Link "Tagifying"}.)

  If your file is valid, you will receive a message that says "File
appears valid".  However, if you have a pointer that does not point to
a node, error messages will be displayed in a buffer called @{b}*problems in
info file*@{ub}.

  For example, @{b}Info-validate@{ub} was run on a test file that contained only
the first node of this manual.  One of the messages said:

     In node "Overview", invalid Next: Texinfo Mode

This meant that the node called @{b}Overview@{ub} had a `Next' pointer that did
not point to anything (which was true in this case, since the test file
had only one node in it).

  Now suppose we add a node named @{b}Texinfo Mode@{ub} to our test case but we
do not specify a `Previous' for this node.  Then we will get the
following error message:

     In node "Texinfo Mode", should have Previous: Overview

This is because every `Next' pointer should be matched by a `Previous'
(in the node where the `Next' points) which points back.

  @{b}Info-validate@{ub} also checks that all menu entries and cross references
point to actual nodes.

  Note that @{b}Info-validate@{ub} requires a tag table and does not work with
files that have been split.  (The @{b}texinfo-format-buffer@{ub} command
automatically splits large files.)  In order to use @{b}Info-validate@{ub} on a
large file, you must run @{b}texinfo-format-buffer@{ub} with an argument so that
it does not split the Info file; and you must create a tag table for
the unsplit file.


@EndNode

@Node "Unsplit" "texinfo.guide/Unsplit"
@Next "Tagifying"
@Prev "Using Info-validate"
@Toc "Running Info-Validate"

Creating an Unsplit File
------------------------

  You can run @{b}Info-validate@{ub} only on a single Info file that has a tag
table.  The command will not work on the indirect subfiles that are
generated when a master file is split.  If you have a large file
(longer than 70,000 bytes or so), you need to run the
@{b}texinfo-format-buffer@{ub} or @{b}makeinfo-buffer@{ub} command in such a way that
it does not create indirect subfiles.  You will also need to create a
tag table for the Info file.  After you have done this, you can run
@{b}Info-validate@{ub} and look for badly referenced nodes.

  The first step is to create an unsplit Info file.  To prevent
@{b}texinfo-format-buffer@{ub} from splitting a Texinfo file into smaller
Info files, give a prefix to the @{b}M-x texinfo-format-buffer@{ub} command:

     C-u M-x texinfo-format-buffer

or else

     C-u C-c C-e C-b

When you do this, Texinfo will not split the file and will not create a
tag table for it.


@EndNode

@Node "Tagifying" "texinfo.guide/Tagifying"
@Next "Splitting"
@Prev "Unsplit"
@Toc "Running Info-Validate"

Tagifying a File
----------------

  After creating an unsplit Info file, you must create a tag table for
it.  Visit the Info file you wish to tagify and type:

     M-x Info-tagify

(Note the upper case I in @{b}Info-tagify@{ub}.)  This creates an Info file with
a tag table that you can validate.

  The third step is to validate the Info file:

     M-x Info-validate

(Note the upper case I in @{b}Info-validate@{ub}.) In brief, the steps are:

     C-u M-x texinfo-format-buffer
     M-x Info-tagify
     M-x Info-validate

  After you have validated the node structure, you can rerun
@{b}texinfo-format-buffer@{ub} in the normal way so it will construct a tag
table and split the file automatically, or you can make the tag table
and split the file manually.


@EndNode

@Node "Splitting" "texinfo.guide/Splitting"
@Prev "Tagifying"
@Toc "Running Info-Validate"

Splitting a File Manually
-------------------------

  You should split a large file or else let the @{b}texinfo-format-buffer@{ub}
or @{b}makeinfo-buffer@{ub} command do it for you automatically.  (Generally you
will let one of the formatting commands do this job for you.  See
@{"Create an Info File" Link "Create an Info File"}.)

  The split-off files are called the indirect subfiles.

  Info files are split to save memory.  With smaller files, Emacs does
not have make such a large buffer to hold the information.

  If an Info file has more than 30 nodes, you should also make a tag
table for it. See @{"Using Info-validate" Link "Using Info-validate"}, for information about creating a
tag table.  (Again, tag tables are usually created automatically by the
formatting command; you only need to create a tag table yourself if you
are doing the job manually.  Most likely, you will do this for a large,
unsplit file on which you have run @{b}Info-validate@{ub}.)

  Visit the Info file you wish to tagify and split and type the two
commands:

     M-x Info-tagify
     M-x Info-split

(Note that the @{b}I@{ub} in @{b}Info@{ub} is upper case.)

  When you use the @{b}Info-split@{ub} command, the buffer is modified into a
(small) Info file which lists the indirect subfiles.  This file should
be saved in place of the original visited file.  The indirect subfiles
are written in the same directory the original file is in, with names
generated by appending @{b}-@{ub} and a number to the original file name.

  The primary file still functions as an Info file, but it contains just
the tag table and a directory of subfiles.


@EndNode

@Node "Refilling Paragraphs" "texinfo.guide/Refilling Paragraphs"
@Next "Command Syntax"
@Prev "Catching Mistakes"
@Toc "Main"

Refilling Paragraphs
********************

  The @{b} @refill@{ub} command refills and, optionally, indents the first line
of a paragraph.(1)@{"Refilling Paragraphs-Footnotes" Link "Refilling Paragraphs-Footnotes"} The @{b} @refill@{ub} command
is no longer important, but we describe it here because you once needed
it.  You will see it in many old Texinfo files.

  Without refilling, paragraphs containing long @-constructs may look
bad after formatting because the formatter removes @-commands and
shortens some lines more than others.  In the past, neither the
@{b}texinfo-format-region@{ub} command nor the @{b}texinfo-format-buffer@{ub} command
refilled paragraphs automatically.  The @{b} @refill@{ub} command had to be
written at the end of every paragraph to cause these formatters to fill
them.  (Both TeX and @{b}makeinfo@{ub} have always refilled paragraphs
automatically.)  Now, all the Info formatters automatically fill and
indent those paragraphs that need to be filled and indented.

  The @{b} @refill@{ub} command causes @{b}texinfo-format-region@{ub} and
@{b}texinfo-format-buffer@{ub} to refill a paragraph in the Info file @{i}after@{ui}
all the other processing has been done.  For this reason, you can not
use @{b} @refill@{ub} with a paragraph containing either @{b} @*@{ub} or @{b} @w{ ... }@{ub} since
the refilling action will override those two commands.

  The @{b}texinfo-format-region@{ub} and @{b}texinfo-format-buffer@{ub} commands now
automatically append @{b} @refill@{ub} to the end of each paragraph that should
be filled.  They do not append @{b} @refill@{ub} to the ends of paragraphs that
contain @{b} @*@{ub} or @{b} @w{ ...}@{ub} and therefore do not refill or indent them.


@EndNode

@Node "Refilling Paragraphs-Footnotes" "texinfo.guide/Refilling Paragraphs-Footnotes"
@Toc "Refilling Paragraphs"

  (1)  Perhaps the command should have been called the @{b}
@refillandindent@{ub} command, but @{b} @refill@{ub} is shorter and the name was
chosen before indenting was possible.


@EndNode

@Node "Command Syntax" "texinfo.guide/Command Syntax"
@Next "Obtaining TeX"
@Prev "Refilling Paragraphs"
@Toc "Main"

@-Command Syntax
****************

  The character @{b} @@{ub} is used to start special Texinfo commands.  (It has
the same meaning that @{b}\ @{ub} has in PlainTeX.)  Texinfo has four types of
@-command:

1. Non-alphabetic commands.
     These commands consist of an @ followed by a punctuation mark or
     other character that is not part of the alphabet.  Non-alphabetic
     commands are almost always part of the text within a paragraph,
     and never take any argument.  The two characters (@ and the other
     one) are complete in themselves; none is followed by braces.  The
     non-alphabetic commands are: @{b} @.@{ub}, @{b} @:@{ub}, @{b} @*@{ub}, @{b} @@@{ub}, @{b} @{@{ub}, and @{b} @}@{ub}.

2. Alphabetic commands that do not require arguments.
     These commands start with @ followed by a word followed by left-
     and right-hand braces.  These commands insert special symbols in
     the document; they do not require arguments.  For example, @{b}
     @dots{}@{ub} => @{b}...@{ub}, @{b} @equiv{}@{ub} => @{b}==@{ub}, @{b} @TeX{}@{ub} => `TeX', and @{b}
     @bullet{}@{ub} => @{b}@{b}*@{ub}@{ub}.

3. Alphabetic commands that require arguments within braces.
     These commands start with @ followed by a letter or a word,
     followed by an argument within braces.  For example, the command @{b}
     @dfn@{ub} indicates the introductory or defining use of a term; it is
     used as follows: @{b}In Texinfo, @@-commands are @dfn{mark-up}
     commands.@{ub}

4. Alphabetic commands that occupy an entire line.
     These commands occupy an entire line.  The line starts with @,
     followed by the name of the command (a word); for example, @{b} @center@{ub}
     or @{b} @cindex@{ub}.  If no argument is needed, the word is followed by
     the end of the line.  If there is an argument, it is separated from
     the command name by a space.  Braces are not used.

  Thus, the alphabetic commands fall into classes that have different
argument syntaxes.  You cannot tell to which class a command belongs by
the appearance of its name, but you can tell by the command's meaning:
if the command stands for a glyph, it is in class 2 and does not
require an argument; if it makes sense to use the command together with
other text as part of a paragraph, the command is in class 3 and must
be followed by an argument in braces; otherwise, it is in class 4 and
uses the rest of the line as its argument.

  The purpose of having a different syntax for commands of classes 3 and
4 is to make Texinfo files easier to read, and also to help the GNU
Emacs paragraph and filling commands work properly.  There is only one
exception to this rule: the command @{b} @refill@{ub}, which is always used at
the end of a paragraph immediately following the final period or other
punctuation character.  @{b} @refill@{ub} takes no argument and does @{i}not@{ui} require
braces.  @{b} @refill@{ub} never confuses the Emacs paragraph commands because
it cannot appear at the beginning of a line.


@EndNode

@Node "Obtaining TeX" "texinfo.guide/Obtaining TeX"
@Next "New Features"
@Prev "Command Syntax"
@Toc "Main"

How to Obtain TeX
*****************

  TeX is freely redistributable.  You can obtain TeX for Unix systems
via anonymous ftp or on tape or CD-ROM.  The core material consists of
Karl Berry's @{b}web2c@{ub} TeX package.

  On-line retrieval instructions are in @{b}ftp.cs.umb.edu@{ub} @{i}[158.121.104.33]@{ui}
in @{b}pub/tex/unixtex.ftp@{ub}

  The Free Software Foundation provides a core distribution on its
Source Code CD-ROM; the University of Washington maintains and supports
a tape distribution.

  For the FSF Source Code CD-ROM, please contact:

     Free Software Foundation, Inc.
     59 Temple Place Suite 330
     Boston, MA   02111-1307
     USA
     
     Telephone: @{i}+@{ui}1-617-542-5942
     Fax: (including Japan) @{i}+@{ui}1-617-542-2652
     Free Dial Fax (in Japan):
           0031-13-2473 (KDD)
           0066-3382-0158 (IDC)
     Electronic mail: @{b}gnu@prep.ai.mit.edu@{ub}

  To order a full distribution from the University of Washington on
either a 1/4inch 4-track QIC-24 cartridge or a 4mm DAT cartridge, send
$210.00 to:

     Pierre A. MacKay
     Department of Classics
     DH-10, Denny Hall 218
     University of Washington
     Seattle, WA   98195
     USA
     
     Telephone: @{i}+@{ui}1-206-543-2268
     Electronic mail: @{b}mackay@cs.washington.edu@{ub}

  Please make checks payable to the University of Washington.  Checks
must be in U.S. dollars, drawn on a U.S. bank.

  Prepaid orders are the only orders that can now be handled.  Overseas
sites: please add to the base cost, if desired, $20.00 for shipment via
air parcel post, or $30.00 for shipment via courier.

  Please check with the above for current prices and formats.


@EndNode

@Node "New Features" "texinfo.guide/New Features"
@Next "Command and Variable Index"
@Prev "Obtaining TeX"
@Toc "Main"

Second Edition Features
***********************

  The second edition of the Texinfo manual describes more than 20 new
Texinfo mode commands and more than 50 previously undocumented Texinfo
@-commands.  This edition is more than twice the length of the first
edition.

  Here is a brief description of the new commands.


 @{" New Texinfo Mode Commands " Link "New Texinfo Mode Commands"}  The updating commands are especially useful.
 @{" New Commands              " Link "New Commands"}  Many newly described @-commands.


@EndNode

@Node "New Texinfo Mode Commands" "texinfo.guide/New Texinfo Mode Commands"
@Next "New Commands"
@Prev "New Features"
@Toc "New Features"

New Texinfo Mode Commands
=========================

  Texinfo mode provides commands and features especially designed for
working with Texinfo files.  More than 20 new commands have been added,
including commands for automatically creating and updating both nodes
and menus.  This is a tedious task when done by hand.

  The keybindings are intended to be somewhat mnemonic.

Update all nodes and menus
--------------------------

  The @{b}texinfo-master-menu@{ub} command is the primary command:

@{b}C-c C-u m@{ub}
@{b}M-x texinfo-master-menu@{ub}
     Create or update a master menu.  With @{b}C-u@{ub} as a prefix argument,
     first create or update all nodes and regular menus.

Update Pointers
---------------

Create or update `Next', `Previous', and `Up' node pointers.

See @{"Updating Nodes and Menus" Link "Updating Nodes and Menus"}.

@{b}C-c C-u C-n@{ub}
@{b}M-x texinfo-update-node@{ub}
     Update a node.

@{b}C-c C-u C-e@{ub}
@{b}M-x texinfo-every-node-update@{ub}
     Update every node in the buffer.

Update Menus
------------

Create or update menus.

See @{"Updating Nodes and Menus" Link "Updating Nodes and Menus"}.

@{b}C-c C-u C-m@{ub}
@{b}M-x texinfo-make-menu@{ub}
     Make or update a menu.

@{b}C-c C-u C-a@{ub}
@{b}M-x texinfo-all-menus-update@{ub}
     Make or update all the menus in a buffer.  With @{b}C-u@{ub} as a prefix
     argument, first update all the nodes.

Insert Title as Description
---------------------------

Insert a node's chapter or section title in the space for the
description in a menu entry line; position point so you can edit the
insert.  (This command works somewhat differently than the other
insertion commands, which insert only a predefined string.)

See @{"Inserting Frequently Used Commands" Link "Inserting"}.

@{b}C-c C-c C-d@{ub}
     Insert title.

Format for Info
---------------

Provide keybindings both for the Info formatting commands that are
written in Emacs Lisp and for @{b}makeinfo@{ub} that is written in C.

See @{"Info Formatting" Link "Info Formatting"}.

Use the Emacs lisp @{b}texinfo-format...@{ub} commands:

@{b}C-c C-e C-r@{ub}
     Format the region.

@{b}C-c C-e C-b@{ub}
     Format the buffer.

Use @{b}makeinfo@{ub}:

@{b}C-c C-m C-r@{ub}
     Format the region.

@{b}C-c C-m C-b@{ub}
     Format the buffer.

@{b}C-c C-m C-l@{ub}
     Recenter the @{b}makeinfo@{ub} output buffer.

@{b}C-c C-m C-k@{ub}
     Kill the @{b}makeinfo@{ub} formatting job.

Typeset and Print
-----------------

Typeset and print Texinfo documents from within Emacs.

See @{"Printing" Link "Printing"}.

@{b}C-c C-t C-b@{ub}
     Run @{b}texi2dvi@{ub} on the buffer.

@{b}C-c C-t C-r@{ub}
     Run TeX on the region.

@{b}C-c C-t C-i@{ub}
     Run @{b}texindex@{ub}.

@{b}C-c C-t C-p@{ub}
     Print the @{i}dvi@{ui} file.

@{b}C-c C-t C-q@{ub}
     Show the print queue.

@{b}C-c C-t C-d@{ub}
     Delete a job from the print queue.

@{b}C-c C-t C-k@{ub}
     Kill the current TeX formatting job.

@{b}C-c C-t C-x@{ub}
     Quit a currently stopped TeX formatting job.

@{b}C-c C-t C-l@{ub}
     Recenter the output buffer.

Other Updating Commands
-----------------------

The "other updating commands" do not have standard keybindings because
they are used less frequently.

See @{"Other Updating Commands" Link "Other Updating Commands"}.

@{b}M-x texinfo-insert-node-lines@{ub}
     Insert missing @{b} @node@{ub} lines using section titles as node names.

@{b}M-x texinfo-multiple-files-update@{ub}
     Update a multi-file document.  With a numeric prefix, such as @{b}C-u
     8@{ub}, update  @{i}every@{ui} pointer and menu in @{i}all@{ui} the files and then
     insert a master menu.

@{b}M-x texinfo-indent-menu-description@{ub}
     Indent descriptions in menus.

@{b}M-x texinfo-sequential-node-update@{ub}
     Insert node pointers in strict sequence.


@EndNode

@Node "New Commands" "texinfo.guide/New Commands"
@Prev "New Texinfo Mode Commands"
@Toc "New Features"

New Texinfo @-Commands
======================

  The second edition of the Texinfo manual describes more than 50
commands that were not described in the first edition.  A third or so
of these commands existed in Texinfo but were not documented in the
manual; the others are new.  Here is a listing, with brief descriptions
of them:

Indexing
--------

Create your own index, and merge indices.

See @{"Indices" Link "Indices"}.

@{b} @defindex INDEX-NAME@{ub}
     Define a new index and its indexing command.  See also the @{b}
     @defcodeindex@{ub} command.

@{b} @synindex FROM-INDEX INTO-INDEX@{ub}
     Merge the FROM-INDEX index into the INTO-INDEX index.  See also
     the @{b} @syncodeindex@{ub} command.

Definitions
-----------

Describe functions, variables, macros, commands, user options, special
forms, and other such artifacts in a uniform format.

See @{"Definition Commands" Link "Definition Commands"}.

@{b} @deffn CATEGORY NAME ARGUMENTS...@{ub}
     Format a description for functions, interactive commands, and
     similar entities.

@{b} @defvr, @defop, ...@{ub}
     15 other related commands.

Glyphs
------

Indicate the results of evaluation, expansion, printed output, an error
message, equivalence of expressions, and the location of point.

See @{"Glyphs" Link "Glyphs"}.

@{b} @equiv{}@{ub}
@{b}==@{ub}
     Equivalence:

@{b} @error{}@{ub}
@{b}error-->@{ub}
     Error message

@{b} @expansion{}@{ub}
@{b}==>@{ub}
     Macro expansion

@{b} @point{}@{ub}
@{b}-!-@{ub}
     Position of point

@{b} @print{}@{ub}
@{b}-|@{ub}
     Printed output

@{b} @result{}@{ub}
@{b}=>@{ub}
     Result of an expression

Page Headings
-------------

Customize page headings.

See @{"Headings" Link "Headings"}.

@{b} @headings ON-OFF-SINGLE-DOUBLE@{ub}
     Headings on or off, single, or double-sided.

@{b} @evenfooting [LEFT] @| [CENTER] @| [RIGHT]@{ub}
     Footings for even-numbered (left-hand) pages.

@{b} @evenheading, @everyheading, @oddheading, ...@{ub}
     Five other related commands.

@{b} @thischapter@{ub}
     Insert name of chapter and chapter number.

@{b} @thischaptername, @thisfile, @thistitle, @thispage@{ub}
     Related commands.

Formatting
----------

Format blocks of text.

See @{"Quotations and Examples" Link "Quotations and Examples"}, and
See @{"Making Lists and Tables" Link "Lists and Tables"}.

@{b} @cartouche@{ub}
     Draw rounded box surrounding text (not in Info).

@{b} @enumerate OPTIONAL-ARG@{ub}
     Enumerate a list with letters or numbers.

@{b} @exdent LINE-OF-TEXT@{ub}
     Remove indentation.

@{b} @flushleft@{ub}
     Left justify.

@{b} @flushright@{ub}
     Right justify.

@{b} @format@{ub}
     Do not narrow nor change font.

@{b} @ftable FORMATTING-COMMAND@{ub}
@{b} @vtable FORMATTING-COMMAND@{ub}
     Two-column table with indexing.

@{b} @lisp@{ub}
     For an example of Lisp code.

@{b} @smallexample@{ub}
@{b} @smalllisp@{ub}
     Like @table and @lisp but for @smallbook.

Conditionals
------------

Conditionally format text.

See @{"@set @clear @value" Link "set clear value"}.

@{b} @set FLAG [STRING]@{ub}
     Set a flag.  Optionally, set value of FLAG to STRING.

@{b} @clear FLAG@{ub}
     Clear a flag.

@{b} @value{FLAG}@{ub}
     Replace with value to which FLAG is set.

@{b} @ifset FLAG@{ub}
     Format, if FLAG is set.

@{b} @ifclear FLAG@{ub}
     Ignore, if FLAG is set.

@heading series for Titles
--------------------------

Produce unnumbered headings that do not appear in a table of contents.

See @{"Structuring" Link "Structuring"}.

@{b} @heading TITLE@{ub}
     Unnumbered section-like heading not listed in the table of
     contents of a printed manual.

@{b} @chapheading, @majorheading, @subheading, @subsubheading@{ub}
     Related commands.

Font commands
-------------

See @{"Smallcaps" Link "Smallcaps"}, and
See @{"Fonts" Link "Fonts"}.

@{b} @r{TEXT}@{ub}
     Print in roman font.

@{b} @sc{TEXT}@{ub}
     Print in @{i}small caps@{ui} font.

Miscellaneous
-------------

See See @{"@title @subtitle and @author Commands" Link "title subtitle author"},
see See @{"Customized Highlighting" Link "Customized Highlighting"},
see See @{"Overfull hboxes" Link "Overfull hboxes"},
see See @{"Footnotes" Link "Footnotes"},
see See @{"Format a Dimension" Link "dmn"},
see See @{"@raisesections and @lowersections" Link "Raise-lower sections"},
see See @{"@math: Inserting Mathematical Expressions" Link "math"}.
see See @{"Inserting a Minus Sign" Link "minus"},
see See @{"Paragraph Indenting" Link "paragraphindent"},
see See @{"Cross Reference Commands" Link "Cross Reference Commands"},
see See @{"@title @subtitle and @author" Link "title subtitle author"}, and
see See @{"How to Make Your Own Headings" Link "Custom Headings"}.

@{b} @author AUTHOR@{ub}
     Typeset author's name.

@{b} @definfoenclose NEW-COMMAND, BEFORE, AFTER,@{ub}
     Define a highlighting command for Info.  (Info only.)

@{b} @finalout@{ub}
     Produce cleaner printed output.

@{b} @footnotestyle END-OR-SEPARATE@{ub}
     Specify footnote style.

@{b} @dmn{DIMENSION}@{ub}
     Format a dimension.

@{b} @global@letNEW-CMD=EXISTING-CMD@{ub}
     Define a highlighting command for TeX. (TeX only.)

@{b} @lowersections@{ub}
     Reduce hierarchical level of sectioning commands.

@{b} @math{MATHEMATICAL-EXPRESSION}@{ub}
     Format a mathematical expression.

@{b} @minus{}@{ub}
     Generate a minus sign.

@{b} @paragraphindent ASIS-OR-NUMBER@{ub}
     Specify paragraph indentation.

@{b} @raisesections@{ub}
     Raise hierarchical level of sectioning commands.

@{b} @ref{NODE-NAME, [ENTRY], [TOPIC-OR-TITLE], [INFO-FILE], [MANUAL]}@{ub}
     Make a reference.  In the printed manual, the reference does not
     start with the word `see'.

@{b} @title TITLE@{ub}
     Typeset TITLE in the alternative title page format.

@{b} @subtitle SUBTITLE@{ub}
     Typeset SUBTITLE in the alternative title page format.

@{b} @today{}@{ub}
     Insert the current date.


@EndNode

@Node "Command and Variable Index" "texinfo.guide/Command and Variable Index"
@Next "Concept Index"
@Prev "New Features"
@Toc "Main"

Command and Variable Index
**************************

  This is an alphabetical list of all the @-commands and several
variables.  To make the list easier to use, the commands are listed
without their preceding @{b} @@{ub}.



 @{" * (force line break)                     " Link "Line Breaks"}   Line Breaks
 @{" .  (true end of sentence)                " Link "Controlling Spacing"}   Controlling Spacing
 @{" : (suppress widening)                    " Link "Controlling Spacing"}   Controlling Spacing
 @{" @ (single @)                             " Link "Inserting An Atsign"}   Inserting An Atsign
 @{" @definfoenclose                          " Link "Customized Highlighting"}   Customized Highlighting
 @{" @lowersections                           " Link "Raise-lower sections"}   Raise-lower sections
 @{" @raisesections                           " Link "Raise-lower sections"}   Raise-lower sections
 @{" { (single {)                               " Link "Inserting Braces"}   Inserting Braces
 @{" } (single })                               " Link "Inserting Braces"}   Inserting Braces
 @{" afourpaper                               " Link "A4 Paper"}   A4 Paper
 @{" appendix                                 " Link "unnumbered & appendix"}   unnumbered & appendix
 @{" appendixsec                              " Link "unnumberedsec appendixsec heading"}   unnumberedsec appendixsec heading
 @{" appendixsection                          " Link "unnumberedsec appendixsec heading"}   unnumberedsec appendixsec heading
 @{" appendixsubsec                           " Link "unnumberedsubsec appendixsubsec subheading"}   unnumberedsubsec appendixsubsec subheading
 @{" appendixsubsubsec                        " Link "subsubsection"}   subsubsection
 @{" apply                                    " Link "Sample Function Definition"}   Sample Function Definition
 @{" author                                   " Link "title subtitle author"}   title subtitle author
 @{" b (bold font)                            " Link "Fonts"}   Fonts
 @{" buffer-end                               " Link "Def Cmd Template"}   Def Cmd Template
 @{" bullet                                   " Link "bullet"}   bullet
 @{" bye <1>                                  " Link "Ending a File"}   Ending a File
 @{" bye                                      " Link "File End"}   File End
 @{" c (comment)                              " Link "Comments"}   Comments
 @{" cartouche                                " Link "cartouche"}   cartouche
 @{" center                                   " Link "titlefont center sp"}   titlefont center sp
 @{" chapheading                              " Link "majorheading & chapheading"}   majorheading & chapheading
 @{" chapter                                  " Link "chapter"}   chapter
 @{" cindex                                   " Link "Indexing Commands"}   Indexing Commands
 @{" cite                                     " Link "cite"}   cite
 @{" clear                                    " Link "ifset ifclear"}   ifset ifclear
 @{" code                                     " Link "code"}   code
 @{" comment                                  " Link "Comments"}   Comments
 @{" contents                                 " Link "Contents"}   Contents
 @{" copyright <1>                            " Link "Copyright & Permissions"}   Copyright & Permissions
 @{" copyright                                " Link "copyright symbol"}   copyright symbol
 @{" cropmarks                                " Link "Cropmarks and Magnification"}   Cropmarks and Magnification
 @{" defcodeindex                             " Link "New Indices"}   New Indices
 @{" defcv                                    " Link "Abstract Objects"}   Abstract Objects
 @{" deffn                                    " Link "Functions Commands"}   Functions Commands
 @{" deffnx                                   " Link "deffnx"}   deffnx
 @{" defindex                                 " Link "New Indices"}   New Indices
 @{" defivar                                  " Link "Abstract Objects"}   Abstract Objects
 @{" defmac                                   " Link "Functions Commands"}   Functions Commands
 @{" defmethod                                " Link "Abstract Objects"}   Abstract Objects
 @{" defop                                    " Link "Abstract Objects"}   Abstract Objects
 @{" defopt                                   " Link "Variables Commands"}   Variables Commands
 @{" defspec                                  " Link "Functions Commands"}   Functions Commands
 @{" deftp                                    " Link "Data Types"}   Data Types
 @{" deftypefn                                " Link "Typed Functions"}   Typed Functions
 @{" deftypefun                               " Link "Typed Functions"}   Typed Functions
 @{" deftypevar                               " Link "Typed Variables"}   Typed Variables
 @{" deftypevr                                " Link "Typed Variables"}   Typed Variables
 @{" defun                                    " Link "Functions Commands"}   Functions Commands
 @{" defvar                                   " Link "Variables Commands"}   Variables Commands
 @{" defvr                                    " Link "Variables Commands"}   Variables Commands
 @{" dfn                                      " Link "dfn"}   dfn
 @{" display                                  " Link "display"}   display
 @{" dmn                                      " Link "dmn"}   dmn
 @{" dots                                     " Link "dots"}   dots
 @{" emph                                     " Link "emph & strong"}   emph & strong
 @{" end <1>                                  " Link "Introducing Lists"}   Introducing Lists
 @{" end                                      " Link "Quotations and Examples"}   Quotations and Examples
 @{" end titlepage                            " Link "end titlepage"}   end titlepage
 @{" enumerate                                " Link "enumerate"}   enumerate
 @{" evenfooting                              " Link "Custom Headings"}   Custom Headings
 @{" evenheading                              " Link "Custom Headings"}   Custom Headings
 @{" everyfooting                             " Link "Custom Headings"}   Custom Headings
 @{" everyheading                             " Link "Custom Headings"}   Custom Headings
 @{" example                                  " Link "example"}   example
 @{" exdent                                   " Link "exdent"}   exdent
 @{" file                                     " Link "file"}   file
 @{" filll                                    " Link "Copyright & Permissions"}   Copyright & Permissions
 @{" finalout                                 " Link "Overfull hboxes"}   Overfull hboxes
 @{" findex                                   " Link "Indexing Commands"}   Indexing Commands
 @{" flushleft                                " Link "flushleft & flushright"}   flushleft & flushright
 @{" flushright                               " Link "flushleft & flushright"}   flushleft & flushright
 @{" foobar                                   " Link "Optional Arguments"}   Optional Arguments
 @{" footnote                                 " Link "Footnotes"}   Footnotes
 @{" footnotestyle                            " Link "Footnote Styles"}   Footnote Styles
 @{" format                                   " Link "format"}   format
 @{" forward-word                             " Link "Def Cmd Template"}   Def Cmd Template
 @{" ftable                                   " Link "ftable vtable"}   ftable vtable
 @{" group                                    " Link "group"}   group
 @{" heading                                  " Link "unnumberedsec appendixsec heading"}   unnumberedsec appendixsec heading
 @{" headings                                 " Link "headings on off"}   headings on off
 @{" i (italic font)                          " Link "Fonts"}   Fonts
 @{" ifclear                                  " Link "ifset ifclear"}   ifset ifclear
 @{" ifinfo                                   " Link "Conditionals"}   Conditionals
 @{" ifset                                    " Link "ifset ifclear"}   ifset ifclear
 @{" iftex                                    " Link "Conditionals"}   Conditionals
 @{" ignore                                   " Link "Comments"}   Comments
 @{" include                                  " Link "Using Include Files"}   Using Include Files
 @{" Info-directory-list                      " Link "Other Info Directories"}   Other Info Directories
 @{" Info-validate                            " Link "Running Info-Validate"}   Running Info-Validate
 @{" INFOPATH                                 " Link "Other Info Directories"}   Other Info Directories
 @{" inforef                                  " Link "inforef"}   inforef
 @{" input (TeX command)                      " Link "Minimum"}   Minimum
 @{" isearch-backward                         " Link "deffnx"}   deffnx
 @{" isearch-forward                          " Link "deffnx"}   deffnx
 @{" item <1>                                 " Link "table"}   table
 @{" item                                     " Link "itemize"}   itemize
 @{" itemize                                  " Link "itemize"}   itemize
 @{" itemx                                    " Link "itemx"}   itemx
 @{" kbd                                      " Link "kbd"}   kbd
 @{" key                                      " Link "key"}   key
 @{" kindex                                   " Link "Indexing Commands"}   Indexing Commands
 @{" lisp                                     " Link "Lisp Example"}   Lisp Example
 @{" lpr (dvi print command)                  " Link "Print with lpr"}   Print with lpr
 @{" mag (TeX command)                        " Link "Cropmarks and Magnification"}   Cropmarks and Magnification
 @{" majorheading                             " Link "majorheading & chapheading"}   majorheading & chapheading
 @{" makeinfo-buffer                          " Link "makeinfo in Emacs"}   makeinfo in Emacs
 @{" makeinfo-kill-job                        " Link "makeinfo in Emacs"}   makeinfo in Emacs
 @{" makeinfo-recenter-output-buffer          " Link "makeinfo in Emacs"}   makeinfo in Emacs
 @{" makeinfo-region                          " Link "makeinfo in Emacs"}   makeinfo in Emacs
 @{" math                                     " Link "math"}   math
 @{" menu                                     " Link "Menus"}   Menus
 @{" minus                                    " Link "minus"}   minus
 @{" need                                     " Link "need"}   need
 @{" next-error                               " Link "makeinfo in Emacs"}   makeinfo in Emacs
 @{" noindent                                 " Link "noindent"}   noindent
 @{" occur                                    " Link "Using occur"}   Using occur
 @{" occur-mode-goto-occurrence               " Link "Showing the Structure"}   Showing the Structure
 @{" oddfooting                               " Link "Custom Headings"}   Custom Headings
 @{" oddheading                               " Link "Custom Headings"}   Custom Headings
 @{" page                                     " Link "page"}   page
 @{" page-delimiter                           " Link "Showing the Structure"}   Showing the Structure
 @{" paragraphindent                          " Link "paragraphindent"}   paragraphindent
 @{" pindex                                   " Link "Indexing Commands"}   Indexing Commands
 @{" printindex                               " Link "Printing Indices & Menus"}   Printing Indices & Menus
 @{" pxref                                    " Link "pxref"}   pxref
 @{" quotation                                " Link "quotation"}   quotation
 @{" r (Roman font)                           " Link "Fonts"}   Fonts
 @{" ref                                      " Link "ref"}   ref
 @{" refill                                   " Link "Refilling Paragraphs"}   Refilling Paragraphs
 @{" samp                                     " Link "samp"}   samp
 @{" sc (small caps font)                     " Link "Smallcaps"}   Smallcaps
 @{" section                                  " Link "section"}   section
 @{" set                                      " Link "ifset ifclear"}   ifset ifclear
 @{" setchapternewpage                        " Link "setchapternewpage"}   setchapternewpage
 @{" setfilename                              " Link "setfilename"}   setfilename
 @{" settitle                                 " Link "settitle"}   settitle
 @{" shortcontents                            " Link "Contents"}   Contents
 @{" smallbook                                " Link "smallbook"}   smallbook
 @{" smallexample                             " Link "smallexample & smalllisp"}   smallexample & smalllisp
 @{" smalllisp                                " Link "smallexample & smalllisp"}   smallexample & smalllisp
 @{" sp (line spacing)                        " Link "sp"}   sp
 @{" sp (titlepage line spacing)              " Link "titlefont center sp"}   titlefont center sp
 @{" strong                                   " Link "emph & strong"}   emph & strong
 @{" subheading                               " Link "unnumberedsubsec appendixsubsec subheading"}   unnumberedsubsec appendixsubsec subheading
 @{" subsection                               " Link "subsection"}   subsection
 @{" subsubheading                            " Link "subsubsection"}   subsubsection
 @{" subsubsection                            " Link "subsubsection"}   subsubsection
 @{" subtitle                                 " Link "title subtitle author"}   title subtitle author
 @{" summarycontents                          " Link "Contents"}   Contents
 @{" syncodeindex                             " Link "syncodeindex"}   syncodeindex
 @{" synindex                                 " Link "synindex"}   synindex
 @{" t (typewriter font)                      " Link "Fonts"}   Fonts
 @{" table                                    " Link "Two-column Tables"}   Two-column Tables
 @{" tex                                      " Link "Using Ordinary TeX Commands"}   Using Ordinary TeX Commands
 @{" tex (command)                            " Link "tex"}   tex
 @{" texi2dvi (shell script)                  " Link "Format with texi2dvi"}   Format with texi2dvi
 @{" texindex <1>                             " Link "Format-Print Hardcopy"}   Format-Print Hardcopy
 @{" texindex                                 " Link "Format with tex-texindex"}   Format with tex-texindex
 @{" texinfo-all-menus-update                 " Link "Updating Commands"}   Updating Commands
 @{" texinfo-every-node-update                " Link "Updating Commands"}   Updating Commands
 @{" texinfo-format-buffer <1>                " Link "Info Formatting"}   Info Formatting
 @{" texinfo-format-buffer                    " Link "texinfo-format commands"}   texinfo-format commands
 @{" texinfo-format-region <1>                " Link "texinfo-format commands"}   texinfo-format commands
 @{" texinfo-format-region                    " Link "Info Formatting"}   Info Formatting
 @{" texinfo-indent-menu-description          " Link "Other Updating Commands"}   Other Updating Commands
 @{" texinfo-insert-@code                     " Link "Inserting"}   Inserting
 @{" texinfo-insert-@dfn                      " Link "Inserting"}   Inserting
 @{" texinfo-insert-@end                      " Link "Inserting"}   Inserting
 @{" texinfo-insert-@example                  " Link "Inserting"}   Inserting
 @{" texinfo-insert-@item                     " Link "Inserting"}   Inserting
 @{" texinfo-insert-@kbd                      " Link "Inserting"}   Inserting
 @{" texinfo-insert-@node                     " Link "Inserting"}   Inserting
 @{" texinfo-insert-@noindent                 " Link "Inserting"}   Inserting
 @{" texinfo-insert-@samp                     " Link "Inserting"}   Inserting
 @{" texinfo-insert-@table                    " Link "Inserting"}   Inserting
 @{" texinfo-insert-@var                      " Link "Inserting"}   Inserting
 @{" texinfo-insert-braces                    " Link "Inserting"}   Inserting
 @{" texinfo-insert-node-lines                " Link "Other Updating Commands"}   Other Updating Commands
 @{" texinfo-make-menu                        " Link "Updating Commands"}   Updating Commands
 @{" texinfo-master-menu                      " Link "Updating Commands"}   Updating Commands
 @{" texinfo-multiple-files-update            " Link "texinfo-multiple-files-update"}   texinfo-multiple-files-update
 @{" texinfo-multiple-files-update (in brief) " Link "Other Updating Commands"}   Other Updating Commands
 @{" texinfo-sequential-node-update           " Link "Other Updating Commands"}   Other Updating Commands
 @{" texinfo-show-structure <1>               " Link "Showing the Structure"}   Showing the Structure
 @{" texinfo-show-structure                   " Link "Using texinfo-show-structure"}   Using texinfo-show-structure
 @{" texinfo-start-menu-description           " Link "Inserting"}   Inserting
 @{" texinfo-tex-buffer                       " Link "Printing"}   Printing
 @{" texinfo-tex-print                        " Link "Printing"}   Printing
 @{" texinfo-tex-region                       " Link "Printing"}   Printing
 @{" texinfo-update-node                      " Link "Updating Commands"}   Updating Commands
 @{" TEXINPUTS                                " Link "Preparing for TeX"}   Preparing for TeX
 @{" thischapter                              " Link "Custom Headings"}   Custom Headings
 @{" thischaptername                          " Link "Custom Headings"}   Custom Headings
 @{" thisfile                                 " Link "Custom Headings"}   Custom Headings
 @{" thispage                                 " Link "Custom Headings"}   Custom Headings
 @{" thistitle                                " Link "Custom Headings"}   Custom Headings
 @{" tindex                                   " Link "Indexing Commands"}   Indexing Commands
 @{" title                                    " Link "title subtitle author"}   title subtitle author
 @{" titlefont                                " Link "titlefont center sp"}   titlefont center sp
 @{" titlepage                                " Link "titlepage"}   titlepage
 @{" today                                    " Link "Custom Headings"}   Custom Headings
 @{" top (@-command)                          " Link "makeinfo top command"}   makeinfo top command
 @{" unnumbered                               " Link "unnumbered & appendix"}   unnumbered & appendix
 @{" unnumberedsec                            " Link "unnumberedsec appendixsec heading"}   unnumberedsec appendixsec heading
 @{" unnumberedsubsec                         " Link "unnumberedsubsec appendixsubsec subheading"}   unnumberedsubsec appendixsubsec subheading
 @{" unnumberedsubsubsec                      " Link "subsubsection"}   subsubsection
 @{" up-list                                  " Link "Inserting"}   Inserting
 @{" value                                    " Link "value"}   value
 @{" var                                      " Link "var"}   var
 @{" vindex                                   " Link "Indexing Commands"}   Indexing Commands
 @{" vskip                                    " Link "Copyright & Permissions"}   Copyright & Permissions
 @{" vtable                                   " Link "ftable vtable"}   ftable vtable
 @{" w (prevent line break)                   " Link "w"}   w
 @{" xref                                     " Link "xref"}   xref


@EndNode

@Node "Concept Index" "texinfo.guide/Concept Index"
@Prev "Command and Variable Index"
@Toc "Main"

Concept Index
*************

@Index "Concept Index"



 @{" @-command in nodename                    " Link "Node Line Requirements"}   Node Line Requirements
 @{" @-command list                           " Link "Command List"}   Command List
 @{" @-command syntax                         " Link "Command Syntax"}   Command Syntax
 @{" @-commands                               " Link "Formatting Commands"}   Formatting Commands
 @{" .cshrc initialization file               " Link "Preparing for TeX"}   Preparing for TeX
 @{" .profile initialization file             " Link "Preparing for TeX"}   Preparing for TeX
 @{" @include file sample                     " Link "Sample Include File"}   Sample Include File
 @{" @menu parts                              " Link "Menu Parts"}   Menu Parts
 @{" @node line writing                       " Link "Writing a Node"}   Writing a Node
 @{" makeinfo inside Emacs                    " Link "makeinfo in Emacs"}   makeinfo in Emacs
 @{" makeinfo options                         " Link "makeinfo options"}   makeinfo options
 @{" TEXINPUTS environment variable           " Link "Preparing for TeX"}   Preparing for TeX
 @{" dir directory for Info installation      " Link "Install an Info File"}   Install an Info File
 @{" dir file listing                         " Link "New Info File"}   New Info File
 @{" End node footnote style                  " Link "Footnote Styles"}   Footnote Styles
 @{" Separate footnote style                  " Link "Footnote Styles"}   Footnote Styles
 @{" Top node                                 " Link "The Top Node"}   The Top Node
 @{" Top node is first                        " Link "First Node"}   First Node
 @{" Top node naming for references           " Link "Top Node Naming"}   Top Node Naming
 @{" Top node summary                         " Link "Top Node Summary"}   Top Node Summary
 @{" hboxes, overfull                         " Link "Overfull hboxes"}   Overfull hboxes
 @{" ifinfo permissions                       " Link "ifinfo Permissions"}   ifinfo Permissions
 @{" TeX commands, using ordinary             " Link "Using Ordinary TeX Commands"}   Using Ordinary TeX Commands
 @{" TeX index sorting                        " Link "Format-Print Hardcopy"}   Format-Print Hardcopy
 @{" TeX input initialization                 " Link "Preparing for TeX"}   Preparing for TeX
 @{" TeX, how to obtain                       " Link "Obtaining TeX"}   Obtaining TeX
 @{" `Enclosure' command for Info             " Link "Customized Highlighting"}   Customized Highlighting
 @{" A4 paper, printing on                    " Link "A4 Paper"}   A4 Paper
 @{" Abbreviations for keys                   " Link "key"}   key
 @{" Adding a new info file                   " Link "New Info File"}   New Info File
 @{" Alphabetical @-command list              " Link "Command List"}   Command List
 @{" Another Info directory                   " Link "Other Info Directories"}   Other Info Directories
 @{" Apostrophe in nodename                   " Link "Node Line Requirements"}   Node Line Requirements
 @{" Arguments, repeated and optional         " Link "Optional Arguments"}   Optional Arguments
 @{" Automatic pointer creation with makeinfo " Link "makeinfo Pointer Creation"}   makeinfo Pointer Creation
 @{" Automatically insert nodes, menus        " Link "Updating Nodes and Menus"}   Updating Nodes and Menus
 @{" Badly referenced nodes                   " Link "Running Info-Validate"}   Running Info-Validate
 @{" Batch formatting for Info                " Link "Batch Formatting"}   Batch Formatting
 @{" Beginning a Texinfo file                 " Link "Beginning a File"}   Beginning a File
 @{" Beginning line of a Texinfo file         " Link "First Line"}   First Line
 @{" Black rectangle in hardcopy              " Link "Overfull hboxes"}   Overfull hboxes
 @{" Blank lines                              " Link "sp"}   sp
 @{" Book characteristics, printed            " Link "Printed Books"}   Printed Books
 @{" Book, printing small                     " Link "smallbook"}   smallbook
 @{" Box with rounded corners                 " Link "cartouche"}   cartouche
 @{" Braces and argument syntax               " Link "Command Syntax"}   Command Syntax
 @{" Braces, inserting                        " Link "Braces Atsigns Periods"}   Braces Atsigns Periods
 @{" Braces, when to use                      " Link "Formatting Commands"}   Formatting Commands
 @{" Breaks in a line                         " Link "Line Breaks"}   Line Breaks
 @{" Buffer formatting and printing           " Link "Printing"}   Printing
 @{" Bullets, inserting                       " Link "Dots Bullets"}   Dots Bullets
 @{" Case in nodename                         " Link "Node Line Requirements"}   Node Line Requirements
 @{" Catching errors with TeX formatting      " Link "Debugging with TeX"}   Debugging with TeX
 @{" Catching errors with Info formatting     " Link "Debugging with Info"}   Debugging with Info
 @{" Catching mistakes                        " Link "Catching Mistakes"}   Catching Mistakes
 @{" Chapter structuring                      " Link "Structuring"}   Structuring
 @{" Characteristics, printed books or manuals " Link "Printed Books"}   Printed Books
 @{" Checking for badly referenced nodes      " Link "Running Info-Validate"}   Running Info-Validate
 @{" Colon in nodename                        " Link "Node Line Requirements"}   Node Line Requirements
 @{" Combining indices                        " Link "Combining Indices"}   Combining Indices
 @{" Comma in nodename                        " Link "Node Line Requirements"}   Node Line Requirements
 @{" Command definitions                      " Link "Sample Function Definition"}   Sample Function Definition
 @{" Commands to insert single characters     " Link "Braces Atsigns Periods"}   Braces Atsigns Periods
 @{" Commands using ordinary TeX              " Link "Using Ordinary TeX Commands"}   Using Ordinary TeX Commands
 @{" Commands, inserting them                 " Link "Inserting"}   Inserting
 @{" Comments                                 " Link "Comments"}   Comments
 @{" Compile command for formatting           " Link "Compile-Command"}   Compile-Command
 @{" Conditionally visible text               " Link "Conditionals"}   Conditionals
 @{" Conditions for copying Texinfo           " Link "Copying"}   Copying
 @{" Contents, Table of                       " Link "Contents"}   Contents
 @{" Contents-like outline of file structure  " Link "Showing the Structure"}   Showing the Structure
 @{" Conventions for writing definitions      " Link "Def Cmd Conventions"}   Def Cmd Conventions
 @{" Conventions, syntactic                   " Link "Conventions"}   Conventions
 @{" Copying conditions                       " Link "Copying"}   Copying
 @{" Copying permissions                      " Link "Sample Permissions"}   Sample Permissions
 @{" Copying software                         " Link "Software Copying Permissions"}   Software Copying Permissions
 @{" Copyright page                           " Link "Copyright & Permissions"}   Copyright & Permissions
 @{" Correcting mistakes                      " Link "Catching Mistakes"}   Catching Mistakes
 @{" Create nodes, menus automatically        " Link "Updating Nodes and Menus"}   Updating Nodes and Menus
 @{" Creating an Info file                    " Link "Create an Info File"}   Create an Info File
 @{" Creating an unsplit file                 " Link "Unsplit"}   Unsplit
 @{" Creating index entries                   " Link "Indexing Commands"}   Indexing Commands
 @{" Creating indices                         " Link "Indices"}   Indices
 @{" Creating pointers with makeinfo          " Link "makeinfo Pointer Creation"}   makeinfo Pointer Creation
 @{" Cropmarks for printing                   " Link "Cropmarks and Magnification"}   Cropmarks and Magnification
 @{" Cross reference parts                    " Link "Cross Reference Parts"}   Cross Reference Parts
 @{" Cross references                         " Link "Cross References"}   Cross References
 @{" Cross references using @inforef          " Link "inforef"}   inforef
 @{" Cross references using @pxref            " Link "pxref"}   pxref
 @{" Cross references using @ref              " Link "ref"}   ref
 @{" Cross references using @xref             " Link "xref"}   xref
 @{" Customized highlighting                  " Link "Customized Highlighting"}   Customized Highlighting
 @{" Debugging the Texinfo structure          " Link "Catching Mistakes"}   Catching Mistakes
 @{" Debugging with TeX formatting            " Link "Debugging with TeX"}   Debugging with TeX
 @{" Debugging with Info formatting           " Link "Debugging with Info"}   Debugging with Info
 @{" Defining indexing entries                " Link "Indexing Commands"}   Indexing Commands
 @{" Defining new indices                     " Link "New Indices"}   New Indices
 @{" Definition commands                      " Link "Definition Commands"}   Definition Commands
 @{" Definition conventions                   " Link "Def Cmd Conventions"}   Def Cmd Conventions
 @{" Definition template                      " Link "Def Cmd Template"}   Def Cmd Template
 @{" Definitions grouped together             " Link "deffnx"}   deffnx
 @{" Description for menu, start              " Link "Inserting"}   Inserting
 @{" Different cross reference commands       " Link "Cross Reference Commands"}   Cross Reference Commands
 @{" Dimension formatting                     " Link "dmn"}   dmn
 @{" Display formatting                       " Link "display"}   display
 @{" Distribution                             " Link "Software Copying Permissions"}   Software Copying Permissions
 @{" Dots, inserting <1>                      " Link "dots"}   dots
 @{" Dots, inserting                          " Link "Dots Bullets"}   Dots Bullets
 @{" Double-colon menu entries                " Link "Less Cluttered Menu Entry"}   Less Cluttered Menu Entry
 @{" DVI file                                 " Link "Format with tex-texindex"}   Format with tex-texindex
 @{" Ellipsis, inserting                      " Link "Dots Bullets"}   Dots Bullets
 @{" Emacs                                    " Link "Texinfo Mode"}   Texinfo Mode
 @{" Emacs shell, format, print from          " Link "Within Emacs"}   Within Emacs
 @{" Emphasizing text                         " Link "Emphasis"}   Emphasis
 @{" Emphasizing text, font for               " Link "emph & strong"}   emph & strong
 @{" End of header line                       " Link "End of Header"}   End of Header
 @{" End titlepage starts headings            " Link "end titlepage"}   end titlepage
 @{" Ending a Texinfo file                    " Link "Ending a File"}   Ending a File
 @{" Entries for an index                     " Link "Indexing Commands"}   Indexing Commands
 @{" Entries, making index                    " Link "Index Entries"}   Index Entries
 @{" Enumeration                              " Link "enumerate"}   enumerate
 @{" Equivalence, indicating it               " Link "Equivalence"}   Equivalence
 @{" Error message, indicating it             " Link "Error Glyph"}   Error Glyph
 @{" Errors, parsing                          " Link "makeinfo in Emacs"}   makeinfo in Emacs
 @{" European A4 paper                        " Link "A4 Paper"}   A4 Paper
 @{" Evaluation glyph                         " Link "result"}   result
 @{" Example for a small book                 " Link "smallexample & smalllisp"}   smallexample & smalllisp
 @{" Example menu                             " Link "Menu Example"}   Menu Example
 @{" Examples, formatting them                " Link "example"}   example
 @{" Expansion, indicating it                 " Link "expansion"}   expansion
 @{" File beginning                           " Link "Beginning a File"}   Beginning a File
 @{" File ending                              " Link "Ending a File"}   Ending a File
 @{" File section structure, showing it       " Link "Showing the Structure"}   Showing the Structure
 @{" Filling paragraphs                       " Link "Refilling Paragraphs"}   Refilling Paragraphs
 @{" Final output                             " Link "Overfull hboxes"}   Overfull hboxes
 @{" Finding badly referenced nodes           " Link "Running Info-Validate"}   Running Info-Validate
 @{" First line of a Texinfo file             " Link "First Line"}   First Line
 @{" First node                               " Link "First Node"}   First Node
 @{" Fonts for indices                        " Link "syncodeindex"}   syncodeindex
 @{" Fonts for printing, not for Info         " Link "Fonts"}   Fonts
 @{" Footings                                 " Link "Headings"}   Headings
 @{" Footnotes                                " Link "Footnotes"}   Footnotes
 @{" Format a dimension                       " Link "dmn"}   dmn
 @{" Format and print hardcopy                " Link "Format-Print Hardcopy"}   Format-Print Hardcopy
 @{" Format and print in Texinfo mode         " Link "Texinfo Mode Printing"}   Texinfo Mode Printing
 @{" Format with the compile command          " Link "Compile-Command"}   Compile-Command
 @{" Format, print from Emacs shell           " Link "Within Emacs"}   Within Emacs
 @{" Formatting a file for Info               " Link "Create an Info File"}   Create an Info File
 @{" Formatting commands                      " Link "Formatting Commands"}   Formatting Commands
 @{" Formatting examples                      " Link "example"}   example
 @{" Formatting for Info                      " Link "Info Formatting"}   Info Formatting
 @{" Formatting for printing                  " Link "Printing"}   Printing
 @{" Formatting headings and footings         " Link "Headings"}   Headings
 @{" Formatting requirements                  " Link "Requirements Summary"}   Requirements Summary
 @{" Formatting with tex and texindex         " Link "Format with tex-texindex"}   Format with tex-texindex
 @{" Frequently used commands, inserting      " Link "Inserting"}   Inserting
 @{" Function definitions                     " Link "Sample Function Definition"}   Sample Function Definition
 @{" General syntactic conventions            " Link "Conventions"}   Conventions
 @{" Generating menus with indices            " Link "Printing Indices & Menus"}   Printing Indices & Menus
 @{" Glyphs                                   " Link "Glyphs"}   Glyphs
 @{" GNU Emacs                                " Link "Texinfo Mode"}   Texinfo Mode
 @{" GNU Emacs shell, format, print from      " Link "Within Emacs"}   Within Emacs
 @{" Going to other Info files' nodes         " Link "Other Info Files"}   Other Info Files
 @{" Group (hold text together vertically)    " Link "group"}   group
 @{" Grouping two definitions together        " Link "deffnx"}   deffnx
 @{" Hardcopy, printing it                    " Link "Format-Print Hardcopy"}   Format-Print Hardcopy
 @{" Header for Texinfo files                 " Link "Header"}   Header
 @{" Header of a Texinfo file                 " Link "First Line"}   First Line
 @{" Headings                                 " Link "Headings"}   Headings
 @{" Headings, page, begin to appear          " Link "end titlepage"}   end titlepage
 @{" Highlighting text                        " Link "Indicating"}   Indicating
 @{" Highlighting, customized                 " Link "Customized Highlighting"}   Customized Highlighting
 @{" Hints                                    " Link "Tips"}   Tips
 @{" Holding text together vertically         " Link "group"}   group
 @{" If text conditionally visible            " Link "Conditionals"}   Conditionals
 @{" Ignored text                             " Link "Comments"}   Comments
 @{" Include file requirements                " Link "Include File Requirements"}   Include File Requirements
 @{" Include file sample                      " Link "Sample Include File"}   Sample Include File
 @{" Include files                            " Link "Include Files"}   Include Files
 @{" Indentation undoing                      " Link "exdent"}   exdent
 @{" Indenting paragraphs                     " Link "paragraphindent"}   paragraphindent
 @{" Index entries                            " Link "Indexing Commands"}   Indexing Commands
 @{" Index entries, making                    " Link "Index Entries"}   Index Entries
 @{" Index entry writing                      " Link "Indexing Commands"}   Indexing Commands
 @{" Index font types                         " Link "Indexing Commands"}   Indexing Commands
 @{" Indexing commands, predefined            " Link "Indexing Commands"}   Indexing Commands
 @{" Indexing table entries automatically     " Link "ftable vtable"}   ftable vtable
 @{" Indicating commands, definitions, etc.   " Link "Indicating"}   Indicating
 @{" Indicating evaluation                    " Link "result"}   result
 @{" Indices                                  " Link "Indices"}   Indices
 @{" Indices, combining them                  " Link "Combining Indices"}   Combining Indices
 @{" Indices, defining new                    " Link "New Indices"}   New Indices
 @{" Indices, printing and menus              " Link "Printing Indices & Menus"}   Printing Indices & Menus
 @{" Indices, sorting                         " Link "Format-Print Hardcopy"}   Format-Print Hardcopy
 @{" Indices, two letter names                " Link "syncodeindex"}   syncodeindex
 @{" Indirect subfiles                        " Link "Tag and Split Files"}   Tag and Split Files
 @{" Info batch formatting                    " Link "Batch Formatting"}   Batch Formatting
 @{" Info file installation                   " Link "Install an Info File"}   Install an Info File
 @{" Info file requires @setfilename          " Link "setfilename"}   setfilename
 @{" Info file, listing new one               " Link "New Info File"}   New Info File
 @{" Info file, splitting manually            " Link "Splitting"}   Splitting
 @{" Info files                               " Link "Info Files"}   Info Files
 @{" Info formatting                          " Link "Info Formatting"}   Info Formatting
 @{" Info installed in another directory      " Link "Other Info Directories"}   Other Info Directories
 @{" Info validating a large file             " Link "Using Info-validate"}   Using Info-validate
 @{" Info, creating an on-line file           " Link "Create an Info File"}   Create an Info File
 @{" Info; other files' nodes                 " Link "Other Info Files"}   Other Info Files
 @{" Initialization file for TeX input        " Link "Preparing for TeX"}   Preparing for TeX
 @{" Insert nodes, menus automatically        " Link "Updating Nodes and Menus"}   Updating Nodes and Menus
 @{" Inserting @, braces, and periods         " Link "Braces Atsigns Periods"}   Braces Atsigns Periods
 @{" Inserting dots <1>                       " Link "dots"}   dots
 @{" Inserting dots                           " Link "Dots Bullets"}   Dots Bullets
 @{" Inserting ellipsis                       " Link "Dots Bullets"}   Dots Bullets
 @{" Inserting frequently used commands       " Link "Inserting"}   Inserting
 @{" Inserting special characters and symbols " Link "Insertions"}   Insertions
 @{" Installing an Info file                  " Link "Install an Info File"}   Install an Info File
 @{" Installing Info in another directory     " Link "Other Info Directories"}   Other Info Directories
 @{" Introduction, as part of file            " Link "Software Copying Permissions"}   Software Copying Permissions
 @{" Itemization                              " Link "itemize"}   itemize
 @{" Keys, recommended names                  " Link "key"}   key
 @{" Larger or smaller pages                  " Link "Cropmarks and Magnification"}   Cropmarks and Magnification
 @{" Less cluttered menu entry                " Link "Less Cluttered Menu Entry"}   Less Cluttered Menu Entry
 @{" License agreement                        " Link "Software Copying Permissions"}   Software Copying Permissions
 @{" Line breaks                              " Link "Line Breaks"}   Line Breaks
 @{" Line breaks, preventing                  " Link "w"}   w
 @{" Line spacing                             " Link "sp"}   sp
 @{" Lisp example                             " Link "Lisp Example"}   Lisp Example
 @{" Lisp example for a small book            " Link "smallexample & smalllisp"}   smallexample & smalllisp
 @{" List of  @-commands                      " Link "Command List"}   Command List
 @{" Listing a new info file                  " Link "New Info File"}   New Info File
 @{" Lists and tables, making them            " Link "Lists and Tables"}   Lists and Tables
 @{" Local variables                          " Link "Compile-Command"}   Compile-Command
 @{" Location of menus                        " Link "Menu Location"}   Menu Location
 @{" Looking for badly referenced nodes       " Link "Running Info-Validate"}   Running Info-Validate
 @{" Macro definitions                        " Link "Sample Function Definition"}   Sample Function Definition
 @{" Magnified printing                       " Link "Cropmarks and Magnification"}   Cropmarks and Magnification
 @{" Making a printed manual                  " Link "Format-Print Hardcopy"}   Format-Print Hardcopy
 @{" Making a tag table automatically         " Link "Tag and Split Files"}   Tag and Split Files
 @{" Making a tag table manually              " Link "Unsplit"}   Unsplit
 @{" Making cross references                  " Link "Cross References"}   Cross References
 @{" Making line and page breaks              " Link "Breaks"}   Breaks
 @{" Making lists and tables                  " Link "Lists and Tables"}   Lists and Tables
 @{" Manual characteristics, printed          " Link "Printed Books"}   Printed Books
 @{" Marking text within a paragraph          " Link "Marking Text"}   Marking Text
 @{" Marking words and phrases                " Link "Marking Text"}   Marking Text
 @{" Master menu                              " Link "The Top Node"}   The Top Node
 @{" Master menu parts                        " Link "Master Menu Parts"}   Master Menu Parts
 @{" Mathematical expressions <1>             " Link "Using Ordinary TeX Commands"}   Using Ordinary TeX Commands
 @{" Mathematical expressions                 " Link "math"}   math
 @{" Menu description, start                  " Link "Inserting"}   Inserting
 @{" Menu entries with two colons             " Link "Less Cluttered Menu Entry"}   Less Cluttered Menu Entry
 @{" Menu example                             " Link "Menu Example"}   Menu Example
 @{" Menu location                            " Link "Menu Location"}   Menu Location
 @{" Menu parts                               " Link "Menu Parts"}   Menu Parts
 @{" Menu writing                             " Link "Writing a Menu"}   Writing a Menu
 @{" Menus                                    " Link "Menus"}   Menus
 @{" Menus generated with indices             " Link "Printing Indices & Menus"}   Printing Indices & Menus
 @{" META key                                 " Link "key"}   key
 @{" Meta-syntactic chars for arguments       " Link "Optional Arguments"}   Optional Arguments
 @{" Minimal Texinfo file (requirements)      " Link "Minimum"}   Minimum
 @{" Mistakes, catching                       " Link "Catching Mistakes"}   Catching Mistakes
 @{" Mode, using Texinfo                      " Link "Texinfo Mode"}   Texinfo Mode
 @{" Must have in Texinfo file                " Link "Minimum"}   Minimum
 @{" Names for indices                        " Link "syncodeindex"}   syncodeindex
 @{" Names recommended for keys               " Link "key"}   key
 @{" Naming a `Top' Node in references        " Link "Top Node Naming"}   Top Node Naming
 @{" Need space at page bottom                " Link "need"}   need
 @{" New index defining                       " Link "New Indices"}   New Indices
 @{" New info file, listing it in dir file    " Link "New Info File"}   New Info File
 @{" Node line requirements                   " Link "Node Line Requirements"}   Node Line Requirements
 @{" Node line writing                        " Link "Writing a Node"}   Writing a Node
 @{" Node, `Top'                              " Link "The Top Node"}   The Top Node
 @{" Node, defined                            " Link "node"}   node
 @{" Nodename must be unique                  " Link "Node Line Requirements"}   Node Line Requirements
 @{" Nodename, cannot contain                 " Link "Node Line Requirements"}   Node Line Requirements
 @{" Nodes for menus are short                " Link "Menu Location"}   Menu Location
 @{" Nodes in other Info files                " Link "Other Info Files"}   Other Info Files
 @{" Nodes, catching mistakes                 " Link "Catching Mistakes"}   Catching Mistakes
 @{" Nodes, checking for badly referenced     " Link "Running Info-Validate"}   Running Info-Validate
 @{" Obtaining TeX                            " Link "Obtaining TeX"}   Obtaining TeX
 @{" Occurrences, listing with @occur         " Link "Using occur"}   Using occur
 @{" Optional and repeated arguments          " Link "Optional Arguments"}   Optional Arguments
 @{" Options for makeinfo                     " Link "makeinfo options"}   makeinfo options
 @{" Ordinary TeX commands, using             " Link "Using Ordinary TeX Commands"}   Using Ordinary TeX Commands
 @{" Other Info files' nodes                  " Link "Other Info Files"}   Other Info Files
 @{" Outline of file structure, showing it    " Link "Showing the Structure"}   Showing the Structure
 @{" Overfull hboxes                          " Link "Overfull hboxes"}   Overfull hboxes
 @{" Overview of Texinfo                      " Link "Overview"}   Overview
 @{" Page breaks                              " Link "page"}   page
 @{" Page delimiter in Texinfo mode           " Link "Showing the Structure"}   Showing the Structure
 @{" Page headings                            " Link "Headings"}   Headings
 @{" Page numbering                           " Link "Headings"}   Headings
 @{" Page sizes for books                     " Link "smallbook"}   smallbook
 @{" Pages, starting odd                      " Link "setchapternewpage"}   setchapternewpage
 @{" Paper size, European A4                  " Link "A4 Paper"}   A4 Paper
 @{" Paragraph indentation                    " Link "paragraphindent"}   paragraphindent
 @{" Paragraph, marking text within           " Link "Marking Text"}   Marking Text
 @{" Parsing errors                           " Link "makeinfo in Emacs"}   makeinfo in Emacs
 @{" Part of file formatting and printing     " Link "Printing"}   Printing
 @{" Parts of a cross reference               " Link "Cross Reference Parts"}   Cross Reference Parts
 @{" Parts of a master menu                   " Link "Master Menu Parts"}   Master Menu Parts
 @{" Parts of a menu                          " Link "Menu Parts"}   Menu Parts
 @{" Periods, inserting                       " Link "Braces Atsigns Periods"}   Braces Atsigns Periods
 @{" Permissions                              " Link "Sample Permissions"}   Sample Permissions
 @{" Permissions, printed                     " Link "Copyright & Permissions"}   Copyright & Permissions
 @{" PlainTeX                                 " Link "Using Ordinary TeX Commands"}   Using Ordinary TeX Commands
 @{" Point, indicating it in a buffer         " Link "Point Glyph"}   Point Glyph
 @{" Pointer creation with makeinfo           " Link "makeinfo Pointer Creation"}   makeinfo Pointer Creation
 @{" Pointer validation with makeinfo         " Link "Pointer Validation"}   Pointer Validation
 @{" Predefined indexing commands             " Link "Indexing Commands"}   Indexing Commands
 @{" Predefined names for indices             " Link "syncodeindex"}   syncodeindex
 @{" Preparing to use TeX                     " Link "Preparing for TeX"}   Preparing for TeX
 @{" Preventing line and page breaks          " Link "Breaks"}   Breaks
 @{" Print and format in Texinfo mode         " Link "Texinfo Mode Printing"}   Texinfo Mode Printing
 @{" Print, format from Emacs shell           " Link "Within Emacs"}   Within Emacs
 @{" Printed book and manual characteristics  " Link "Printed Books"}   Printed Books
 @{" Printed output, indicating it            " Link "Print Glyph"}   Print Glyph
 @{" Printed permissions                      " Link "Copyright & Permissions"}   Copyright & Permissions
 @{" Printing a region or buffer              " Link "Printing"}   Printing
 @{" Printing an index                        " Link "Printing Indices & Menus"}   Printing Indices & Menus
 @{" Printing cropmarks                       " Link "Cropmarks and Magnification"}   Cropmarks and Magnification
 @{" Problems, catching                       " Link "Catching Mistakes"}   Catching Mistakes
 @{" Quotations                               " Link "quotation"}   quotation
 @{" Raising and lowering sections            " Link "Raise-lower sections"}   Raise-lower sections
 @{" Recommended names for keys               " Link "key"}   key
 @{" Rectangle, ugly, black in hardcopy       " Link "Overfull hboxes"}   Overfull hboxes
 @{" References                               " Link "Cross References"}   Cross References
 @{" References using @inforef                " Link "inforef"}   inforef
 @{" References using @pxref                  " Link "pxref"}   pxref
 @{" References using @ref                    " Link "ref"}   ref
 @{" References using @xref                   " Link "xref"}   xref
 @{" Referring to other Info files            " Link "Other Info Files"}   Other Info Files
 @{" Refilling paragraphs                     " Link "Refilling Paragraphs"}   Refilling Paragraphs
 @{" Region formatting and printing           " Link "Printing"}   Printing
 @{" Region printing in Texinfo mode          " Link "Texinfo Mode Printing"}   Texinfo Mode Printing
 @{" Repeated and optional arguments          " Link "Optional Arguments"}   Optional Arguments
 @{" Required in Texinfo file                 " Link "Minimum"}   Minimum
 @{" Requirements for formatting              " Link "Requirements Summary"}   Requirements Summary
 @{" Requirements for include files           " Link "Include File Requirements"}   Include File Requirements
 @{" Requirements for updating commands       " Link "Updating Requirements"}   Updating Requirements
 @{" Result of an expression                  " Link "result"}   result
 @{" Running Info-validate                    " Link "Using Info-validate"}   Using Info-validate
 @{" Running makeinfo in Emacs                " Link "makeinfo in Emacs"}   makeinfo in Emacs
 @{" Running an Info formatter                " Link "Info Formatting"}   Info Formatting
 @{" Sample @include file                     " Link "Sample Include File"}   Sample Include File
 @{" Sample function definition               " Link "Sample Function Definition"}   Sample Function Definition
 @{" Sample Texinfo file                      " Link "Short Sample"}   Short Sample
 @{" Sample Texinfo file, no comments         " Link "Sample Texinfo File"}   Sample Texinfo File
 @{" Section structure of a file, showing it  " Link "Showing the Structure"}   Showing the Structure
 @{" Sections, raising and lowering           " Link "Raise-lower sections"}   Raise-lower sections
 @{" Shell formatting with tex and texindex   " Link "Format with tex-texindex"}   Format with tex-texindex
 @{" Shell, format, print from                " Link "Within Emacs"}   Within Emacs
 @{" Shell, running makeinfo in               " Link "makeinfo in Emacs"}   makeinfo in Emacs
 @{" Short nodes for menus                    " Link "Menu Location"}   Menu Location
 @{" Showing the section structure of a file  " Link "Showing the Structure"}   Showing the Structure
 @{" Showing the structure of a file          " Link "Using texinfo-show-structure"}   Using texinfo-show-structure
 @{" Single characters, commands to insert    " Link "Braces Atsigns Periods"}   Braces Atsigns Periods
 @{" Size of printed book                     " Link "smallbook"}   smallbook
 @{" Small book example                       " Link "smallexample & smalllisp"}   smallexample & smalllisp
 @{" Small book size                          " Link "smallbook"}   smallbook
 @{" Small caps font                          " Link "Smallcaps"}   Smallcaps
 @{" Software copying permissions             " Link "Software Copying Permissions"}   Software Copying Permissions
 @{" Sorting indices                          " Link "Format-Print Hardcopy"}   Format-Print Hardcopy
 @{" Spaces (blank lines)                     " Link "sp"}   sp
 @{" Special insertions                       " Link "Insertions"}   Insertions
 @{" Special typesetting commands             " Link "Dots Bullets"}   Dots Bullets
 @{" Specifying index entries                 " Link "Indexing Commands"}   Indexing Commands
 @{" Splitting an Info file manually          " Link "Splitting"}   Splitting
 @{" Start of header line                     " Link "Start of Header"}   Start of Header
 @{" Starting chapters                        " Link "setchapternewpage"}   setchapternewpage
 @{" Structure of a file, showing it          " Link "Showing the Structure"}   Showing the Structure
 @{" Structure, catching mistakes in          " Link "Catching Mistakes"}   Catching Mistakes
 @{" Structuring of chapters                  " Link "Structuring"}   Structuring
 @{" Subsection-like commands                 " Link "unnumberedsubsec appendixsubsec subheading"}   unnumberedsubsec appendixsubsec subheading
 @{" Subsub commands                          " Link "subsubsection"}   subsubsection
 @{" Syntactic conventions                    " Link "Conventions"}   Conventions
 @{" Syntax, optional & repeated arguments    " Link "Optional Arguments"}   Optional Arguments
 @{" Table of contents                        " Link "Contents"}   Contents
 @{" Tables and lists, making them            " Link "Lists and Tables"}   Lists and Tables
 @{" Tables with indexes                      " Link "ftable vtable"}   ftable vtable
 @{" Tables, making two-column                " Link "Two-column Tables"}   Two-column Tables
 @{" Tabs; don't use!                         " Link "Conventions"}   Conventions
 @{" Tag table, making automatically          " Link "Tag and Split Files"}   Tag and Split Files
 @{" Tag table, making manually               " Link "Unsplit"}   Unsplit
 @{" Template for a definition                " Link "Def Cmd Template"}   Def Cmd Template
 @{" Texinfo file beginning                   " Link "Beginning a File"}   Beginning a File
 @{" Texinfo file ending                      " Link "Ending a File"}   Ending a File
 @{" Texinfo file header                      " Link "Header"}   Header
 @{" Texinfo file minimum                     " Link "Minimum"}   Minimum
 @{" Texinfo file section structure, showing it " Link "Showing the Structure"}   Showing the Structure
 @{" Texinfo mode                             " Link "Texinfo Mode"}   Texinfo Mode
 @{" Texinfo overview                         " Link "Overview"}   Overview
 @{" Texinfo printed book characteristics     " Link "Printed Books"}   Printed Books
 @{" Text, conditionally visible              " Link "Conditionals"}   Conditionals
 @{" Thin space between number, dimension     " Link "dmn"}   dmn
 @{" Tips                                     " Link "Tips"}   Tips
 @{" Title page                               " Link "titlepage"}   titlepage
 @{" Titlepage end starts headings            " Link "end titlepage"}   end titlepage
 @{" Titlepage permissions                    " Link "Titlepage Permissions"}   Titlepage Permissions
 @{" Tree structuring                         " Link "Tree Structuring"}   Tree Structuring
 @{" Two `First' Lines for @deffn             " Link "deffnx"}   deffnx
 @{" Two letter names for indices             " Link "syncodeindex"}   syncodeindex
 @{" Two named items for @table               " Link "itemx"}   itemx
 @{" Two part menu entry                      " Link "Less Cluttered Menu Entry"}   Less Cluttered Menu Entry
 @{" Typesetting commands for dots, etc.      " Link "Dots Bullets"}   Dots Bullets
 @{" Uncluttered menu entry                   " Link "Less Cluttered Menu Entry"}   Less Cluttered Menu Entry
 @{" Unique nodename requirement              " Link "Node Line Requirements"}   Node Line Requirements
 @{" Unprocessed text                         " Link "Comments"}   Comments
 @{" Unsplit file creation                    " Link "Unsplit"}   Unsplit
 @{" Updating nodes and menus                 " Link "Updating Nodes and Menus"}   Updating Nodes and Menus
 @{" Updating requirements                    " Link "Updating Requirements"}   Updating Requirements
 @{" Usage tips                               " Link "Tips"}   Tips
 @{" Validating a large file                  " Link "Using Info-validate"}   Using Info-validate
 @{" Validation of pointers                   " Link "Pointer Validation"}   Pointer Validation
 @{" Value of an expression, indicating       " Link "result"}   result
 @{" Vertical whitespace (vskip)              " Link "Copyright & Permissions"}   Copyright & Permissions
 @{" Vertically holding text together         " Link "group"}   group
 @{" Visibility of conditional text           " Link "Conditionals"}   Conditionals
 @{" Words and phrases, marking them          " Link "Marking Text"}   Marking Text
 @{" Writing a menu                           " Link "Writing a Menu"}   Writing a Menu
 @{" Writing an @node line                    " Link "Writing a Node"}   Writing a Node
 @{" Writing index entries                    " Link "Indexing Commands"}   Indexing Commands

@EndNode

