\setupoutput[pdftex]
\usetypescriptfile[type-zapfhumanist]
\usetypescript[map][zapfhumanist][\defaultencoding]
\usetypescript[zapfhumanist][\defaultencoding]
\setupbodyfont[zapfhumanist,sans, 10pt]


\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,
  topspace=1cm,
  bottomspace=1cm,
  header=1cm,
  footer=1cm,
  backspace=1cm,
]

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

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

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

\setuptolerance[strict]
\setupheadertexts[{\sl XNemesis.org Research and Development}][{\sl The vault}]
\setuppagenumbering[location=bottom]

\useexternalfigure[test][buttons][frame=true]
\definelayer[graphics][x=0.5cm,y=2cm,width=\paperwidth,height=\paperheight]
\setupbackgrounds[page][background=graphics]
\definelayerpreset[lefttop][corner={left,top},location={right,bottom}]
\setlayer[graphics][preset=lefttop]{\externalfigure[test]}

\definecolumnset[threecolumns][n=3,distance=12pt]
\definecolumnsetspan[spantwo][n=2]
\definecolumnsetspan[spanthree][n=3]
\definecolumnsethsize{threecolumns}{1}{1}\OneColumn
\definecolumnsethsize{threecolumns}{1}{2}\TwoColumns
\definecolumnsethsize{threecolumns}{1}{3}\ThreeColumns

\starttext

\startcolumnset[threecolumns]

\startcolumnsetspan[spantwo]

\bgroup
\switchtobodyfont[32pt]
{\par\noindent\bf Title very long spanning two lines}
\switchtobodyfont[20pt]
{\par\noindent\bi Subtitle}
\blank[small]
\switchtobodyfont[10pt]
{\par\noindent\bi Fabio Mancinelli $<$fm@fabiomancinelli.org$>$}
\blank[2*big]

\egroup
\stopcolumnsetspan


{\bf Abstract}\par

AbstractHere fdshfjdskf hjdskf hskjd  fhskjd fhskjd fhkjdsf hkjds hfkjds fhksjd
fhskjd fhkjds fhkjdsf hk
\blank
{\bf Keywords:}
Keywords here

\dorecurse{5}{
\section{Section}
\input text

\subsection{Section}
\input text

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

\subsubsection{Section}
\input text
}
\stopcolumnset
\stoptext

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