web2c: \input filenames
4.5 '\input' filenames
======================
TeX, Metafont, and MetaPost source programs can all read other source
files with the '\input' (TeX) and 'input' (MF and MP) primitives:
\input NAME % in TeX
The file NAME can always be terminated with whitespace; for Metafont
and MetaPost, the statement terminator ';' also works. (LaTeX and other
macro packages provide other interfaces to '\input' that allow different
notation; here we are concerned only with the primitive operation.)
As (allowed) extensions to standard TeX, Web2c also supports
specifying the filename in double quotes ('"some name"') and in braces
('{some name}'), which is convenient for filenames containing spaces or
other special characters, as described in the sections below.
In all cases, space tokens are ignored after the filename is read.
Also, double quote ('"') characters are ignored within the filename;
there is no way to read files whose names contain a '"'.
However, for maximal portability of your document across systems, use
only the characters 'a'-'z', '0'-'9', and at most one '.'. Do not use
anything but simple filenames, since directory separators vary among
systems; instead, add the necessary directories to the appropriate
search path.
Menu