
\setupbodyfont[pagella,rm,10pt]

\setuppagenumbering[location=none,alternative=doublesided]


\startsetups Pagenumber
\doifoddpageelse
  {\cldcontext{"\letterpercent.0f",(\pagenumber+1)/2}}
	{}
\stopsetups

\setupfootertexts[\directsetup{Pagenumber}]
	
\setuppapersize[A6][A6]

\define[1]\SectionTOCPagenumber{%#1}
	\cldcontext{"\letterpercent.0f",(#1 +1)/2}}

\setuplist
	[section]
	[pagecommand=\SectionTOCPagenumber]
\stopmode
	
\starttext

\startsubject[title=Contents]
\placelist[section][criterium=all]
\stopsubject

\page

	\dorecurse{4}{
		\startsection[title=Ward-\recurselevel\hfill\pagenumber]
			\input ward\blank
		\stopsection
		\page}
\stoptext

