I'm using the package ntheorem
to define theorem-like environments and \tcolorboxenvironment
(from the tcolorbox
package) to frame them. I have a problem when I want to color the body of a theorem with \color
: vertical spacing is added at the end, which is unwanted. This doesn't append if I don't frame the theorem with tcolorbox
(or, of course, if I don't use \color
).
Here is a MWE (see the extra space at the end of the first theorem):
\documentclass[10pt]{article}
\usepackage{lipsum}
\usepackage{xcolor, ntheorem, tcolorbox}
\pagestyle{empty}
\theoremheaderfont{\normalfont\slshape}
\theorembodyfont{\slshape}
\newtheorem*{Thm}{Theorem}
\tcolorboxenvironment{Thm}{left=2mm}
\begin{document}
\begin{Thm}
\color{red}
\lipsum[2]
\end{Thm}
\begin{Thm}
\lipsum[2]
\end{Thm}
\end{document}
Would you have any solution? (I don't want to define my theorems through the library theorems
of tcolorbox
.)
theorem
library oftcolorbox
?amsthm
/ntheorem
... and I get lost when switching between documents using theorems fromtcolorbox
and documents usingntheorem
.ntheorem
however never really convincing...amsthm
(sometimes withthmtools
), then I triedtcolorbox