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?
Graphics, Figures & Tables ⇒ beamer | Array Size Adjustment to Frame Size
-
- Posts: 36
- Joined: Sun May 20, 2012 6:28 am
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10323
- Joined: Mon Mar 10, 2008 9:44 pm
beamer | Array Size Adjustment to Frame Size
You could use
tabularx for producing a table with
graphicx package, with
Example:
Stefan

\textwidth
or less, or use \resizebox
of the 
\textwidth
as width argument.Example:
Code: Select all
\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}
LaTeX.org admin
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
beamer | Array Size Adjustment to Frame Size
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).
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10