Skip to content
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

Possible to constrain what levels are written to the TOC file by etoc #26

Open
wkvolkman opened this issue Jan 26, 2025 · 0 comments
Open

Comments

@wkvolkman
Copy link

wkvolkman commented Jan 26, 2025

I have a very large (40mb) text file that I've been slowly converting to LaTex. I've included etoc as I plan to use the chapter and section level toc features. Everything works well on smaller files. However there are a lot of sections, chapters, paragraphs, subparagraphs, and I've added subsubparagraphs. All of these entries end up in the .toc file, which is mostly what you want. However the resulting .toc file ends up with over 120 thousand entries ( will probably be doubling the number of them in the future) and is taking around 25 minutes just to load at the begin document stage. If I filter the paragraph entries (and below) there only remain about 30 thousand entries and it loads in a couple of minutes. I've read the etoc documentation and it implies that it is a feature to keep all of the entries. My tocs only need to contain up to the chapter level so storing the extra entries in the .toc file is just wasted space. Any suggestions on how to control that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant