34

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

1
  • 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 8, 2010 at 5:51

3 Answers 3

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.

3
  • 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. Dec 12, 2010 at 15:03
  • \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. Dec 13, 2011 at 22:04
  • 3
    @RomanLuštrik: in the context of a presentation, having a side-way table would be somewhat... odd. Dec 13, 2011 at 22:40
24

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

3
  • 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 8, 2010 at 6:48
  • 1
    As far as I know the »beamer« class defines its own non-floating table (and figure) environment. Nov 8, 2010 at 8:16
  • +1 also got it working adding \huge between \begin{table} and \begin{tabular} Dec 1, 2010 at 0:48
2

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

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

\end{frame}

Number 5 is fixed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.