\documentclass{article}
\usepackage{forloop}
\usepackage[a4paper,left=0cm,top=0cm]{geometry}
\newcommand{\aline}{\\\hline \arabic{theyflines} &&&&&&&&&&&&&&&&\rule{0cm}{.4cm}}
\begin{document}
\newcounter{theyflines}
\begin{tabular}{|p{0.20cm}|p{2.75cm}|p{1cm}|p{1cm}|p{.35cm}|p{0.35cm}|p{0.35cm}|p{0.35cm}|p{0.35cm}|p{0.35cm}|p{0.35cm}|p{0.35cm}|p{0.35cm}|p{0.35cm}|p{2.60cm}|p{1.30cm}|p{1.30cm}|}
\hline
SL&Name& Room&Dept.&L&D&B&L&D&B&L&D&B&L&Deposit&Cost&Extra
\forloop{theyflines}{1}{\value{theyflines} < 48}{\aline}\\
\hline
\end{tabular}
\end{document}
当我扩展行时48
,55
表格会移动到第 2 页而不是第 1 页。为什么?