Graphics, Figures & TablesCentering large column heading above 3 columns

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Fdavid
Posts: 1
Joined: Tue Mar 28, 2023 10:43 am

Centering large column heading above 3 columns

Post by Fdavid »

Hi everbody,

After searching for hours I could not solve my problem.
I have a large table with means and sd separated in three columns.
I need to header to be centered on the +-.

I tried using S tables but when I use S type tables I receive an error message with the column header on two lines.
Any other simple solution keeping the 3 column form of the mean +- sd.

Here is a short extract of the table.

Thank you for your help.

Code: Select all

Code, edit and compile here:
\begin{table}[]
\begin{tabular}{lrcl}
\textit{Acides gras (\%)} & \multicolumn{3}{c}{\begin{tabular}[c]{@{}c@{}}My long three column and two lines header to be centered \\ (n = 91)\end{tabular}} \\
\textit{Saturés} & & & \\
14:0 & 2.6 & ± & 0.7
\end{tabular}
\end{table}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Post Reply