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: appendix and algorithm comingled

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.

  • Do not have the same file extension (loa) for the appendices and algorithms lists. Call one, say lap and the other lal for example. Commented May 11, 2021 at 16:28
  • Hi Peter, I tried as suggested but it is till not working as expected. The List of Appendices is now working, but no algorithms are showing up in List of Algorithms. Here is the update to changes: github.com/JeremyBYU/thesis-umich/commit/… Thanks for your help. Commented May 11, 2021 at 17:57
  • Okay I think I got it working now. I have to keep the loa for algorithms but only changed the list of appendices to lap. Should be updated and working here: github.com/JeremyBYU/thesis-umich Commented May 11, 2021 at 18:23
  • @JeremyCastagno Thanks! Your solution works perfect!
    – ambigus9
    Commented Aug 21, 2021 at 21:07

2 Answers 2


I took Peter Wilsons advice and modified the "file extension" for the appendices list. The appendices is now:

\@starttoc{lap}\if@restonecol\twocolumn\fi %

and does not conflict with the list of algorithms. Note that I could not get the algorithms to generate unless I continued to use \@starttoc{loa}, I could not rename them to lal as suggested.

Here is the updated github repository where you can track these successful changes and effects: https://github.com/JeremyBYU/thesis-umich


I just changed all loa to lop or any other name in the cls file, to avoid conflicting with "list of algorithm" that already uses loa name. After changing like this, the appendix list worked.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .