[NTG-context] Some odd behaviour I noticed in MkIV with respect to enumerations

2012-10-23 Thread Shane Peelar
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?

Thanks,
Shane Peelar
___
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
___

Re: [NTG-context] ntg-context Digest, Vol 100, Issue 63

2012-10-23 Thread Shane Peelar
Hi Wolfgang,

Thanks for the quick and helpful reply.  Is there also a way to change just
the number colour and style in the example you provided?

-Shane Peelar

On Tue, Oct 23, 2012 at 12:21 PM, ntg-context-requ...@ntg.nl wrote:

 Send ntg-context mailing list submissions to
 ntg-context@ntg.nl

 To subscribe or unsubscribe via the World Wide Web, visit
 http://www.ntg.nl/mailman/listinfo/ntg-context
 or, via email, send a message with subject or body 'help' to
 ntg-context-requ...@ntg.nl

 You can reach the person managing the list at
 ntg-context-ow...@ntg.nl

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of ntg-context digest...


 Today's Topics:

1. Re: Lua in Ctx: require() fails? (Hans Hagen)
2. Re: using two columns on a poster (\setlayerframed) (Hans Hagen)
3. Re: Lua in Ctx: require() fails?
   (Proch?zka Luk?? Ing. - Pontex s. r. o.)
4. Re: TABLE: header with a thick bottom line (Rogers, Michael K)
5. Re: Lua in Ctx: require() fails? (Hans Hagen)
6. Some odd behaviour I noticed in MkIV with respect to
   enumerations (Shane Peelar)
7. Re: Some odd behaviour I noticed in MkIV with respect to
   enumerations (Wolfgang Schuster)


 --

 Message: 1
 Date: Tue, 23 Oct 2012 16:53:01 +0200
 From: Hans Hagen pra...@wxs.nl
 To: Proch?zka Luk?? Ing. - Pontex s. r. o. l...@pontex.cz
 Cc: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Lua in Ctx: require() fails?
 Message-ID: 5086af4d.4000...@wxs.nl
 Content-Type: text/plain; charset=ISO-8859-2; format=flowed

 On 23-10-2012 16:37, Proch?zka Luk?? Ing. - Pontex s. r. o. wrote:

  resolverslibraries  ! checking for Test.lua using lua path
  d:/Lukas/Lua/?.lua
  
 
  in the output log but d:\Lukas\Lua\Test.lua is not found here (?!).
 
  So - ?

 no clue ... maybe an error in test.lua

 
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -


 --

 Message: 2
 Date: Tue, 23 Oct 2012 16:54:13 +0200
 From: Hans Hagen pra...@wxs.nl
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Cc: Mojca Miklavec mojca.miklavec.li...@gmail.com
 Subject: Re: [NTG-context] using two columns on a poster
 (\setlayerframed)
 Message-ID: 5086af95.2080...@wxs.nl
 Content-Type: text/plain; charset=ISO-8859-1; format=flowed

 On 23-10-2012 16:21, Mojca Miklavec wrote:
  On Tue, Oct 23, 2012 at 4:05 PM, Aditya Mahajan wrote:
  Perhaps, \startsimplecolumns
 
  Ouch. It seems like I'm asking the same question over and over again,
  and always get the same answer - to simplify things ;) This works in
  MKIV, but I have some problems with math in MKIV. In MKII this fails
  with
 
  ! Incomplete \iffalse; all text was ignored after line 49.
  inserted text
   \fi
  * poster.tex
 
  ?

 so how does your code look

 -
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
   | www.pragma-pod.nl
 -


 --

 Message: 3
 Date: Tue, 23 Oct 2012 16:58:57 +0200
 From: Proch?zka Luk?? Ing. - Pontex s. r. o.  l...@pontex.cz
 To: Hans Hagen pra...@wxs.nl, ConTeXt ntg-context@ntg.nl
 Subject: Re: [NTG-context] Lua in Ctx: require() fails?
 Message-ID: op.wmmzwjd6tpjj8f@lpr
 Content-Type: text/plain; charset=iso-8859-2; format=flowed; delsp=yes

 On Tue, 23 Oct 2012 16:53:01 +0200, Hans Hagen pra...@wxs.nl wrote:

  On 23-10-2012 16:37, Proch?zka Luk?? Ing. - Pontex s. r. o. wrote:
 
  resolverslibraries  ! checking for Test.lua using lua path
  d:/Lukas/Lua/?.lua
  
 
  in the output log but d:\Lukas\Lua\Test.lua is not found here (?!).
 
  So - ?
 
  no clue ... maybe an error in test.lua

 ... Have you seen the content of Test.lua? It just prints some text...

 When I downgraded Ctx to the previous installed version, it works...

 Lukas


 --
 Ing. Luk?? Proch?zka [mailto:l...@pontex.cz]
 Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
 Bezov? 1658
 147 14 Praha 4

 Tel: +420 244 062 238
 Fax: +420 244 461 038



 --

 Message: 4
 Date: Tue, 23 Oct 2012 15:13:10 +
 From: Rogers, Michael K mrog...@emory.edu
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re

Re: [NTG-context] ntg-context Digest, Vol 100, Issue 65

2012-10-23 Thread Shane Peelar
 Date: Tue, 23 Oct 2012 20:31:01 +0200
 From: Wolfgang Schuster wolfgang.schus...@gmail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Some odd behaviour I noticed in MkIV with
 respect to enumerations
 Message-ID: 8f139542-5a13-4fdd-b916-c4ed1065b...@gmail.com
 Content-Type: text/plain; charset=windows-1252


 Am 23.10.2012 um 19:36 schrieb Shane Peelar lookatyouhac...@gmail.com:

  Hi Wolfgang,
 
  Thanks for the quick and helpful reply.  Is there also a way to change
 just the number colour and style in the example you provided?

 \defineseparatorset [testseparator] [][?]

 \defineprocessor[teststyle][style=bolditalic]
 \defineconversionset[testconversion][][teststyle-number]

 %\defineprocessor[one][style=italic,color=red]
 %\defineprocessor[two][style=normal,color=blue]

 %\defineconversionset[testconversion][one-number,two-number][teststyle-number]

 \defineenumeration
   [test]
   [text=Test,
headstyle=bold,
numberconversionset=testconversion,
numberseparatorset=testseparator]

 \starttext

 \placelist[test]

 \starttest[title={Knuth}]
 \input knuth
 \stoptest

 \startsubtest[title={Zapf}]
 \input zapf
 \stopsubtest

 \stoptext

 Wolfgang


Thanks!  This worked out perfectly.
___
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
___