Empty line on a slide in Latex Beamer

60,119

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.

Share:
60,119

Related videos on Youtube

Maksim Kondratyuk
Author by

Maksim Kondratyuk

Currently working as Doctoral Student in the Speech Group of the Department of Signal Processing and Acoustics of the Aalto Univerity School of Electrical Engineering (formerly TKK / Helsinki University of Technology) in Helsinki, Finland.

Updated on September 17, 2022

Comments

  • Maksim Kondratyuk
    Maksim Kondratyuk over 1 year

    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?

  • Maksim Kondratyuk
    Maksim Kondratyuk over 14 years
    The \baselineskip does not work for me, but the \vspace{} command does! Thanks!
  • Maksim Kondratyuk
    Maksim Kondratyuk over 14 years
    Do you also know what the reason is that \\ and \newline don't work?
  • Mikael Auno
    Mikael Auno over 14 years
    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.
  • Mark Reid
    Mark Reid almost 13 years
    @Peter: \baselineskip is a length. To use it with \vspace you have to write \vspace{\baselineskip}.