Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Does the table of contents work if the pdf doesn't come with a table of contents? (That's something I always wished my pdf reader could do)


Sortof - sioyek will parse the text and attempt to create a table of contents (this does not modify the base pdf), but the accuracy/usefulness varies. For papers I have found it works reasonably well, just sometimes misses a few sections or includes a few junk entries. For textbooks, especially ones with heavy math typesetting, there are too many junk/missing entries a lot of the time in my experience.

For papers or for textbooks I only need a small subset of, I find the autogenerated table of contents + bookmarks is typically sufficient. For other cases I like to use pdf.tocgen (https://github.com/Krasjet/pdf.tocgen) to semi-manually generate a correct table of contents.


Thanks, I'll look into both!


Yes

> If set and the file doesn’t have a table of contents, we use heuristic methods to create a table of contents. You can use max_created_toc_size to prevent creating very large table of contents.

https://sioyek-documentation.readthedocs.io/en/latest/config...


The website says yes: https://sioyek.info/

Link should be to the website imho.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: