View source: R/latex_equation_to_png.R
latex_equation_to_png | R Documentation |
Write an equation in Rmarkdown to a LaTeX format for compiling into a png equation image
latex_equation_to_png(A, b, file = NULL, format = "system of equations")
A |
An array to convert to Latex format |
b |
A vector to convert to Latex format |
file |
The file location to save the pdf output |
format |
The kind of equation to plot. The options are "system of euqations", "matrix equation", or "vector equation" |
A string that can be put into an Rmarkdown document by using cat()
to direct the output
latex_string <- array_to_latex(matrix(1:6, 3, 2)) # within Rmarkdown chunk # cat(latex_string)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.