For some reason, the text in my table is not wrapping up and I keep getting the error: Extra alignment tab has been changed to \cr.. can anyone help with making a simple table with wrapping the text: below is the MWE:
%---------------------Preamble---------------%
\documentclass[twoside,b5paper,9.5pt,openright]{book}
\usepackage[total={13cm,19.5cm},top=2.5cm,bottom=2.0cm,left=2.0cm,right=2.0cm, includefoot]{geometry}
\usepackage[english]{babel}
\usepackage{charter}
\usepackage{microtype} % removes extra spacing between text
\usepackage{fancyhdr} % fancy heading style in headers and footers
\usepackage{graphicx} % include graphs/ figures in the file
\usepackage{array,threeparttable} % to add footnotes to the tables
\usepackage{booktabs}
\usepackage{caption} % to create some space between table caption and table, otherwise there was no space
\captionsetup[table]{font=small,skip=0pt}
\usepackage{subfig}
\usepackage{float} % figures as 6 (a), 6 (b) etc.
\usepackage{tabu}
\usepackage{tikz}
\raggedbottom
\begin{document}
% Table generated by Excel2LaTeX from sheet 'Sheet1'
\begin{table}[ht]
\scriptsize
\centering
\begin{threeparttable}
\caption{Add caption}
\begin{tabular}{p{1cm}p{1cm}p{1cm}p{1cm}p{1cm}p{1cm}}
\toprule
& \textbf{Overall} & \textbf{Starting} & \textbf{treatments} & \textbf{processes} & \textbf{Average} & \textbf{error (\%)} \\
\midrule
R2 & 0.3 & 0.6 & 0.5 & 0.7 & 0.3 & 8 \\
C & 2 & 17 & 2 & 5 & 2 & 8 \\
k & 6 & 0 & 2 & 226 & 9 & 1 \\
Efficiency of testing system* & 74 & 9 & 8 & 5 & 8 & 0 \\
St.dev. ** & 1 & 1 & 1 & 1 & 2 & - \\
\bottomrule
\end{tabular}%
\label{tab:first-modeldata}%
\end{threeparttable}
\end{table}%
booktabs
to format the table. See the documentation for the package. That recommends not using them. If you must use them for some reason, don't use thebooktabs
commands for this table, at least. (But best not to use them.) – cfr Mar 24 '15 at 2:41