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?




thmtoolspackage uses more understandable semantics thanamsthm. Isn't it? – Shaqpad May 02 '16 at 15:43thmtoolsfor more complex layouts. Anyway, personally, I usentheorem, which is also easier to customise and has an automatic placement of end-of-proof symbols. – Bernard May 02 '16 at 15:48