I'm facing an issue while writing my thesis. Whenever a theorem ends with an equation, an additional line is added. I have to use thmtools, and I'm unsure whether I should remove this space from the theorem environment definition or if it needs to be addressed elsewhere. Any ideas?
\documentclass{article}
\usepackage[english]{babel}
\usepackage{amsmath,amsthm}
\usepackage{thmtools}
\declaretheoremstyle[
spaceabove=6pt, spacebelow=6pt,
headfont=\normalfont\bfseries,
notefont=\bfseries, notebraces={(}{)},
bodyfont=\normalfont\itshape,
postheadspace=1em, %Space after dot.
qed={},
]{Theorem}
\declaretheorem[style=Theorem, name=Theorem]{theorem}
\usepackage{lipsum}
\begin{document}
\begin{theorem}
This is the most beautiful equation
\begin{align}
e^{i\pi}+1=0.
\end{align}
\end{theorem}
\lipsum[1]
\begin{theorem}
Possibly, the equation
\begin{align}
E=mc^2
\end{align}
was ahead of its time.
\end{theorem}
\lipsum[2]
\end{document}


align*environments for single-line displayed equations? – Mico Oct 17 '23 at 04:43$$in LaTeX documents. – Mico Oct 17 '23 at 04:45equationenviroment? – Daniel Checa Oct 17 '23 at 04:46\[ ... \]preferable to$$ ... $$? – Mico Oct 17 '23 at 04:50align*withequation*. Is there any way you could make to without the machinery of thethmtoolspackage and, instead, rely on the machinery of theamsthmpackage to create suitable theorem-like environments? – Mico Oct 17 '23 at 05:01thmtoolsis that you can customize the qed symbol of definitions, examples ant theorems. I think this is would be cumbersome inamsthm. – Daniel Checa Oct 17 '23 at 05:12