禁忌引導空格影響

禁忌引導空格影響

前導空格影響使用禁忌包,需要更新任何設定模板嗎?請找到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}

這使:

在此輸入影像描述

相關內容