I would like all my theorem-like environments (theorem, example, etc.) to be numbered but such that the number appears before the environment's name, more or less like this:
1. Theorem
2. Example
How can I do this?
numberingtheorems
I would like all my theorem-like environments (theorem, example, etc.) to be numbered but such that the number appears before the environment's name, more or less like this:
1. Theorem
2. Example
How can I do this?
Best Answer
amsthm
provides\swapnumbers
which reverses the display ofTheorem <num>.
to<num> Theorem.
Here's a minimal example:In the above example, the
example
environment shares thetheorem
counter. Moreover, both are defined with theplain
style. There are others available, as shown in theamsthm
package documentation.