Closed hturner closed 1 month ago
I have removed the mechanism to include katex library with the converted article in this commit (064ff8efa27c54d1b6f491da03824298bedb9ff7).
Also added the math_method
option for katex
if autonumber_eq
is FALSE, otherwise it would be mathjax
as mentioned in #90
Currently running
rnw_to_rmd
creates a folder storing all the KaTeX Javascript and font files. These are embedded in the HTML when it is rendered, creating a large file, even though the HTML does not use KaTeX!Example:
The conversion works quite well, but produces an HTML file that is 1.6MB. Deleting all the KaTeX code from the HTML file reduces the files size to 92KB and makes not difference to the output.
The same is true if you update the YAML in the .Rmd to use use KaTeX:
the only difference is that the math renders offline and the equation numbering/referencing doesn't work, as expected (see #90).
So we need to avoid copying/including all these unnecessary KaTeX files.