Next: , Previous: , Up: Include Files   [Contents][Index]


18.4 Sample File with @include

Here is an example of an outer Texinfo file with @include files within it before running texinfo-multiple-files-update, which would insert a main or master menu:

\input texinfo @c -*-texinfo-*-
@settitle Include Example

... See Sample Texinfo Files, for
examples of the rest of the frontmatter ...

@ifnottex
@node Top
@top Include Example
@end ifnottex

@include foo.texinfo
@include bar.texinfo
@include concept-index.texinfo
@bye

An included file, such as foo.texinfo, might look like this:

@node First
@chapter First Chapter

Contents of first chapter …

The full contents of concept-index.texinfo might be as simple as this:

@node Concept Index
@unnumbered Concept Index

@printindex cp

The outer Texinfo source file for The GNU Emacs Lisp Reference Manual is named elisp.texi. This outer file contains a master menu with 417 entries and a list of 41 @include files.