federico-busato / Modern-CPP-Programming

Modern C++ Programming Course (C++03/11/14/17/20/23/26)
https://federico-busato.github.io/Modern-CPP-Programming/
11.91k stars 798 forks source link

Table of contents broken in all-in-one modern-cpp.pdf #84

Closed eugenefil closed 6 months ago

eugenefil commented 6 months ago

After reading much of the course I'm using all-in-one modern-cpp.pdf to quickly jump between topics back and forth - very convenient. But at some places the table of contents is broken:

  1. The whole chapter "6. Basic Concepts V" starting with "Functions" and up to the first topic "C++ Classes" of chapter "7. Object-Oriented Programming I" are buried in the table of contents under the topic "Constants, Literals, const, constexpr, consteval, constinit" of the preceding chapter "5. Basic Concepts IV".

screen1

  1. In a similar vein, but more convoluted, the whole section of table of contents between top-level "Execution Debugging" and "View" is garbled. Here chapter "15. C++ Ecosystem" starting with "CMake" is buried under "Execution Debugging" of chapter 14. And chapter "16. Utilities" starting with "I/O Stream" is under topic "Other Tools" of ch.15. Chapter "17. Containers, Iterators, Ranges, and Algorithms" starts under "Time Measuring" of ch.16.

screen2

  1. The first topic "I/O Operations" of Chapter "21. Performance Optimization II" is buried under the last topic "Memory Concepts" of ch.20.

Thanks!

federico-busato commented 6 months ago

Thanks for reporting it, @eugenefil. Not sure why this happened. I regenerate the file and looks fixed

eugenefil commented 6 months ago

The first one is fixed, thanks a lot. But the 2nd and 3rd are still there. The 2nd is particularly messed up for some reason. E.g. try expanding "Execution Debugging" and you'll see "CMake" under it. Then further expand "Other Tools" and you'll see "I/O Stream".

federico-busato commented 6 months ago

I regenerate everything from scratch. This should fix the issue

eugenefil commented 6 months ago

It really did. Thanks a lot!