I'm trying to remake this fancy theorem/definition/lemma environnment, but I've got no any where to begin. Is it a known package or rather a homemade redesign?
-
There is a package that produces that, well, not so brilliant output, but I’ll keep the secret. 😗😜– egregCommented Oct 21, 2019 at 19:37
-
Ah that's a bummer (but if you have better ideas for package, I'm all ear out)– BastCommented Oct 21, 2019 at 20:22
-
Have a look at the 'tcolorbox' package– Alain RemillardCommented Oct 22, 2019 at 4:12
1 Answer
Check out the thmbox
package, the manual contains several examples, but for completeness I have included a MWE.
\documentclass{article}
\usepackage{thmbox}
\newtheorem[M]{proposition}{Proposition}[section]
\begin{document}
\begin{proposition}
Let $M$ be a martingale, then $(\phi(M_t))_{t \geq 0}$ is a
sub-martingale for all convex functions $\phi$ such that $\phi(M_t)$
is integrable for all $t$.
\end{proposition}
\begin{proof}
This follows from Jensen's inequality for conditional expectations,
see any standard text book on this subject.
\end{proof}
\end{document}
Do note that the proof is environment is also redefined. There are two additional styles L and S. The package is rather old and might have problems concerning page breaks. So as the comments suggest, implementing the style in another package might be a better solution—this answer implements the M style in the powerful tcolorbox
package.