\starttext
\title{On proclamations}
\blank
When there is not a declared section, the numbers have no prefix as in the following:
\startproclaim[def:test]{Definition}
This is a définitiondefinition.
\stopproclaim
When there is a declared section, the numbers have as prefix the section number, as in the following:
\startproclaim{LemmeLemma}
Here is another lemma.
\stopproclaim
</texcode>
and we get this:
<context>
%% defining an enumeration environment replacing Plain-TeX's \proclaim
%
\defineenumeration[proclaim]
[text=,
style=slanted,
title=yes,
titleleft=,
titleright=,
location=serried,
width=fit,
right={. }]
\setupnumber[proclaim][way=bysection,numbersection=yes] %% this can be changed according to one's wishes
%
%% end definition \proclaim
\starttext
\title{On proclamations}
\blank
When there is not a declared section, the numbers have no prefix as in the following:
\startproclaim[def:test]{Definition}
This is a definition.
\stopproclaim
\startproclaim{Lemma}
This is a lemma.
\stopproclaim
\section{Here is a section}
When there is a declared section, the numbers have as prefix the section number, as in the following:
\startproclaim{Lemma}
Here is another lemma.
\stopproclaim
\startproclaim[thm:result]{Theorem}
This is our main theorem.
\stopproclaim
\section{Here is another section}
When there is a declared section the numbers have as prefix the section number, as in the following:
\startproclaim[lem:resultB]{Lemma}
Here is an elementary lemma.
\stopproclaim
\startproclaim{Corollary}
This is a corollary.
\stopproclaim
Note that we can refer to our results in the following way: according to the definition \in[def:test] we see that theorem \in[thm:result] is
an easy consequence of lemma \in[lem:resultB].
\stoptext
</context>