-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect Table of Contents page numbering for List of Figures and List of Tables #13
Comments
Thanks for letting me know about this. I don't have any immediate ideas. Sounds like changing the LaTeX class could fix it, what do you think? |
Had this exact problem - I got around it with a pretty dumb trick. not a mwe, but here's the relevant code in my title page. The page numbers for listoffigures and listoftables were not working. %\addcontentsline{toc}{chapter}{Contents} \pagenumbering{roman} \phantomsection \pagenumbering{roman} \phantomsection |
I gave this another try and obtained the correct ToC page numbers by setting I can't remember why this didn't work the first time - maybe I tried setting options in the console, or maybe I was checking the LoT or LoF links instead of the ToC numbers. Henry, could you let me know if you've tried this? If I set Ben, apologies for not getting back last year. I figured that changing the document class from book would adversely affect some of the other functions and ended up not getting around to testing that. |
I just compiled with .tex file through RStudio - I'm not that familiar with adjusting the latex settings in Rstudio, but it looks like they can be customized: https://support.rstudio.com/hc/en-us/articles/200532257-Customizing-LaTeX-Options I'll try to run it with this option next weekend |
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 placetinytex.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!
The text was updated successfully, but these errors were encountered: