[NTG-context] Custom enumeration

Wolfgang Schuster schuster.wolfgang at googlemail.com
Thu Oct 14 22:38:50 CEST 2010


Am 14.10.2010 um 15:24 schrieb Aditya Mahajan:

> On Oct 14, 2010, at 8:31 AM, Bela Mulder <mulder at amolf.nl> wrote:
> 
>> Sorry, for my initial vagueness: I want the exercises in part 5, chapter 3 of the syllabus to come out as:
>> 
>> Exercise 5.3.1  etc.
> 
> Does way=bychapter work? (untested)

You need also „prefix=yes“ but it would have been easier with a minimals example which was missing.

\defineenumeration[test][text=Test,prefix=yes,way=bychapter]
\starttext
\dorecurse{3}
  {\part{Part #1}
   \dorecurse{4}
     {\chapter{Chapter ##1}
      \dorecurse{3}
        {\input knuth\par
         \starttest \input ward \stoptest
         \input tufte\par}}}
\stoptext

Wolfgang



More information about the ntg-context mailing list