Am 22.01.2011 um 13:25 schrieb Andreas Harder:
Hi all,
is it possible to extend the delimited texts implementation in such a way that the environment would accept optional arguments. What I have in mind is something like this:
\setupdelimitedtext [quotation] [% author=Default Author, right=”\wordright{\delimitedtextparameter{author}}]
\starttext \showframe \startquotation% [author=Some Author] \dorecurse{50}{text } \stopquotation \startquotation% [author=Another Author] \dorecurse{50}{text } \stopquotation \stoptext
\usemodule[annotation] \setupdelimitedtext [blockquote] [spacebefore=line] \define[2]\AnnotationCommand {\startblockquote “#2”\wordright{\annotationparameter{subtitle}}% \stopblockquote} \setupannotation [ display=no, alternative=command, command=\AnnotationCommand] \starttext Thus, I came to the conclusion that the designer of a new system must not only be the implementer and first large-scale user; the designer should also write the first user manual. The separation of any of these four components would have hurt \TeX\ significantly. If I had not participated fully in all these activities, literally hundreds of improvements would never have been made, because I would never have thought of them or perceived why they were important. But a system cannot be successful if it is too strongly influenced by a single person. Once the initial design is complete and fairly robust, the real test begins as people with many different viewpoints undertake their own experiments. \startannotation {Peter D. Ward} The Earth, as a habitat for animal life, is in old age and has a fatal illness. Several, in fact. It would be happening whether humans had ever evolved or not. But our presence is like the effect of an old-age patient who smokes many packs of cigarettes per day – and we humans are the cigarettes. \stopannotation We thrive in information-thick worlds because of our marvelous and everyday capacity to select, edit, single out, structure, highlight, group, pair, merge, harmonize, synthesize, focus, organize, condense, reduce, boil down, choose, categorize, catalog, classify, list, abstract, scan, look into, idealize, isolate, discriminate, distinguish, screen, pigeonhole, pick over, sort, integrate, blend, inspect, filter, lump, skip, smooth, chunk, average, approximate, cluster, aggregate, outline, summarize, itemize, review, dip into, flip through, browse, glance into, leaf through, skim, refine, enumerate, glean, synopsize, winnow the wheat from the chaff and separate the sheep from the goats. \stoptext Wolfgang