Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • I couldn't seem to get this to work, but I may just be missing something. In your example output you also appear to have the heading for the 'Appendix Subsection' but not the local toc entry for it, is that correct? Commented Aug 3, 2017 at 18:49
  • @enpaul Sorry about that. I've updated the answer. Commented Aug 3, 2017 at 19:27
  • Thanks! That did it, except for some reason the first appendix still displayed the subsections in the main TOC. I reordered the appendices and the problem stayed with the first appendix. I verified your answer because it works in the sample test document just fine, there's just something in my document that's screwing with it. Commented Aug 3, 2017 at 19:57
  • @enpaul If you put the commands manually (not using the AtBeginEnvironment code), does it work? Commented Aug 3, 2017 at 20:03
  • If I put the line commands immediately before the first appendix's local TOC then it works perfectly, for both the first appendix and all the others. Commented Aug 3, 2017 at 20:16