I am currently using the ntheorem package to create some theorems. I would like the text of the theorem to have a hanging indent (see attached picture).
I have tried using a newtheoremstyle, but haven't succeeded yet. A MWE is below- any help would be greatly appreciated.
Code: Select all
Code, edit and compile here:
\documentclass[10pt,letter]{report}\usepackage{ntheorem}% hanging theorem\makeatletter\newtheoremstyle{hanging}%{\item[\hskip\labelsep \theorem@headerfont ##1\ ##2\theorem@separator]\mbox{}\hangindent4cm\hangafter=0}%{\item[\theorem@headerfont \hskip\labelsep\relax ##3]}\makeatother% make the theorem\theoremstyle{hanging}\newtheorem{subproblem}{Problem}\begin{document}\begin{subproblem}Find the domain of the function\[f(x)=\frac{2}{x-2}\]State your answer in interval notation.\end{subproblem}\end{document}