# Is it possible to compile a document but only output the document structure?

When writing and conceptualising large projects (with numerous chapters, sections, subsections... and other type of meta information like references, tables, figures, keywords...), it is sometimes necessary to have a structured, clearly arranged overview of the current state of the project.

A tree-structured mind map comes to mind. This could be generated and structured automatically drawing on the information from the abovementioned sources. For example, it could arrange chapter headings around the title of the project, and arrange keywords or index entries, references, names of images etc. under the headings in which they appear.

Is there a simple way to achieve this, e. g. a package that provides an option like `structure-only=true` in the preamble and uses tikz to create a mind map?

If there is no such package, what would be the easiest way to create the described document?

• Why don't you look at the table of contents, the list of figures and the index? – Ulrike Fischer Nov 13 '17 at 9:43
• @UlrikeFischer Yes, the table of contents shows the document structure, but it does not show data belonging to the corresponding entries, and the list of figures and the index don’t show a connection to the document structure. They don’t provide a good overview. They are not a visualisation like a mind map. – Philipp Nov 13 '17 at 9:51
• I thought, since a) information in LaTeX is already highly categorised, and b) LaTeX tries to take the task of creating a reasonable layout off the user anyway, it should be possible to “auto-create” such a mind map. – Philipp Nov 13 '17 at 9:54
• I don't believe in mind maps but the `etoc` package shows an example how to convert a toc to a mind map. Beside this: the toc and the lof are autocreated and naturally you could create a list "table of contents and figures" that combines both and redefine \index so that it writes into it too. – Ulrike Fischer Nov 13 '17 at 10:05