[Tex/LaTex] Beamer ignoring table format


I have a number of tables formatted in a LaTeX document. I want to put these tables into a beamer class with one table/slide and perserve the table formatting. When I compile my document, everything behaves as expected, however my tables do not maintain their original formatting. Specifically, I do not see my bottomrule lines. Here is my MWE:

\usepackage{booktabs, caption}
\title{Here is my Title} 
\date{October 1st, 2011} 


\frametitle{My Slide Title}
\begin{tabular}{lcccccc} \bottomrule
H1 & H2 & H3 & H4 & H5 & H6 & H7\\ \bottomrule
a & b & c & d & e & f & g \\
& 2 & 3 & 4 & 5 & 6 & 7 \\
\caption{This is my caption}

How can I perserve my LaTeX table formatting/styling in beamer? Thanks in advance for the help.

Best Answer

Load the packages (booktabs, caption) after \documentclass, not before.

I can confirm that errors are produced and lines are missing if you load in the wrong order. However, in the right order all is fine:


table on beamer slide

Related Question