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:
\documentclass[10pt,DIV=12,a4paper,numbers=noenddot]{scrreprt}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{booktabs} % To thicken table lines
\begin{document}
\begin{table}
\begin{tabular}{ll}
\topline
Header 1 & Header 2\\
\midline
Body 1 & Body 2\\
Body 3 & Body 4\\
\bottomline
\end{tabular}
\end{table}
\end{document}
Here is the latex output:
http://www.text-upload.com/read.php?id=367245&c=7201095
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?
\toprule,\midruleand\bottomrule, not the\topline,\midlineand\bottomlinethat you're using in the table. – egreg May 16 '12 at 15:31\topruleundefined control sequence. – Miladiouss Nov 13 '19 at 00:07