Difference between revisions of "Command/starttext"

From ConTeXt wiki
Jump to navigationJump to search
(Create entire page)
 
Line 59: Line 59:
 
* {{cmd|startcomponent}} to start a text that does not stand alone
 
* {{cmd|startcomponent}} to start a text that does not stand alone
 
* {{cmd|startproject}} to gather components.
 
* {{cmd|startproject}} to gather components.
 +
* {{cmd|startTEXpage}} to create a document consisting only of some typeset TeX
 +
* {{cmd|startMPpage}} to create a document consisting only of a MetaPost figure
  
 
== Help from ConTeXt-Mailinglist/Forum ==
 
== Help from ConTeXt-Mailinglist/Forum ==

Revision as of 12:25, 14 September 2017

\starttext

Syntax

\starttext...\stoptext

Description

In a self-contained text we use the following commands to mark the beginning and end of a text:

\starttext
...
\stoptext

The first command takes care of a number of initializations, and the last command tells TEX that processing can stop. When this command is left out TEX will display a * (a star) on the command line at the end of the job. TEX will expect a command, for example \end.

It is advisable to type the document setups before the start-command, in the so-called setup area of the document. In this way a clever word processor can identify where the text starts, and therefore can include those setups when it partially processes the document (if it supports partial processing).

The commands \starttext...\stoptext may be nested: within a text a new text containing \starttext and \stoptext may be loaded.

Example

\enableregime[utf]

\starttext

\subject{Introduction}

\unknown\ America has always been a land set firmly not in the past, but
in the future. On a recent visit to England, I found dozens of wonderful
bookstores chock full of the past --- ancient history, rooms full of it,
and great literature in such monumental stacks as to be overwhelming. In
the usual American bookstore, history might occupy a few bookcases; great
literature has its honoured place, but this year’s paperbacks dominate. The
past is not disregarded, but neither does it loom so large and run so deep
in our blood.

\blank

{\bf Greg Bear, introduction to Tangents (1989).}

\stoptext

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: