I want to nest 2 tabularx
tables: the columns of the "inside" table belong to a column of the "outside" table and therefore shall be indented and have a vertical line on their side.
I tried to do that with the following MWE, but I wish that the second column of the inserted table would be aligned with the "outside" table, so h and j shall be horizontally aligned with b and d.
\documentclass[11pt, a4paper]{scrartcl}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{\textwidth}{p{3cm} X}
\hline
a & b\\
c & d\\
\multicolumn{2}{@{\quad}|l}{
\begin{minipage}{\textwidth}
\begin{tabularx}{\textwidth}{p{3cm} X}
g & h \\
i & j \\
\end{tabularx}
\end{minipage}
}\\
e & f \\
\hline
\end{tabularx}
\end{document}