0

Why am I now getting a theorem symbol with this code

\documentclass{article}

\usepackage{mathtools}
\usepackage{ntheorem}
\usepackage{mdframed}

\mdfsetup{%
    skipabove=\topskip,
    skipbelow=\topskip,
    linecolor=blue,
    ntheorem=true
}

\theoremstyle{break}
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{\diamondsuit}}
\newmdtheoremenv{definition}{Definition}[section]

\begin{document}

\begin{definition}[Some Definition]
This is a definition with an equation
\begin{equation*}
2 + 2 = 4,
\end{equation*}
and some text.
\end{definition}

\end{document}

What I get is this

enter image description here

but I want a small symbol in the lower right corner of the definition, denoting that the definition is finished.

3

Load the ntheorem package with the option thmmarks.

enter image description here

\documentclass{article}

\usepackage{mathtools}
\usepackage[thmmarks]{ntheorem}
\usepackage{mdframed}

\mdfsetup{%
    skipabove=\topskip,
    skipbelow=\topskip,
    linecolor=blue,
    ntheorem=true
}

\theoremstyle{break}
\theorembodyfont{\normalfont}
\theoremsymbol{\ensuremath{\diamondsuit}}
\newmdtheoremenv{definition}{Definition}[section]

\begin{document}

\begin{definition}[Some Definition]
This is a definition with an equation
\begin{equation*}
2 + 2 = 4,
\end{equation*}
and some text.
\end{definition}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.