13

I am using Latex Beamer for creating a presentation.

On one slide I have

\frame
{
  \frametitle{fdjsljklfdjs}
  What is fdjsljklfdjs
  \begin{itemize}
  \item item one
  \item item one
  \end{itemize}

  Why do we want to know it
  \begin{itemize}
  \item item one
  \item item one
  \item item three
  \end{itemize}
}

I would like to have space between the first itemize block and the second question. However, if I try \\ or \newline, I get a pdflatex parsing error:

! LaTeX Error: There's no line here to end.

How can I get an emtpy line?

Peter Smit
  • 9,346
  • 13
  • 45
  • 45

1 Answers1

22

Use \vspace, e.g.

\vspace{1in}

for a one inch vertical space. If you want it to be equal to the normal distance between two lines, use the length \baselineskip.

Mikael Auno
  • 356
  • 3
  • 5
  • 1
    The \baselineskip does not work for me, but the \vspace{} command does! Thanks! – Peter Smit Oct 21 '09 at 12:15
  • Do you also know what the reason is that \\ and \newline don't work? – Peter Smit Oct 26 '09 at 06:28
  • 1
    I don't know more than what can be read from the error message. As I understand it (I've seen this message a few times myself), \\ and \newline just break an existing line, but there is no line to break before you put some content on it and a new line has just been created for you after the itemize block. I might be totally wrong in that interpretation, but that's my guess anyway. – Mikael Auno Oct 26 '09 at 21:46
  • 10
    @Peter: `\baselineskip` is a length. To use it with `\vspace` you have to write `\vspace{\baselineskip}`. – Mark Reid Aug 15 '11 at 04:23