Code: Select all
\documentclass{article}
\usepackage{booktabs,array,tabularew}
\begin{document}
% New column type for being used in the tabularew environment
\newcolumntype{w}{>{\spew{.5}{+1}}}
% New column type for being used in the usual tabular environment
\newcolumntype{R}[1]{>{\hfill}p{#1}}
% Test tables
\begin{tabularew}{@{}llwr@{\,$\pm$\,}lwr@{\,$\pm$\,}l@{}}
\toprule
& & \multicolumn{2}{c}{\parbox{2.6cm}{\centering Beer \\ Solids Content}}
& \multicolumn{2}{c}{\parbox{2.6cm}{\centering Stillage \\ Solids Content}} \\
\cmidrule(l){3-6}
\multicolumn{2}{l}{Treatment}
& \multicolumn{2}{c}{\%}
& \multicolumn{2}{c}{\%} \\ \midrule
30\% & Conventional & 11.7 & 0.5 a & 18.4 & 1.2 g \\
& Vacuum & 16.6 & 1.4 b & 20.9 & 1.0 h \\ \bottomrule
\end{tabularew}
\bigskip
\begin{tabular}{@{}llR{10.35mm}@{\,$\pm$\,}lR{11.38mm}@{\,$\pm$\,}l@{}}
\toprule
& & \multicolumn{2}{c}{\parbox{2.6cm}{\centering Beer \\ Solids Content}}
& \multicolumn{2}{c}{\parbox{2.6cm}{\centering Stillage \\ Solids Content}} \\
\cmidrule(l){3-6}
\multicolumn{2}{l}{Treatment}
& \multicolumn{2}{c}{\%}
& \multicolumn{2}{c}{\%} \\ \midrule
30\% & Conventional & 11.7 & 0.5 a & 18.4 & 1.2 g \\
& Vacuum & 16.6 & 1.4 b & 20.9 & 1.0 h \\ \bottomrule
\end{tabular}
\bigskip
\begin{tabularew}{wr@{.}l}
\hline
\multicolumn{2}{c}{This is a very long heading} \\
1&2 \\
3&45 \\
--4&1 \\
14&6 \\ \hline
\end{tabularew}
\bigskip
\begin{tabular}{R{5.8em}@{.}l}
\hline
\multicolumn{2}{c}{This is a very long heading} \\
1&2 \\
3&45 \\
--4&1 \\
14&6 \\ \hline
\end{tabular}
\end{document}