First a minimal example:
\documentclass{article}
\usepackage{makecell}
\usepackage{xtab}
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
\begin{document}
\begin{xtabular}{|p{0.65cm}||C{0.7cm}|C{0.7cm}|C{0.7cm}|C{0.7cm}|C{0.7cm}|C{0.7cm}|C{0.7cm}|}
\hline
\texttt{col}& A
& B
& C
& D
& E
& F
& G
\\\hline
\hline
\texttt{1} &\makecell{0/5\\10/20}
&\makecell{0/5\\---}
&\makecell{---\\10/10}
&\makecell{0/5\\10/20}
&\makecell{---\\10/20}
&\makecell{---\\10/20}
&\makecell{0/5\\0/20}
\\\hline
\texttt{2} &\makecell{0/10\\5/5}
&\makecell{0/10\\---}
&\makecell{---\\5/5}
&\makecell{0/10\\5/5}
&\makecell{---\\5/5}
&\makecell{---\\5/5}
&\makecell{0/10\\0/5}
\\\hline
\end{xtabular}
\end{document}
Result:
The columns already reach the maximal width.
In the example in the first row B-1 is not like the others, in the second row C-2, E-2 and F-2 are misaligned.
What I want to achieve is that in each row both lines of all cells are on the same height. How can I do that?
\tabcolsep
to a smaller value, so that you gain horizontal space, or you can use a smaller font such that the contents of the cells fits into a width of0.7cm
. It is definitely no solution to cause an overflow in all cells and then to reduce the space at the bottom that results from this error.\makecell
. See the docs ofmakecell
on how to adjust this space. If you tell us what the hard constraints are (like total table width or whatever), we can help you in adjusting the flexible parts.