# How to numbering subs in a definition nicely?

The code what I've got:

\documentclass[a4paper]{article}
\usepackage{amsthm}

\begin{document}

\textbf{Definition 1.1} The definition contains following contents:
\begin{enumerate}
\item The first item
\item The second item
\item This item may long enough to take up more than a line like this sentence. Line Breaking \ldots
\end{enumerate}

\end{document}


Result of this code:

The result what I want:

The things have to be changed: space between lines, item format.

-
Hello, welcome to TeX.sx! :) Using the enumitem package, you can customize the enumerate environment to look like that, say, with \setlist[enumerate]{label*=(\arabic*),itemsep=0ex,parsep=0ex}. IMHO, since this change is global and affects all enumerate environments you might have throughout the whole document, it would be wiser to create a new list based on enumerate (the enumitem package also offers you this feature, via \newlist). –  Paulo Cereda Feb 6 '14 at 7:12

\documentclass[a4paper]{article}
\usepackage{amsthm}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem

\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]

\begin{document}
\setcounter{section}{1} % just for this MWE...
\begin{definition}
The definition contains following contents:
\begin{enumerate}[label=(\arabic*),leftmargin=2cm,itemsep=0ex,parsep=0ex]
\item The first item
\item The second item
\item This item may long enough to take up more than a line like this sentence. Line Breaking \ldots
\end{enumerate}
\end{definition}

\end{document}


You might consider adding \setlist{nolistsep} to the preamble here to obtain the desired spacing as well. See also @Paul Cereda comment on \newlist in case these changes are not required globally. Also: Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. –  Paul Gessler Feb 6 '14 at 7:19
Added leftmargin=2cm as @Jesse suggested. –  rittwik Feb 6 '14 at 8:08
Since the amsthm package is already being loaded, it would be a good idea to (i) also issue the commands \theoremstyle{definition} and \newtheorem{definition}{Definition}[section] in the preamble and (ii) use the commands \begin{definition} and \end{definition} inside the body of the document to denote the scope of a definition. This would help improve/clarify the logical structure of the document, while obviating the need to engage in visual formatting (à la \textbf{Definition 1.1}). –  Mico Feb 6 '14 at 8:24