LaTeX forum ⇒ Graphics, Figures & Tablesbeamer | Array Size Adjustment to Frame Size Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
nounouuuuu201186
Posts: 36
Joined: Sun May 20, 2012 6:28 am

beamer | Array Size Adjustment to Frame Size

Postby nounouuuuu201186 » Tue Jul 03, 2012 2:19 pm

Hi all,

I inserted a table into a page of a beamer presentation but the problem is that the array size exceeds the frame. How to adjust the array size to the size of the frame?

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net
LaTeX Beginner's Guide LaTeX Cookbook
User avatar
Stefan Kottwitz
Site Admin
Posts: 9845
Joined: Mon Mar 10, 2008 9:44 pm

beamer | Array Size Adjustment to Frame Size  Topic is solved

Postby Stefan Kottwitz » Tue Jul 03, 2012 3:04 pm

You could use tabularx for producing a table with \textwidth or less, or use \resizebox of the graphicx package, with \textwidth as width argument.

Example:

\documentclass{beamer}
\usepackage{tabularx}
\begin{document}
\begin{frame}\small
  \frametitle{Fitting a table}
  \begin{tabularx}{\textwidth}{*{20}{@{}X@{}}}
     01 & 02 & 03 & 04 & 05 & 06 & 07 & 08 & 09 & 10 &
     11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 & 20
  \end{tabularx}
  \normalsize
\end{frame}
\end{document}​

Stefan
LaTeX.org admin

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

beamer | Array Size Adjustment to Frame Size

Postby localghost » Tue Jul 03, 2012 9:45 pm

Just for information to other users for awareness of possibly already existing solutions. The question has also been posted to {TeX} SX (migrated from Stack Overflow).
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 6 guests