1

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.

1 Answer 1

4

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}
2
  • You might need \usepackage[amsmath, thmmarks]{ntheorem} Mar 28, 2022 at 1:38
  • @thomaskeefe If there is a reason for using the option, why not. Otherwise the manual recommends not to use it.
    – gernot
    Mar 28, 2022 at 8:09

You must log in to answer this question.

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