Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using the itemize environment with the enumitem package, and one of the issues I'm having is that the itemize environment seems to create a newline, or at least add vertical spacing at the end of the environment.

How can I suppress this newline?

share|improve this question
1  
Are you looking for Inline lists?? –  Vineet Menon Jun 8 '12 at 7:45
add comment

1 Answer 1

The list-like environments (enumerate, itemize, and description) add a vertical space equal to \topsep + \parskip + (possibly) \partopsep before and after the list. You can suppress those spaces using the corresponding enumitem keys; an example:

\documentclass{book}
\usepackage{lipsum}
\usepackage{enumitem}

\begin{document}

\lipsum[1]
\begin{itemize}[topsep=0pt]
  \item First.
  \item Second.
\end{itemize}
\lipsum[1]

\end{document}
share|improve this answer
    
This appears to be be right, but I don't believe enumitem allows you to define parsep. Adding a \setlength\parsep{0pt} inside the itemize environment didn't seem to solve things. How can I set the value of parskip for only the itemize environment? –  Varun Madiath Apr 12 '11 at 22:00
    
@Varun Madiath: you can change the value using the parsep key, as in \begin{itemize}[topsep=0pt,parsep=0pt]. You can kill all extra vertical space with the nolistsep option. –  Gonzalo Medina Apr 12 '11 at 22:42
    
My apologies, I was referring to parskip in my earlier comment. How can I set the parskip for the itemize environment. –  Varun Madiath Apr 12 '11 at 23:12
    
@Varun Madiath: the value of \parskip inside itemize is controlled by the parsep key of enumitem; however, you can always change it manually by adding something like \setlength\parskip{10pt} inside itemize, just before the first \item command. –  Gonzalo Medina Apr 13 '11 at 0:25
2  
@Varun Madiath: If the problem with the list persists, please add a minimal working example to your original question, illustrating the problem. –  Gonzalo Medina Apr 13 '11 at 0:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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