ConTeXt
In semiotics, linguistics, sociology and anthropology, context refers to those objects or entities which surround a focal event, in these disciplines typically a communicative event, of some kind.
≈ 4 min read
ConTeXt. encyclopegia.org, snapshot enwiki-001364981183. /a/context
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
In semiotics, linguistics, sociology and anthropology, context refers to those objects or entities which surround a focal event, in these disciplines typically a communicative event, of some kind. Context is "a frame that surrounds the event and provides resources for its appropriate interpretation". It is thus a relative concept, only definable with respect to some focal event within a frame, not independently of that frame.
ConTeXt, stylised as , is a general-purpose document processor. Like LaTeX, it is derived from the TeX typesetting system. ConTeXt is especially suited for structured documents, automated document production, very fine typography, and multilingual typesetting.
It is based in part on TeX, and uses a document markup language for manuscript preparation. The typographical and automated capabilities of ConTeXt are extensive, including interfaces for handling microtypography, multiple footnotes and footnote classes, and manipulating OpenType fonts and features.
Moreover, ConTeXt offers extensive support for colors, backgrounds, hyperlinks, presentations, figure-text integration, and conditional compilation. It gives the user extensive control over formatting, while making it easy to create new layouts and styles without learning the low-level TeX macro language.
While comparisons can be made between ConTeXt and LaTeX, the primary objectives of the two systems are distinct. From the outset, ConTeXt has been a typography and typesetting system designed to give users straightforward and consistent access to advanced typographical control, which is crucial for general-purpose typesetting.
LaTeX's original vision, on the other hand, was to insulate the user from typographical decisions—an approach particularly useful for tasks such as submitting articles to a scientific journal. Although LaTeX has evolved from this original vision, ConTeXt's unified design prevents the package clashes which are often experienced with LaTeX.
ConTeXt provides a multilingual user interface with support for markup in English, Dutch, German, French, and Italian, and support for output in many scripts including western European, eastern European, Arabic, Chinese, Japanese, and Korean. It also allows the user to use different TeX engines, like LuaTeX (MkIV) and LuaMetaTeX (LMTX). Older versions (MkII) worked with pdfTeX or XeTeX.
As its native drawing engine, ConTeXt integrates a superset of MetaPost called MetaFun, which allows users to draw page backgrounds and ornaments with MetaPost. MetaFun can also be used directly with MetaPost. ConTeXt also supports the use of other external drawing engines, like PGF/TikZ and PSTricks.
ConTeXt also provides a macro package for typesetting chemical structure diagrams with TeX, called PPCHTeX, as well as many other modules. This package can also be used with plain TeX and LaTeX. Originally titled pragmatex, ConTeXt was given its name around 1996 by Hans Hagen from PRAGMA Advanced Document Engineering (Pragma ADE), a Netherlands-based company.
Example of code
Making ConTeXt documents is simple: make a plain text file, and compile it with the context script. The result of this process is a PDF file (ConTeXt also can generate a DVI file). An example is shown below.
ConTeXt documents come with the file extension .tex , or an extension demarking the version required: .mkii , .mkiv , or .mkxl for regular TeX, .mkvi or .mklx for a dialect that supports named macro parameters in addition to TeX’s numeric ones. % This line is a comment because % precedes it. % It specifies the format of head named 'title' % Specifically the style of the font: sans serif % + bold + big font. \setuphead[title][style={\ss\bfd}, before={\begingroup}, after={John Doe, the author\smallskip% \currentdate\bigskip\endgroup}] \starttext \title{\CONTEXT} \section{Text} \CONTEXT\ is a document preparation system for the \TEX\ typesetting program. It offers programmable desktop publishing features and extensive facilities for automating most aspects of typesetting and desktop publishing, including numbering and cross-referencing (for example to equation \in[eqn:famous-emc]), tables and figures, page layout, bibliographies, and much more.
It was originally written around 1990 by Hans Hagen. It could be an alternative or complement to \LATEX. \section{Maths} With \CONTEXT\ we could write maths. Equations can be automatically numbered. \placeformula[eqn:famous-emc] \startformula E = mc^2 \stopformula with \placeformula[eqn:def-m] \startformula m = \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}} \stopformula \stoptext
Text derived from https://en.wikipedia.org/w/index.php?oldid=1374395434 under CC BY-SA 4.0; modifications have been made.