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.

I'm trying to produce some padding around a table in a beamer slide. I've tried using \vspace{10mm} but that doesn't seem to produce anything. Other vertical spacing commands such as \bigskip don't seem to work either.

I've searched but I can't seem to find any solution to this. I assume beamer manages its own vertical spacing, but surely there must be some way to override this?

The minimal example below shows the problem with the table being too close to the text above and below:

\documentclass[t]{beamer}

\usecolortheme{rose}
\begin{document}

\begin{frame}{Results: School children}
    \begin{block}{Hypothesis}
        School closures may cause significant reductions in disease spread
    \end{block}

    \begin{block}{Results}
    Worst case scenarios:
    \bigskip
    \begin{tabular}{|c|c|c|}
\hline \textbf{\% School Closure} & \textbf{Clinical Attack Rate} & \textbf{Mortality per 100,000} \\ 
\hline 0 & 30.6\% & 614 \\ 
\hline 100 & 0.6\% & 4 \\ 
\hline 
\end{tabular} \\
    With 100\% school closure starting early (0.1\% of population symptomatic) mortality is reduced \textbf{below normal levels for US seasonal flu}

    \end{block}
\end{frame}

\end{document}
share|improve this question
add comment

2 Answers 2

up vote 6 down vote accepted

Put empty lines (aka paragraph breaks) before and after the tabular.

\documentclass[t]{beamer}

\usecolortheme{rose}
\begin{document}

\begin{frame}{Results: School children}
    \begin{block}{Hypothesis}
        School closures may cause significant reductions in disease spread
    \end{block}

    \begin{block}{Results}
    Worst case scenarios:

    \bigskip
    \begin{tabular}{|c|c|c|}
\hline \textbf{\% School Closure} & \textbf{Clinical Attack Rate} & \textbf{Mortality per 100,000} \\ 
\hline 0 & 30.6\% & 614 \\ 
\hline 100 & 0.6\% & 4 \\ 
\hline 
\end{tabular}

    \bigskip
    With 100\% school closure starting early (0.1\% of population symptomatic) mortality is reduced \textbf{below normal levels for US seasonal flu}

    \end{block}
\end{frame}

\end{document}
share|improve this answer
add comment

If you don't want to break a paragraph, you can use \\[size]

...
\begin{block}{Results}
Worst case scenarios:\\[2ex]
\begin{tabular}{|c|c|c|}
....
share|improve this answer
add comment

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.