Code: Select all
\begin{tabular}{ll} \hline
\multicolumn{2}{c}{This is some very long text...} \\
Short text & Short text \\ \hline
\end{tabular}
Code: Select all
\begin{tabular}{ll} \hline
\multicolumn{2}{c}{This is some very long text...} \\
Short text & Short text \\ \hline
\end{tabular}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\usepackage{tabularx}
...
\begin{tabularx}{7cm}{>{\centering}X>{\centering\arraybackslash}X}
\hline
\multicolumn{2}{c}{This is some very long long long text...} \\
Short text & Short text \\ \hline
\end{tabularx}
Code: Select all
\begin{tabular}{r@{.}l}
\hline
\multicolumn{2}{c}{This is a very long heading} \\
1&2 \\
3&45 \\
--4&1 \\
14&6 \\ \hline
\end{tabular}
Code: Select all
\documentclass{article}
\usepackage{dcolumn}
\begin{document}
\begin{tabular}{D..{2.2}}
\hline
\multicolumn{1}{c}{This is a very long heading} \\
1.2 \\
3.45 \\
-4.1 \\
14.6 \\ \hline
\end{tabular}
\end{document}
Code: Select all
\begin{table} [p] \centering
\caption[Beer and stillage solids contents]{Beer and stillage solids contents (means of triplicate runs $\pm$ standard deviation).}
\begin{tabular}{@{}>{\arraybackslash}llr@{\,$\pm$\,}lr@{\,$\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}
\label{tab:solidsContent}
\end{table}
Code: Select all
\begin{tabular}{@{}ll@{\hspace{3.5em}}r@{\,$\pm$\,}l@{\hspace{3.5em}}r@{\,$\pm$\,}l@{}}
\toprule
& & \multicolumn{2}{@{\hspace{-1.2em}}p{2.6cm}}{\centering Beer \\ Solids Content}
& \multicolumn{2}{@{\hspace{-1.2em}}p{2.6cm}}{\centering Stillage \\ Solids Content} \\
\cmidrule(l{-1.2em}){3-6}
\multicolumn{2}{l}{Treatment} & \multicolumn{2}{@{\hspace{-3.3em}}c}{\%}
& \multicolumn{2}{@{\hspace{-1.6em}}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}
Code: Select all
\begin{tabular}{@{}ll>{\hspace{0.8em}}r@{\,$\pm$\,}l>{\hspace{0.8em}}r@{\,$\pm$\,}l@{}}
Code: Select all
\usepackage{array, booktabs}
\usepackage{tabularew}
...
\newcolumntype{w}{>{\spew{.5}{+1}}}
\begin{table} [p] \centering
\caption[Beer and stillage solids contents]{Beer and stillage solids contents (means of triplicate runs $\pm$ standard deviation).}
\begin{tabularew}{@{}>{\arraybackslash}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}
\label{tab:solidsContent}
\end{table}
Code: Select all
\usepackage{tabularew}
...
\newcolumntype{w}{>{\spew{.5}{+1}}}
\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}
NEW: TikZ book now 40% off at Amazon.com for a short time.