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

by Pedro   Last Updated May 16, 2019 00:23 AM

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}


Related Questions


Updated September 07, 2017 20:23 PM

Updated August 25, 2018 11:23 AM

Updated February 24, 2019 06:23 AM

Updated April 13, 2016 08:09 AM

Updated March 07, 2017 12:23 PM