View source: R/knitr-printers.R
| printer_equation | R Documentation |
knit_print)Converts a base R object into LaTeX output within Quarto / RMD.
printer_equation(x, options, ...)
x |
object to be passed to |
options, ... |
arguments required for a |
These methods are to be used in Quarto / RMD reports.
For global usage on all objects of class foo, register as an S3 method,
typically in the setup chunk.
library(knitr)
registerS3method("knit_print", "foo", printer_*)
For one-off usage, set the render chunk option, that is:
```{r}
#| render: !expr printer_*
```
eqn_name character. Name to place on the LHS of the equation.
eqn_digits integer. Passed to to_latex.
eqn_envir character. Passed to to_latex.
Generic documentation, knit_print.
Detailed vignette, vignette("knit_print", package = "knitr").
Related printr package.
Other Knitr printer methods:
printer_tabset()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.