[NTG-context] Generating a list of items

Aditya Mahajan adityam at umich.edu
Sun Jul 6 05:27:00 CEST 2008


On Sat, 5 Jul 2008, David wrote:

> Hi all
>
> I'm teaching some classes this summer, and want to make myself a
> template for lesson planning. One of the things that I'd like to be
> able to include, if it works easily, is an automatically-created list
> of the materials I need to remember to bring. My intention is that I
> will only have to type the name of my materials once, while composing
> the plan itself, and have ConTeXt extract all the names and place them
> in a list in the same document.
>
> I expect this means I would define something like \Materials , and then
> while typing the main text of my plan be able to type
> \Materials{Photographs} or \Materials{Sound Recording} and then have
> ConTeXt generate a list of all the items like this ...
>
> "Materials: 1. Photographs 2. Sound Recording"
>
> ... near the top of the page.
>
> I've tried using \placeregister, but it seems to insist on printing a
> page number for each item and alphabetical headings as in an index. I
> would like to get a simple, numbered list of items. Can I tweak the
> \register commands to do this, or perhaps is there something else I
> should try?

Have you looked at lists (like table of contents, list of figures etc.). I 
think that the main manual explains how to create new lists.

Aditya


More information about the ntg-context mailing list