\begin{table}[h!]
\centering
\begin{tabular}{lllllll}
\rowcolor[HTML]{656565}
{\color[HTML]{FFFFFF} Function} & {\color[HTML]{FFFFFF} Input} & {\color[HTML]{FFFFFF} Output} & \multicolumn{3}{l}{\cellcolor[HTML]{656565}{\color[HTML]{FFFFFF} Physical principle}} & {\color[HTML]{FFFFFF} Embodiment} \\
& & & action reaction & tension & friction & bolt \\
& \multirow{-2}{*}{normal force} & \multirow{-2}{*}{normal force} & action reaction & friction & ... & screw \\
\multirow{-3}{*}{\begin{tabular}[c]{@{}l@{}}connecting\\ parts\end{tabular}} & \begin{tabular}[c]{@{}l@{}}normal force,\\ magnetic fields\end{tabular} & \begin{tabular}[c]{@{}l@{}}normal force,\\ magnetic fields\end{tabular} & magnetism & ... & ... & magnets
\end{tabular}
\end{table}
Asked
Active
Viewed 18 times
0
-
1Please extend your sniplet to a full but minimal exmaple that others can copy and test as is. – daleif Mar 15 '22 at 16:29
-
3Besides that your table is much larger than the textwidth, so what exactly is LaTeX suppose to center this table incomparison to? – daleif Mar 15 '22 at 16:31
-
You may want to take a look at My table doesn't fit; what are my options? and/or How can I center a too wide table? – leandriis Mar 15 '22 at 20:27