0

The answer here shows how to enumerate within a definition. But what if I want to also write something to the right of Definition?

For example,

Definition. Let G be a group.

(i) ....

(ii) ....

How to implement this?

  • Well, just use an enumerate environment after Let G be a group. Or do I misunderstand your problem? – Bernard Oct 5 at 17:25
  • @Bernard It shows up under "Definition", not to the right of it. – user181940 Oct 5 at 17:40
  • Oh! You don't want the labels near the left margin? – Bernard Oct 5 at 18:00
  • @Bernard I want to keep (i), (ii), ... where they are, but I want "Let G be a group" to be to the right of "Definition". In other words, I want the final result look as in my example above. If I just type "aaa", then "aaa" appears below "Definition", and the final result does not look as in the example from my question. – user181940 Oct 5 at 18:25
  • 1
    To enlarge on what @Bernard says, the purpose of that question was to explicitly break to a new line after "Definition"; that's what the \mbox{} does. Don't use the \mbox{}, or, rather, use it only when you want "Definition" on a line by itself. – barbara beeton Oct 5 at 20:45
4

The following should be close to what your desired output looks like:

enter image description here

\documentclass{article}
\usepackage{amsthm}
\theoremstyle{definition}
\newtheorem{defn}{Definition}

\usepackage{enumitem}
\begin{document}

\begin{defn}
  Let G be a group.
  \begin{enumerate}[label=(\roman*)]
    \item first
    \item second
  \end{enumerate}
\end{defn}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.