Command/input

From ConTeXt wiki
Jump to: navigation, search

\input

Syntax

\input file
file name of the file

Description

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

When no file extension is specified the command assumes that the file has the extension .tex

Example

The following example includes the content of the text file chapter-01.

Please be careful: no extension is specified, so it is assumed that the text file chapter-01 has the extension .tex.

\starttext

\input chapter-01

\stoptext

produces

The file chapter-01.tex looks like this:

\chapter{Chapter 1}

This is the first chapter.

See also

Help from ConTeXt-Mailinglist/Forum

All issues with:

C O N T E X T G A R D E N

Personal tools
Namespaces
Variants
Actions
Help
External Help
Installation
Navigation
Toolbox