I'm working on my thesis. I've followed the same pattern to generate sections and subsections in each chapter. Everything is fine except that out of two section of the last chapter, only one is appearing in TOC.The second one doesn't appear in TOC. I'm using report class.





I'm unable to understand why is it a problem in last chapter and not anywhere else.







%If you want dots even for chapters and parts
\renewcommand{\cftpartleader}{\cftdotfill{\cftdotsep}} % for parts
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} % for chapters

closed as unclear what you're asking by user31729, Troy, Circumscribe, Sebastiano, Mensch Dec 31 '18 at 16:30

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Welcome to TeX SX! Could you post a minimal code illustrating the problem? – Bernard Jun 24 '18 at 18:48
  • 3
    Did you compile twice without error? Since it only affects the last chapter, we're not likely to be able to tell much from your preamble. Did you use \appendix or \backmatter? Off-topic: you're loading hyperref too early. – cfr Jun 24 '18 at 18:51