Define exercise captions
![](https://secure.gravatar.com/avatar/30ef4fea8acc9a4c7a392675260cfcb9.jpg?s=120&d=mm&r=g)
1 Nov
2009
1 Nov
'09
1:34 a.m.
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? Best regards, Vyatcheslav
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
1 Nov
1 Nov
2:34 a.m.
On Sun, 1 Nov 2009, Vyatcheslav Yatskovsky wrote:
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] Aditya
5400
Age (days ago)
5400
Last active (days ago)
1 comments
2 participants
participants (2)
-
Aditya Mahajan
-
Vyatcheslav Yatskovsky