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.

How can I add line feed after itemize? Some vertical spacing would be even better, I think.
My document:

\documentclass[12pt,a4paper]{mwrep}
\usepackage{enumitem}
\setlist[itemize]{label=--}
\setlist[itemize]{topsep=0pt}
\begin{document}
List of items:
\begin{itemize}
\item Item one,
\item Item two,
\item Item three
\end{itemize}
That was the list of items.
\end{document}

I want it to look like this:

\documentclass[12pt,a4paper]{mwrep}
\usepackage{enumitem}
\setlist[itemize]{label=--}
\setlist[itemize]{topsep=0pt}
\begin{document}
List of items:
\begin{itemize}
\item Item one,
\item Item two,
\item Item three
\end{itemize}~\\
That was the list of items.
\end{document}

Space generated by ~\\ is a little to big for me.
What do I need to change in preamble to get effect like this? Is vertical spacing in this case better than line feed?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

You could use the parameter after, such as

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

or use \vspace there with a value you like, such as

\setlist[itemize]{topsep=0pt,after=\vspace{.5\baselineskip}}
share|improve this answer
1  
This might work, but I still think vertical spacing would be better, because full line-feed does not look good for me. –  Ichibann Nov 20 '11 at 14:38
1  
.5\baselineskip means half of normal line feed, right? –  Ichibann Nov 20 '11 at 14:50
    
I've changed px into pt as XeTeX doesn't understand the former. –  egreg Nov 20 '11 at 14:51
    
A little problem showed up. That is nod big one but... If a list finishes the section, I got extra vspacing in addition to what's already there. Can it be avoided? Half line-feed is almost unnoticeable compared to vspace I currently got after ending section, but still... –  Ichibann Nov 20 '11 at 14:53
2  
@Ichibann In cases where lists end a section, you could use \begin{itemize}[after=\relax] there. –  Stefan Kottwitz Nov 20 '11 at 14:57

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.