当 tabuarray 有分页符时,如何获取关闭的框架?

当 tabuarray 有分页符时,如何获取关闭的框架?

我用 tabularray 构建了一个框架表,如果整个表位于一页上,它看起来会很好。

当表格中有分页符时,会有开放的角。

当使用 rowhead 和 rowfoot 时,开放的角会消失,但这会增加额外的线(或多或少是不同的表格),我不希望在所有使用表格的情况下都出现这种情况。

当 tabularray 有分页符时,如何获取关闭的框架?

\documentclass[11pt, a4paper]{article}
\usepackage[top=5mm, bottom=15mm, includehead]{geometry}
\usepackage{tabularray}

\begin{document}

\vspace*{200mm}

\begin{longtblr}[]{
        width=0.8\textwidth,
        rows={3em, m, rowsep=2pt},
        colspec = {X[c] X[c] X[c] X[c]},
        hlines = {leftpos = 0, rightpos = 0},
        hline{1} = {1}{-}{leftpos = 1, rightpos = 1},
        hline{1} = {2}{-}{leftpos = 0, rightpos = 0},
        hline{Z} = {1}{-}{leftpos = 0, rightpos = 0},
        hline{Z} = {2}{-}{leftpos = 1, rightpos = 1},
        vlines,
        vline{1} = {1}{-}{ abovepos = 1, belowpos = 1},
        vline{1} = {2}{-}{ abovepos = 0, belowpos = 0},
        vline{Z} = {1}{-}{ abovepos = 0, belowpos = 0},
        vline{Z} = {2}{-}{ abovepos = 1, belowpos = 1},
        %rowhead = 1, rowfoot = 1
    }
    Alpha &      &       &       \\
          & Beta &       &       \\
          &      & Gamma &       \\
          &      &       & Delta \\
\end{longtblr}

\end{document} 

在此处输入图片描述

答案1

解决方案并不遥远。感谢 Michael 的帮助!

使用 rowhead 和 rowfoot ,它们的高度为 0 分配 + 拉伸 = 0。向内容添加空的标题和脚注。很高兴。

    ...
    \begin{longtblr}[]{
        width=0.8\textwidth,
        rows={3em, m, rowsep=2pt},
        colspec = {X[c] X[c] X[c] X[c]},
        hlines = {leftpos = 0, rightpos = 0},
        hline{1} = {1}{-}{leftpos = 1, rightpos = 1},
        hline{1} = {2}{-}{leftpos = 0, rightpos = 0},
        hline{Z} = {1}{-}{leftpos = 0, rightpos = 0},
        hline{Z} = {2}{-}{leftpos = 1, rightpos = 1},
        vlines,
        vline{1} = {1}{-}{ abovepos = 1, belowpos = 1},
        vline{1} = {2}{-}{ abovepos = 0, belowpos = 0},
        vline{Z} = {1}{-}{ abovepos = 0, belowpos = 0},
        vline{Z} = {2}{-}{ abovepos = 1, belowpos = 1},
        row{1}={ht=0pt, rowsep=0pt},
        row{Z}={ht=0pt, rowsep=0pt},
        rowhead = 1,
        rowfoot = 1,
        stretch = 0,
      }
      \\
      Alpha  &      &       &       \\
             & Beta &       &       \\
             &      & Gamma &       \\
             &      &       & Delta \\
      \\
  \end{longtblr}
  ...

在此处输入图片描述

相关内容