print_tex_as_html {lazy.symbolic}R Documentation

Print the LaTex as html in RStudio Viewer pane or a RMarkdown (Quarto) document

Description

Print the LaTex as html in RStudio Viewer pane or a RMarkdown (Quarto) document

Usage

print_tex_as_html(TeX_code, annotation)

Arguments

TeX_code

The input string vector containing LaTeX expressions

annotation

(Optional) A string vector containing annotations for the expressions.

Author(s)

Contributed by Dr. Kentaro Fukushima at Osaka University.

Examples


## Not run: 
library(htmltools)
modify_math_operators()
A <- demomat(2,3, root="a")
B <- demomat(3,2, root="b")
AB=A%*%B
printm(AB)
AB_tex <- to_latex( AB )
printm(AB_tex)
print_tex_as_html(AB_tex)
AB_tex <- to_latex( t(A)+B, print_html=TRUE )
sexpr_tex <- to_latex( sexpr, mat2sum=TRUE )
print_tex_as_html(sexpr_tex)

## End(Not run)





[Package lazy.symbolic version 1.0.0.20250701 ]