前导空间影响使用 tabu 包,需要更新任何设置模板吗?请查看 MEW 文件如下:
\documentclass{book}
\usepackage{tabu}
\begin{document}
{\fontsize{8bp}{10bp}\selectfont\begin{tabu}{p{222pt}p{40pt}}
\tabucline{-}
Total non-current\break liabilities&Employee benefits\vphantom{yg}\\
Total non-current\break liabilities&Employee benefits\\
Total non-current\break liabilities&Employee benefits\\
Total non-current\break liabilities&Employee benefits\\
\tabucline{-}
\end{tabu}}
\end{document}
答案1
- 使用
tabu
:您应该知道,这个包是有缺陷的,并且没有维护(一些修复程序可以在github) - 对于终止行,你应该使用
\\
- 命令的功能
\break
不清楚,到目前为止我还没有看到它被用于单元格的内容格式化 - 看看以下 MWE 是否给出了您想要的内容:
\documentclass{book}
\usepackage{tabu}
\begin{document}
{
\fontsize{8bp}{10bp}\selectfont
\tabulinesep=3pt
\begin{tabu}{p{222pt}p{40pt}}
\tabucline{-}
Total non-current liabilities & Employee benefits \\
Total non-current liabilities & Employee benefits \\
Total non-current liabilities & Employee benefits \\
Total non-current liabilities & Employee benefits \\
\tabucline{-}
\end{tabu}
}
\end{document}
附录:
我提到过,tabu
有 bug。不清楚你的问题是什么,不过,tabu
我宁愿使用简单的tabular
:
\documentclass{book}
\usepackage{tabu}
\begin{document}
{
\fontsize{8bp}{10bp}\selectfont
\begin{tabular}{p{222pt}p{40pt}}
\hline
Total non-current liabilities & Employee benefits \\
Total non-current liabilities & Employee benefits \\
Total non-current liabilities & Employee benefits \\
Total non-current liabilities & Employee benefits \\
\hline
\end{tabular}
}
\end{document}
这使: