I have a (simple?) question. I use the ams theorem
environment for most of my theorems, but I want to box my definitions and find here a nice way to do it, simpler for me than mdframed
. My problem is I want the numbering of the theorems to be consistent with each other.
More precisely, here is my preamble about the theorem :
\newtheorem{thm}{Th\'eor\`eme}[section]
\newtheorem{prop}[thm]{Proposition}
\newtheorem{lemme}[thm]{Lemme}
\theorembodyfont{\rmfamily}
\newboxtheorem{lem}[thm]{Lemme}
\newboxedtheorem[thcounter=thm,titleboxcolor = white]{defn}{D\'efinition}{thcounter}
Then I tried to change the counter thcounter
to thm
, or similar, but it didn't work.
Does anybody have any idea of how I can do so that the numbering of my definitions follows the ones of my theorems, lemma…
Best Answer
After following your link I notice the following about what you're trying to do.
tikZ
styles for the theorem box.So the arguments seem to be as follows:
The first is optional and used for setting
tikZ
parameters and styles.the second is for assigning the
environment
name.The third is for setting the name of the environment: i.e., Theorem, Definition, Corollary etc.
The 4th argument is for creating a counter specific to the named environment.
So to get something like what you want try:
I'm not entirely sure what you mean by the numbering of my definitions follows the ones of my theorems,... What I've done above is made the
defn
environment use the same counter astheo
. Is that what you want?