I am trying to place a box around a definition. Using the package mdframed, I have managed to do so. However, the box is too large, in particular too tall, and it is covering up text appearing above and below the definition. I am using
\newenvironment{bdefn}
{\begin{mdframed}\begin{defn}}
{\end{defn}\end{mdframed}}
to create the "boxed definition" environment, and then I am using
\begin{bdefn}
(text)
\end{bdefn}
for the definition itself.
I have tried to manually create a new mdframed style to use which has smaller margins, using something like
\mdfdefinestyle{style1}{leftmargin=1cm,rightmargin=1cm,skipbelow=1cm,skipabove=1cm}.
The command \mdfdefinestyle
and this format are both taken from the documentation for mdframed. However, when I place this line into my document's preamble, I receive the error message
"Undefined control sequence: \mdfdefinestyle{stlye1}{..."
Can anyone tell me why the command \mdfdefinestyle
is not being recognized? Or, can anyone suggest a different way to make an as-small-as-possible box around my definition?
!
to?
you have only shown part of the error, which does not show which command is undefined (the last command on the second line of the message)