shumway / asudis

LaTeX style files for ASU Ph. D. dissertations
http://shumway.github.io/asudis/
35 stars 25 forks source link

The word "Page" required at the top of each page of ToC, LoT, etc. #17

Open lr0029 opened 3 years ago

lr0029 commented 3 years ago

Hello, It seems ASU now requires the word 'Page' above the topmost page number on each page of the Table of Contents. The current template file includes code which puts 'Page' at the top of the first page, but not any subsequent pages.

neonjelly64 commented 2 years ago

Hi @lr0029 . As you can tell, we're not super super active on this repo, but I do try to jump in and help when I can. Did you resolve this yet? –Joel

lr0029 commented 2 years ago

Joel,

Thanks for responding. I was able to find a band-aid fix to resolve the issue.

Best,

Lewis

From: Joel @.> Sent: Friday, November 12, 2021 5:24 PM To: shumway/asudis @.> Cc: lr0029 @.>; Mention @.> Subject: Re: [shumway/asudis] The word "Page" required at the top of each page of ToC, LoT, etc. (#17)

Hi @lr0029 https://urldefense.com/v3/__https:/github.com/lr0029__;!!IKRxdwAv5BmarQ!Mm3emeM2jhCYvy2KdjPWe1SzPDtJoFxoWvOb1vdl-L1-CREZhWvMv-YplN1GIZWP1w$ . As you can tell, we're not super super active on this repo, but I do try to jump in and help when I can. Did you resolve this yet? –Joel

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https:/github.com/shumway/asudis/issues/17*issuecomment-967741958__;Iw!!IKRxdwAv5BmarQ!Mm3emeM2jhCYvy2KdjPWe1SzPDtJoFxoWvOb1vdl-L1-CREZhWvMv-YplN1Wgt1M1w$ , or unsubscribe https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AVRI7LCRX5WZRR7HDZQ2CVLULWV3TANCNFSM5DVKYGYA__;!!IKRxdwAv5BmarQ!Mm3emeM2jhCYvy2KdjPWe1SzPDtJoFxoWvOb1vdl-L1-CREZhWvMv-YplN1IaWSp5w$ . Triage notifications on the go with GitHub Mobile for iOS https://urldefense.com/v3/__https:/apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675__;!!IKRxdwAv5BmarQ!Mm3emeM2jhCYvy2KdjPWe1SzPDtJoFxoWvOb1vdl-L1-CREZhWvMv-YplN1KmEUWug$ or Android https://urldefense.com/v3/__https:/play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign*3Dnotification-email*26utm_medium*3Demail*26utm_source*3Dgithub__;JSUlJSU!!IKRxdwAv5BmarQ!Mm3emeM2jhCYvy2KdjPWe1SzPDtJoFxoWvOb1vdl-L1-CREZhWvMv-YplN2wHHigfA$ . https://github.com/notifications/beacon/AVRI7LBK2BHD2JUIHHHX3MTULWV3TA5CNFSM5DVKYGYKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHGXJEBQ.gif

imanprs commented 2 years ago

Could you please share your solution? I have a similar problem. on the second page I get "Table of contents" on both right- and lef-hand sides of the header and then nothing on the third page.

neonjelly64 commented 2 years ago

Hi @imanprs. Since @lr0029 didn't provide their solution via a pull request for example, I don't know what the solution was. I'm happy to help if you provide a minimal working example of the problem. –Joel

imanprs commented 2 years ago

Thank you Joel. I am not sure how I should make a minimal working example, so sorry if this doesn't help. I currently have the following in my main file.

\tableofcontents
\addtocontents{toc}{~\hfill Page\par}
\newpage
\addcontentsline{toc}{part}{LIST OF TABLES}
\listoftables
\addtocontents{lot}{Table~\hfill Page \par}
\newpage
\addcontentsline{toc}{part}{LIST OF FIGURES}
\addtocontents{toc}{CHAPTER \par}
\addtocontents{lof}{Figure~\hfill Page \par}
\listoffigures

In the asudis.sty, this is what I think is the relevant part.

% Fix the table of contents
%
%
% Get leader dots right.  They should all be spaced the same and need to be
% added for chapters and parts.
%
\renewcommand{\cftchapdotsep}{1.7}
\renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
\renewcommand{\cftpartdotsep}{1.7}
\renewcommand{\cftpartleader}{\cftdotfill{\cftpartdotsep}}
\renewcommand{\cftsecdotsep}{1.7}
\renewcommand{\cftsubsecdotsep}{1.7}
\renewcommand{\cfttabdotsep}{1.7}
\renewcommand{\cftfigdotsep}{1.7}
%
% Fonts for the chapter titles and part titles.
%
\renewcommand{\cftchapfont}{\rm}
\renewcommand{\cftpartfont}{\rm}
\renewcommand{\cftchappagefont}{\rm}
\renewcommand{\cftpartpagefont}{\rm}
%
% Indentations: These are in accordance with the chart at the top of page 4 of
% the document
% ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/tocloft/tocloft.pdf
% I simply moved each of the following sections "up" one level to get the
% indentations right.
%
\cftsetindents{chapter}{1.5em}{1.5em}
\cftsetindents{section}{3.0em}{2.3em}
\cftsetindents{subsection}{5.3em}{3.2em}
%
% Spacing between entries is taken care of by the double-spacing in this 
% section, so no need for extra space before chapter or part entries.
%
\setlength{\cftbeforepartskip}{0truept}
\setlength{\cftbeforechapskip}{0truept}
%
% Get the title for the TOC normal sized, centered, and at the right height.
%
\setlength{\cftbeforetoctitleskip}{-64.0truept}
\setlength{\cftaftertoctitleskip}{0truept}
%
\renewcommand{\contentsname}{TABLE OF CONTENTS}
\renewcommand{\cfttoctitlefont}{\hfill\normalsize\rm}
\renewcommand{\cftaftertoctitle}{\hfill}
%
\newcommand{\cftlabel}{CHAPTER}
%
% Get rid of the header underline.
\renewcommand{\headrulewidth}{0pt}
%

%\def\pagethreshold{6}

% Get the header on subsequent pages right.
\renewcommand{\@cfttocstart}{ 
\newgeometry{top=1.0in,hmargin=1.25in,height=9.0in,
includehead,includefoot,letterpaper}%,showcrop,showframe}

\doublespace
\pagestyle{fancyplain}
   \afterpage{\lhead{}\rhead{Page}}
%\afterpage{\lhead{\cftlabel}\rhead{Page}}
}

