Hi Severin,

Maybe this is what you want:
%%%%% begin
%% defining \proclaim which is built in Plain-teX
%% but has disappeared from ConTeXt
\defineenumeration[proclaim]
[text=,
style=slanted,
title=yes,
titleleft=,
titleright=,
location=serried,
width=fit,
right={.~}]
\setupnumber[proclaim][way=bysection,numbersection=yes]
%% end definition \proclaim

%% defining \remark 
\defineenumeration[remark]
[text=,
style=rm,
title=yes,
titleleft=,
titleright=,
location=serried,
width=fit,
right={.~}]
\setupnumber[remark][number=proclaim]
%% end definition \remark

\starttext
\input knuth.tex

\startproclaim[lem:Yoneda]{Yanada Theorem}
This is a theorem in set category theory.
\stopproclaim

\startremark{Remark}
The above theorem and this remark are numbered sequentially.
\stopremark

\section{A new section}

\input knuth.tex

\startproclaim[lem:Yoneda2]{Yanada Theorem}
As said above, this is a theorem in set category theory.
\stopproclaim

\startremark{Remark}
The above theorem and this remark are numbered sequentially.
\stopremark

\stoptext
%%%%% end

Best regards: OK

On 3 mars 2011, at 09:05, S Barmeier wrote:

Currently I am using something like

\defineenumeration[lemma]
  [location=serried,
   headstyle=bold,
   text=Lemma,
   width=broad,
   style=italic]

to define theorems, lemmas, etc.

Sometimes a theorem or lemma will have its own name (e.g. Yoneda Lemma),
and I find it slightly cumbersome to write something like

3.1 Theorem (Yoneda Lemma)
3.1 Lemma (Yoneda)
3.1 Lemma (Yoneda Lemma)

and was really hoping that

\startlemma[text={Yoneda Lemma}]

would give me the desired

3.1 Yoneda Lemma

but it doesn't. I would like to keep the whole setup the same and only
change the text for this instance. Is there any way to implement this
except for defining a whole new enumeration for one
theorem/lemma/proposition by

\startenumeration[text={Yoneda Lemma},location= ... ]

Thank you.
Severin


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

%%%%%%%%%%%%%%%%%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46