\setupoutput[pdftex]

%\usetypescript[adobekb][\defaultencoding]
%\usetypescript[sans]
%\setupbodyfont[sans,10pt]
\loadmapfile [texnansi-bitstrea-zapfhumanist.map]
\usetypescriptfile [type-bitstrea-zapfhumanist]
\usetypescript [ZapfHumanist]
\setupbodyfont [ZapfHumanist,11pt]%



\definefont [SectionHeaderFont] [ZapfHumanist-Bold at 14pt]
\definefont [SubSectionHeaderFont] [ZapfHumanist-Bold at 12pt]
\definefont [SubSubSectionHeaderFont] [ZapfHumanist-Bold at 10pt]


\setuplayout[
  width=middle,
  height=middle,
  grid=yes,
  lines=50,
  topspace=1cm,
  bottomspace=1cm,
  header=1cm,
  footer=1cm,
  backspace=1cm,
]

\setuptolerance[verytolerant,stretch]


\setuphead[section][
  style=\SectionHeaderFont,
  grid={line,4pt},
%  before=,
%  after=,
]

\setuphead[subsection][
  style=\SubSectionHeaderFont,
  grid={line,-4pt},
  before=\blank,
  after=,
]

\def\runin#1#2{#2.}
\setuphead[subsubsection][
  style=\SubSubSectionHeaderFont,
%  before=\blank,
  command=\runin,
  alternative=text,
]


\setupheadertexts[{\sl XNemesis.org Research and Development}][{\sl The vault}]

\setuppagenumbering[location=bottom]


\useexternalfigure[test][ringbearer][frame=true] % resolution 96ppi, 256colors



\definecolumnset[threecolumns][n=3]

\definecolumnsetspan[spantwo][n=2]
\definecolumnsetspan[spanthree][n=3]

\definecolumnsethsize{threecolumns}{1}{1}\One
\definecolumnsethsize{threecolumns}{1}{2}\Two
\definecolumnsethsize{threecolumns}{1}{3}\Three


%----------------------------------------%
\starttext

\showstruts
\showgrid
\showgridboxes


%\startcolumns
\startcolumnset[threecolumns]

%
\startcolumnsetspan[spantwo]

\bgroup
\switchtobodyfont[32pt]
{\bf Title}
\switchtobodyfont[20pt]
{\par\noindent\sl Subtitle}
\blank[20pt, flexible]
\egroup

\stopcolumnsetspan
%


\bgroup
\blank
\setupindenting[none]
\switchtobodyfont[9pt]
{\bf Abstract}\par
AbstractHere
\ignorespaces
\egroup

\bgroup
\blank
\setupindenting[none]
\switchtobodyfont[9pt]
{\bf Keywords:}
Keywords here
\ignorespaces
\egroup




\dorecurse{4}{
\section{Section}
\dorecurse{1}{
\input tufte

\startitemize[packed]
\item A
\item B
\item C
\stopitemize
}

\subsection{Subsection}
\dorecurse{1}{\input tufte\relax}

\placefigure[btlr]{Simple figure}{\externalfigure[test][width=\Two]}


\subsubsection{Subsubsection}
\dorecurse{1}{\input tufte}
}

\blank[3*line, flexible]

\bgroup
\switchtobodyfont[9pt]
{\bf Author}\par
Author
\ignorespaces
\egroup

\stopcolumnset


\stoptext
%%% Local Variables: 
%%% mode: latex
%%% TeX-master: t
%%% End: 
