printer_equation: Print Equations (via 'knit_print')

View source: R/knitr-printers.R

printer_equationR Documentation

Print Equations (via knit_print)

Description

Converts a base R object into LaTeX output within Quarto / RMD.

Usage

printer_equation(x, options, ...)

Arguments

x

object to be passed to to_latex.

options, ...

arguments required for a knit_print method.

Reporting

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_*

```

Chunk Options

  • 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.

See Also

  • Generic documentation, knit_print.

  • Detailed vignette, vignette("knit_print", package = "knitr").

  • Related printr package.

Other Knitr printer methods: printer_tabset()


nclJoshCowley/jcutils documentation built on Nov. 22, 2022, 10:16 a.m.