When trying to compile a table with beamer I get the following error:
Code: Select all
ERROR: Undefined control sequence.
--- TeX said ---
\beamer@doifinframe ...in {tabular}{llc} \toprule
\textbf {\numer } & \textb...
l.64 \end{frame}
--- HELP ---
TeX encountered an unknown command name. You probably misspelled the
name. If this message occurs when a LaTeX command is being processed,
the command is probably in the wrong place---for example, the error
can be produced by an \item command that's not inside a list-making
environment. The error can also be caused by a missing \documentclass
command.
Code: Select all
\documentclass[10pt]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[spanish,ngerman,catalan,english]{babel}
\usepackage{pdfpages}
\usepackage{tabularx}
\usepackage{tabu}
\usefonttheme[stillsansserifsmall]{serif}
\usefonttheme{structuresmallcapsserif}
\usetheme{Pittsburgh}
\usecolortheme{seahorse}
\setbeamertemplate{footline}[frame number]
\beamertemplatenavigationsymbolsempty
\begin{document}
\newcommand*\numer{N"o}
\selectlanguage{spanish}
\begin{frame}
\titlepage
\end{frame}
\begin{frame}
\frametitle{{\'I}ndice}
\tableofcontents
\end{frame}
\frame{
\frametitle{{\'I}ndice}
\tableofcontents
[pausesections]
}
\begin{frame}
\begin{table}[!ht]
\caption{Errores}
\centering
\begin{tabular}{llc}
\toprule
\textbf{\numer} & \textbf{Subcategoría} &\textbf{Total}\\
\hline
\hline
E & P& 8\\
A& U& 7\\
\hline
\bottomrule
\end{tabular}
\label{tab:total}
\end{table}
\end{frame}
\end{document}
Is it possible to include a long table in beamer?
Many thanks in advance.
Regards,
Marie