with the help of the amsthm package you could define a new style for theorem-like environments that behaves as desired. Take a look at the following simple example:
with the help of the amsthm package you could define a new style for theorem-like environments that behaves as desired. Take a look at the following simple example:
...
Of course, feel free to adapt the example to suit your needs. Please refer to the package documentation for further information.