Open main menu

Changes

no edit summary
== Purpose ==
Here is a skeleton document that illustrates several features of ConTeXt: * [[Layout|layouts]], * [[Enumerations|lists]], * [[Math|mathematics]], * [[References|automatic cross-references]], * [[Presentations|interaction]] (hyperlinks), * shaded boxes, and * [[Using Graphics|figure-text integration]].
[[Image:Hello-world.pdf]] is the PDF file the 2006.12.27 version of ConTeXt produced.
 
== Source ==
[[Image:Hello-world.tex]] is the source (to save copying and pasting from the source below).
 
Words starting with a backslash (such as <code>\starttext</code>) are called '''command sequence''' or '''macros'''.
To mark the content to be typeset, one uses the macros
 
<texcode>\starttext
\stoptext</texcode>
 
To mark a headline and the content of a section, one uses the macros:
 
<texcode>
\startsection[title={…}]
\stopsection
</texcode>
 
<texcode>
% * Created
%
% This document is in the public domain (no copyright).
\setupcolors[state=start] % otherwise you get greyscale
\title{Hello, world!}
Here is a hello-world template document to illustrates illustrate a few \ConTeXt\
features. Have fun. You can find a lot more information at
\from[wiki]; the preceding text should be colored and clickable, and
</texcode>
== Output ==This documents document looks like this:
<context>
% * Created
%
% This document is in the public domain (no copyright).
\setupcolors[state=start] % otherwise you get greyscale
\title{Hello, world!}
Here is a hello-world template document to illustrates illustrate a few \ConTeXt\
features. Have fun. You can find a lot more information at
\from[wiki]; the preceding text should be colored and clickable, and
% * Created
%
% This document is in the public domain (no copyright).
%%%% TO GET CORRECT Page number
</context>
== Compiling == To compile the file, go to command line and run texexec Hello-world.tex[[Category:Sample documents]] If you get an error like "I can't find the format file `cont-en.fmt'!", try using following instead[[Category: context Hello-world.texBasics]]
976

edits