Closed mtthwborg closed 1 year ago
If you knit an unmodified clone of the GitHub repository to PDF, does the table of contents work?
Yes the unmodified version table of content works without issue.
Try adding your changes to the unmodified clone one at a time and see which one breaks the table of contents
Found the solution. The issue is that these new sections cannot have headings, which seems to interfere with the generation of table contents. This also applies for the other sections before the main thesis, such as the abstract and acknowledgements.
Not entirely sure which new sections you mean specifically, but glad you found a solution! Let me know if there are any action points for stuff that would need to change in oxforddown
to accommodate your use case
The table of contents is returning a error message that prevents PDF output (although Word works and has a table of contents):
Line 279 in _main.tex is the line immediately before the \flushbottom that precedes \tableofcontents. I am able to prevent this by either by changing table-of_contents to true or commenting out the following lines in template.tex, which in turn prevents the table of contents from loading
However, I would love to include a table of contents in the PDF version. I would be grateful for any help with solving this.
I did make some additions to the LaTeX templates template.tex and ociamthesis.clsc and the index.Rmd metadata in order to add more pages to the front-matter output. However, I cannot determine how they are related to the table of contents error, and moving the table of contents before or behind these extra pages makes no difference. The table of contents sections in all the aforementioned files were unchanged. Turning toc-link-page-numbers, lof, lot and options such as show-abstract-in-toc to false do not prevent the error.
I have copied and pasted the mini tables section in template.tex for reference (unchanged apart from comments):
I have also included one of the additions to template.tex below for reference, which is located after the abstract and adds a keywords section:
Which is accompanied by a corresponding section in ociamthesis.cls:
And this section in the index.Rmd metadata:
The other additions are similar to the keywords insertion.