我有一份包含两列不等的文档,其中一列有一个长表格。我已使用longtblr
来创建长表格。但是,是否可以使用longtable
代替longtblr
来重现相同的结果?事实上,如果我用 替换longtblr
,longtable
我会得到以下错误:Package longtable Error: longtable not in 1-column mode
。下面是带有 的 MWElongtblr
和相应的结果:
\documentclass{article}
\usepackage[margin=15mm]{geometry}
\usepackage{paracol}
\usepackage{lipsum}
\usepackage{tabularray}
\begin{document}
\columnratio{0.4} % left column size
\begin{paracol}{2}
\lipsum[1] % some text on the left column
\begin{longtblr}[ % a long table on the left column
caption = {Long Long Long Tabular},
entry = {Short Caption},
label = {tblr:test},
]{
colspec = {XXX}, hlines,
rowhead = 2, rowfoot = 1,
row{1-2,Z} = {font=\bfseries},
}
Head & Head & Head \\
Head & Head & Head \\
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
Nu & Xi & Omicron \\
Rho & Sigma & Tau \\
Phi & Chi & Psi \\
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
Nu & Xi & Omicron \\
Rho & Sigma & Tau \\
Phi & Chi & Psi \\
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
Nu & Xi & Omicron \\
Rho & Sigma & Tau \\
Phi & Chi & Psi \\
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
Nu & Xi & Omicron \\
Rho & Sigma & Tau \\
Phi & Chi & Psi \\
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
Nu & Xi & Omicron \\
Rho & Sigma & Tau \\
Phi & Chi & Psi \\
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
Nu & Xi & Omicron \\
Rho & Sigma & Tau \\
Phi & Chi & Psi \\
Alpha & Beta & Gamma \\
Epsilon & Zeta & Eta \\
Iota & Kappa & Lambda \\
Nu & Xi & Omicron \\
Rho & Sigma & Tau \\
Phi & Chi & Psi \\
Foot & Foot & Foot \\
\end{longtblr}
\lipsum[1] % additional text after the long table, still on the left column
\switchcolumn
\lipsum[1] % text on the right column
\end{paracol}
\end{document}