# Add space between paragraphs in Beamer

Customizing spacing between paragraphs in Beamer plagues me constantly. To split two paragraphs by one empty line I usually put \medskip tag between paragraphs, but this is very ugly solution.

Now I try with \parskip, which works fine, but fails inside various environments (e.g., also affecting spacing between items in itemize environment). Minimum example is pasted below.

Any help is much appreciated.

\documentclass{beamer}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{parskip}
\setlength{\parskip}{\smallskipamount}

\begin{document}
\begin{frame}{Test frame}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum quis erat dolor. Aenean tincidunt sem non quam feugiat tempus.

Sed semper justo vitae sem ultrices semper. Mauris urna leo, dictum eget vulputate vitae, venenatis ut leo.
\end{frame}
\end{document}

-
@Andrej: Welcome to tex.sx! Note that it is unusual around here to sign your questions (as there is already a box with your name below it) or to have any greeting. – Hendrik Vogt Feb 21 '11 at 11:19
It would be helpful to know what effect you want to achieve... – Seamus Feb 21 '11 at 12:12
A crude solution would be to define a wrapper for itemize etc that setlength to what it needed, and then set it back again after the environment. But I think the explicit spacing is probably the easiest in general. It's not often you'll have more than a couple of paragraphs on a slide, surely... – Seamus Feb 21 '11 at 13:09
@Seamus To split two paragraphs by one empty line. – Andrej Feb 21 '11 at 15:05
@Andrej and you want this to be done automatically? Without having to add \medskip manually? – Seamus Feb 21 '11 at 15:23

I had the same problem: blank lines in latex articles produces a clearly separated paragraph, but in Beamer, with the limited space and no indentation, the default new paragraph is does not strikingly separate the paragraphs.

My hack solution was to append the following latex code to the end of the paragraph that should have the space.

\\~\\


For example, try inserting this into a Beamer latex file:

\frame{
This is text that should have a blank line after it. \\~\\
Here is text following a blank line.
}

-
Works nice. Thanks for your solution. – Andrej Jul 11 '11 at 19:56
I get an "There's no line here to end. See the LaTeX manual..." error. EDIT: since it was at the beginning of the line, I had to put "~\\" instead. – キキジキ Dec 14 '13 at 14:12

I've noticed this too when preparing slides. Rather than have two paragraphs and separate them with vertical space explicitly, I've often used one of the following workarounds:

• convert each of the paragraphs you want to split to a block-like environment such as theorem, question, answer, etc. That way (in my theme, at least) they get boxed and visually separated.

• if the two paragraphs are supporting material to the same point, use an itemize enviroment and make each its own \item. Then you get some vertical separation and a visual cue (bullet, triangle, or anything else you want) indicating that these are separate ideas.

Either one of these will make the frame more readable.

-

I'm not sure exactly what you want, but perhaps you'll find the tex command \vfill to be useful. I often put that between chunks of text so they get spaced out over the slide, which makes the slide easier for the viewer.

My other hint, as a long-time lecturer and audience member, is to use as few words as possible. Use slides for diagrams (in technical talks) or pretty pictures that evoke changing themes (in non-technical talks). Avoid paragraphs, and even sentences. Don't force audience members to decide whether to listen to you or read your material.

-
This solution has the problem that it's just as "manual" and "ugly" as the OP's \medskip solution – Seamus Feb 21 '11 at 13:05
\vfill makes "horrid" spaces between paragraphs. Spaces are also not consistent across frames. @dan I accept your suggestion to use as few words as possible, but sometimes it's necessary. – Andrej Feb 21 '11 at 14:58
@Andrej: Yes, \vfill inserts "as much space as possible," which can be be more or less on different frames. – Matthew Leingang Feb 21 '11 at 16:02

I think your original approach works just fine, if you just discard the parskip package. Doing that DOES increase between paragraph spaces while leaving the itemize environment unaffected.

\documentclass{beamer}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\setlength{\parskip}{\baselineskip}

\begin{document}
\begin{frame}{Test frame}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum quis     erat dolor. Aenean tincidunt sem non quam feugiat tempus.

\begin{itemize} \itemsep0em
\item abcdefg
\item abcdefgabcdefgabcdefg
\item abcdefg
\end{itemize}

Sed semper justo vitae sem ultrices semper. Mauris urna leo, dictum eget vulputate vitae, venenatis ut leo.

Sed semper justo vitae sem ultrices semper. Mauris urna leo, dictum eget vulputate vitae, venenatis ut leo.
\end{frame}
\end{document}

-

I am using this command for defining distance between block or expanding blocks. This one for vertical

\vspace{0.3cm}


This one for horizontal.

\hspace{0.3cm}

-
why not the build in \bigskip, \medskip, \smallskip? – daleif Feb 2 '14 at 15:37
Usually I want to define size of white block for every case separately. Especially in case of moving pictures. – Slim Feb 3 '14 at 8:16
overlayarea env? – daleif Feb 3 '14 at 8:53
I had to use google, to find out what is it... I would say I never used overlay features. It is possible, that I did, but I didn’t knew about it. I didn’t wrote all code in my templates. – Slim Feb 3 '14 at 12:01
Next time look in the Beamer manual, google does not always give the best answers. – daleif Feb 3 '14 at 12:41