summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/msu-thesis
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-04-17 20:02:35 +0000
committerKarl Berry <karl@freefriends.org>2022-04-17 20:02:35 +0000
commitc056f58459dd77ae53b6f3f8934b5e62ee372b77 (patch)
tree523bbef28c6ab6f47918914757c3c4de8d79af3d /Master/texmf-dist/tex/latex/msu-thesis
parentfd3037eb0bf26bb8a2cd10cfdee039cca07d8509 (diff)
msu-thesis (17apr22)
git-svn-id: svn://tug.org/texlive/trunk@63061 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/msu-thesis')
-rw-r--r--Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls21
1 files changed, 15 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls b/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls
index c30184d45af..cda76b9afeb 100644
--- a/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls
+++ b/Master/texmf-dist/tex/latex/msu-thesis/msu-thesis.cls
@@ -158,11 +158,12 @@
% Version 3.0b 2021/07/14 Added msu@hchap counter for hyperref targets in appendices (unreleased)
% Version 3.1 2022/03/03 Added support for List of Algorithms plus fixes for algorithm2e and algorithmicx etc
% Version 3.1b 2022/03/25 Fixed numbering problem for single global appendix
+% Version 3.2 2022/04/16 Fixed TOC formatting problem for per-chapter appendices
%
% Report bugs/problems/questions to <amunn@msu.edu>
%
-\def\msu@version{3.1b}
-\def\msu@date{2022/03/25}
+\def\msu@version{3.2}
+\def\msu@date{2022/04/16}
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{msu-thesis}[\msu@date\space Michigan State University Thesis Class version \msu@version]
\newif\ifmsu@dissertation\msu@dissertationtrue % added v2.7 boolean for \msu@thesistype
@@ -399,6 +400,10 @@
\cftinsertcode{CHAPAPPR}{
\cftsetindents{section}{1.5em}{2.3em}
+\setlength{\cftchapterindent}{0em}
+\setlength{\cftbeforechapterskip}{1.0em \@plus\p@}
+ \renewcommand\cftchapterfont{\msu@chapfont}
+ \renewcommand\cftchapterpagefont{\msu@chapfont}
}
% This code resets the changes made in the APP code back to normal
% so that the bibliography will appear correctly in the TOC
@@ -584,7 +589,6 @@
\interlinepenalty \@M
\normalfont
\printparttitle{\appendixpagename}\par}%
- \cftinserthook{toc}{CHAPAPPR} % reset added 2021/06/10
\@endpart}
%
@@ -600,14 +604,19 @@
{\renewcommand{\appendixname}{Appendix}
\renewcommand{\appendixtocname}{Appendix}
\renewcommand{\appendixpagename}{Appendix}
- \ifmsu@chapterapp\else\msu@singleappendixtrue\fi% make sure single appendix doesn't have a number if global 3.1b
+% It's not clear if this should apply to per-chapter appendices also
+% I think it probably should, even though it leads to ambiguity.
+% Changing this in 3.2 2022/04/16
+% \ifmsu@chapterapp\else
+ \msu@singleappendixtrue
+% \fi% make sure single appendix doesn't have a number if global 3.1b (always 3.2)
\msu@apppage\settocdepth{part}\@resets@pp\anappendixtrue}%
- {\@ppsaveapp\@pprestoresec\anappendixfalse}
+ {\@ppsaveapp\@pprestoresec\anappendixfalse\cftinserthook{toc}{CHAPAPPR}} % reset aded 2022/04/16
\renewenvironment{appendices}%
{\msu@apppage\settocdepth{chapter}
\@resets@pp\anappendixtrue}%
- {\@ppsaveapp\@pprestoresec\anappendixfalse}
+ {\@ppsaveapp\@pprestoresec\anappendixfalse\cftinserthook{toc}{CHAPAPPR}} % reset added 2022/04/16
% The default numbering that memoir assumes is for appendices
% is sequential throughout the document; the thesis office