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.

With enumitem package, I have used \setlist{nolistsep} for some part of the document. For another part of my document, I need to revert the separation in the list entries to its default. I wonder how this can be done.

share|improve this question
    
You could use \begin{<list>}[nolistsep] to localize the change. –  Werner Jan 2 '13 at 19:46
    
Or vice versa: if most of your lists have nolistsep you can add an explicit listsep for that list. –  Alan Munn Jan 2 '13 at 19:47
    
I have added an explicit listsep for the part I needed. –  Reza Jan 2 '13 at 20:00
    
@AlanMunn: Write it up (both sides). –  Werner Jan 3 '13 at 7:06
    
Consider to not only accept, but also upvote egreg's answer. –  lockstep Jan 3 '13 at 16:41

1 Answer 1

up vote 5 down vote accepted

The enumitem package allows you to set list parameters both globally (via the \setlist command) and locally (via explicit parameters added to \begin{<list>}.

So if most of your lists require the compact format, you can use

\setlist{nosep}

(the nolistsep parameter has been deprecated, although still works).

If at a certain point in the document you want all subsequent lists to return to the default, you can issue a new \setlist command:

\setlist{}

will set the list parameters back to the default.

If only one specific list needs the default parameters, you can use:

\begin{<list>}[itemsep=4pt,parsep=4pt,topsep=8pt,partopsep=4pt]

or set specific values as needed.

share|improve this answer

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.