Latex 将表格的标题行和摘要行扩展到页面宽度

Latex 将表格的标题行和摘要行扩展到页面宽度,latex,texworks,Latex,Texworks,我想将表格的标题栏和水平线扩展到页面宽度 现有表格: 所需表格: 表脚本: \begin{longtable}{l@{\extracolsep{\fill}\hspace{\tabcolsep}} p{.6\textwidth} r r r r r } \hline \rowcolor{black} \textcolor{white} {{\setmainfont{SF Grandezza Heavy}POS}} &\textcolor{white} {{\setmainfont{S

我想将表格的标题栏和水平线扩展到页面宽度

现有表格:

所需表格:

表脚本:

\begin{longtable}{l@{\extracolsep{\fill}\hspace{\tabcolsep}} p{.6\textwidth} r r r r r }
\hline
\rowcolor{black}
\textcolor{white} {{\setmainfont{SF Grandezza Heavy}POS}} &\textcolor{white} {{\setmainfont{SF Grandezza Heavy}DESCRIPTION}} & \textcolor{white} {{\setmainfont{SF Grandezza Heavy}QTY}} & \textcolor{white} {{\setmainfont{SF Grandezza Heavy}PRICE} (\pounds)} & \textcolor{white} {{\setmainfont{SF Grandezza Heavy}AMOUNT}  (\pounds)} \\*
\hline\hline
\endhead
}{

请创建一个替代这些代码片段的
& & & {MWSt \taxval \%} & {\taxes{\arabic{cost}}{\taxval}} \\
\hline\hline
& & &  {Summe EUR} & {\addtaxes{\arabic{cost}}{\taxval}} \\
\end{longtable}