Hi Wolfgang, Many thanks for your explanations. If I may ask a further question, I would like to know at which level one can control whether the first argument of the quotation in the example \MyQuotation{Wolfgang Schuster}{The annotation module is wonderful!} is surrounded or not by parentheses? I am asking this because I defined for my own use a macro which replaces the \proclaim command of Plain TeX (which disappeared in ConTeXt): I am thinking of switching to use the annotation module, since maybe with that it should be possible to have a list of all anotations of a certain type (for instance list of all theorems, all lemmas, etc) with the page at which they appear. Also with the annotations environment it seems that one can have more fancy layouts for proclaims. My definition of proclaim works only with mkii (somehow in mkiv the section number does not appear when numbering the proclaimed stuff…). The example is below. Best regards: OK %% 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] % maybe one has to change this in mkiv? %% end definition \proclaim \starttext 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{Lemme} Here is another lemma. \stopproclaim \startproclaim[thm:result]{Theorem} This is our main theorem. \stopproclaim \stoptext On 7 mai 2011, at 14:04, Wolfgang Schuster wrote: > > Am 07.05.2011 um 12:44 schrieb Otared Kavian: > >> Hi Wolfgang, >> >> Following up one of the recent threads about your annotation module, I made some experiments and found it a wonderful and extremely useful module. >> Out of curiosity, I wanted to know whether there is a key to set a background color for an annotation (as it is possible to use headcolor=darkred, or textcolor=darkgray, for instance). > > No, you one of ConTeXt commands/environments which have a background, e.g. framed, background or textbaxkground. > > \define[2]\MyQuotationCommand > {\setupbackground[background=color,backgroundcolor=gray] > \startbackground > \textrule{#1}#2\textrule > \stopbackground} > > or > > \define[2]\MyQuotationCommand > {\setupbackground[background=color,backgroundcolor=gray] > \textrule{#1}% > \startbackground > #2% > \stopbackground > \textrule} > >> Also I didn't get the difference between textcolor=darkgray and color=darkgray: are they the same? > > The “color” affects the header *and* the text while “headcolor” and “textcolor” only affect one of them. You can test this when you comment headcolor/textcolor and use only color. > > Wolfgang > > > > ___________________________________________________________________________________ > 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 e-mail: Otared.Kavian@math.uvsq.fr