</texcode>
One important quirk. If you do not start the document with \completecontent, but use it later–for example after the introduction–, you should use:
<texcode>
\completecontent[criterium=all]
</texcode>
When \completecontent is at the end of the document you can use:
<texcode>
\completecontent[criterium=previous]
</texcode>