\renewcommand{\@cfttocfinish}{
\restoregeometry\clearpage\afterpage{\lhead{}\rhead{}}
}
imanprs commented 2 years ago

It seems like I was able to find a way to circumvent the issue. I manually added a \pagestyle{fancy} before the tables and later redefined to make the headers blank.

\renewcommand{\cftlabel}{CHAPTER}
\pagestyle{fancy} \lhead{\cftlabel} \rhead{Page}
\tableofcontents
\addtocontents{toc}{~\hfill Page\par}
\newpage
\addcontentsline{toc}{part}{LIST OF TABLES}
\renewcommand{\cftlabel}{Table}
\listoftables
\addtocontents{lot}{Table~\hfill Page \par}
\newpage
\addcontentsline{toc}{part}{LIST OF FIGURES}
\addtocontents{toc}{CHAPTER \par}
\addtocontents{lof}{Figure~\hfill Page \par}
\renewcommand{\cftlabel}{Figure}
\listoffigures

\newpage
%-----------------------body
\doublespace
\pagenumbering{arabic}
\fancyhead{}
\include{chapter1}
\include{chapter2}
\include{chapter3}
neonjelly64 commented 2 years ago

Nice! I just tried it out on a more-or-less blank dissertation and it seems to do the trick. I'll see if I can implement it in the asudis style file and make a pull request. Good work around. –Joel