ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Shane Peelar <lookatyouhacker@gmail.com>
To: ntg-context@ntg.nl
Subject: Some odd behaviour I noticed in MkIV with respect to enumerations
Date: Tue, 23 Oct 2012 11:58:05 -0400	[thread overview]
Message-ID: <CAEseUXkaFYJTGP=K=BGRL8kZTyzYxkEHvOhqGa-VHb7B0bLPng@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2048 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2288 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

             reply	other threads:[~2012-10-23 15:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-23 15:58 Shane Peelar [this message]
2012-10-23 16:21 ` Wolfgang Schuster
     [not found] <mailman.619.1351009277.2084.ntg-context@ntg.nl>
2012-10-23 17:36 ` ntg-context Digest, Vol 100, Issue 63 Shane Peelar
2012-10-23 18:31   ` Some odd behaviour I noticed in MkIV with respect to enumerations Wolfgang Schuster

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='CAEseUXkaFYJTGP=K=BGRL8kZTyzYxkEHvOhqGa-VHb7B0bLPng@mail.gmail.com' \
    --to=lookatyouhacker@gmail.com \
    --cc=ntg-context@ntg.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).