I am working on my thesis and having trouble adding a list of appendices as well as a list of algorithms. My question is very similar to the this one here but I will provide a MWE example of the issue and some code snippets. I am using a latex class file (thesis-umich.cls) that I believe conforms to my thesis standards.
The issue is that the appendices and algorithms seem to be picked up as belonging to the same group and will be commingled in the table of contents. An example here:
I think the basic issue is that custom code to make a list of appendices and algorithms both use
\@starttoc{loa}\if@restonecol\twocolumn\fi %
to add to the table of contents (Line 867 and 895 in thesis-umich.cls). I believe the \starttoc{loa}
is the same for both of them and causes conflicts. These linked custom commands will only be called if \showlistofappendices
or \showlistofalgorithms
is set in the main thesis-sample.tex
file. For example if I replace \showlistofappendices
to \hidelistofappendices
and remove the appendix in the thesis-sample.tex
, the table of contents is correctly filled out with algorithm toc, no conflicts.
Basically I'm wondering if there is some way make \@starttoc{...}
work for both appendices and algorithms without conflict. Thanks for any help.
lap
and the otherlal
for example.loa
for algorithms but only changed the list of appendices tolap
. Should be updated and working here: github.com/JeremyBYU/thesis-umich