Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
ConTeXt
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Example of code== Making ConTeXt documents is simple: one makes a plain text file, and compiles it with the <code>context</code> script.<ref>[http://www.pragma-ade.com/general/manuals/mtexexec.pdf "TeXEXEC explained" manual. Pragma ADE.]</ref> The result of this process is a [[Portable Document Format|PDF]] file (ConTeXt also can generate a [[DVI (file format)|DVI]] file). An example is shown below. ConTeXt documents come with the file extension .tex or an extension demarking the version required: <code>.mkii</code>, <code>.mkiv</code>, or <code>.mkxl</code> for regular TeX, <code>.mkvi</code> or <code>.mklx</code> for a dialect that supports named macro parameters in addition to TeXβs numeric ones.<ref>{{Cite web|url=https://mailman.ntg.nl/pipermail/ntg-context/2020/096906.html|title=[NTG-context] Official file ending?|last=Hagen|first=Hans|date=2020-02-04|website=mailman.ntg.nl|access-date=2020-02-12|archive-date=2021-06-28|archive-url=https://web.archive.org/web/20210628083507/https://mailman.ntg.nl/pipermail/ntg-context/2020/096906.html|url-status=dead}}</ref> {| style="width:100%;" border="0" cellpadding="0" cellspacing="0" |- |<syntaxhighlight lang="latex"> % 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 </syntaxhighlight> |class="noresize"| [[File:ConTeXt output EN.svg|center|600px|ConTeXt document]] |}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)