Difference between revisions of "First Document"

From Wiki
Jump to navigation Jump to search
m (added start/stop hint)
(link to http://live.contextgarden.net and some minor changes)
Line 1: Line 1:
< [[Main Page]]
+
< [[Main Page]] | [[Second Step]] >
  
What is ConTeXt? What can I do with it? Let’s see. Take your favourite text editor and type in the following document. Save it as file hello.tex.
+
 
 +
What is ConTeXt? What can I do with it? Let’s see. Take your favourite [[text editor]], type in the following document and save it as a file <code>hello.tex</code>.
  
 
<texcode>
 
<texcode>
Line 11: Line 12:
 
It shows already a ConTeXt essential: everything's between <tt>\startsomething</tt> and <tt>\stopsomething</tt>.
 
It shows already a ConTeXt essential: everything's between <tt>\startsomething</tt> and <tt>\stopsomething</tt>.
  
Now go to the shell/command line and type in
+
I you don't have ConTeXt [[install|installed]] (yet), you can first try out the latest version using the web interface http://live.contextgarden.net.
 +
 
 +
If you already installed it, you can go to the shell/command line and type in
  
 
<pre>
 
<pre>
Line 20: Line 23:
  
 
<pre><nowiki>
 
<pre><nowiki>
  TeXExec 4.3 - ConTeXt / PRAGMA ADE 1997-2004
+
  TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
  
 
             executable : pdfetex
 
             executable : pdfetex
Line 27: Line 30:
 
                 output : standard
 
                 output : standard
 
             interface : en
 
             interface : en
              options : once nonstop
 
 
           current mode : none
 
           current mode : none
 +
              TeX run : 1
  
This is pdfeTeXk, Version 3.141592-1.11a-2.1 (Web2C 7.5.2)
+
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
\write18 enabled.
+
  (/opt/context/current/texmf/web2c/natural.tcx)
%&-line parsing enabled.
 
  (/opt/texlive/8/texmf/web2c/cp8bit.tcx)
 
 
entering extended mode
 
entering extended mode
(./test.tex{pdftex.cfg}
+
(./test.tex
  
ConTeXt  ver: 2004.4.9 fmt: 2004.4.16 int: english  mes: english
+
ConTeXt  ver: 2005.08.19 fmt: 2005.8.19 int: english  mes: english
  
language       : language en is active
+
language       : language en is active
 
<protectionstate 0>
 
<protectionstate 0>
 
...
 
...

Revision as of 21:47, 26 August 2005

< Main Page | Second Step >


What is ConTeXt? What can I do with it? Let’s see. Take your favourite text editor, type in the following document and save it as a file hello.tex.

\starttext
Hello World
\stoptext

It shows already a ConTeXt essential: everything's between \startsomething and \stopsomething.

I you don't have ConTeXt installed (yet), you can first try out the latest version using the web interface http://live.contextgarden.net.

If you already installed it, you can go to the shell/command line and type in

texexec --pdf hello.tex

and now ConTeXt will start. It will give you some output on your terminal

 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

            executable : pdfetex
                format : cont-en
             inputfile : test
                output : standard
             interface : en
          current mode : none
               TeX run : 1

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 (/opt/context/current/texmf/web2c/natural.tcx)
entering extended mode
(./test.tex

ConTeXt  ver: 2005.08.19  fmt: 2005.8.19  int: english  mes: english

language        : language en is active
<protectionstate 0>
...

Don’t be worried. This is the way it should look. Once texexec has finished, it will leave behind a file called hello.pdf. Open it and you will see a "Hello world" on a virtual A4 paper and a page number.

> Second Step