Re: [NTG-context] Custom enumeration
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. Right now, on a per chapter basis I get: Exercise 1 etc. Hope this helps. -- Bela Mulder Group Leader Theory of Biomolecular matter FOM Institute AMOLF Science Park 104, 1098XG Amsterdam, THE NETHERLANDS Tel: + 31 20 7547100 FAX: + 31 20 7547290 web: http://www.amolf.nl/research/theory_of_biomolecular_matter/
Am 14.10.2010 um 15:24 schrieb Aditya Mahajan:
On Oct 14, 2010, at 8:31 AM, Bela Mulder
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
participants (3)
-
Aditya Mahajan
-
Bela Mulder
-
Wolfgang Schuster