我试过
\begin{tabular}{ | c | c | c | }
\hline
\textbf{Section 1} & \textbf{Section 2} & \textbf{Section 3} \\
\hline
1. Point & \begin{tabular}{c}
\multicolumn{1}{c}{Lorem ispum}\\\hline
Lorem ispum \\\hline
Lorem ispum \\\hline
\end{tabular} & Lorem ispum \\
\hline
\end{tabular}
但我不知道如何正确地做到这一点。我不仅需要划分单元格,而且它们的线条应该与其他列中的线条相匹配,如图所示。任何解决方案都将不胜感激
答案1
我使用tabularray
包创建了表。这对您有帮助吗?
\documentclass[12pt]{article}
\usepackage[a4paper, total={180mm,257mm},left=15mm,top=20mm]{geometry}
\usepackage{tabularray}
\UseTblrLibrary{counter,amsmath}
\newcounter{tabitem}%<--for numbering inside the table
\newcommand{\tabitem}{\stepcounter{tabitem}\makebox[21pt][r]{\arabic{tabitem}.\;\,}}%<--how the numbering inside the table will look and step.
\begin{document}
\begin{tblr}{colspec={Q[3cm,l]Q[4cm,l]Q[7cm,l]},rows={1cm,m},vlines,hlines,cell{1}{1-3}={c},row{2}={5cm,h},row{3}={3cm,h},row{5}={2cm,h},row{6}={3cm,h},cell{2}{1}={c=1,r=2}{l},cell{4}{1}={c=1,r=3}{h}}
\textbf{Section 1} & \textbf{Section 2} & \textbf{Section 3}\\
\tabitem Point 1 & Lorem ipsum & - Lorem Ipsum \\
& Lorem ipsum & - Lorem Ipsum \\
\tabitem Point 2 & Lorem ipsum & - Lorem Ipsum \\
& Lorem ipsum & - Lorem Ipsum \\
& Lorem ipsum & - Lorem Ipsum \\
\end{tblr}
\end{document}