bdtc / lwarp

The LaTeX lwarp package — Convert LaTeX to HTML.
https://ctan.org/pkg/lwarp
31 stars 0 forks source link

Common side-TOC file. #3

Open bdtc opened 7 months ago

bdtc commented 7 months ago

Generate a single side-TOC file, and refer to it from each HTML page.

Currently the side-TOC is generated and compiled from scratch for each HTML page. Generate it once, store it in a file, and refer to it from each page. Possible significant improvement in compile times and page sizes, but reduces flexibility.

From tex.stackexchange

dciomics commented 4 months ago

I ended up having to remove the side-TOC on a large document with several hundred html pages for exactly this reason.

bdtc commented 4 months ago

Was the problem the compile time or the overall size of the resulting sideTOC?

I hope to come up with a way to create a collapsing sideTOC, and other improvements, but am low on time at the moment so this will take a while. Also, browser support is improving for a way to do this with static HTML instead of JavaScript.