2

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?

Fancy definition environment

3
  • There is a package that produces that, well, not so brilliant output, but I’ll keep the secret. 😗😜
    – egreg
    Commented Oct 21, 2019 at 19:37
  • Ah that's a bummer (but if you have better ideas for package, I'm all ear out)
    – Bast
    Commented Oct 21, 2019 at 20:22
  • Have a look at the 'tcolorbox' package Commented Oct 22, 2019 at 4:12

1 Answer 1

1

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}

enter image description here

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.

0

Not the answer you're looking for? Browse other questions tagged .