文本框相互叠加,不应该

文本框相互叠加,不应该

我正在制作一本教师课程计划的规划书。所以我想要一系列跨页的模板。到目前为止,我有以下内容:

\documentclass[letter,openleft,twoside]{memoir}
\usepackage[left=0pt,right=0pt,top=2cm,bottom=2cm]{geometry}
\usepackage{forloop}
\usepackage{adjustbox}
\usepackage{fancyhdr}
\usepackage[absolute]{textpos}


\setlength{\TPHorizModule}{1cm}
\setlength{\TPVertModule}{1cm}


\fancypagestyle{mypagestyle}{%
  \fancyhf{}% Clear header/footer
  \fancyhead[OC]{}% Author on Odd page, Centred
  \fancyhead[EC]{Week of \makebox[2in]{\dotfill} to \makebox[2in]{\dotfill}}% Title on Even page, Centred
  \fancyfoot[C]{\thepage}%
  \renewcommand{\headrulewidth}{0pt}% Header rule of .4pt
}
\pagestyle{mypagestyle}

\newcommand{\aline}{\\\hline &&&&&&\rule{0cm}{5cm}}
\newcounter{theyflines}
%\pagestyle{empty}
\parindent=0pt

\newcommand{\apage}{

\begin{textblock}{21.59}(0,3)
\adjustbox{clip=true,trim=0pt 0pt {\textwidth} 0pt}{\usebox\tempbox}
\end{textblock}
\pagebreak\vspace*{\fill}%
\begin{textblock}{21.59}(0,3)
\adjustbox{clip=true,trim={\textwidth} 0pt 0pt 0pt}{\usebox\tempbox}
\end{textblock}
}


\newcounter{theyfpages}

\newsavebox{\tempbox}
\newlength{\pwidth}
\newlength{\spwidth}

\setlength{\pwidth}{\dimexpr \textwidth-6\tabcolsep-4\arrayrulewidth}%
\divide\pwidth by 3
\setlength{\spwidth}{\dimexpr \pwidth-2cm-2\tabcolsep-\arrayrulewidth}%

\savebox{\tempbox}{% fit 3 columns into \textwidth
\begin{tabular}{p{2cm}|p{\spwidth}|p{\pwidth}|p{\pwidth}|p{\pwidth}|p{\pwidth}|p{\pwidth}|}
\hline
Course & Weekly goal & Monday & Tuesday & Wednesday & Thursday & Friday
\forloop{theyflines}{1}{\value{theyflines} < 5}{\aline}\\
\hline
&&&&&&\rule{0cm}{2cm}\\
\hline
\end{tabular}}

\begin{document}

\null\newpage

\forloop{theyfpages}{1}{\value{theyfpages} < 41}{\apage}

\end{document}

结果如下: 在此处输入图片描述

如您所见,两个adjustboxes 相互叠加,在左页和右页上都是如此。我怀疑textpos这与此有关,因为在我开始使用textbox环境使跨页的两半对齐后出现了问题。我该如何删除叠加的表格材料?

相关内容