% Context file
% Filename: test-sectionnumberconversion.tex
% 
% 19-04-2011
% Copyright (c) 2011 BOEDE. All rights reserved.

%\showframe
\def\PartNo#1{#1.\,Teil}
% \def\ChapterNo#1{§ \headnumber[part]
%     \determineheadnumber[chapter]\currentheadnumber}
% \def\SectionNo#1{\determineheadnumber[section]\romannumeral\currentheadnumber}
% 
\setuphead
	[part]
	[number=yes,
	after=\blank,
	% numbercommand=\PartNo,
    style={\tfc\ss\bf},
	placehead=yes]  
\setuphead
	[chapter]
	[before=\blank,
	after=\blank,
	% conversion=Characters,
    % numbercommand=\ChapterNo,
    continue=yes,
    style={\tfb\ss\bf}]
\setuphead
    [section]
	[%conversion=Romannumerals,
    % numbercommand=\SectionNo,
	style={\tfb\ss\bf}] 

\definestructureconversionset[MySet][numbers,Characters,Romannumerals][numbers] % [per level] [default]

\setupsection
	[part,chapter,section]
	[sectionconversionset=MySet]

\starttext

\part{foo}
\chapter{bar}
\section{baz}

\stoptext
