4

Since I have too large a table to show during a presentation, I would like to insert a landscape pdf page between slides.

Vivi
  • 26,953
  • 31
  • 77
  • 79
justin
  • 241

2 Answers2

3

You can create a PDF landscape document (let's call it table.pdf for the example) containing the table and then use \href inside a frame to launch the table when you click on some predefined text:

\documentclass{beamer}

\begin{document}

\begin{frame}
And here I present \href{table.pdf}{a table}.
\end{frame}

\end{document}
Gonzalo Medina
  • 505,128
3

If the existing table forms part of an external file, and you just which to include it as-is, you can use pdfpages. Here how, by means of an example.

Assume table.tex contains your large-format, landscape, letterpaper table (formatting provided by booktabs and layout by geometry):

enter image description here

\documentclass{article}
\usepackage{booktabs}% http://ctan.org/pkg/booktabs
\usepackage[landscape,letterpaper]{geometry}% http://ctan.org/pkg/geometry
\pagestyle{empty}% No page headers/footers
\begin{document}
  \begin{tabular}{ll}
    \toprule
    Sequence & Wide column \\
    \midrule
    First & Vestibulum porta ultricies felis. In nec mi. \\
    Second & Nam vestibulum auctor nibh. In eleifend, lacus id tristique ullamcorper, mauris urna convallis elit. \\
    Third & Ut luctus nisi quam lobortis magna. Aenean sit amet odio et sapien rutrum lobortis. \\ 
    Fourth & Integer dictum accumsan purus. Nullam erat ligula, dictum sed, feugiat nec, faucibus id, ipsum. \\
    \bottomrule
  \end{tabular}
\end{document}

Now, your beamer presentation beamer.tex looks like this:

enter image description here

\documentclass{beamer}% http://ctan.org/pkg/beamer
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usetheme{Warsaw}
\begin{document}
\begin{frame}
  \tableofcontents
\end{frame}

\section{First section}
\begin{frame}
  \frametitle{This is a frame}
  \lipsum[1]
\end{frame}

\section{Last section}
\begin{frame}
  \frametitle{This is another frame}
  \lipsum[2]
\end{frame}
\end{document}

(The above beamer example creates a 3-frame presentation with Table of Contents which is hyperlinked. lipsum was used to create dummy text.) Now you create your final document, presentation.tex:

enter image description here

\documentclass{article}
\usepackage{pdfpages}% http://ctan.org/pkg/pdfpages
% Default beamer presentation paper size
%\newlength\beamer@paperwidth
%\beamer@paperwidth 12.80cm%
%\newlength\beamer@paperheight%
%\beamer@paperheight 9.60cm%
\usepackage[paperwidth=12.8cm,paperheight=9.6cm]{geometry}% http://ctan.org/pkg/geometry
\pagestyle{empty}
\begin{document}
\includepdf[pages={1-2},noautoscale]{beamer}% presentation BEFORE table
\includepdf[pages=1,fitpaper]{table}% large-format table
\includepdf[pages=3,noautoscale]{beamer}% presentation AFTER table
\end{document}

This includes the beamer.tex presentation pages and interleaves the required large-format table.tex where needed. The disadvantage is that you loose the hyperlinking inherent in beamer.tex.


If you would like to look at ways of including the table as part of your existing beamer code, consider reading Including large tables in a beamer frame. Three different ways include using

  • scaling using \resizebox or \scalebox (provided by graphicx);
  • a selective column showing technique to break the table across multiple frames; and
  • beamer's zooming capability to zoom in on shrunken frame content.
Moriambar
  • 11,466
Werner
  • 603,163