[Tex/LaTex] eliminate the dot after Theorem in amsthm

amsthmenvironmentstheorems

Instead of 1 Theorem. I want to write 1 Theorem in front of the first theorem and analogously in front of succeeding theorems. How can I get rid of the dot?

Here is a MWE:

\documentclass{article}
\usepackage{amsthm}
\swapnumbers
\newtheorem{theorem}{Theorem}
\begin{document}
\begin{theorem}
\end{theorem}
\end{document}

Best Answer

Now patch @thm like this:

\documentclass{article}
\usepackage{amsthm}
\swapnumbers
\newtheorem{theorem}{Theorem}
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\@thm}{\thm@headpunct{.}}{\thm@headpunct{}}{}{}
\makeatother
\begin{document}
\begin{theorem}
\end{theorem}
\end{document}

enter image description here

Related Question