On 7 mai 2011, at 18:32, Wolfgang Schuster wrote: > Am 07.05.2011 um 16:37 schrieb Otared Kavian: > >> 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? > > The header (First Argument of the command) consists of > > TEXT (“text”-key) > NUMBER (incremented by context but you can enable/disable it with > “number=yes|no”) > LEFT SYMBOL (“left”-key, default: “(”) > RIGHT SYMBOL (“right”-key, default “)”) > TITLE (“title”-key or optional argument of the command/environment)
Hi, Thanks to your explanations I understood the meanings of each of the keys, and the principles of using the annotation environment. What would be the key to use in order to have (for instance) a colon « : » after the number? Best regards: OK >> 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. > > The annotation module doesn’t have so many options as enumerations and it is > no replacement for them. What the module does is that it generates a > environment (like \definestartstop) where you have access to the content, > with your own command you can format the content in any way you like. > > The advantage of this method is that you can separate content and layout of > certain texts which isn’t possible with build in methods, e.g. a \inmargin > text will always appear in the margin and when you want the text now as quote > you have to change the command from \inmargin to \quotation but with the > annotation module the command in your document won’t change because the > switch from \inmargin to \quotation happens in the preamble with the setup of > the environment. > > \usemodule[annotation] > > \define[2]\AnnotationCommand{\quotation{#2}} > > \setupannotation[alternative=inmargin] > %\setupannotation[alternative=command,command=\AnnotationCommand] > > \starttext > > … \startannotation Hello\stopannotation … > > … \startannotation Hello\stopannotation … > > \stoptext > > 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.kav...@math.uvsq.fr
___________________________________________________________________________________ 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 ___________________________________________________________________________________