summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/msu-thesis/msu-thesis.cls
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-07-25 03:01:17 +0000
committerNorbert Preining <norbert@preining.info>2023-07-25 03:01:17 +0000
commitbe53973de38a7aa9a3a0a8c70fd92bdf893c1a35 (patch)
tree50d18c7e399afeaa37df77a57667580ba93fea0a /macros/latex/contrib/msu-thesis/msu-thesis.cls
parent19444d4440a66200b03e05b567996375d0404a46 (diff)
CTAN sync 202307250301
Diffstat (limited to 'macros/latex/contrib/msu-thesis/msu-thesis.cls')
-rw-r--r--macros/latex/contrib/msu-thesis/msu-thesis.cls10
1 files changed, 5 insertions, 5 deletions
diff --git a/macros/latex/contrib/msu-thesis/msu-thesis.cls b/macros/latex/contrib/msu-thesis/msu-thesis.cls
index 63be1bba6e..20a8f5dbfa 100644
--- a/macros/latex/contrib/msu-thesis/msu-thesis.cls
+++ b/macros/latex/contrib/msu-thesis/msu-thesis.cls
@@ -186,11 +186,12 @@
% after chapter titles.
% Version 4.1c 2023/06/27 Removed spacing after chapter titles (again)
% Version 4.1d 2023/07/19 Fixed per chapter bibliography TOC page number bug
+% Version 4.1e 2023/07/24 Fixed per chapter appendices TOC bug;
%
% Report bugs/problems/questions to <amunn@msu.edu>
%
-\def\msu@version{4.1d}
-\def\msu@date{2023/07/19}
+\def\msu@version{4.1e}
+\def\msu@date{2023/07/24}
\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
@@ -496,8 +497,7 @@
\renewcommand\cftchapterpagefont{\msu@tocfont}
\renewcommand*{\cftappendixname}{APPENDIX\space}
\renewcommand\cftchapteraftersnum{\msutocdelim}
- \addtocounter{tocdepth}{-1}
-
+ \ifthenelse{\value{msutocdepth}=0}{\addtocounter{tocdepth}{-1}}{}
}
% This code resets the TOC back to normal section spacing if appendices have been used
@@ -748,7 +748,7 @@
{\@ppsaveapp\@pprestoresec\anappendixfalse\cftinserthook{toc}{CHAPAPPR}} % reset aded 2022/04/16
\renewenvironment{appendices}%
- {\msu@singleappendixfalse\msu@apppage\ifmsu@chapterapp\cftinserthook{toc}{APPENDICES}\fi\setcounter{tocdepth}{\value{msutocdepth}}
+ {\msu@singleappendixfalse\msu@apppage\ifmsu@chapterapp\cftinserthook{toc}{APPENDICES}\fi\addtocontents{toc}{\setcounter{tocdepth}{0}}
\@resets@pp\anappendixtrue}%
{\@ppsaveapp\@pprestoresec\anappendixfalse\cftinserthook{toc}{CHAPAPPR}} % reset added 2022/04/16