Hi Hans, Thanks for your attention. However the following doesn’t result in what is expected:
%% begin proof-qed.tex \defineenumeration [proof] [number=no, closesymbol=\mathematics{\square}, closecommand=\mathortext\eqno\wordright] \starttext \startproof This is a simple proof. \stopproof \startproof This is another simple proof that ends with a formula \startformula 1+2=3. \stopformula \stopproof \stoptext %% end proof-qed.tex Neither does the use of displaymath, that is $$1+2=3.$$ Best regards: OK > On 10 Nov 2014, at 10:08, Hans Hagen <pra...@wxs.nl> wrote: > > On 11/10/2014 6:54 AM, Otared Kavian wrote: >> Hi Mikael, >> >> Actually I just tried your example with the ConTeXt version on TeX Live, as >> well as with a copy dating back to 2014-02-14, and both behaved in the same >> wrong way regarding the closesymbol and closecommand. So in >> >> \setupenumeration[proof] >> [number=no, >> closesymbol=\mathematics{\square}, >> closecommand=\ifmmode\eqno\else\wordright\fi] >> >> the \ifmmode is not honoured, and the change must have happened quite >> earlier than a few weeks. >> >> Maybe we should open a new thread as a bug in closecommand? > > it probably has to do with the if test and some checking on 'command' ... > > \defineenumeration > [proof] > [number=no, > closesymbol=\mathematics{\square}, > closecommand=\mathortext\eqno\wordright] > > > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com > | www.pragma-pod.nl > ----------------------------------------------------------------- > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________