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...

