From: siepo@client44-3.kabelA.oprit.rug.nl
Subject: Re: list-like environments
Date: Wed, 9 Aug 2000 20:45:35 +0200 (CEST) [thread overview]
Message-ID: <14737.42703.393724.391961@bitmuis.thuis.nl> (raw)
In-Reply-To: <3.0.6.32.20000809131307.0155cce0@pop.wxs.nl>
Hans Hagen writes:
> At 10:14 PM 8/8/00 +0200, siepo@client44-3.kabelA.oprit.rug.nl wrote:
> >What is the Context analogue for the LaTeX \newenvironment? And is
>
> There is \definestartstop; for usage see the exampe i made for wybo.
>
> \setuplayout[width=100mm]
>
> \let\normalbegin\begin
>
> \let\complexbegin\normalbegin
>
> \def\simplebegin#1%
> {\getvalue{start#1}\bgroup
> \def\end##1{\egroup\getvalue{stop##1}}}
>
> \definecomplexorsimple \begin
>
> \definedescription
> [description]
> [location=hanging,
> margin=standard,
> headstyle=bold]
>
> \definestartstop
> [descriptions]
> [before=\blank\startpacked,
> after=\stoppacked\blank,
> commands=\let\item\description]
>
> \starttext
>
> \dorecurse{10}{This one is for Wybo. }
>
> \startdescriptions
>
> \description {aap:} is a monkey, but much more can be told
> about this animal;s for example they are hairy, mostly
> brown or black and they resemble people a lot.
>
> \item {noot:} is a vegetable; again there are many kinds
> and you will get very fat if you eat lots of them.
>
> \startdescription {this is a rather long item:}
>
> it is not very interesting in itself, but gives me the
> opportunity to tell you something about the description
> environment: it is like an itemize, but with user-supplied
> labels which are printed bold.
>
> \stopdescription
>
> \stopdescriptions
>
> \dorecurse{10}{This one is for Wybo. }
>
> \begin{descriptions}
>
> \item {aap:} is a monkey, but much more can be told
> about this animal;s for example they are hairy, mostly
> brown or black and they resemble people a lot.
>
> \item {noot:} is a vegetable; again there are many kinds
> and you will get very fat if you eat lots of them.
>
> \item {this is a rather long item:} it is not very
> interesting in itself, but gives me the opportunity to tell
> you something about the description environment: it is like
> an itemize, but with user-supplied labels which are printed
> bold.
>
> \end{descriptions}
>
> \dorecurse{10}{This one is for Wybo. }
>
> \stoptext
>
>
>
>
> >there something like defineitemize[name][parameters]?
>
> Not yet, but it's on my to do list, since I sometimes need it too.
>
> Hans
> -------------------------------------------------------------------------
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
> -------------------------------------------------------------------------
>
The example above seems to illustrate rather more points than
just \definestartstop. Nevertheless, thanks.
Another point: is somebody willing to take the trouble to give me a
complete rundown of all the parameters of \setupitemize and
\setupenumerations? I have been playing around a bit with these
commands but am not making much headway; many parameters don't seem to
have any effect at all.
In particular, I want to make numbered and bulleted lists in which the
number or bullet is formatted as a run-in head, and items are
separated by vertical space.
Siep
next prev parent reply other threads:[~2000-08-09 18:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-08 20:14 siepo
2000-08-09 11:13 ` Hans Hagen
2000-08-09 18:45 ` siepo [this message]
2000-08-09 22:11 ` Hans Hagen
2000-08-10 18:09 ` installing Frans Goddijn
2000-08-10 18:23 ` installing Ed L Cashin
2000-08-10 18:24 ` installing Hans Hagen
2000-08-10 18:55 ` installing Frans Goddijn
2000-08-10 19:44 ` installing Hans Hagen
2000-08-17 12:54 ` installing Frans Goddijn
2000-08-10 18:49 ` PS Frans Goddijn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=14737.42703.393724.391961@bitmuis.thuis.nl \
--to=siepo@client44-3.kabela.oprit.rug.nl \
--cc=siepo@cybercomm.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).