lvjr / tabularray

Typeset tabulars and arrays with LaTeX3
https://ctan.org/pkg/tabularray
247 stars 22 forks source link

longtblr - New page breaking issues #320

Closed Aljumaily closed 1 year ago

Aljumaily commented 1 year ago

The following example will break the cell in a way where the vertical lines don't show and places the contfoot-text text in way to be seen as a part of the table.

image
\documentclass{article}

\usepackage{tabularray}
\begin{document}
~\vspace{5in}
\begin{longtblr}[
    caption = {The caption of the table},
  ]{colspec = {ll}, vlines}
  \hline
  \SetCell[r=2]{m, 1cm} {Line \\ Line \\ Line \\ Line} & Alpha \\
  \cline{2}
   & Beta                     \\
  \hline
  \SetCell[r=2]{m, 1cm} {Line \\ Line \\ Line \\ Line} & Alpha \\
  \cline{2}
   & Beta                     \\
  \hline
  \SetCell[r=2]{m, 1cm} {Line \\ Line \\ Line \\ Line} & Alpha \\
  \cline{2}
   & Beta                     \\
  \hline
\end{longtblr}
\end{document}

Off-topic: is there a way to ensure the caption in the example above spans \textwidth without changing the width of the table (i.e., without the usage of width=\textwidth)?

Sidenote: Regardless, the package is FANTASTIC!

lvjr commented 1 year ago

Sorry, tabularray can not break multirow cells. See issue #278.

Off-topic: is there a way to ensure the caption in the example above spans \textwidth without changing the width of the table (i.e., without the usage of width=\textwidth)?

You can see issue #255 for a solution.