[NTG-context] chapter-like headings with separate numbering

luigi scarso luigi.scarso at gmail.com
Wed Nov 26 09:14:13 CET 2008


On Tue, Nov 25, 2008 at 4:08 AM, Sanjoy Mahajan <sanjoy at mit.edu> wrote:

> I'm experimenting with making a heading that is like a chapter in format
> but has its own numbering (or lettering).  The purpose to have an
> interlude, or extended example, every few chapters.  The following
> almost-minimal example almost does so.  However, the second interlude is
> numbered with 'A' instead of 'B'.  Is there a missing key=value pair, or
> is the approach completely wrong?
>
It seem that interlude is like a section,
so it's correct that at every chapter there is a reset of the
alphabetical counter


>
> \definesection[nc]
> \setupsection[nc][conversion=Characters]
> \definehead[interlude][section=nc,default=chapter]
> \setuphead[interlude][incrementnumber=yes]
>
> \starttext
>
> \title{Contents}
> \placelist[chapter,interlude]
>
> \chapter{Chap 1}
>
> \interlude{Interlude 1}
>
> \chapter{Chap 2}
>
> \interlude{Interlude 2}
>
> \stoptext
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : https://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
>
> ___________________________________________________________________________________
>



-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20081126/e4af61d8/attachment.html 


More information about the ntg-context mailing list