如何才能使跨越合并单元格的第一列和最后一列的文本正确跨越到下一页?
这是我使用的代码:
\documentclass{article}
\usepackage[table, svgnames, dvipsnames]{xcolor}
\usepackage{tabularray}
\usepackage{lipsum}
\UseTblrLibrary{varwidth}
\ExplSyntaxOn
\NewChildSelector{eacheleven}
{
\int_step_inline:nnnn {2}{11}{\l_tblr_childs_total_tl}
{ \clist_put_right:Nn \l_tblr_childs_clist {##1} }
}
\ExplSyntaxOff
\begin{document}
\scriptsize
\newcommand\myrow[9]{#1 & TEXT1 & #2 & #3 \\
& TEXT2 & #4 \\
& TEXT3 & #5 \\
& TEXT4 TEXT & #6 \\
& TEXT5 & #7 \\
& TEXT6 & #8 \\
& TEXT7 TEXT. & #9 \\
}
\newcommand\myrowcont[4]{ & TEXT8 & #1 \\
& TEXT TEXT9. & #2 \\
& TEXT TEXT10 . & #3 \\
& TEXT TEXT11 & #4 \\
}
\scriptsize
\begin{longtblr}[expand=\expanded,
caption = {CaPTION},
label = {TABLE},
]{
colspec = {|X[0.35,j, h] |X[0.47,j,l] |X[1.5,j,c]|X[0.7,j,h]},
rowhead = 1,
hlines, vlines,
cell{even}{2-3} = {WhiteSmoke},
cell{odd}{2-3} = {white},
row{1} = {FloralWhite},
column{1,2} = {font=\bfseries},
cell{1}{2} = {c=2}{c},
cell{1}{4} = {font=\bfseries},
cell{eacheleven}{1,4} = {r=11}{c},
measure = vbox
}
ONE & TWO & & THREE\\
\expanded{\myrow{text}{text}{text}{text}{text}{text)}{text}{text }{text}}
\expanded{\myrowcont{text}{text}{text}{text }}
\expanded{\myrow{text}{text}{text}{text}{text}{text)}{text}{text }{text}}
\expanded{\myrowcont{text}{text}{text}{text }}
\expanded{\myrow{\lipsum[12]}{text}{\lipsum[12]}{text}{text}{text)}{text}{text }{text}}
\expanded{\myrowcont{text}{text}{text}{text }}
\expanded{\myrow{text}{text}{text}{text}{text}{text)}{text}{text }{text}}
\expanded{\myrowcont{text}{text}{text}{text }}
\end{longtblr}
\end{document}
结果如下: