texshow | R Documentation |
Dump latex representation of sympy object and compile document into pdf.
texshow(x)
x |
An object that can be put in latex format with caracas' tex() function or a character string with tex code (in math mode). |
Nothing, but a .tex file and a .pdf file is generated.
if (has_sympy()) {
S <- matrix_sym_symmetric(3, "s")
S
## Not run:
texshow(S)
texshow(paste0("S = ", tex(S)))
## End(Not run)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.