I'm using the Latex table generator to create a large table, which should include several lists and several split cells in some rows. Below you can find a cropped screenshot of this large table.
The generated code is as follows:
% Please add the following required packages to your document preamble:
% \usepackage{multirow}
% \usepackage{graphicx}
\begin{table}[]
\resizebox{\textwidth}{!}{%
\begin{tabular}{|c|c|c|c|c|}
\hline
\textbf{a} & \textbf{b} & \textbf{c} & \textbf{d} & \textbf{e} \\ \hline
1 & \begin{tabular}[c]{@{}c@{}}* x1\\ * x2\\ * x3\\ *x4\\ * x5\\ * x6\\ * x7\\ * x8\\ * x9\\ * x10\\ *x11\\ * x12\\ * x13\end{tabular} & h1largercell & 1thiswasaddedtomakethecelllarger & 1largercell \\ \hline
\multirow{2}{*}{2} & \multirow{2}{*}{\begin{tabular}[c]{@{}c@{}}* y1\\ * y2\\ * y3\\ * y4\\ * y5\\ * y6\\ * y7\\ *y8\\ * y9\\ * y10\end{tabular}} & h2 & 9 & 12 \\ \cline{3-5}
& & h3 & 3 & 12 \\ \hline
3 & \begin{tabular}[c]{@{}c@{}}* z1\\ * z2\\ * z3\\ * z4\\ * z5\\ * z6\\ * z7\\ *z8\\ * z9\\ * z10\end{tabular} & h4 & 1 & 1 \\ \hline
\multirow{4}{*}{4} & \multirow{4}{*}{\begin{tabular}[c]{@{}c@{}}* k1\\ *k2\\ * k3\\ * k4\end{tabular}} & h5 & 8 & \multirow{4}{*}{21} \\ \cline{3-4}
& & h6 & 1 & \\ \cline{3-4}
& & h7 & 3 & \\ \cline{3-4}
& & h8 & 2 & \\ \hline
\end{tabular}%
}
\caption{Sample}
\label{tab:SampleTable}
\end{table}
I loaded all necessary packages but, unfortunately, the end result after compiling always looks as follows in my document:
The overlap in the first column is especially annoying. I'm aiming for nested lists in each table cell and this question comes very close to what I would like to achieve. Unfortunately, it does not account for the split cells in the lower rows.
Any help or ideas how to integrate both concepts (i.e. nested lists and split cells) are highly appreciated.
Best Answer
The following
tabularray
-based approach may get you started: