I wrote a small environment to show examples in a list fashion. The code is:
Code: Select all
\newcounter{Example}[chapter]%
\newenvironment{example}%
{%
\def\example{\item}%
\setcounter{Example}{1}%
\renewcommand{\theExample}{\arabic{chapter}.\arabic{Example}}%
\begin{list}{%
\refstepcounter{Example}%
}%
{%
\renewcommand{\makelabel}{\textbf{Example~\theExample:}}%
\newcommand{\labelExample{\theExample}%
\setlength{\labelsep}{10pt}\setlength{\leftmargin}{\parindent}%
\setlength{\labelwidth}{0pt}%
\setlength{\listparindent}{0.5\parindent}%
}%
}%
{\end{list}}