ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Request for delimited texts
@ 2011-01-22 12:25 Andreas Harder
  2011-01-22 16:42 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Andreas Harder @ 2011-01-22 12:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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

Greeting
	Andreas
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Request for delimited texts
  2011-01-22 12:25 Request for delimited texts Andreas Harder
@ 2011-01-22 16:42 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-01-22 16:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-22 16:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-22 12:25 Request for delimited texts Andreas Harder
2011-01-22 16:42 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).