This post was first published on my Wordpress page link
If you need to make more space in your papers (space is valuable in this cases),
because the (vertical) space between theorems, proofs, lemmas, remarks, examples,
and definitions with other paragraphs is too large. Here I will show a little trick to do that.
We need to import the asmthm package. But, not too fast, this will trigger an error.
So, above the import we need to add two lines that solve the bug related with an
incompatibility in the proof enviroment (or macro).
Then we are ready to define our theorem style with the desire spaces and fonts as follows:
This code will enumerate each enviroment –theorem, proof, etc– independly.
If you are wishing to enumerate relatively to sections you have to use these modifications.
In the style you can customize the environments with your preferences and even create more than one style if necessary.