Command/input

From Wiki
< Command
Revision as of 08:37, 19 November 2021 by Taco (talk | contribs) (Created page with "Documentation for \input")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\input

Summary

The command \input inputs external files

Settings

\input{...}
{...}file

Settings string

\input ...
... file

OptionExplanation
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

Help from ConTeXt-Mailinglist/Forum

All issues with: