Under macOS, you often need to write reports or papers, and you need to generate a catalog.
But today I found that the method of automatically generating a directory under Windows is not easy to use under macOS.
So this problem is solved on the basis of Baidu: hereby record.
1. Use finder
Insert-index and table of contents