I am using memoir to produce a book. I have many chapter files, which I can compile either standalone or with the entire book. (I did not manage to get minitoc to work with my markdown.sty authoring, but this is a different problem.)
There are times when I do not want to typeset my entire book but see only the outline---the chapters, sections, subsections, etc. I know I cannot know the page numbers, unless I fully typeset everything, but in those cases, I really don't care much about this. (Actually, some hint about how much text there is in the source of each subdivision [e.g., just count words], would be helpful.)
Right now, I have a perl script that does scans through my tex files and writes a standalone tex document that shows me the outline. But I wonder if there is a within tex solution (so that my coauthors [who are not perl and Dropbox savy] could use it on Overleaf, too).
Is there a latex package that can do this?