Package: katex 1.5.0

Jeroen Ooms

katex: Rendering Math to HTML, 'MathML', or R-Documentation Format

Convert latex math expressions to HTML and 'MathML' for use in markdown documents or package manual pages. The rendering is done in R using the V8 engine (i.e. server-side), which eliminates the need for embedding the 'MathJax' library into your web pages. In addition a 'math-to-rd' wrapper is provided to automatically render beautiful math in R documentation files.

Authors:Jeroen Ooms [aut, cre], Khan Academy and other contributors [cph]

katex_1.5.0.tar.gz
katex_1.5.0.zip(r-4.5)katex_1.5.0.zip(r-4.4)katex_1.5.0.zip(r-4.3)
katex_1.5.0.tgz(r-4.5-any)katex_1.5.0.tgz(r-4.4-any)katex_1.5.0.tgz(r-4.3-any)
katex_1.5.0.tar.gz(r-4.5-noble)katex_1.5.0.tar.gz(r-4.4-noble)
katex_1.5.0.tgz(r-4.4-emscripten)katex_1.5.0.tgz(r-4.3-emscripten)
katex.pdf |katex.html
katex/json (API)
NEWS

# Install 'katex' in R:
install.packages('katex', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/ropensci/katex/issues4 issues

Pkgdown site:https://docs.ropensci.org

On CRAN:katex-1.5.0(2024-09-29)

Conda:

7.97 score 37 stars 4 packages 29 scripts 7.3k downloads 5 exports 4 dependencies

Last updated 6 months agofrom:a84bfe443c (on master). Checks:8 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKFeb 25 2025
R-4.5-winOKFeb 25 2025
R-4.5-macOKFeb 25 2025
R-4.5-linuxOKFeb 25 2025
R-4.4-winOKFeb 25 2025
R-4.4-macOKFeb 25 2025
R-4.3-winOKFeb 25 2025
R-4.3-macOKFeb 25 2025

Exports:example_mathkatex_htmlkatex_mathmlmath_to_rdrender_math_in_html

Dependencies:curljsonliteRcppV8

Rending math to HTML in R using katex

Rendered fromkatex-tests.Rmdusingknitr::rmarkdownon Feb 25 2025.

Last update: 2022-02-08
Started: 2021-07-13

Citation

To cite package ‘katex’ in publications use:

Ooms J (2025). katex: Rendering Math to HTML, 'MathML', or R-Documentation Format. R package version 1.5.0, , https://github.com/ropensci/katex.

Corresponding BibTeX entry:

  @Manual{,
    title = {katex: Rendering Math to HTML, 'MathML', or
      R-Documentation Format},
    author = {Jeroen Ooms},
    year = {2025},
    note = {R package version 1.5.0, },
    url = {https://github.com/ropensci/katex},
  }

Readme and manuals

katex badge

Rendering Math to HTML and MathML in R

Convert latex math expressions to HTML for use in markdown documents or package manual pages. The rendering is done in R using the V8 engine, which eliminates the need for embedding the MathJax library in the web pages.

Installation and documentation

Install directly from r-universe:

# Install from our universe
options(repos = c(
    ropensci = 'https://ropensci.r-universe.dev',
    CRAN = 'https://cloud.r-project.org'))
install.packages('katex')

Docs: https://docs.ropensci.org/katex/reference/katex.html

Help Manual

Help pageTopics
Tex math rendering in Rexample_math katex katex_html katex_mathml
Display math in R documentationmath_to_rd
Renders math in HTML documentpandoc render_math_in_html