Just add \theorembodyfont{\upshape]
right after \theoremstyle
. This being said, I think it is better to use the empty
theorem style. I also improved a bit the code, using an enumerate
environment with the suitable parameters using enumitem
, so that you only have to type \item
to obtain the correct counter, automatically formatted.
You even have the possibility, with enumitem, to create your own dedicated list, say examples
with these parameters set in the preamble, with the code:
\documentclass[a4paper]{article}
\usepackage{xcolor}
\usepackage{enumitem}
\usepackage{mdframed}
\usepackage{ntheorem}
\definecolor{superlightred}{HTML}{F5F5F5}
\theoremstyle{empty}%
\theorembodyfont{\upshape}
\newmdtheoremenv[backgroundcolor=superlightred, ntheorem]{example}{}
\newlist{examples}{enumerate}{1}% <- max depth
\setlist[examples]{label=\alph*), font=\bfseries, wide=0pt, leftmargin=*, topsep=4pt}
\begin{document}
\begin{example}[2014.1]
This is an example and here is a lot of text.
\begin{examples}
\item
Find the relationship between the components.
\end{examples}
\end{example}
\end{document}
