如何根据表的列拆分表?
\documentclass[a4paper,10pt]{scrartcl}
\usepackage[utf8]{inputenc}
\begin{document}
\begin{center}
\begin{tabular}{llllllllllllllllllll}
very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text\\
very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text\\
very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text & very long text
\end{tabular}
\end{center}
\end{document}
这编译成一个 3 行表格,其中大约有 5 列可见。现在我想在分页符后显示其余内容(即接下来的 5 列),如果还有更多内容要显示,则再次分页,然后显示剩余的列,依此类推。最后,在打印文档后,我可以将纸张粘合在一起以获得一个非常宽的表格。
如果可能的话,作为一种无需粘贴的打印输出的选项,如果它能够在每一页上重复第一列,那将会很有帮助。
我想到了一种有点像长桌的东西,但是切割的是侧面而不是底部。有这样的解决方案吗?
我见过旋转的例子,但这种旋转不起作用,因为它比横向更宽。我还见过示例代码,它将 i 到 n 列放入一个表中,添加一个新页面和另一个包含 n+1 到 m 列的表;这也不起作用,因为我现在不知道以后在哪里拆分表。