在格式化我的表格时,我注意到自动换行后的行距变得混乱:该行下方的空间缩小了(如果有上标,则最明显)。这是一个常见问题吗?请注意,我想保留环境longtabu
。
\documentclass[11pt,a4paper, twoside]{scrbook}
\usepackage[english]{babel}
\usepackage{array}
\usepackage{longtable, tabu}
\begin{document}
\begin{longtabu}[H]{|X|X|l|}
\hline
Column 1 & Column 2 & Column 3 \\
\hline
Something && \\
Something && \\
Something with a really long name that enforces a linebreak && \\
Something && \\
Something with a really long name that enforces a linebreak && \\
Something\textsuperscript{whatever} && \\
Something && \\
Something && \\
\hline
\end{longtabu}
\end{document}
感谢您的任何建议!
答案1
看看你的 MWE 的修改是否能满足你的要求:
\documentclass[11pt,a4paper, twoside]{scrbook}
\usepackage[english]{babel}
\usepackage{array}
\usepackage{longtable, tabu}
\begin{document}
{\tabulinesep =_3pt^3pt % <-- added
\begin{longtabu} to \linewidth {|X|X|l|}
\hline
Column 1 & Column 2 & Column 3 \\
\hline
Something && \\
Something && \\
Something with a really long name that enforces a linebreak && \\
Something && \\
Something with a really long name that enforces a linebreak && \\
Something\textsuperscript{whatever} && \\
Something && \\
Something && \\
\hline
\end{longtabu}
}
\end{document}