Am 23.10.2012 um 17:58 schrieb Shane Peelar <lookatyouhac...@gmail.com>:
> Hello everyone,
>
> I was going through a tutorial to learn how to set up theorem-like
> environments in ConTeXt:
> http://www.ntg.nl/maps/36/09.pdf
>
> and I noticed a few strange behaviours. I recognize that this tutorial was
> written for MkII ConTeXt,
> but after consulting the documentation in the latest ConTeXt manual and the
> wiki, I have determined
> that these features should still work. I'm looking at the "list"
> functionality of enumerations and descriptions.
> In MkII, you can do the following:
>
> \defineenumeration[blah][
> ...
> list=listname,
> listtext={Text goes here}]
>
> and every time the enumeration is used, it'll be placed in the list you
> specify.
> The tutorial referenced above uses this to place a list of theorems with
> proper naming and numbering,
> as well as lemmas and other math things. In MkIV, I noticed that this
> functionality doesn't work, or at least not in the same way. I was not able
> to do:
>
> \placelist[enumeration:listname]
>
> for example. I was able to do \placelist[blah], however. After scouring
> this mailing list and consulting the source code, I haven't been able to find
> anything that would give me this functionality in MkIV. Was this
> intentional, or is there another way to get this functionality back?
>
> The other strangeness I noticed was the "separator" option in
> defineenumeration.
> Normally one could do:
> \defineenumeration[blah2][
> ...
> separator=--]
>
> and things would work as they should, however this doesn't seem to work in
> MkIV. The last piece of functionality I noticed was not being able to set
> the number style in defineenumeration (which again works in MkII, tested this
> morning), like so:
>
> \defineenumeration[blah3][
> numberstyle=bold]
>
> The wiki shows that these options should all be there, and they appear to be
> at least referenced in the source code, but I'm not familiar enough with the
> codebase to really give a good judgment of that. I noticed in one file
> "strc-des.mkiv" it says in a comment "lists and titles are experimental".
> Could anyone please help me out with these features?
\defineseparatorset[dash][][--]
\defineenumeration
[test]
[text=Test,
headstyle=bolditalic,
numberseparatorset=dash]
\starttext
\placelist[test]
\starttest[title={Knuth}]
\input knuth
\stoptest
\startsubtest[title={Zapf}]
\input zapf
\stopsubtest
\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
___________________________________________________________________________________