Open main menu



The command \input inputs external files



Settings string

\input ...
... file

Note: in this format, the argument is terminated by a space character.


The command \input file is replaced by the content of the text file file.

When no file extension is specified the extension .tex is assumed.

Unlike the project structure commands such as \environment and \component, \input will not cause ConTeXt to look in parent directories for the specified file (unless of course the given filename is actually a path beginning with ../ or the equivalent).

On the other hand, \input will cause ConTeXt to look for the file in all the system's normal input spots.

Typically, \input is used to access one of ConTeXt's distribution-supplied sample files for demonstration or debugging purposes. For structured usage (inside books and articles) the actual project structure commands are a better match.



See also

Help from ConTeXt-Mailinglist/Forum