如何使用 xltabular 在长表中获取粗体水平线

如何使用 xltabular 在长表中获取粗体水平线

我有一张长表格,跨越几页,我需要这张表格的最后一条水平线每个页面加粗。但是,我只让最后一页的水平线加粗。有没有什么办法可以解决这个问题?(可能类似于头部,让头部在每一页上都被粗线包围,效果很好?)

以下是一个例子:

\documentclass[12pt]{article} 
\usepackage{xltabular} 

\textheight7cm

\newcolumntype{I}{!{\vrule width 0.8pt}} 

\begin{document} 

\begin{xltabular}{\linewidth} {I X | X | X I} 
\noalign{\hrule height 0.8pt}
\textbf{Header column 1} & \textbf{Header column 2} & \textbf{Header column 3} \\ 
\noalign{\hrule height 0.8pt}
\endhead 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\hline 
\hline Text column 1 & Text column 2 & Text column 3 \\ 
\noalign{\hrule height 0.8pt}
\end{xltabular} 

\end{document}

答案1

类似于\endhead\endfirsthead的还有\endfoot和`\endlastfoot。

为了达到预期的效果,你可能需要使用

\noalign{\hrule height 0.8pt}
\endhead 
\noalign{\hrule height 0.8pt}
\endfoot

相关内容