I'm working on a table right now and I would really like to center it to make it look neater. Only problem is after I import the array package, and then use the m{width} function. It doesn't seem to do anything. Any idea why? Here's the code and picture of the table.
Also, there's these error markers and are all saying the same thing as the one highlighted in the code below. What do these mean, I've been trying to figure that out but cant seem to find a solution.
\begin{table}[htpb]
\centering
\begin{tabular}{m{2.5cm}|m{2.5cm}p{2.5cm}p{2.5cm}p{2.5cm}}
\multicolumn{2}{l}{\textbf{Reduced data}} \\ \cline{1-2}
{} & Average Mass [kg]$\pm$0.0001 & Average Radius [m]$\pm$0.00001 & Experimental Height [m]$\pm$0.00305 & Theoretical Height [m]\\
\hline
Ball Type & & & & \\ \hline
Table Tennis & 0.00248 & 0.01871 & 0.24831 & 0.34973 $\pm$0.00519 \\
Racquet & 0.04172 & 0.02803 & 0.51206 & 0.70837 $\pm$0.00787 \\
Squash & 0.02382 & 0.01978 & 0.09103 & 0.12059 $\pm$0.01629 \\
\end{tabular}
\end{table}
-Thanks




pcolumns tomcolumns do what you want? – Torbjørn T. Oct 04 '15 at 21:10mdoes not centre the content in the space of the cell, it aligns the vertical centre of the content with the baseline of the row, so it doesn't do anything useful for a one line entry. and aligns the centre of the 2-line heading of column 2 with the first line of the p columns, which again is not wanted here. – David Carlisle Oct 04 '15 at 21:25