6

I would like to have enumerated paragraphs using the document's default paragraph layout. Currently, I achieve this using manual enumerations using the code listed below.

How can I get the same result, but automating the enumeration?

\documentclass{article}

\usepackage{lipsum}

\begin{document}

(1) \lipsum[1]

(2) \lipsum[1]

(3) \lipsum[1]

\end{document}

enter image description here

Florian
  • 945

4 Answers4

5

Much simpler with the use of enumitem:

\documentclass{article}
\usepackage[utf8]{inputenc}

\usepackage[shortlabels]{enumitem} \usepackage{lipsum}

\begin{document}

\begin{enumerate}[(1),wide, nosep]

\item \lipsum[1]

\item \lipsum[2]

\item \lipsum[3]

\end{enumerate}

\end{document}

enter image description here

Bernard
  • 271,350
4

It's easy with enumitem.

\documentclass{article}

\usepackage{enumitem}

\usepackage{lipsum}

\begin{document}

\begin{enumerate}[leftmargin=0cm,itemindent=2\parindent,noitemsep,label=(\arabic*)]
\item \lipsum[1]
\item \lipsum[1]
\item \lipsum[1]
\end{enumerate}

\end{document} 

enter image description here

karlkoeller
  • 124,410
3
\documentclass{article}

\usepackage{lipsum}

\begin{document}

\everypar{\refstepcounter{enumi}(\theenumi) }

 \lipsum[1]

 \lipsum[1]

 \lipsum[1]

\end{document}
David Carlisle
  • 757,742
2

If you want the ability to turn on and off, here is the enumpars environment, using the technique of David at Why does \everypar not work?

\documentclass{article}
\usepackage{lipsum}
\newcounter{parcount}
\let\oldep\everypar%
\newenvironment{enumpars}
{\newtoks\everypar%
\setcounter{parcount}{0}%
\oldep{\the\everypar\stepcounter{parcount}(\theparcount)\ }%
\par}{\let\everypar\oldpars\par}
\begin{document}
\begin{enumpars}
\lipsum[1-3]
\end{enumpars}
\lipsum[4]
\begin{enumpars}
\lipsum[5-7]
\end{enumpars}
\end{document}