![](https://secure.gravatar.com/avatar/30ef4fea8acc9a4c7a392675260cfcb9.jpg?s=120&d=mm&r=g)
Hello,
I need to define a Exercise command that will enumerate exercises and provide
captions.
For example,
\exercise{Conversion from hex to dec}
should produce
Exercise 1.1. Conversion from hex to dec.
What is the best way to achieve that? Use \definehead or another command?
\defineenumeration[exercise][title=yes,way=bysection]
Thank you Aditya, but the result is rather shoking ) Please, try \starttext \defineenumeration[exercise][title=yes, text=Вправа, way=bysection, width=broad] \exercise{Розрахунок кривої, яка з'єднує три точки на площині} \stoptext The "Вправа" is putted twice, next time inside some strange brackets. The text gets out of the page. How to setup so that numeration will be done by subsection (1.1, 1.2, etc.)? Reards, Vyatcheslav