我有一个嵌套的禁忌表,并使用 \vspace 来模拟同一单元格中的空行。单元格末尾是跨越两行的文本。(如果这三个条件中的任何一个不满足,则问题不会出现或不那么严重。)
结果是最后一行文本非常非常靠近表格的边框。这看起来很尴尬。但我找不到任何方法在满足上述所有三个先决条件的情况下在那里留出更多空间。
这是最小的示例代码:
\documentclass[10pt,a4paper]{article}
\usepackage{tabu}
\begin{document}
\tabulinesep=3pt
\begin{tabu}{lp{5cm}}
a & a \\ \hline
b & inner table: \newline
\begin{tabu}{lX}
0: & descriptive text \\
1: & descriptive text \\
\end{tabu}
\vspace{8pt} \newline
Some longer text which will break into the next line. \\ \hline
c & c
\end{tabu}
\end{document}
它看起来是这样的:
答案1
\documentclass[10pt,a4paper]{article}
\usepackage{tabu}
\begin{document}
\tabulinesep=3pt
\begin{tabu}{lp{5cm}}
a & a \\ \hline
b & inner table: \newline
\begin{tabu}{lX}
0: & descriptive text \\
1: & descriptive text \\
\end{tabu}%
\vspace*{8pt}
\par\noindent
Some longer text which will break into the next line.\\ \hline
c & c
\end{tabu}
\end{document}