Skip to content

Incorrect Table of Contents page numbering for List of Figures and List of Tables #13

@eugenesit

Description

@eugenesit

Describe the bug
In the generated PDF, the Lists of Figures and Lists of Tables page numbering is incorrect in the Table of Contents. Page numbers are ahead of where they should be (says page ii for LoF but the page is iv, iii for LoT but page is v).

To Reproduce
I followed the given instructions to produce the huskydown PDF.

I have been working on my own template adaptation of thesisdown (https://github.com/eugenesit/gaelsdown) and found that this issue applies to any section which follows the ToC and using the same page numbering (arabic), not just the LoF and LoT (PDF).

Efforts to Resolve
This issue might be corrected in LaTeX by compiling multiple times (https://tex.stackexchange.com/questions/41897/wrong-page-number-for-list-of-figures-within-table-of-contents). I don't understand the internal workings of pdf_book well enough to know if there's a way to pass along these instructions. I tried specifying global options for tinytex to compile multiple times tinytex.compile.min_times=3 and to leave files in place tinytex.clean=FALSE, but this didn't change the output.

I also tried using the LaTeX package tocbibind to pass LoT and LoF to the ToC but this doesn't fix the problem. I also encountered this issue in thesisdown variant dragondown, which you can see in their PDF preview as well. huwiwidown (https://github.com/phister/huwiwidown) had correct page numbers for LoF and LoT, which seems to be due to the fact that the LaTeX class for this template is article, not book.

If you have any ideas for how to solve this problem I'd love to hear them! Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions