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 somewhat of a LaTeX noob, and this is driving me completely nuts.

When I type

\documentclass{article}
\usepackage{enumitem}

\begin{document}
    Some text
    \begin{itemize}[noitemsep]
        \item Item 1
        \item Item 2
        \item Item 3
    \end{itemize}
\end{document}

I don't want the space which appears in between the text "Some text" and the itemization to be there:

screenshot

When I search around on Google all I see is tons of long, complicated advice on this site, StackOverflow, forums, etc. on how to not fix the problem ("parskip is evil", etc.), or tons of vague/confusing answers on what package to look at, with no actual example for me to learn from.

So while this question is already asked many times, I have never found a single concrete answer to this question.

The question couldn't be simpler: How do I "properly" get rid of this extra space?

share|improve this question
add comment

1 Answer

up vote 21 down vote accepted

That space is governed by topsep. Set it to 0pt:

enter image description here

\documentclass{article}
\usepackage{enumitem}% http://ctan.org/pkg/enumitem
\begin{document}
\noindent Some text
\begin{itemize}[noitemsep]
  \item Item 1
  \item Item 2
  \item Item 3
\end{itemize}
\bigskip\bigskip
Some text
\begin{itemize}[noitemsep,topsep=0pt]
  \item Item 1
  \item Item 2
  \item Item 3
\end{itemize}
\end{document}

To set this globally, use

\setlist[itemize]{noitemsep, topsep=0pt}

See section 5 Global settings (p 9) of the enumitem documentation for more details on this and perhaps creating your own list environment that has these predefined settings.

share|improve this answer
    
Wow, that was a ridiculously fast answer, and it hit the bull's eye; thanks so much! +1 :) –  Mehrdad Dec 8 '12 at 3:29
1  
Bonus question: Do you happen to know if there's any way to change the default value for the whole document? :) –  Mehrdad Dec 8 '12 at 3:32
    
@Mehrdad: I've added a reference to a global setting, specific to itemize. You can also create your own list with these settings, if need be. –  Werner Dec 8 '12 at 3:39
    
Awesome, thank you for the answer and the link! –  Mehrdad Dec 8 '12 at 3:42
    
@Mehrdad As Werner have mentioned, you can define a new environment say Itemize with \newenvironment{Itemize}{\begin{itemize}[noitemsep,topsep=0pt]}{\end{itemize}}‌​. But I would go for Werner's solution. –  hpesoj626 Dec 8 '12 at 3:48
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.