I am using doxygen for a development. I am supplementing some requirements information with markdown files that doxygen will consume at the same time as the source code. Each markdown requirements file needs to have it's own TOC. using the [TOC]
or \tableofcontents
doxygen commands works perfectly well for this if you are using the HTML output. However, the final document must be a pdf and will be generated via the latex output.
After testing the latex output today, I have noticed that the [TOC]
that is rendered in the HTML for each page is not placed into the latex output.
How would I go about adding an individual [TOC]
to each markdown requirements page in the latex output?
Knowing that latex generates the TOCs on a second run of the compiler, I would imagine that there is no way to generate one just for those particular pages. I would, instead, have to generate the markdown files as their own documents, then somehow include them in the main doc? How would I do this?
I hope there is something easier.
ANSWER:
From the doxygen documentation, it indicates that one must specify latex
in the command in order for it to render in latex.
\tableofcontents{latex,html}
This will render a TOC in both html and latex.
- Thank you Albert