Difference between revisions of "User:Sciurus/sandbox"

From Wiki
Jump to navigation Jump to search
(Setting up a sandbox page for myself.)
 
m (Just drafting some possible future Wiki contributions (an introduction to ConTeXt).)
Line 1: Line 1:
Here is Sciurus's sandbox.
+
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 <code>\start''method''</code>.
 +
# To cutstomize ''method'', use <code>\setup''method''</code>.
 +
# To define a named customization of ''method'', use <code>\define''method''</code>.
 +
 
 +
To see how these rules and principles work, let's start with a minimal example of a ConTeXt document:
 +
<texcode>
 +
\starttext
 +
\input knuth
 +
\stoptext
 +
</texcode>

Revision as of 18:34, 18 October 2020

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