User:Sciurus/sandbox
Jump to navigation
Jump to search
LIKE EVERYTHING IN THIS SANDBOX, THIS IS ONLY A DRAFT AND SHOULD NOT BE USED YET.
ConTeXt has a very logical structure: there are two basic rules of syntax and three basic principles of organization.
Two rules of syntax:
- To group some text as a single self-contained unit, enclose the text in { }.
- Enclose arguments to ConTeXt commands in [ ].
Three principles of organization (here method refers to an arbitrary text-processing method in ConTeXt):
- To apply method to some text, enclose the text in
\startmethod
. - To cutstomize method, use
\setupmethod
. - To define a named customization of method, use
\definemethod
.
To see how these rules and principles work, let's start with a minimal example of a ConTeXt document:
\starttext \input knuth \stoptext