[Tex/LaTex] Generate a List of Appendices page for report class

appendicesappendixliststable of contents

So it seems like this question has been asked many times over, however, I have found none of the existing solutions are particularly satisfactory for my situation, as they either force other unneeded functionality, or they break existing aspects of my TeX document.

I am using the report class and I simply want to be able to add a single, separate page (i.e. starting on its own page) to list out the appendices. I want the page to have a left-justified title "List of Appendices", followed by each appendix item which has dots leading to the page number (the same look and feel of the List of Tables and List of Figures). In addition, I also want to have only the ToC item "Appendices" listed in the Table of Contents, and not each of the actual Appendix sub-items.

Here is what I have so far for creating an appendix and trying to hide the sub-items from the ToC. I really need some guidance on how to create a \listofappendices. I'm also noticing the Appendix page numbering in the rendered PDF is not alphabetic like the package documentation suggests it should be; see here.

\documentclass{report}

\usepackage{appendix}
\usepackage{hyperref}

\title{Here is my title}
\author{Name Name}
\date{October 1, 2019}

\begin{document}

\maketitle
\tableofcontents
\listoftables
\listoffigures
% what I want \listofappendices

\chapter{Introduction}
Here is some content...

\appendix
\addappheadtotoc
\addtocontents{toc}{\protect\setcounter{tocdepth}{-1}}

\chapter{First Appendix}
Here is my appendix content...

\chapter{Second Appendix}
Here is my appendix content...

\end{document}

I am not very expert when it comes to LaTeX, so any and all help is much appreciated.

Best Answer

Here is a suggestion using package scrwfile:

\documentclass{report}
\usepackage{blindtext}% only for dummy text
\usepackage{scrwfile}

\usepackage{hyperref}

\TOCclone[List of Appendices]{toc}{atoc}
\addtocontents{atoc}{\protect\value{tocdepth}=-1}
\newcommand\listofappendices{\listofatoc}

\newcommand*\savedtocdepth{}
\AtBeginDocument{%
  \edef\savedtocdepth{\the\value{tocdepth}}%
}

\let\originalappendix\appendix
\renewcommand\appendix{%
  \originalappendix
  \cleardoublepage
  \addcontentsline{toc}{chapter}{\appendixname}%
  \addtocontents{toc}{\protect\value{tocdepth}=-1}%
  \addtocontents{atoc}{\protect\value{tocdepth}=\savedtocdepth}%
}

\title{Here is my title}
\author{Name Name}
\date{October 1, 2019}

\begin{document}
\maketitle
\tableofcontents
\listoftables
\listoffigures
\listofappendices

\blinddocument

\appendix
\chapter{First Appendix}
Here is my appendix content
\chapter{Second Appendix}
Here is my appendix content
\blinddocument
\end{document}

Result:

enter image description here

enter image description here