# How to define an environment for a boxed and named theorem?

The environment below gives a boxed theorem with normal font (non italic text).

\documentclass[11pt]{article}
\usepackage[tikz]{mdframed}
\usepackage{amsthm}

\newtheorem{thm}{Theorem}[section]

\newenvironment{thmm}
{\begin{mdframed}\begin{thm}\normalfont}
{\end{thm}\end{mdframed}}

\begin{document}

\section{Fisrt Section}

\begin{thmm} Statement without italic.
\end{thmm}

\end{document}


Question: How to define an environment for a boxed and named theorem with normal font?. In other words, how to define an envioremnt for the following code?

\documentclass[11pt]{article}
\usepackage[tikz]{mdframed}
\usepackage{amsthm}

\newtheorem{thm}{Theorem}[section]

\begin{document}

\section{Fisrt Section}

\begin{mdframed} \begin{thm}[Name of the theorem]\normalfont Statement without italic.
\end{thm}\end{mdframed}

\end{document}

• The thmtools package, which cooperates with amsthm (as well as ntheorem) enables you to define an mdframed style key. See §§ 2.4 and 2.5 in the documentation. – Bernard May 16 at 8:25
• If you want \normalfont and are using amsthm, why not use \theoremstyle{definition}? – barbara beeton May 16 at 13:17
• @barbarabeeton Thanks. – Pedro Jun 14 at 14:55