I'm writing a solution to my assignment. When I put my theorem \begin{thm}\end{thm}
after \item
, there will be a new line after item number in enumeration. How to put the theorem right after the item number?
\documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \newtheorem*{thm}{Theorem} \begin{document} \begin{enumerate} \item[a)] \begin{thm} \end{thm} \item[b)] \begin{thm} \end{thm} \end{enumerate} \end{document}