I would like to restate a theorem within a section, like:
\documentclass{article}
\usepackage{thmtools}
\usepackage{thm-restate}
\declaretheorem{theorem}
\begin{document}
\begin{restatable}{theorem}{hello}
Hello!
\end{restatable}
\hello*
\section{\protect\hello*}
\end{document}
As you can see in the image the section number "1" is in its own line and an unwanted "Theorem 1" is printed. Wanted output is:
Theorem 1 Hello!
Hello!
1 Hello!
Unfortunately I found no way to only get the text of an theorem (without the "Theorem 1"):
So I am searching for a command similar to \hello*
which only yields the text of the theorem. In most cases I still need the \hello*
to completely restate the theorem, it is only in some situations that I only need the text, without the line break and "Theorem X". So the fix should not break the behavior of \hello*
, but only give me an additional way to restate the theorem with text only.
Thank you!
best regards, Markus