Is it possible to draw a frame around a theorem-like environment
? If possible, I would like to use mdframed
.
In the documentation, the general form of the command is given by
\newmdtheoremenv[<mdframedoptions>]{<envname>}
[<numberedlike>]{<caption>}[<within>]
I wonder if an appropriate <numberedlike>
could do it.
Thanks for your help 😉
Best Answer
You have two options:
You can define a structure using
\mdtheorem
which automatically generates a numbered version and an unnumbered one accessed using the starred version of the name (see the definition and use ofmytheoi
below).Use
\newtheorem*
(fromamsthm
orntheorem
) to define an unnumbered structure and then surround it with an mdframed (seemytheoii
below).The code: