这基本上是之前问题的延续。我设法(强力)解决了大多数问题。这个问题影响了目录、目录和第一页之后的章节页的后续页。我认为从始至终都是同样的问题。如您所见,后续页的页眉与其余文本的间距为单倍,而且间距不正确。与以前一样,所有文本必须从页面顶部 1.0 英寸处开始。提前感谢您的帮助。
.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