2

MWE---

\documentclass[12pt]{book}
\usepackage{enumitem,lipsum} 
\begin{document}
\thispagestyle{empty}
\lipsum[3]
\begin{enumerate}[wide,labelwidth=6pt,labelindent=-15pt]
\item \lipsum[13]
\item \lipsum[13]
\item[10] \lipsum[13]
\item[100] \lipsum[13]
\end{enumerate}
\end{document}

which produces the output

enter image description here

I would like to construct an enumerate environment in which the text of each item spans the normal textwidth, and the item numbers lie entirely in the left-hand margin.

I have tried to manually construct such---which, as you can see, works fine for item numbers 1-9, after which, there is an indentation in the text.

How may I accomplish this so that all items numbers 1-999 lie entirely in the left-hand margin of the page, while the text of each item spans the page textwidth?

1 Answer 1

2

For explanations see enumitem section 3.2 Horizontal spacing of labels, I can't do any better. (hmm)

\documentclass{article}
\usepackage{enumitem,lipsum}
\begin{document}
\thispagestyle{empty}
\def\sometext{\lipsum[1][1-2]}
\sometext

\begin{enumerate}[align=left, listparindent=\parindent,
                  leftmargin=0pt, labelsep=0pt, itemindent=0pt,
                  labelwidth= 3em]
\item \sometext
\item \sometext
\item[10.] \sometext
\item[100.] \sometext
\end{enumerate}

\sometext

%% \clearpage

%% \sometext

\begin{enumerate}[align=right, listparindent=\parindent,
                  leftmargin=0pt, labelsep=1em, itemindent=0pt,
                  labelwidth= 3em]
\item \sometext
\item \sometext
\item[10.] \sometext
\item[100.] \sometext
\end{enumerate}

\sometext

\end{document}

enumitem output

2
  • adding \DrawEnumitemLabel before first \item allows to visualize somewhat. Here the 1em is rather big. Adapt to document font if needed.
    – user691586
    May 7 at 8:37
  • Thank you for this answer.
    – jean-marie
    May 7 at 16:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .