I am using mdframed
, and I would like the theorem number to have the same font as the theorem name, like it is shown here:
Also, the theorem number should finish with a period: "Example 1.1.", "Example 1.2."
Here is my MWE:
\documentclass{article}
\usepackage{roboto}
\usepackage{fourier}
\usepackage{amsthm, amsmath}
\usepackage[usenames,dvipsnames,table]{xcolor}
\definecolor{blue-header}{RGB}{130,160,200}
\usepackage[framemethod=latex]{mdframed}
\theoremstyle{ejemplo}
\mdfdefinestyle{estiloejemplo}{%
topline=false,
leftline=true,
bottomline=false,
rightline=false,
linewidth = 4pt, %
linecolor = blue-header,
frametitleaboveskip = 0, % distancia del teorema a la parte superior
innerrightmargin = 0, % margen derecha
frametitlefont = \normalfont,
innerbottommargin = 0, % distancia del teorema a la parte inferior
theoremtitlefont = \itshape,
}
\mdtheorem[style=estiloejemplo]{ejemplo}{\textbf{\textsf{\textcolor{blue-header}{Example}}}}[section]
\begin{document}
\section{A section}
Some text.
\begin{ejemplo}[This is the title of the exercise, which spans several lines and should be in italic font. This is the title of the exercise, which spans several lines and should be in italic font]
where $m$ is the slope, and $b$ is the intersect. where $m$ is the slope, and $b$ is the intersect.
\end{ejemplo}
Some other test
\begin{ejemplo}
This is another example
\end{ejemplo}
The final text
\end{document}