From be53973de38a7aa9a3a0a8c70fd92bdf893c1a35 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Tue, 25 Jul 2023 03:01:17 +0000
Subject: CTAN sync 202307250301

---
 macros/latex/contrib/msu-thesis/msu-thesis.cls | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'macros/latex/contrib/msu-thesis/msu-thesis.cls')

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
 
-- 
cgit v1.2.3

