Command/input
< Command
Contents
\input
Summary
The command \input inputs external files
Settings
Settings string
\input ... | |
... | file |
Option | Explanation |
---|---|
Note: in this format, the argument is terminated by a space character. |
Description
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.
Examples
Notes
See also
- file-ini.mkvi
- \component to input partial content
- \environment to input a style settings file
- Dummy text for other ways to create filler text
- \getbuffer to 'input' buffer content