\startenvironment screen

\setupbodyfont[ber,pos]

% typeset verbatim text with sans serif
% a convention popularized by the context manuals
\setuptyping[letter=\ss]

% white space between paragraphs
\setupwhitespace[medium]

\setupcolors[state=start]

% this is an interactive document
 \setupinteraction
 	[state=start,
 	 title={LaTeX in proper ConTeXt},
 	 author={Berend de Boer},
 	 subtitle={There is live after LaTeX},
 	 keywords={LaTeX ConTeXt},
	 color=blue]

% typeset verbatim as follows:
\definetyping[margin=1em]

% tabwidth
\chardef\spacespertab=2

% this is bibtex
\def\BIBTEX{bib\TeX }

% typeset LaTeX code as follows:
\definetyping[LATEX]
\setuptyping[LATEX]
  [before={\setupbackground[backgroundscreen=0.85]\startbackground\switchtobodyfont[9pt]},
  after={\stopbackground},
  margin=1em]

% typeset ConTeXt code as follows:
\definetyping[CONTEXT]
\setuptyping[CONTEXT]
  [before={\setupbackground[backgroundscreen=0.95]\startbackground\switchtobodyfont[9pt]},
  after={\stopbackground},
  margin=1em]

% LaTeX command
\defineregister[indexcmdlat]
\def\cmdlat#1{{\indexcmdlat{\tex{#1}}\tex{#1}}}
\def\envlat#1{{\indexcmdlat{{\tt#1} environment}{\tt #1} environment}}
\def\latpkg#1{#1}

% ConTeXt command
\defineregister[indexcmdcon]
\def\cmdcont#1{{\indexcmdcon{\tex{#1}}\tex{#1}}}
\def\envcont#1{{\indexcmdcon{\tex{start#1}}\tex{start#1}}}
\def\modcont#1{{\indexcmdcon{{\tt #1} module}{\tt #1} module}}

% also generate pdf bookmarks
%\setupmarking[bookmarks][expansion=yes]
%\placebookmarks
%	[chapter,section,subsection]
%	[open list]

\def\TutDate{2003-Jul-19}

\def\startTutorial[#1]%
	{\getparameters[Tut]%
	[TitleA=\LaTeX\ in proper \ConTeXt,
	 TitleB=,
     TitleC=,
     Pagenum=,
     Author=Berend de Boer]%
  \starttext \start
  \startstandardmakeup \ss
  \hairline \start
  \switchtobodyfont[20pt]\bf
  \leftaligned{\TutTitleA}%
  \leftaligned{\TutTitleB}%
  \leftaligned{\TutTitleC}%
  \stop \hairline \blank[line]\rightaligned{\TutAuthor}%
  \blank[10cm]\start\leftskip=10cm\hairline\stop
  \rightaligned{\TutDate}%
  \stopstandardmakeup\stop
  \startfrontmatter \completecontent\stopfrontmatter }

\def\stopTutorial{\stoptext}

\stopenvironment
