I have a longtable
setup where to save space, I have to make a column title multi-line and its contents centered while being applied with custom width.
Out of the three I have only successfully applied a custom width because adding \\
or inserting another table
inside the column header did not achieve multi-line and c{Xcm}
is not permitted for centering a column's contents.
% centering column values
\begin{longtable}{c l l ... }
% tried to use but does not work
... { c{1cm} l l ... }
% long title needs to multi-line, both do not work
\multicolumn{1}{|p{3cm}|}{\textbf{Long Title\\Long Title}}
\multicolumn{1}{|p{3cm}|}{
\begin{table}
\textbf{Long Title}\\
\textbf{Long Title}
\end{table}
}
The situation above is demonstrated in the table on the left but what I want is the one on the right - multi-lined title, centered and compact values of rows.
I have the sample document in WriteLaTeX.