lvjr / tabularray

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

Split cell into multiple pages #221

Closed yuki closed 2 years ago

yuki commented 2 years ago

I have been reading the manual and made some tests wit longtblr and some other options, but not sure if it can be done with tabularray, or other table packages.

Use the next example:

\documentclass[11pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage{blindtext}
\usepackage{tabularray}
\UseTblrLibrary{varwidth}
\SetTblrOuter{
    long,
    label=none,
}

\begin{document}

    \begin{tblr}{
        colspec={X[j]X},
        hlines,vlines,
        measure=vbox
    }
        Column 1 & Column 2 \\

        \blindtext[1] & row 1 \\
        \blindtext[1]  

        \blindtext[1]
            & row 2 
        \\

        \blindtext[1] 

        \blindtext[1]

        \blindtext[1]

        \blindtext[1]
            & row 3 
        \\
    \end{tblr}

\end{document}

Can the row2 and row3 be "splited" (or "breaked" automatically) to occupy multiple pages?

The idea is similar to what tcolorbox does with the option "breakable=true", but with a table's cell. Example of tcolorbox:


\documentclass[11pt,a4paper]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{tcolorbox}
\tcbuselibrary{many,breakable}
\usepackage{blindtext}

\begin{document}
    \begin{tcolorbox}[breakable=true,enhanced jigsaw]
        \blindtext[7]
    \end{tcolorbox}
\end{document}
´´´

Thanks for this great package!
lvjr commented 2 years ago

Sorry, but it is impossible to break cells with this package. Tables are much more complicated than boxes.