Open main menu

Changes

212 bytes added ,  01:56, 25 August 2019
m
< [[Main Page]] | [[Hello world|Detailed exampleExample]] >
ConTeXt is a ''[http://en.wikipedia.org/wiki/Markup_language markup laguagelanguage]'' used to primarily create PDF files. To use ConTeXt, create a text file (typically with a <code>.tex</code> extension) with ConTeXt markup and ''compile'' the file by running the command <code>context filename</code>. This creates a PDF file. This page explains how to create your very first ConTeXt document.
== First steps ==
You should get an output as follows:
<pre>
mtx-context | ConTeXt Process Management 01.6003
mtx-context |
mtx-context | main context file: /opt/context-minimals/texmf-context/tex/context/base/mkiv/context.mkivmtx-context | current version: 20132019.0107.27 2124 11:2417
</pre>
Go to the command-line and type:
<pre>context hello.tex</pre>
ConTeXt will then process your document, display some logging information on the console, and generate a <tt>hello.pdf</tt> output file.
<pre><nowiki>
mtx-context | run 1: luatex --fmt="/opthome/adityam/.cache/context-minimals/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" --jobname="hello" --lua="/opthome/adityam/.cache/context-minimals/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./hello.tex" --c:input="./hello.tex" --c:kindofrun=1 "cont-yes.mkiv"This is LuaTeX, Version beta-0.74.0c:maxnofruns=9 --2012122511 (rev 4541) \write18 enabled.(c:texmfbinpath="/opt/context-minimals/texmf-context/tex/context/baselinux-64/bin" "cont-yes.mkiv"
This is LuaTeX, Version 1.10.1 (TeX Live 2019) system commands enabled.open source > level 1, order 1, name '/opt/context-minimals/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'system > system > ConTeXt ver: 20132019.0107.27 2124 11:24 17 MKIV beta fmt: 20132019.18.28 17 int: english/english
...
...
mkiv lua stats > current lua properties: engine: lua 5.3, used memory usage - 23 : 94 MB (, ctx: 23 93 MB, max: unknown MB), hash chars: min(64,40), symbol mask: utf (τεχ)mkiv lua stats > runtime - : 0.316 833 seconds, 1 processed pages, 1 shipped pages, 31.165 200 pages/second system | total runtime: 04.468485 seconds
</nowiki></pre>