Difference between revisions of "First Document"

From Wiki
Jump to navigation Jump to search
m (fixed installation link)
m ([new]texexec has slightly different output now)
Line 17: Line 17:
  
 
<pre>
 
<pre>
texexec --pdf hello.tex
+
texexec hello.tex
 
</pre>
 
</pre>
  
Line 23: Line 23:
  
 
<pre><nowiki>
 
<pre><nowiki>
TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
+
TeXExec | processing document 'hello.tex'
 
+
TeXExec | no ctx file found
            executable : pdfetex
+
TeXExec | tex processing method: context
                format : cont-en
+
TeXExec | TeX run 1
            inputfile : test
+
TeXExec | writing option file hello.top
                output : standard
+
TeXExec | tex engine: pdfetex
            interface : en
+
TeXExec | tex format: cont-en
          current mode : none
+
TeXExec | progname: context
              TeX run : 1
+
This is pdfeTeXk, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5)
 
+
\write18 enabled.
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
+
%&-line parsing enabled.
  (/opt/context/current/texmf/web2c/natural.tcx)
+
  (c:\Programi\context\usr\local\context\tex\texmf-local/web2c/natural.tcx)
 
entering extended mode
 
entering extended mode
(./test.tex
+
(./hello.tex
  
ConTeXt  ver: 2005.08.19 fmt: 2005.8.19 int: english  mes: english
+
ConTeXt  ver: 2006.05.14 23:57 fmt: 2006.5.16 int: english  mes: english
  
 
language        : language en is active
 
language        : language en is active

Revision as of 00:38, 16 May 2006

< Main Page | Second Step | Next Steps >


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.

If 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 hello.tex

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

TeXExec | processing document 'hello.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file hello.top
TeXExec | tex engine: pdfetex
TeXExec | tex format: cont-en
TeXExec | progname: context
This is pdfeTeXk, Version 3.141592-1.30.3-2.2 (Web2c 7.5.5)
 \write18 enabled.
 %&-line parsing enabled.
 (c:\Programi\context\usr\local\context\tex\texmf-local/web2c/natural.tcx)
entering extended mode
(./hello.tex

ConTeXt  ver: 2006.05.14 23:57  fmt: 2006.5.16  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