禁忌引导空间影响

禁忌引导空间影响

前导空间影响使用 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}

这使:

在此处输入图片描述

相关内容