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.

Concretely, this is what I am trying to do:

\documentclass{article}



\begin{document}
\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
%if I put \newline or \\ here it does not work. Why? 
I am doing it here to test this.
\end{document}

Where the item list ends, I want to give some linespacing but neither \newline nor \\ is working. Why is that?

share|improve this question
    
Are you trying to start a new paragraph? –  Joseph Wright Mar 13 at 19:58
    
I wonder also about that \setlength{\arrayrulewidth} - line. –  Christian Hupfer Mar 13 at 20:32
    
@ChristianH. not normal to use \par explicitly, a blank line is enough. –  David Carlisle Mar 13 at 20:55
    
If you don't want to start a new paragraph, maybe \\` at the end of the last item (before \end{itemize}`)? –  cfr Mar 13 at 21:43
    
@JosephWright, You can say that, yes. –  user1343318 Mar 13 at 21:44

3 Answers 3

up vote 2 down vote accepted

Basically the problem is that \\ ends a line, but after an itemize there exist no line that can be ended.

Mi very simple solution to case like these is to put a "fake line" by adding a space and then the newline. This will be like:

\begin{itemize}
  \item one
  \item two
\end{itemize}
\  \\
share|improve this answer

Here are some examples with explanations:

\documentclass{article}
\begin{document}
\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
I am doing it here to test this.

\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
Putting \verb|\newline| or \verb|\\| here will cause an error that there is `no line here to break`. This is because a new line has already been started by the ending of the list. Putting the same command here\\
will work because this is in the middle of a line.

\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}

One way to get extra horizontal space is to start a new paragraph.

\begin{itemize}
    \item But you
    \item may \emph{just}
    \item want space\\
\end{itemize}
without a paragraph break.

\begin{itemize}
    \item If you
    \item want
    \item a little\\[-.5em]
\end{itemize}
less space
\begin{itemize}
    \item or you
    \item want
    \item a lot\\[5em]
\end{itemize}
more.

\end{document}

and the output:

Variations on a spatial theme

share|improve this answer
1  
This produces underfull hboxes... –  karlkoeller Mar 14 at 6:14
    
@karlkoeller Is that bad? I mean they are warnings but you know in this case why you get the warnings and that you in fact want the space. In general, I interpret warnings as 'You may want to check... because normally you wouldn't want...' rather than necessarily demonstrating that there is a problem. (It is only a problem if you didn't want... - normally, but not always, the case.) –  cfr Mar 14 at 18:10

The right way to add a "blank line" would be to insert some horizontal space.

Inserting \bigskip you have the corresponding space:

\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
\bigskip
I am doing it here to test this.

If you also want to start a new (indented) paragraph add a blank line:

\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
\bigskip

I am doing it here to test this.

MWE:

\documentclass{article}

\begin{document}
\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
\bigskip
I am doing it here to test this.

\begin{itemize}
    \item This
    \item That
    \item Where
\end{itemize}
\bigskip

I am doing it here to test this.
\end{document} 

Output:

enter image description here

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.