# How to write to the right of “Definition” and also enumerate within the definition?

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 '19 at 17:25
• @Bernard It shows up under "Definition", not to the right of it. – user181940 Oct 5 '19 at 17:40
• Oh! You don't want the labels near the left margin? – Bernard Oct 5 '19 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 '19 at 18:25
• 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 '19 at 20:45

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

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