On Fri, Oct 30, 2026 at 07:18:31PM +0100, Sebastian Meyer wrote:
> GNU R uses KaTeX by default when rendering its help pages in HTML, see
> for its Texinfo manuals. Currently these use simple plain-text equations in
> case @ifnottex (e.g., 
> <https://CRAN.R-project.org/doc/manuals/R-intro.html#Generalized-linear-models>).
> 
> Are there plans to add HTML_MATH=katex as an alternative to mathjax?

This has just been added in two recent commits.  It would be good if the
new documentation in the manual could be verified.

KaTeX is a Javascript API, which requires writting some Javascript, in
contrast to MathJax, which tries to provide an interface for users who
know nothing about Javascript.  The documentation is aligned, my
impression is that KaTeX documentation targets developpers already
knowing about Javascript.  It is therefore less handy for me, since I
know next to nothing about Javascript.  I verified that the output is
what is expected, so the code is probably adequate, but the
implementaiton in term of Javascript code, including what should be
protected in strings may probably be ameliorated.

It would be good if people from the R project, or from other interested
projects could check if the interface in texi2any is good and maybe
advise on the Javascript produced.

-- 
Pat

Reply via email to