回忆录类中目录延续的问题

回忆录类中目录延续的问题

这基本上是之前问题的延续。我设法(强力)解决了大多数问题。这个问题影响了目录、目录和第一页之后的章节页的后续页。我认为从始至终都是同样的问题。如您所见,后续页的页眉与其余文本的间距为单倍,而且间距不正确。与以前一样,所有文本必须从页面顶部 1.0 英寸处开始。提前感谢您的帮助。图片显示了目录的第一页和续页。目录标题距离页面顶部非常近 1 英寸,并且(看不见的)子节在“章节”下方双倍行距。下面是目录的续页,“章节”的行距不是 1 英寸,子节也不是双倍行距。其他垂直间距问题的修复似乎都对此没有任何影响。谢谢

.tex 代码:

\documentclass[oneside,12pt]{memoir}
\DoubleSpacing         % memoir's double spacing
\usepackage{mypkg}     % this package
\topmargin -0.4125in        % read Lamport p.163
\evensidemargin 0in     % same as oddsidemargin but for left-hand pages
\textheight 9.1in 
\parskip 7.2pt           % sets spacing between paragraphs
\parindent 0pt          % sets leading space for paragraphs
\DoubleSpacing
\begin{document}
\maxtocdepth{subparagraph} % put everything into the ToC
\pagestyle{toc}
\tableofcontents*
\mainmatter
\pagestyle{toc}
\addtocontents{toc}{\cftpagenumbersoff{chapter}}
\addcontentsline{toc}{chapter}{CHAPTER}
\addtocontents{toc}{\cftpagenumberson{chapter}}
\pagestyle{plain}
\chapter{INTRODUCTION} 
\section{Background and Motivation}
\chapter{TWO} 
\section{Why ?}
\chapter{THREE} 
\section{Why not ?}
\subsection{Qualitat ave Qequirements}
\chapter{THREE} 
\section{Qualitat ave Qequirements}
\chapter{THREE} 
\section{Qualitat ave Qequirements}
\chapter{THREE} 
\section{Qualitat ave Qequirements}
\chapter{THREE} 
\section{Qualitat ave Qequirements}
\chapter{THREE} 
\section{Qualitat ave Qequirements}
\chapter{THREE} 
\section{Qualitat ave Qequirements}
\chapter{THREE} 
\section{Qualitat ave Qequirements}
\chapter{THREE} 
\section{Qualitat ave Qequirements}
\chapter{THREE} 
\section{Qualitat ave Qequirements}
\end{document}

我的包文件:

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{mypkg}
\@ifclassloaded{memoir}{\let\endpwasu\relax}{\let\endpwasu\endinput
  \PackageError{pwasu}{The pwasu package only works with the memoir class}{\@ehd}}
\endpwasu
% Some useful lengths for layout purposes
\newlength{\toptafiddle}
\newlength{\bottafiddle}
\newlength{\topfiddle}
\newlength{\botfiddle}
\newlength{\linespace}
\setlrmarginsandblock{1.375in}{1.375in}{*}
%% bottom of text at 1in, footer below
%% top of header at 1in, first text line double spaced below base of header
\setlength{\linespace}{\baselineskip} %% the current equivalent of \onelineskip
\setlength{\headheight}{\lineskip}
\setlength{\headsep}{\linespace}
\addtolength{\headsep}{-\topskip}
\setlength{\uppermargin}{1in}
\makepagestyle{asu}
%% for continuation pages of the ToC, LoF, LoT, LoS
\makepagestyle{toc}
  \makeevenfoot{toc}{}{\thepage}{}
  \makeoddfoot{toc}{}{\thepage}{}
  \makeevenhead{toc}{CHAPTER}{}{Page}
  \makeoddhead{toc}{CHAPTER}{}{Page}
%% chapter style
\makechapterstyle{asu}{%
\setlength{\beforechapskip} {-.5\topfiddle}
\setlength{\afterchapskip} {\onelineskip}
  \setlength{\beforechapskip}{-0.2in}
  \setlength{\afterchapskip}{3pt}
  \renewcommand*{\chapnamefont}{\normalfont}
  \renewcommand*{\chapnumfont}{\chapnamefont}
  \renewcommand*{\printchapternum}{\centering\chapnumfont \thechapter}
  \renewcommand*{\chaptitlefont}{\normalfont\centering\vspace*{-\onelineskip}}
  \renewcommand*{\printchapternonum}

}
%%% (subsub)section styles
\setsecheadstyle{\centering\normalfont\vspace*{-\onelineskip}}
\setsubsecheadstyle{\centering\itshape\vspace*{-\onelineskip}}
\setsubsubsecheadstyle{\centering\vspace*{-\onelineskip}}
\setlength{\aftersecskip}{3pt}
%%%% Do the ToC
\let\oldtoc\tableofcontents
\renewcommand{\tableofcontents}{\clearpage\pagestyle{toc}\oldtoc}
 \renewcommand{\contentsname}{TABLE OF CONTENTS}
\renewcommand*{\tocheadstart}{\vspace*{-.0225in}}
\renewcommand*{\aftertoctitle}{\thispagestyle{plain}%
  \par\nobreak \mbox{}\hfill{\normalfont Page}\par\nobreak}
\renewcommand*{\cftchapterfont}{\normalfont}
\renewcommand*{\cftchapterpagefont}{\normalfont}
\renewcommand*{\cftchapterleader}{%
  \cftchapterfont\cftdotfill{\cftchapterdotsep}}
\renewcommand*{\cftchapterdotsep}{\cftdotsep}
\setlength{\cftbeforechapterskip}{0pt plus 0pt}
\chapterstyle{asu}
\endinput

相关内容