math: Adds the class "math" to the object for knitr output via...

View source: R/mathml.R

mathR Documentation

Adds the class "math" to the object for knitr output via mathout()

Description

Adds the class "math" to the object for knitr output via mathout()

Usage

math(term, flags = NULL)

Arguments

term

an R call or symbol/number. This function translates term into a LaTeX/MathJax string.

flags

(default NULL) list of flags that control the translation

Value

term with additional class "math" and flags as attributes.

See Also

mathml(), mathjax(), mathout()

Examples

math(term=quote((a + b)^2L == a^2L + 2L*a*b + b^2L))

mathml documentation built on June 8, 2025, 11:12 a.m.