Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Latex Remove Spaces Between Items in List

Tags:

latex

What is the best way to format a list as to remove the spaces between list items.

like image 682
Dave Avatar asked Jul 18 '10 13:07

Dave


People also ask

How do I reduce the space between items in LaTeX?

If you want to remove the spacing globally for every list in your document just put \setlist[itemize]{noitemsep} in your preamble.

How do I reduce space before itemize in LaTeX?

You have to do it manually: \kern-\parskip\begin{itemize} then your \items and then \end{itemize}\kern-\parskip.

How do I remove spaces between words in LaTeX?

You can add negative as well as positive space with an \vspace command. LaTeX removes vertical space that comes at the end of a page. If you don't want LaTeX to remove this space, include the optional * argument. Then the space is never removed.


2 Answers

It's easier with the enumitem package:

\documentclass{article} \usepackage{enumitem} \begin{document} Less space: \begin{itemize}[noitemsep]   \item foo   \item bar   \item baz \end{itemize}  Even more compact: \begin{itemize}[noitemsep,nolistsep]   \item foo   \item bar   \item baz \end{itemize} \end{document} 

example

The enumitem package provides a lot of features to customize bullets, numbering and lengths.

The paralist package provides very compact lists: compactitem, compactenum and even lists within paragraphs like inparaenum and inparaitem.

like image 147
Stefan Avatar answered Sep 20 '22 19:09

Stefan


You could do something like this:

\documentclass{article}  \begin{document}  Normal:  \begin{itemize}   \item foo   \item bar   \item baz \end{itemize}  Less space:  \begin{itemize}   \setlength{\itemsep}{1pt}   \setlength{\parskip}{0pt}   \setlength{\parsep}{0pt}   \item foo   \item bar   \item baz \end{itemize}  \end{document} 
like image 32
Bart Kiers Avatar answered Sep 20 '22 19:09

Bart Kiers