# No new line for theorem in enumerate

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}


• Welcome to TeX.SE! Don't doing this. It make will confuse readers. I expect that in list you give some explanation which follows by theorems ... or don't use theorems. – Zarko Oct 12 '16 at 2:49
• @Zarko Its because in our assignment we have a list of questions. And in each question(item) I want to add a theorem to state what I'm proving. – Zhongwei Zhao Oct 12 '16 at 2:58
• Do these theorems need numbers, will \textbf{Theorem} do? – John Kormylo Oct 12 '16 at 3:42
• @JohnKormylo oh yes, that would work. Thanks – Zhongwei Zhao Oct 12 '16 at 4:36

From the looks of it, there's no real need to use amsthm. As such, dropping it in lieu of the default \newtheorem definition provides the desired result:

\documentclass{article}

\usepackage{enumitem,lipsum}

\newtheorem{thm}{Theorem}

\begin{document}

\begin{enumerate}[label={\alph*)}]
\item
\begin{thm}
This is a theorem.
\lipsum[2]
\end{thm}
\item
\begin{thm}
This is another theorem.
\end{thm}
\end{enumerate}

\end{document}


enumitem makes enumeration configuration easier.