On Tue, 3 Nov 2009, Vyatcheslav Yatskovsky wrote:
Hello,
I want to be only Exercise<SectionNumber>.<ExerciseNumber>, like 1.1, 1.2, etc.
You may try prefixset=section.
Thank you, Longmin, for your suggestion, it works! But other problems persist.
Hans (or someone else who can fix it), please, look into my minimal example:
\defineenumeration[exercise][title=yes, text=Exercise, prefix=yes, prefixset=section, width=fit] %way=bysection,
\starttext \exercise{Bla-bla-bla Bla-bla-bla Bla-bla-bla Bla-bla-bla Bla-bla-bla Bla-bla-bla}
Bla-bla-bla \stoptext
1) the text is framed in odd manner and goes out of the page
I don't know what you mean by this.
2) the caption text is put into unexpected round brackets
That is the expected behaviour. If you do not want the brackets, you can add titleleft=, titleright=
3) the word "Exercise" is repeated twice, second time inside brackets before caption text.
This is already fixed in the latest beta. Aditya