
答案1
我將提供一個替代解決方案,tblr
其環境為tabularray
包裹。首先,它會建立一個跨越兩個欄位的正確多列儲存格X
。其次,透過使用\SetCell
命令,我們不需要擔心單元格邊界。
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\noindent
\begin{tblr}{@{}|t{3.5cm}|X|X|}
some text & \SetCell[c=2]{c} some text & \\
\end{tblr}
\end{document}
答案2
{NiceTabular}
這是of 的替代方案nicematrix
。在該環境中,該命令\Block
垂直和水平合併單元格,且規則(例如|
在序言中指定)是不是繪製在塊中。
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
\noindent
\begin{NiceTabular}{|p{3.5cm}|X|X|}
some text & \Block{1-2}{some text} & \\
\end{NiceTabular}
\end{document}
您需要多次編譯(因為nicematrix
在背景使用 PGF/Tikz 節點)。