Let's consider the code following:
\documentclass{article}
\usepackage{mdframed}
\usepackage{lipsum}
\newmdtheoremenv{theo}{Theorem}
\begin{document}
\begin{theo}[William's theorem]
For $n > 1$ we have that:
$$\textrm{n prime number} \Leftrightarrow (n - 1)! \equiv -1 (mod \; n)$$
\end{theo}
\begin{theo}[Odd parity of additive function]
If $f$ is an additive function then $f$ is an odd function
\end{theo}
\end{document}
which result in the following boxes:
I want to change two things in this code:
- Instead of Theorem 1 and Theorem 2 I would like to have Theorem 1.1 and Theorem 1.2. I've seen a similar questions to this one, but I had problems with its implementation (very often complex or not working with article class)
- Do you know how can I read of italic within the boxes? Everything is treated as it was between dolars $$ whereas for example text "If f is an additive function" should not be in italic, it should be written in normal text.
Could you please give me a hand with solving those issues?