前導空格影響使用禁忌包,需要更新任何設定模板嗎?請找到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}
附錄:
AI提到,這tabu
是有問題的。目前尚不清楚你的問題是什麼,但是,tabu
我寧願使用 simple 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}
這使: