37

What is the most convenient way to shrink a table to fit in a beamer slide?

Stefan Kottwitz
  • 231,401
  • 10
    I'd point out that large tables are not usually a good idea in presentations, so before you simply cram in lots of numbers do think about the point you are aiming to achieve. – Joseph Wright Nov 08 '10 at 05:51

3 Answers3

26

Use \small or \tiny after the \begin{table}

C. Reed
  • 473
  • 4
    You mean after \begin{table}? Most likely, in a presentation one will use a table without putting it as a float. In that case, but \small etc before \begin{tabular} and enclose it in a group. – Aditya Nov 08 '10 at 06:48
  • 1
    As far as I know the »beamer« class defines its own non-floating table (and figure) environment. – Thorsten Donig Nov 08 '10 at 08:16
  • +1 also got it working adding \huge between \begin{table} and \begin{tabular} – David LeBauer Dec 01 '10 at 00:48
18

Besides adjusting the font size such that it fits:

  • You could use tabularx to fit the table to the slide by using automatically expanding columns

  • Or you could use \resizebox of the graphicx package to scale a complete table/tabular environment to match the slide width or height.

Stefan Kottwitz
  • 231,401
  • The downside of \resizebox is that if you have a landscape page and use longtable package, the table gets flipped and is rendered useless. At least that was my case. Good tip, though. – Roman Luštrik Dec 12 '10 at 15:03
  • 3
    @RomanLuštrik: in the context of a presentation, having a side-way table would be somewhat... odd. – Bruno Le Floch Dec 13 '11 at 22:40
  • \resizebox \r \resizebox does not work for me; I'm using TeXnicCenter. There have to be a way to improve on including tables, none of the solutions given above work. – Galois Theory Dec 13 '11 at 22:04
3

I had the same problem. The problem is solved by using the following:

\begin{frame}[shrink=5]{Title}

\end{frame}

Number 5 is fixed.

ALRADDADI
  • 109