1

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}

enter image description here

4
  • 1
    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
    Commented Oct 12, 2016 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. Commented Oct 12, 2016 at 2:58
  • Do these theorems need numbers, will \textbf{Theorem} do? Commented Oct 12, 2016 at 3:42
  • @JohnKormylo oh yes, that would work. Thanks Commented Oct 12, 2016 at 4:36

1 Answer 1

0

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:

enter image description here

\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.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .