User:Sciurus/sandbox

From Wiki
< User:Sciurus
Revision as of 18:34, 18 October 2020 by Sciurus (talk | contribs) (Just drafting some possible future Wiki contributions (an introduction to ConTeXt).)
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:

  1. To group some text as a single self-contained unit, enclose the text in { }.
  2. Enclose arguments to ConTeXt commands in [ ].

Three principles of organization (here method refers to an arbitrary text-processing method in ConTeXt):

  1. To apply method to some text, enclose the text in \startmethod.
  2. To cutstomize method, use \setupmethod.
  3. 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