I am using wiley-article class. In my text I have examples and definitions. The problem is the numbering of both is mixed. For example, suppose I have the following:
\begin{example}
bla bla
\end{example}
\begin{definition}
xo xo
\end{definition}
\begin{example}
bla2 bla2
\end{example}
The output is:
Example 1: bla bla
Definition 2: xo xo
Example 3: bla2 bla2
So what I need is to get a specific counter for the examples and another counter for the definition. Thus the output for the example above will be:
Example 1: ...
Definition 1 :...
Example 2:...
Noting that, the example and definition environments are built in the wiley-article class. So, if I add \usepackage{amsthm} I get errors since this class already has its own theorem and example and definition environments.
Any help is appreciated.
\tracingassigns2\tracingonline1and then put\show\defimmediately after the\end{definition}. What, if any, count changes have been logged? – Holden Rohrer Feb 11 '20 at 03:32