I would like to know how to remove the dot that amsthm
adds after the number of the theorem (it gives Theorem 1.1. instead of Theorem 1.1 ).
MWE:
\documentclass{article}
\usepackage{hyperref}
\newtheorem{theorem}{Theorem}[section]
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\@thm}{\thm@headpunct{.}}{\thm@headpunct{}}{}{}
\makeatother
\begin{document}
\section{Introduction}
\begin{theorem}
Let ...
\end{theorem}
\end{document}
gives
while
\documentclass{article}
\usepackage{amsthm}
\usepackage{hyperref}
\newtheorem{theorem}{Theorem}[section]
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\@thm}{\thm@headpunct{.}}{\thm@headpunct{}}{}{}
\makeatother
\begin{document}
\section{Introduction}
\begin{theorem}
Let ...
\end{theorem}
\end{document}
gives
It turns out that if \usepackage{hyperref}
is not included, then adding
\usepackage{xpatch}
\makeatletter
\xpatchcmd{\@thm}{\thm@headpunct{.}}{\thm@headpunct{}}{}{}
\makeatother
fixes the problem, but when it is then the problem is still there.
I need to use amsthm
but I don't want the dot to appear.
Thanks in advance.
hyperref
makes that solution not fix the problem @StefanPinnow