Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

This is basically continuation of earlier questions. I managed to fix (brute force) most issues. This one effects continuation pages of TOC, TOF, and chapters pages after the first. I assume it is the same issues throughout. As you can see, the continuation pages have the header single spaced from rest of the text PLUS it is not spaced correctly. As before, all text must start 1.0" from top of page. Thanks in advance for your help.Image shows first and continuation pages of TOC. The TOC header is very close to 1" from page top and (unseen) subsections are double spaced below 'CHAPTER'. Below is continuation of TOC and 'CHAPTER' is not 1" spaced and subsections not double spaced. None of the fixes for other vertical spacing issues seems to effect this whatsoever. Thanks

.tex code:

\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}

My package file:

\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
share|improve this question
    
So is this question a duplicate of tex.stackexchange.com/questions/34437/…, just with a more complete MWE? –  Werner Nov 12 '11 at 7:08
    
It may not be clear from my problem statement and image, but text must start 1" below top of page and then (if header of any sort) the subsequent text must be double-spaced below the header. Thanks! –  brucebond007 Nov 12 '11 at 7:39
    
Note that you can edit existing questions to include more information. If @Werner is right you should simply update your original question instead of posting a new one. –  Martin Scharrer Nov 12 '11 at 7:41
    
Werner, in addition to adding the MWE, I have managed to fix several sections (well, two actually - the TOC first page and the main text, first page only) top margin issues. I am requesting help on the TOC second page specifically and hope that a similar solution will fix the rest of the top margin issues. –  brucebond007 Nov 12 '11 at 7:47
    
I see a small error. \ProvidesPackage{pwasu} should reference mypkg. Seems to work OK this way however. –  brucebond007 Nov 12 '11 at 8:26
show 5 more comments

closed as too localized by lockstep, Joseph Wright Dec 3 '11 at 21:03

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.