\documentclass[a4paper, german]{article} \usepackage[lecture numbers = false, number all, number small environments = section]{mkessler-fancythm} \begin{document} \begin{theorem}[Name]\label{test} test \end{theorem} \begin{definition**} test \end{definition**} \ref{test} \begin{theorem} test \end{theorem} \mdfsetup{skipabove=8pt,skipbelow=\topskip, bottomline=true} \begin{lemma} \end{lemma} \begin{example} \end{example} \begin{praise} test \end{praise} \begin{remark} test \end{remark} \begin{notation} test \end{notation} \begin{abuse} test \end{abuse} \begin{theoremdef} \end{theoremdef} \begin{fact} test \end{fact} \begin{orga} \end{orga} \begin{question} \end{question} \begin{oral} test \end{oral} \end{document}