I'm preparing a presentation using the beamer class, and I need to put a tabular environment inside it and I always get the errors
Undefined control sequence
\end{frame}
and
Missing number, treated as zero
\end{frame}
The document is not compiling.
I'm kinda new to LaTeX and I keep all my packages from document to document, I forgot what are some for. Do you have an idea what is happening?
\PassOptionsToPackage{table}{xcolor}
\documentclass[xcolor=dvipsnames]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage[french]{babel}
\usepackage{xlop} %opérations de beau gosse
\hypersetup{pdfpagemode=FullScreen} %probablement fullscreen at launch
\graphicspath{{images/}}
\usepackage{graphicx}
\usetheme{Berkeley}
\definecolor{color1}{RGB}{0,165,50} %creer une couleur
\setbeamercolor{normal text}{bg=white,fg=black}
\usecolortheme[named=color1]{structure} %utiliser une couleur
\setbeamertemplate{navigation symbols}{}
\theoremstyle{definition} %pour des boites a théorèmes
\newtheorem*{dfn}{Définition}
\usepackage{multicol}
\usepackage{setspace}
\usepackage{hyperref}
\usepackage{lastpage}
\usepackage{textcomp}
\usepackage{rotating}
%\usepackage{colortbl}
\usepackage[table]{xcolor}
\addtobeamertemplate{footline}{\hfill\insertframenumber/\inserttotalframenumber\hspace{0.1cm}\null\vspace{0.05cm}} %numéro des diapos
\usepackage{setspace}
\begin{document}
\begin{frame}
\begin{figure}[H]
\doublespacing
\begin{center}
\begin{tabular}{cccc}
\hline
\textbf{Wear mechanisms} & \textbf{Applications} & \textbf{Deposited materials} & \textbf{Deposition processes}\\
\hline
Abrasive wear & Pump shafts & Cr-Co & HOVF, plasma, detonation\\
\hline
Adhesive wear & Pistons, brakes & Mo, Ni-Cr, Cu-Ni-In & Plasma, flame, HOVF\\
\hline
Contact wear & Aircraft leading edge & Tungsten carbide, Co & Detonation HVOF\\
\hline
Erosion & Power plant fan & Tungsten carbide, $\textnormal{Al}_{2}\textnormal{O}_{3}$, $\textnormal{Cr}_{2}\textnormal{O}_{3}$ & Detonation, HVOF\\
\hline
\end{tabular}
\caption{Examples of thermal sprayed coatings against wear}
\end{center}
\end{figure}
\end{frame}
\end{document}


\documentclassand finishing with\end{document}. It should include all packages and styles you need to reproduce the problem which is different from all packages and styles you use in your complete document. – Ignasi Jan 08 '14 at 15:25\doublespacingand your code will compile. – Ignasi Jan 08 '14 at 15:58\centeringinside afigureenvironment instead of thecenterenvironment. See http://tex.stackexchange.com/questions/23650/when-should-we-use-begincenter-instead-of-centering for more details. – Herr K. Jan 08 '14 at 16:55\doublespacingto produce taller rows, another option would be to include\rule{0pt}{4ex}in any cell but in every row. – Ignasi Jan 08 '14 at 20:06