# Same Header on different slides with beamer and longtable

When using the Longtable package in a LaTeX Beamerdocument, how can I create a table header shown on every slide containing table contents? The following approach seems not to work:

\begin{frame}[allowframebreaks]{title}
\begin{longtable}{cc}
fooooooooooo & Bar\\
fooooooooooo & Bar\\
...
\end{longtable}
\end{frame}


The headerline with "c d" is never shown. This behaviour doesn't seem right.

-

## migrated from stackoverflow.comJun 30 '11 at 18:27

This question came from our site for professional and enthusiast programmers.

While allowframebreaks technicly works it is declared as 'evil' in the beamer manual. You should always manually decide what and how much is placed on which slide to avoid overfilled slides. So I would recommend to simply use two (or more) tabulars on the same number of slides. – Martin Scharrer Jun 30 '11 at 20:47

use another package:

\documentclass{beamer}
\usepackage{xtab}

\begin{document}

\begin{frame}[plain,allowframebreaks]{title}