[Tex/LaTex] How to reduce space between items in enumerate

itemize

My question refers to previous question already asked on forum.

No spacing between enumerated items with \usepackage{enumerate}

I need reduce space between enumerated items. How can i do it?

  \begin{enumerate}[-]
     \item ABC
     \item DEF
     \item XYZ
  \end{enumerate}

Regards

Best Answer

The answer, as in the other thread, is to use enumitem instead of enumerate package.

If you load it with the shortlabels option

\usepackage[shortlabels]{enumitem}

you can keep the same syntax of enumerate.

Then you can issue, for example

\setlist[enumerate]{noitemsep}

if you want to eliminate the spacing between items or

\setlist[enumerate]{itemsep=1pt}

if you want to reduce it to 1pt.

MWE:

\documentclass{article}
\usepackage[shortlabels]{enumitem}
\setlist[enumerate]{noitemsep}

\begin{document}
  \begin{enumerate}[-]
     \item ABC
     \item DEF
     \item XYZ
  \end{enumerate}
\end{document} 

Output:

enter image description here

If you want the change to be locally, instead of declaring

\setlist[enumerate]{noitemsep}

you can insert noitemsep in the enumerate options, as in

\begin{enumerate}[-,noitemsep]