[Tex/LaTex] Error using \toprule \midrule from Booktabs package


I am trying to use the package booktabs to make my tables look nicer. However,
Latex gives me an error whenever I use \toprule \midrule or \bottomrule. Here is a simple
example I created:



\usepackage{booktabs} % To thicken table lines


    Header 1 & Header 2\\
    Body 1 & Body 2\\
    Body 3 & Body 4\\


Here is the latex output:


I also browsed to /usr/local/texlive/2011/texmf-dist/tex/latex/ to check if the package is really there. And it is. I cannot see why latex is throwing these errors. Can anyone help?

Best Answer

Change \topline to \toprule, and same with mid and bottom counterparts.

Related Question