我有一张表格,其中一行包含大段文本,我想将表格行拆分到 tex 文档中的多个页面中,请参见下面的最小工作示例。
\documentclass{article}
\makeatletter
\newcount\my@repeat@count
\newcommand{\myrepeat}[2]{%
\begingroup
\my@repeat@count=\z@
\@whilenum\my@repeat@count<#1\do{#2\advance\my@repeat@count\@ne}%
\endgroup
}
\makeatother
\usepackage{longtable}
\begin{document}
\begin{longtable}{p{.2\linewidth}|p{.8\linewidth}}
Research Activity & \myrepeat{400}{This is a very long text.}
\tabularnewline
\end{longtable}
\end{document}
我该怎么做?谢谢!