1

When I make a list, either with "enumerate" or "itemize" I get the text as follows: enter image description here

But I would like to eliminate or reduce the horizontal distance that it occupies:

enter image description here

enter image description here

And get something like this:

enter image description here

An example of the code is

 \documentclass[10pt, letterpaper]{article}
 \usepackage{enumitem}
 \setlength{\parindent}{0pt}
 \begin{document}
  Some text here
 \begin{enumerate}
    \item a
    \item b
    \item c
  \end{enumerate}
  Some more text
  \end{document}
2
  • Perhaps Setting the indention of unordered lists, Stefan's answer applies to both ordered and unordered list.
    – Dai Bowen
    Oct 23 '16 at 16:10
  • 1
    the indentation for enumerate is usually established by the document class you are using, but there are other methods. since we don't know what you are doing now, we can't give a reliable answer. please provide a small. compilable example that demonstrates what how you obtained the result you show at the top of your question. Oct 23 '16 at 16:10
1
\documentclass[10pt, letterpaper]{article}
 \usepackage{enumitem}
 \setlength{\parindent}{0pt}

 \begin{document}

  Some text here
 \begin{enumerate}[wide=0pt]
    \item a
    \item b
    \item c
  \end{enumerate}
  Some more text

  \end{document}

This results in the left margin of the list being the same as the text left margin. If you want the list leftmargin coincide with the beginning of the item, add the option leftmargin=*. enter image description here

1

Set leftmargin=* and specify your widest element (if it is more than 9). Below I've also aligned the enumeration to the left, but that is not necessary.

enter image description here

\documentclass{article}

\usepackage{enumitem,lipsum}
\setlength{\parindent}{0pt}% Just for this example

\begin{document}

Some text here
\begin{enumerate}[align=left,leftmargin=*,widest={10}]
  \item a
  \item b
  \item c
  \setcounter{enumi}{9}
  \item j \lipsum[1]
\end{enumerate}
Some more text

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.