totally new to LaTeX, this question occured today:
I have a table made of 17 columns. Every column is 0,6cm wide.
\begin{tabular}{p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0.6cm}|p{0,6cm}}
That works perfectly and fine. But i also have on several rows 2 cells which are combined with \multicolumn like this:
\multicolumn{2}{|p{1.2cm}|}{\cellcolor{grey}Inverse dependency ratio}
Because this multi column combines two differenct cells i figured out 0,6 + 0,6 = 1,2. Right? So i gave this a width of 1,2cm... However this happens:
The combined \multicolumn doesnt fit to the 2 columns at the bottom of it. What did i do wrong?
\tabcolsep
(the distance between the column border and its content.)\begin{tabular}{|*{17}{p{0.6cm}|}} ... \end{tabular}
Writingp{0.6cm}
17 times is exhausting and prone to error.|
here. (Although surely that must already be on the site somewhere...)