manpagez: man pages & more
info texinfo
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

20.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-*-
@setfilename include-example.info
@settitle Include Example
... See section 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.


This document was generated on October 2, 2013 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.