I am trying to use the theorem
environment in my work as Sample Problem.
This is my MWE:
\documentclass{book}
\usepackage{amsthm}
\newtheoremstyle{mythmstyle}
{}{}{}{}
{\bf}
{}
{\newline}
{}
\theoremstyle{mythmstyle}
\newtheorem{mythm}{Sample Problem}[chapter]
\setcounter{chapter}{2}
\begin{document}
\chapter{New Chapter}
\begin{mythm}
Problem statement goes here. But, where does go title?
\end{mythm}
\end{document}
And the output,
Actually, I need something like this,
In other words, my Sample Problem lacks a Title.
How can I include a title within the theorem environment?