I was wondering if there is any formal environment for specifying 'examples' through out the text. If not, which environments do you recommend?
You could use the
and than use is as
Note however, that the above definition will give the examples its own counter. If you already have theorems and definitions using the
since it can be very confusing for the reader if you have Theorem 3, Lemma 3, Definition 3 and Example 3 on different pages.
You can make a simple example environment as follows:
So you have an environment which is basically just a wrapper for a
If you want it to include the section number as part of the example (e.g. example 1.2) then that's a little more work and maybe something like