% Context file
% Filename: test-listcommand.tex
% 
% 02-08-2012
% Copyright (c) 2012 BOEDE. All rights reserved.
%
% \nopdfcompression
% \enabletrackers[context.trace]
% \enabletrackers[system.jobfiles]


\define[3]\CGJSection{{\bf #3\hskip3em #1. #2}\par}
\define[3]\CGJSubsection{\it #3\hskip3em #1. #2\par}

% \define[3]\CGJsubsection{%
%   \framed
%     [width=\textwidth,align=flushleft,offset=0pt,style=\it]
%     {\hbox to 8mm{#3} #1. #2}}

\setuplist
	[section]
	[before={\blank[line]},
	after={},
	style=\bf,
  numberstyle=\bf,
  textstyle=\bf,
	prefix=no,
  % alternative=command,
  % command=\CGJSection%
   ]
\setuplist
  [subsection]
  [before={},
  after={},
  numberstyle=\it,
  tetxtstyle=\it,
  prefix=no,
  % alternative=command,
  % command=\CGJSubsection%
  ] 

%\showframe

\starttext
\startsubject[title=Index]
  \placelist[section,subsection]
\stopsubject
\page
\dorecurse{3}{%
\startsection[title=Ward]
  \input ward
  \startsubsection[title=Weisman]
    \input weisman
   \stopsubsection
   \startsubsection[title=Bryson]
     \input bryson
    \stopsubsection
    \startsubsection[title=Linden]
      \input linden
     \stopsubsection
\stopsection}

\stoptext